/* ------------------------------ */
/* TIPOGRAFÍA */
/* ------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');



body {
    font-family: 'Great Vibes', cursive;
    margin: 0;
    padding: 0;
    color: #111;
    overflow-x: hidden;
}

/* ------------------------------ */
/* FONDO PERGAMINO */
/* ------------------------------ */

.contenido {
    position: relative;
    max-width: 900px;
    width: 90%;
    margin: 60px auto;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 35px rgba(0,0,0,0.25);
    text-align: center;
    overflow: hidden;
}

.contenido::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/HectoryRaquel.png");
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: -2;
}

.contenido::before {
    content: "";
    margin-top: 280px;
    margin-left: 70px;
    position: absolute;
    left: -10px;           /*más hacia fuera para que se vea más grande */
    top: 0;
    width: 300px;         /* más grande */
    height: 100%;         /* ocupa toda la tarjeta */
    background-image: url("img/ramaNueva.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.40;        /* más suave para que no tape texto */
    filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.25));
    z-index: -1;           /* detrás del texto, pero encima del pergamino */
    pointer-events: none; /* evita que interfiera con clics */
}

/* ------------------------------ */
/* TITULARES */
/* ------------------------------ */

#saludo,
.comentario,
.nombres {
    font-family: 'Great Vibes', cursive;
}

#saludo {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.comentario {
    font-size: 1.5rem;
    margin: 20px 0;
    opacity: 0.9;
}

.nombres {
    font-size: 6rem;
    margin: 5px 0;
    letter-spacing: 3px;
}

/* ------------------------------ */
/* LAYOUT DESKTOP */
/* ------------------------------ */

.layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "fecha polaroid direccion"
        "hora  polaroid direccion";
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.fecha {
    grid-area: fecha;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-size: 1.6rem;
}

.hora {
    grid-area: hora;
    text-align: left;
    font-size: 1.4rem;
    margin-top: -10px;
}

.polaroid {
    grid-area: polaroid;
    width: 240px;
    margin: 0 auto;
    padding: 15px 15px 35px;
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    cursor: pointer;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
}

.direccion-bloque {
    grid-area: direccion;
    text-align: left;
    font-size: 1.6rem;
}

/* ------------------------------ */
/* CONTACTOS DESKTOP */
/* ------------------------------ */

.contactos-linea {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
    font-size: 1.6rem;
}



.boton-form {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: rgba(255, 215, 0, 0.75);
    color: #111;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.boton-form {
    font-family: 'Great Vibes', cursive;
    display: inline-block;
    margin-top: 40px;
    padding: 14px 40px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #111;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);

    /* Borde dorado */
    border: 2px solid rgba(255, 215, 0, 0.65);
    border-radius: 14px;

    /* Sombra suave */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);

    /* Animación */
    transition: all 0.25s ease;
    text-decoration: none;
}

/* Hover (desktop) */
.boton-form:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.75);
    transform: translateY(-3px);
}

/* Active (al pulsar) */
.boton-form:active {
    background: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
    transform: scale(0.97);
}
h2 {
    font-weight: normal;
}

/* ------------------------------ */
/* MOBILE */
/* ------------------------------ */

@media (max-width: 1240px) {

    /* CONTENEDOR PRINCIPAL */
    .contenido {
        width: 94%;
        margin: 30px auto;
        padding: 50px 30px;
        border-radius: 26px;
        gap: 40px;
        text-align: center;
    }

    /* Oculta la rama original en móvil */
    .contenido::before {
        display: none !important;
    }

    /* Activa la rama móvil */
    .layout {
        position: relative;
    }

    .layout::before {
        content: "";
        position: absolute;
        top: 0px;
        left: -150px;
        width: 600px;
        height: 800px;
        background-image: url("img/654862891cf083c1a8d2756816a97b2b.png");
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.65;
        z-index: -1;
        pointer-events: none;
        transform: scaleX(-1) translateY(320px);


    }
.layout::after {
    content: "";
    position: absolute;
    top: 0px;
    right: -250px;
    width: 550px;
    height: 600px;
    /*background-image: url("img/Rama.png");*/
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    transform: translateY(360px);

}

    /* TITULARES */
    #saludo {
        font-size: 5.6rem;
        margin-bottom: 5px;
    }

    .nombres {
        font-size: 7.4rem;
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .comentario {
        font-size: 4.2rem;
        margin-bottom: 30px;
        opacity: 0.95;
    }

    /* LAYOUT GENERAL (mantiene tu orden exacto) */
    .layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
        width: 100%;
        text-align: center;
    }

    /* FECHA Y HORA */
    .fecha {
        font-size: 3.4rem;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .hora {
        font-size: 3.4rem;
        margin-top: -2px;
        text-align: center !important; /* corrige desplazamiento */
    }

    /* POLAROID (debajo de la hora, como tú quieres) */
    .polaroid {
        width: 50%;
        padding: 20px 20px 35px;
        border-radius: 14px;
        margin: 10px auto 20px;
        margin-left: 300px;
    }

    .polaroid img {
        border-radius: 10px;
        aspect-ratio: 4/5;
        object-fit: cover;
    }

    /* DIRECCIÓN */
    .direccion-bloque {
        font-size: 3.4rem;
        width: 100%;
        text-align: center;
        line-height: 1.45;
    }

    /* CONTACTOS */
    .contactos-linea {
        font-size: 3.4rem;
        gap: 40px;
        width: 100%;
        margin-top: 10px;
        margin: 10px;
    }
    .contacto1{
        margin-right: 30px;
    }
    .contacto2{
        margin-left: 30px;
    }

    /* BOTÓN FORMULARIO */
    .boton-form {
        font-size: 2.6rem;
        padding: 26px 60px;
        border-radius: 24px;
        margin-top: 35px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }
}

