/* =======================
   RESET Y BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fondo: #7f8f73;
    --texto: #ffffff;
    --linea: rgba(255,255,255,.6);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #5b775ca1;/*var(--fondo);*/
    color: var(--texto);
    text-align: center;

    /*background-image: url("floreslateral.png");
    background-repeat: repeat-y;
    background-position: center;
    background-attachment: fixed;*/
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    /*background-image: url("floreslateral.png");
    background-size: 100% auto;
    opacity: 0.3;*/
    background-image: url("flores3.png");
    background-repeat: repeat-y;
    background-position: center;
    background-size: 150% auto;

    opacity: 0.2;
    z-index: -1;
}

/* =======================
   💍 ANILLOS DOBLES
======================= */
.anillos {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTENEDOR DE CADA MITAD */
.anillo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    transition: transform 1.3s cubic-bezier(.4,0,.2,1),
                opacity 1.2s ease;
}

/* IMAGEN */
.anillo img {
    width: 100%; /* el doble del contenedor */
    position: absolute;
    top: 0;
}

/* MITAD IZQUIERDA */
.izquierda {
    left: 0%;
    transform: translateX(-80px);
}

.izquierda img {
    left: 0;
}

/* MITAD DERECHA */
.derecha {
    right: 0%;
    transform: translateX(80px);
}

.derecha img {
    right: 0;
}

/* ESTADO ABIERTO */
body.abierto .izquierda {
    transform: translateX(-260px);
    opacity: 0;
}

body.abierto .derecha {
    transform: translateX(260px);
    opacity: 0;
}

.imgStart{
    width:100%;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.imgMed{
    width:100%;
    opacity: 0.8;
    margin-top: -10%; 

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}
.imgNosCas{
    width: 100%;
    opacity: 0.9;
    margin: -35%;
    /*height: 320px;*/
}

/* =======================
   CONTADOR
======================= */
.contador {
    padding: 40px 20px 20px;
    /*padding-top: 100% !important;*/
}

.contador h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin-bottom: 20px;
    
}

.tiempo {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tiempo div {
    background: #cfe0cf;
    color: #000;
    padding: 8px 10px;
    border-radius: 4px;
    min-width: 55px;
}

.tiempo span {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.tiempo small {
    font-size: 11px;
}

/* =======================
   ELEMENTOS
======================= */
.linea {
    width: 80%;
    height: 1px;
    background: var(--linea);
    margin: 30px auto;
}

.frase {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 26px;
    max-width: 520px;
    margin: auto;
    line-height: 1.6;
    padding: 0 20px;
}

.seccion {
    padding: 70px 20px;
}

.icono {
    font-size: 22px;
    margin-bottom: 10px;
}

.titulo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 10px;
}

.texto {
    font-size: 25px;
    line-height: 1.6;
}

/* =======================
   MAPA
======================= */
.mapa {
    margin-top: 40px;
}

iframe {
    width: 100%;
    height: 320px;
    border: none;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 480px) {
    .anillo {
        width: 100%;
        height: 100%;
    }

    .anillo img {
        width: 100%;
        height: 100%;
    }

    body.abierto .izquierda {
        transform: translateX(-200px);
    }

    body.abierto .derecha {
        transform: translateX(200px);
    }

    .titulo {
        font-size: 22px;
    }

    .evento {
        flex-direction: column !important;
        text-align: center;
    }

    .icono-evento {
        margin-bottom: 10px;
    }
}

    .subtitulo {
        letter-spacing: 3px;
        font-size: 13px;
        margin-bottom: 8px;
    }
    .itinerario {
        max-width: 700px;
        margin: auto;
    }

    .evento {
        display: flex;
        align-items: center;
        gap: 30px;
        margin: 45px 0;
    }

    /* ICONO */
    .icono-evento {
        width: 80px;
        height: 80px;
        border: 1px solid rgba(255,255,255,.6);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
    }

    /* TEXTO */
    .info h3 {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        margin-bottom: 6px;
    }

    .info p {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .info span {
        font-size: 14px;
        opacity: .9;
    }

    /* ALTERNAR IZQUIERDA / DERECHA */
    .evento:nth-child(even) {
        flex-direction: row-reverse;
        text-align: right;
    }

    .mesa-regalos {
        max-width: 520px;
        margin: auto;
    }

    .btn-regalos {
        display: inline-block;
        margin-top: 25px;
        padding: 14px 34px;
        border: 1px solid rgba(255,255,255,.7);
        border-radius: 30px;
        color: white;
        text-decoration: none;
        font-size: 15px;
        transition: background .3s ease, color .3s ease;
    }

    .btn-regalos:hover {
        background: white;
        color: #7f8f73;
    }

    confirmar {
        max-width: 520px;
        margin: auto;
    }

    .btn-confirmar {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: 25px;
        padding: 14px 34px;
        background: #25D366; /* WhatsApp */
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-size: 15px;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .btn-confirmar:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,.25);
    }
    .btn-Noconfirmar {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: 25px;
        padding: 14px 34px;
        background: #ff7c7c; /* WhatsApp */
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-size: 15px;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .btn-Noconfirmar:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,.25);
    }

    .btn-musica {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: none;
        background: rgba(0,0,0,0.5);
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 999;
        backdrop-filter: blur(6px);
    }

    /* =======================
       SECCIÓN NO NIÑOS
    ======================= */
    .no-ninos {
        padding: 80px 25px;
        text-align: center;
        max-width: 700px;
        margin: auto;
        font-size: 20px;
    }

    .no-ninos h3 {
        font-size: 20px;
        font-weight: normal;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .texto-principal {
        font-size: 15px;
        opacity: 0.85;
        margin-bottom: 35px;
    }

    .mensaje-destacado {
        font-size: 26px;
        letter-spacing: 4px;
        font-weight: 500;
        margin: 25px 0;
    }

    /* Líneas doradas */
    .linea-dorada {
        width: 120px;
        height: 5px;
        margin: 25px auto;
        background: linear-gradient(
            to right,
            transparent,
            #d4af37,
            transparent
        );
    }

    /* Texto final */
    .texto-secundario {
        font-size: 24px;
        opacity: 0.75;
        margin-top: 30px;
    }

    /* =======================
       CARRUSEL
    ======================= */
    .carrusel {
        padding: 80px 20px;
        text-align: center;
    }

    .carrusel h3 {
        margin-bottom: 40px;
        font-size: 22px;
        letter-spacing: 1px;
    }

    /* Contenedor */
    .carrusel-contenedor {
        position: relative;
        overflow: hidden;
        max-width: 900px;
        margin: auto;
        border-radius: 12px;
    }

    /* Flechas */
    .flecha {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        border: none;
        color: white;
        font-size: 30px;
        padding: 8px 14px;
        cursor: pointer;
        z-index: 10;
        border-radius: 50%;
    }

    .flecha:hover {
        background: rgba(0,0,0,0.6);
    }

    /* Posiciones */
    .flecha-izq {
        left: 15px;
    }

    .flecha-der {
        right: 15px;
    }

    /* Track */
    .carrusel-track {
        display: flex;
        transition: transform 0.6s ease;
    }

    /* Imágenes */
    .carrusel-track img {
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;

        /* BLANCO Y NEGRO */
        filter: grayscale(100%);
    }

    .SelloBisha{
        color: red;
        z-index: 100;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-size: 26px;
        max-width: 520px;
        line-height: 1.6;
    }
    .blink-soft {
        animation: blinkSoft 1.5s infinite;
    }

    @keyframes blinkSoft {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    /* =======================
   SOBRE INICIAL
======================= */

#intro{
    position: fixed;
    inset: 0;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    overflow:hidden;

    /* MISMO FONDO QUE TU INVITACIÓN */
    background: #5b775ca1;
}

/* fondo de flores */
#intro::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: url("flores3.png");
    background-repeat: repeat-y;
    background-position: center;
    background-size: 150% auto;
    opacity:0.25;
    z-index:0;
}

/* capa oscura para resaltar el sobre */
#intro::after{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.25);
    z-index:1;
}
/* SOBRE BASE */
.envelope{
    position:fixed;
    inset:0;

    width:100vw;
    height:100vh;

    /* TONOS VERDES ELEGANTES */
    background: linear-gradient(145deg,#6f8f72,#4f6f57);

    overflow:hidden;
    z-index:2;

    transform: rotate(-6deg) scale(1.1);
    transition: transform 0.5s ease;

    box-shadow: inset 0 0 80px rgba(0,0,0,0.25);
}

.envelope::before{
    content:"";
    position:absolute;
    inset:0;

    background-image:url("flores3.png");
    background-size:cover;
    background-position:center;

    opacity:0.15; /* sutil */
    z-index:0;
}

.envelope:hover{
    transform: rotate(-8deg) scale(1.05);
}

/* TAPA DIAGONAL */
.flap{
    position:absolute;
    inset:0;

    background: linear-gradient(145deg,#4f6f57,#3e5a47);

    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform-origin:left;

    transition:1.2s ease;
    z-index:2;
}

/* BANDA BLANCA */
.band{
    position:absolute;

    width:160%;
    height:90px;

    background:#f3e9d7;

    top:50%;
    left:-30%;

    transform: rotate(25deg);

    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    z-index:3;
}

/* SELLO */
.seal{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:4;
    cursor:pointer;
}

.seal img{
    width:120px;
    height:auto;

    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
    transition:0.6s ease;
}
.seal.break img{
    transform: scale(1.3) rotate(15deg);
    opacity:0;
}

/* ABRIR SOBRE */
.open .flap{
    transform: rotateY(-140deg);
}

.padizquierda{
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    max-width: 520px;
    line-height: 1.6;
    font-weight: 600;
    color: black;
    text-align: left;
}

.padderecha{
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    max-width: 520px;
    line-height: 1.6;
    font-weight: 600;
    color: black;
    text-align: right;
}

/********* formato para pases ***********/

.reservado{
    background:#4f6785; /* azul elegante */
    padding:40px 20px;
    text-align:center;
    color:white;
    font-family: 'Georgia', serif;
}

.titulo{
    font-size:18px;
    letter-spacing:2px;
    margin-bottom:25px;
}

.contenedor{
    display:flex;
    justify-content:center;
    gap:40px;
    margin: 10%;
}

.item{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.numero{
    width: 80px;
    height: 120px;
    border: 2px solid rgb(77 77 77 / 60%);
    border-radius: 15px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    font-size: 70px;
    font-style: italic;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.item span{
    font-size:14px;
    letter-spacing:2px;
}

/* fecha boda */

.fecha-boda{
    text-align:center;
    padding:60px 20px;
    font-family:'Georgia', serif;
    color:#5f7d65;
}

.save{
    letter-spacing:3px;
    font-size:14px;
    margin-bottom:20px;
    opacity:0.7;
}

.fecha{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
}

.dia{
    font-size:60px;
    font-weight:bold;
}

.mes-anio{
    display:flex;
    flex-direction:column;
    font-size:16px;
    letter-spacing:2px;
}
