* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f6efe7; /* crema */
    color: #111;
    overflow-x: hidden;
}

/* OLAS SUAVES */
.waves {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.09) 20%, transparent 70%);
    animation: moveWave 18s linear infinite;
}

.wave:nth-child(2) {
    animation-duration: 28s;
    opacity: 0.6;
}

@keyframes moveWave {
    from {
        transform: translate(-10%, -10%);
    }
    to {
        transform: translate(-30%, -30%);
    }
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px 40px;
}

.logo {
    width: min(500px, 90%);
    height: auto;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Antonio', Impact, sans-serif;
    font-size: 50px;
    letter-spacing: 4px;
    color: #7a0022; /* borgoña */
    margin: 0;
}

/* SECCIONES */
section {
    max-width: 850px;
    margin: 90px auto;
    padding: 20px;
}

/* INTRO */
.intro {
    font-size: 22px;
    line-height: 1.7;
    font-weight: 300;
}

.destacado {
    color: #7a0022;
    font-weight: 600;
}

/* TITULOS */
h2 {
    font-family: 'Antonio', Impact, sans-serif;
    color: #4a005e; /* morado */
    font-size: 34px;
    margin-top: 0;
}

/* TEXTO MANIFIESTO */
.texto {
    max-height: 320px;
    overflow-y: auto;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 40px;
    background: #7a0022;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
}

.btn:hover {
    background: #4a005e;
    transform: translateY(-2px);
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 20px;
    color: #111;
    font-size: 15px;
}

.checkbox input {
    width: auto;
    margin: 0;
}

/* FORM LABELS */
.label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #7a0022;
}

/* LINKS */
.links a {
    margin-right: 20px;
    color: #7a0022;
    font-weight: 600;
}

/* LOGOS */
.logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    margin-top: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.logo-box,
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img,
.logo-link img {
    width: 220px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.logo-link {
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: #7a0022;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

.logo-link:hover {
    color: #4a005e;
    transform: translateY(-2px);
}

.logo-link span {
    font-size: 15px;
    line-height: 1.4;
}

.logos-principales {
    gap: 70px;
}

.logos-apoyo {
    gap: 70px;
}

/* SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* LOGO DE FONDO */
.bg-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(900px, 110vw);
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    z-index: -2;
    pointer-events: none;
}

/* LECTOR BONITO DEL PDF */
.reader-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(246,239,231,0.95));
    border: 1px solid rgba(122, 0, 34, 0.16);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(74, 0, 94, 0.14);
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.reader-title-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reader-logo {
    width: 74px;
    height: auto;
    flex-shrink: 0;
}

.reader-label {
    margin: 0 0 4px;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7a0022;
    font-weight: 700;
}

.reader-title-box h3 {
    margin: 0;
    font-family: 'Antonio', Impact, sans-serif;
    font-size: 30px;
    color: #4a005e;
}

.language-switch {
    display: flex;
    gap: 10px;
    background: #f6efe7;
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(122, 0, 34, 0.12);
}

.lang-btn {
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    cursor: pointer;
    background: transparent;
    color: #7a0022;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(122, 0, 34, 0.08);
}

.lang-btn.active {
    background: #7a0022;
    color: white;
}

/* CONTROLES DE ZOOM */
.reader-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(122, 0, 34, 0.18);
    background: white;
    color: #7a0022;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: 0.3s;
}

.tool-btn:hover {
    background: #7a0022;
    color: white;
}

#zoom-label {
    font-size: 14px;
    font-weight: 700;
    color: #4a005e;
    min-width: 48px;
    text-align: center;
}

/* ESTADO */
.pdf-status {
    text-align: center;
    color: #7a0022;
    font-weight: 600;
    margin: 30px 0;
}

/* ÁREA DE LECTURA */
.pdf-reader {
    max-height: 760px;
    overflow-y: auto;
    padding: 34px 18px;
    background:
        radial-gradient(circle at top left, rgba(122, 0, 34, 0.08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(74, 0, 94, 0.08), transparent 34%),
        #efe4da;
    border-radius: 26px;
    border: 1px solid rgba(74, 0, 94, 0.12);
}

/* PÁGINAS DEL PDF */
.pdf-page {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 34px;
    background: white;
    border-radius: 8px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.pdf-page:last-child {
    margin-bottom: 0;
}

/* SCROLL MÁS ESTÉTICO */
.pdf-reader::-webkit-scrollbar {
    width: 10px;
}

.pdf-reader::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.45);
    border-radius: 20px;
}

.pdf-reader::-webkit-scrollbar-thumb {
    background: rgba(122, 0, 34, 0.45);
    border-radius: 20px;
}

.pdf-reader::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 0, 94, 0.65);
}

/* BOTONES DE DESCARGA */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .hero {
        padding: 70px 20px 30px;
    }

    .logo {
        width: min(320px, 90%);
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: 3px;
    }

    section {
        margin: 70px auto;
        padding: 18px;
    }

    .intro {
        font-size: 19px;
        line-height: 1.65;
    }

    h2 {
        font-size: 30px;
    }

    .reader-card {
        padding: 18px;
        border-radius: 24px;
    }

    .reader-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reader-logo {
        width: 58px;
    }

    .reader-title-box h3 {
        font-size: 25px;
    }

    .language-switch {
        width: 100%;
        justify-content: space-between;
    }

    .lang-btn {
        flex: 1;
        padding: 10px 12px;
    }

    .reader-tools {
        justify-content: center;
    }

    .pdf-reader {
        max-height: 620px;
        padding: 20px 10px;
        border-radius: 20px;
    }

    .pdf-page {
        margin-bottom: 24px;
        border-radius: 6px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn {
        width: 100%;
    }

    .logos {
        flex-direction: column;
        gap: 34px;
        margin-bottom: 50px;
    }

    .logo-box img,
    .logo-link img {
        width: 230px;
        height: 80px;
        object-fit: contain;
    }

    .logo-link span {
        font-size: 14px;
    }
}