/* =====================================================
   VARIABLES
===================================================== */

:root {
    --primary: #33a7b5;
    --accent: #f99837;
    --bg-light: #f5f2ee;
    --bg-header: #f0ece8;
    --text-dark: #1f1f1f;
    --border-light: #e6e6e6;
}

/* =====================================================
   BASE
===================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-dark);
}

.informes-container {
    max-width: 960px;
    margin: 3rem auto;
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: relative;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 48px;
}

/* Navegación */

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: #f2f2f2;
}

.nav-link.active {
    background: #f4f4f4;
}

/* Botón hamburguesa */

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* =====================================================
   HERO
===================================================== */

/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f99837 0%, #33a7b5 100%);
    padding: 4rem 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto; /* 🔥 centra horizontal */
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    max-width: 900px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.hero-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

.hero-text h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.hero-text p {
    font-size: 1.8rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* =====================================================
   SECCIONES
===================================================== */

.section-light {
    background: var(--bg-light);
    padding: 6rem 0;
}

.section-bg {
    background: #ebe3d7;
    padding: 6rem 0;
}

/* =====================================================
   CARDS
===================================================== */

.card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-muted {
    color: #666;
    font-size: 0.9rem;
}

/* =====================================================
   TABLAS
===================================================== */

.tech-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-table th {
    text-align: left;
    background: var(--bg-header);
    padding: 1.2rem;
}

.tech-table td {
    padding: 1.2rem;
    border-top: 1px solid #e1e1e1;
}

.tech-table tr:nth-child(even) td {
    background: #fafafa;
}

/* =====================================================
   INFO GRID (Modal técnico)
===================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    margin-top: 16px;
}

.info-grid div {
    display: flex;
    flex-direction: column;
}

.info-grid strong {
    font-size: 1.2rem;
    color: #555;
}

.info-grid span {
    font-size: 1.4rem;
}

.info-grid .full {
    grid-column: 1 / -1;
}

/* =====================================================
   BOTONES
===================================================== */

.button-primary {
    background: var(--primary);
    border: none;
    color: #fff;
}

.button-primary:hover {
    background: #2b96a3;
}

/* =====================================================
   DOCUMENTOS
===================================================== */

.doc-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem 2rem;
    background: #fff;
    margin-bottom: 1rem;
}

.doc-card.censurado {
    border-color: #d9534f;
    background: #fff5f5;
}

.doc-card a {
    font-weight: 600;
}

/* =====================================================
   FAQ
===================================================== */

.faq-section {
    margin: 4rem auto;
    max-width: 800px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 1.8rem 2rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
}

.faq-body {
    display: none;
    padding: 0 2rem 2rem;
    color: #555;
}

.faq-item.active .faq-body {
    display: block;
}

/* =====================================================
   MODAL
===================================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

/* =====================================================
   UTILIDADES
===================================================== */

.skeleton {
    background: #f4f4f4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* ============================= */
/* MOBILE NAV FIX */
/* ============================= */

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
        margin-left: auto; /* 🔥 empuja a la derecha */
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .main-nav {
        position: absolute; /* 🔥 clave */
        top: 100%; /* justo debajo del header */
        left: 0;
        width: 100%;
        background: #e8e3df;
        display: none;
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        display: block;
    }
}
