/* ======== VARIABLES (IDENTIDAD CONSISTENTE) ======== */
:root {
    --palm-dark: #2c3e50;
    --palm-primary: #EB6109;
    --palm-accent: #b88317; /* Dorado */
    --palm-light: #e8f5e9;
    --text-dark: #8A3800;
    --text-muted: #6c757d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.06);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; }

/* ======== HERO (Igual a Quiénes Somos) ======== */
/* ======== HERO (Estilo Clean / Innovación) ======== */
.hero-doc {
    position: relative;
    background: #fff; /* Fondo blanco para integrarse */
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%); /* Sutil degradado */
    height: auto; /* Altura automática según contenido */
    min-height: auto;
    padding: 160px 0 60px 0; /* Espacio superior para el menú y espacio inferior */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--text-dark); /* Texto oscuro */
    margin-bottom: 30px;
    /* Eliminamos bordes curvos exagerados para que se vea parte de la página */
}

/* Ocultamos la capa verde oscura */
.hero-overlay { display: none; }

.hero-doc h1 { 
    font-size: 3.5rem; 
    color: var(--palm-dark); /* Título en Verde Corporativo */
    text-shadow: none; /* Quitamos la sombra */
    margin-bottom: 15px; 
    line-height: 1.2;
}

.badge-hero { 
    border: 1px solid var(--palm-accent); /* Borde Dorado */
    color: var(--palm-light); /* Texto Dorado */
    background-color: #F77A3D; /* Fondo dorado muy sutil */
    padding: 8px 20px; 
    border-radius: 50px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.75rem; 
    font-weight: 600;
    margin-bottom: 20px; 
    display: inline-block; 
}

.lead-hero { 
    font-size: 1.15rem; 
    color: var(--text-muted); /* Texto gris suave */
    font-weight: 400; 
    max-width: 750px; 
    margin: 0 auto; 
    line-height: 1.6;
}

/* ======== SECCIONES GENERALES ======== */
.doc-section { padding: 80px 0; }
.bg-light-corp { background-color: #f9f9f9; }

.section-title { font-size: 2.2rem; color: var(--palm-dark); margin-bottom: 10px; }
.line-gold { width: 60px; height: 4px; background: var(--palm-accent); border-radius: 2px; }

/* ======== TARJETAS DE DOCUMENTOS (LISTA) ======== */
.doc-card {
    background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #eee;
    display: flex; align-items: flex-start; gap: 20px;
    transition: 0.3s;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 104, 55, 0.1); border-left: 4px solid var(--palm-accent); }

.doc-icon-box {
    width: 50px; height: 50px; background: var(--palm-light); color: var(--palm-primary);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.doc-content { flex-grow: 1; }
.doc-title { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-dark); }
.doc-desc { font-size: 0.9rem; color: #777; margin-bottom: 10px; }

.doc-actions { display: flex; gap: 15px; align-items: center; }
.btn-link-corp {
    background: none; border: none; padding: 0; color: var(--palm-primary);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; cursor: pointer;
    text-decoration: underline; transition: 0.2s;
}
.btn-link-corp:hover { color: var(--palm-accent); }
.btn-icon-corp { color: #999; font-size: 1.1rem; transition: 0.2s; }
.btn-icon-corp:hover { color: var(--palm-dark); }

/* ======== TARJETAS DE REPORTES (GRID) ======== */
.report-card {
    background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #e0e0e0;
    transition: 0.3s; height: 100%; position: relative;
}
.report-card:hover { border-color: var(--palm-primary); box-shadow: var(--shadow-card); }
.report-card.active-border { border-top: 4px solid var(--palm-accent); }

.year-badge {
    position: absolute; top: 20px; right: 20px; font-weight: 800; font-size: 1.5rem;
    color: rgba(0,0,0,0.05); font-family: var(--font-heading);
}
.year-badge.current { color: var(--palm-light); opacity: 1; }

.report-card h5 { margin-top: 15px; font-size: 1.1rem; color: var(--palm-dark); margin-bottom: 15px; padding-right: 30px; }
.btn-link-simple {
    background: none; border: none; padding: 0; color: var(--palm-accent);
    font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center;
}
.btn-link-simple:hover { color: var(--palm-primary); padding-left: 5px; }

/* Boletin Horizontal */
.horizontal-report { display: flex; align-items: center; gap: 15px; }
.icon-news { font-size: 2rem; color: var(--palm-primary); }
.btn-outline-palm { border: 1px solid var(--palm-primary); color: var(--palm-primary); transition: 0.3s; }
.btn-outline-palm:hover { background: var(--palm-primary); color: #fff; }

/* ======== IMÁGENES LATERALES (STICKY) ======== */
.sticky-image-wrapper { position: sticky; top: 120px; }
.rounded-premium { border-radius: 20px; }
.img-caption {
    margin-top: 15px; text-align: center; font-size: 0.9rem; color: var(--text-muted);
    font-weight: 500;
}
.text-gold { color: var(--palm-accent); }

/* ======== NUEVO VISOR MODAL PANTALLA COMPLETA ======== */
.pdf-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 40, 20, 0.8); /* Fondo oscuro corporativo con transparencia */
    backdrop-filter: blur(8px); /* Efecto de desenfoque */
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.pdf-modal-overlay.active { opacity: 1; visibility: visible; }

.pdf-modal-container {
    width: 95%; height: 95%; max-width: 1400px; background: #fff;
    border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    display: flex; flex-direction: column;
    transform: scale(0.95); transition: all 0.3s ease;
}
.pdf-modal-overlay.active .pdf-modal-container { transform: scale(1); }

.pdf-modal-header {
    background: linear-gradient(to right, var(--palm-dark), var(--palm-primary));
    padding: 15px 25px; display: flex; align-items: center; justify-content: space-between;
    color: #fff; border-bottom: 3px solid var(--palm-accent);
}
.pdf-modal-title {
    margin: 0; font-size: 1.2rem; font-family: var(--font-heading); font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}

.pdf-modal-actions { display: flex; gap: 15px; align-items: center; }
.btn-gold {
    background-color: var(--palm-accent); color: #fff; border: none; font-weight: 600;
    transition: 0.2s;
}
.btn-gold:hover { background-color: #fff; color: var(--palm-accent); }

.btn-close-modal {
    background: rgba(255,255,255,0.2); border: none; color: #fff; width: 35px; height: 35px;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-close-modal:hover { background: #d9534f; transform: rotate(90deg); }

.pdf-modal-body { flex-grow: 1; background: #e9ecef; position: relative; }
.pdf-frame-main { width: 100%; height: 100%; border: none; display: block; }

/* Responsive */
@media (max-width: 991px) {
    .sticky-image-wrapper { position: static; margin-top: 40px; }
    .pdf-modal-container { width: 100%; height: 100%; border-radius: 0; }
}