
/* CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F8F4EF;
    color: #49333A;
    font-family: Georgia, serif;
    min-height: 100vh;
}

/* ENCABEZADO */

.encabezado {
    width: 100%;
    padding: 35px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    letter-spacing: 3px;
    color: #793D4C;
}

.logo span {
    color: #B68B67;
}

.menu {
    background: none;
    border: none;
    font-size: 25px;
    color: #793D4C;
    cursor: pointer;
}

/* PORTADA */

.portada {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.fecha {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 5px;
    color: #A17B7E;
    margin-bottom: 35px;
}

h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: normal;
    line-height: 1.15;
    color: #713D4A;
}

.corazon {
    font-size: 35px;
    color: #B68B67;
    margin: 30px 0;
}

.frase {
    font-size: 19px;
    line-height: 1.8;
    color: #806B6C;
    font-style: italic;
}

/* BOTÓN */

.boton-comenzar {
    margin-top: 45px;
    padding: 16px 38px;
    border: 1px solid #A77B7D;
    background: transparent;
    color: #793D4C;
    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.boton-comenzar:hover {
    background-color: #793D4C;
    color: #FFFFFF;
}

/* FIRMA */

.pie {
    text-align: center;
    padding: 25px;
    color: #A17B7E;
    letter-spacing: 4px;
    font-size: 13px;
}


/* INTERIOR DEL LIBRO */

.libro {
    max-width: 850px;
    margin: 60px auto;
    padding: 30px;
    text-align: center;
}

.volver {
    color: #793D4C;
    text-decoration: none;
    font-size: 14px;
}

.introduccion {
    max-width: 500px;
    margin: 30px auto 60px;
    color: #806B6C;
    font-size: 17px;
    line-height: 1.8;
}

.secciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.seccion {
    display: block;
    padding: 30px;
    border: 1px solid #E5D8D2;
    text-decoration: none;
    color: #49333A;
    transition: 0.3s;
}

.seccion:hover {
    background-color: #F0E8E4;
    transform: translateY(-4px);
}

.seccion span {
    color: #B68B67;
    font-size: 13px;
    letter-spacing: 3px;
}

.seccion h2 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 23px;
    font-weight: normal;
    color: #793D4C;
}

.seccion p {
    color: #806B6C;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .secciones {
        grid-template-columns: 1fr;
    }

    .libro {
        margin: 25px auto;
        padding: 20px;
    }
}

/* NOTITAS ROSAS */

.contenedor-notitas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 650px;
    margin: 50px auto;
}

.sobre-notita {
    min-height: 145px;
    border: 1px solid #E8C3CE;
    background: #F5E1E7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #793D4C;
    cursor: pointer;
    transition: 0.3s;
    padding: 20px;
}

.sobre-notita:hover {
    transform: translateY(-5px);
    background: #F0D4DE;
}

.sobre-notita .corazon-sobre {
    font-size: 35px;
    color: #B66F86;
    margin-bottom: 12px;
}

.sobre-notita span {
    font-size: 13px;
    letter-spacing: 2px;
}

/* =================================
   CARTAS PARA MANUEL
================================= */

.contenedor-cartas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin: 55px auto;
    width: 100%;
}

.carta {
    width: 100%;
    text-align: center;
}

.sobre-carta {
    width: 100%;
    min-height: 245px;
    padding: 30px 20px;
    border: 1px solid #e8cbd2;
    border-radius: 5px;
    background: linear-gradient(145deg, #fff8f7, #f2dfe3);
    color: #76545e;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-carta:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(100, 50, 60, 0.12);
}

.numero-carta {
    font-size: 11px;
    letter-spacing: 3px;
    color: #a77b87;
}

.icono-sobre {
    font-size: 48px;
}

.titulo-sobre {
    font-family: Georgia, serif;
    font-size: 21px;
    line-height: 1.4;
}

.abrir-sobre {
    font-size: 11px;
    letter-spacing: 1px;
    color: #a77b87;
}

.contenido-carta {
    margin-top: 20px;
    padding: 35px 28px;
    background: #fffaf8;
    border: 1px solid #ead8d5;
    border-radius: 5px;
    text-align: left;
    animation: aparecerCarta 0.4s ease;
}

.contenido-carta h2 {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: normal;
    color: #805965;
    margin-bottom: 30px;
}

.contenido-carta p {
    color: #66545a;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    white-space: pre-line;
}

.carta.abierta .sobre-carta {
    background: #f1dce2;
}

@keyframes aparecerCarta {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .contenedor-cartas {
        grid-template-columns: 1fr;
    }

    .contenido-carta {
        padding: 25px 20px;
    }
}

/* NUESTROS RECUERDOS */

.video-recuerdo {
    max-width: 750px;
    margin: 65px auto;
    padding: 35px;
    background: #fffaf8;
    border: 1px solid #ead8d5;
    text-align: center;
}

.video-recuerdo h2 {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: normal;
    color: #805965;
    margin: 20px 0 30px;
}

.descripcion-recuerdo {
    text-align: left;
    margin-bottom: 30px;
}

.descripcion-recuerdo p {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
    color: #66545a;
    margin-bottom: 18px;
}

.video-recuerdo video {
    display: block;
    width: 100%;
    max-height: 500px;
    border-radius: 5px;
    background: #000;
}

@media (max-width: 600px) {
    .video-recuerdo {
        padding: 20px;
    }
}

