/* ===== LAYOUT GENERAL ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at top, #2b4a9f, #050814 60%);
    color: #f7f7f7;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* sin padding extra para que aproveche toda la altura */
}

.invitation-card {
    width: 100%;
    max-width: 1100px;
    height: 100vh;                    /* ocupa toda la ventana */
    background: rgba(6, 13, 32, 0.98);
    border-radius: 0;                  /* sin bordes redondos para “llenar” pantalla */
    box-shadow: none;                  /* sin sombra para fullscreen */
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
}


/* ===== ENCABEZADO ===== */

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 1px;
}

.header h2 {
    margin: 4px 0 0;
    font-size: 16px;
    color: #d1d1d1;
}

/* ===== CONTENIDO PRINCIPAL: 2 COLUMNAS ===== */

.content {
    flex: 1;
    display: flex;
    gap: 18px;
    padding-top: 12px;
    overflow: hidden;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
}

/* Izquierda ocupa un poco más para el video */
.left-column {
    flex: 1.2;
}

/* Derecha un poco menos para detalles y mapa */
.right-column {
    flex: 1;
}

/* ===== VIDEO / POSTER ===== */

.video-wrapper {
    position: relative;
    width: 100%;
    height: 40%;           /* un poco menos alto para que quepa todo */
    min-height: 220px;
    margin-bottom: 10px;
}

.pancho {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* muestra todo el video sin cortar */
    background: #000;      /* relleno negro arriba/abajo si hace falta */
    border-radius: 16px;
}


/* Contenedor del poster estático con botón de play encima */
.poster {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Botón redondo de play en el centro */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* El video arranca oculto, se muestra con JS */
#panchoVideo {
    display: none;
}

/* ===== TEXTOS IZQUIERDA ===== */

.welcome {
    margin-bottom: 6px;
}

.hola {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 4px;
}

.intro {
    font-size: 14px;
    color: #e1e1e1;
    margin: 0;
}

.evento-resumen {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    background: rgba(255,255,255,0.06);
    padding: 8px 10px;
    border-radius: 10px;
}

.evento-resumen p {
    margin: 2px 0;
}

/* ===== BOTÓN CONFIRMAR + QR ===== */

button {
    width: 100%;
    padding: 12px;
    background: #ffc107;
    border: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background: #ffda47;
}

.aclaracion {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}

.confirmado {
    margin-top: 10px;
    padding: 10px;
    background: #28a745;
    border-radius: 10px;
    font-size: 13px;
}

.oculto {
    display: none !important;
}


.qr {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.qr img {
    width: 140px;
    height: 140px;
}

.qr-link {
    margin-top: 6px;
    font-size: 12px;
    color: #ffd86a;
    text-decoration: underline;
    cursor: pointer;
}

.qr-link:hover {
    color: #ffeaa0;
}

.qr-note {
    margin-top: 4px;
    font-size: 11px;
    color: #cccccc;
}


/* ===== COLUMNA DERECHA: DETALLES + MAPA ===== */

.event-box {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 10px;
}

.event-box h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.event-box p {
    margin: 3px 0;
}

.event-box .label {
    font-weight: bold;
    color: #ffd86a;
}

.map-box {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.map-box h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.map-text {
    font-size: 13px;
    margin: 0 0 8px;
}

.map-frame {
    height: 55%;   /* en vez de ocupar TODO el espacio, solo parte */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-mapa {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 14px;
    background: #ffc107;
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.btn-mapa:hover {
    background: #ffda47;
}


/* ===== FOOTER ===== */

.footer {
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.legal {
    margin: 0;
    font-size: 11px;
    color: #bbbbbb;
}

/* ===== RESPONSIVE (CELULAR / TABLET) ===== */

@media (max-width: 900px) {
    .invitation-card {
        height: auto;
        max-height: none;
        padding: 16px;
    }

    .content {
        flex-direction: column;
        overflow: visible;
    }

    .video-wrapper {
        height: auto;
        min-height: 220px;
    }

    .right-column {
        margin-top: 10px;
    }

    .qr img {
        width: 140px;
    }

}
.donacion-info {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #ffe9a3;
    line-height: 1.4;
}

.donacion-recordatorio {
    background: rgba(255, 240, 180, 0.15);
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #ffe2a8;
}
