/* ==========================================================================
   VARIABLES DE DISEÑO (Esenciales para que rendericen los colores)
   ========================================================================== */
:root {
    --bg-color: #fafafa;
    --text-color: #111111;
    --accent-color: #555555;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 1100px;
    --narrow-width: 750px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--narrow-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN (Diseño de Escritorio por Defecto)
   ========================================================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.logo a {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

.logo span {
    font-weight: 300;
    color: var(--accent-color);
}

.main-nav {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    opacity: 0.6;
}

/* Selector de Idioma Escritorio */
.lang-switch {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #ccc;
}

.lang-switch a {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 1px;
}

/* OCULTAR CONTROLES EN ESCRITORIO (Sin romper interacciones) */
.menu-toggle-cb {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.menu-burger {
    display: none;
}

/* ==========================================================================
   VERSION RESPONSIVA (Solo aplica a pantallas de 768px o menos)
   ========================================================================== */

@media (max-width: 768px) {
    .site-header {
        position: relative;
        padding: 1.5rem 2rem;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mostrar botón hamburguesa con fuerza */
    .menu-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 16px;
        cursor: pointer;
        z-index: 1010;
    }

    .menu-burger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        transition: transform 0.3s, opacity 0.3s;
    }

    /* Transformación del menú a pantalla completa */
    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1005;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.6rem;
        font-family: var(--font-serif);
    }

    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #ccc;
        padding-top: 1.5rem;
        width: 60px;
        margin-top: 0.5rem;
    }

    /* LÓGICA DE APERTURA NATIVA */
    .menu-toggle-cb:checked ~ .main-nav {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Animación de la hamburguesa a X al activarse */
    .menu-toggle-cb:checked ~ .menu-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle-cb:checked ~ .menu-burger span:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ==========================================================================
   ESTILOS COMPLEMENTARIOS (Contenido de páginas, FAQ y Formularios)
   ========================================================================== */

.page-intro {
    padding: 6rem 0 3rem 0;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: #555;
    max-width: 600px;
}

.hero-section {
    padding: 8rem 0 6rem 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #444;
    max-width: 650px;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.manifesto-section {
    background-color: #f0f0f0;
    padding: 7rem 0;
    margin-top: 4rem;
}

.section-tag {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1.5rem;
}

.manifesto-quote {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.manifesto-text p {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.author-signature {
    margin-top: 3.5rem;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.author-title {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Acordeón Nativo (FAQ) */
.faq-wrapper {
    margin-bottom: 6rem;
}

.faq-group-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 3.5rem 0 1.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid #111;
    padding-bottom: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.faq-item summary:hover {
    color: var(--accent-color);
}

.faq-item summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.2rem;
}

.faq-item[open] summary {
    font-weight: 600;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding-top: 1rem;
    padding-right: 2rem;
}

.faq-answer p {
    font-size: 1rem;
    font-weight: 300;
    color: #333;
    line-height: 1.6;
}

/* Formularios (Auditoría y Contacto) */
.form-wrapper, .contact-wrapper {
    margin-top: 2rem;
    margin-bottom: 8rem;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.form-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 300;
    padding: 0.75rem 0;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s, padding-left 0.3s;
}

.form-input:focus {
    border-bottom: 1px solid var(--text-color);
    padding-left: 0.5rem;
}

.form-input::placeholder {
    color: #999;
    font-weight: 300;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-sans);
    line-height: 1.5;
}

.form-submit-zone {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.btn-submit {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--accent-color);
    max-width: 450px;
    line-height: 1.5;
}

.site-footer {
    padding: 4rem 0;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-color);
}

@media (max-width: 480px) {
    .form-input { font-size: 1.1rem; }
    .btn-submit { width: 100%; text-align: center; }
}