:root {
    --primary-blue: #0f172a;
    --accent-blue: #1e3a8a;
    --light-green: #10b981;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* ==========================================================
   HERO SECTION CON IMAGEN DE FONDO OSCURECIDA
   ========================================================== */
.hero-section {
    position: relative;
    /* Ajustamos la posición de la imagen: horizontal (center) y vertical (40% o 45% para bajarla) */
    background: linear-gradient(rgba(11, 37, 69, 0.88), rgba(11, 37, 69, 0.92)), 
                url('/img/imagenparaInfo.png') no-repeat center 42% / cover;
    color: white;
    padding: 80px 20px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-content {
        grid-template-columns: 2fr 1fr;
    }
}

.badge-location {
    display: inline-block;
    background-color: var(--light-green);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    color: #ffffff;
    font-size: 2.3rem;
    font-weight: 800;
    margin: 10px 0 15px 0;
    line-height: 1.2;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hero-card-icon {
    font-size: 2.2rem;
    color: var(--light-green);
}

.hero-card-title {
    color: #ffffff;
    margin: 15px 0 10px 0;
}

.hero-card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

/* TRAYECTORIA */
.grid-trayectoria {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (min-width: 850px) {
    .grid-trayectoria {
        grid-template-columns: 3fr 2fr;
    }
}

.section-tag {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 8px 0 15px 0;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 25px;
}

.text-body {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.subheading-blue {
    color: var(--accent-blue);
    margin-top: 25px;
    font-size: 1rem;
}

.alianzas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

@media (min-width: 500px) {
    .alianzas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.alianza-card {
    background: var(--bg-light);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 4px solid #0284c7;
    font-size: 0.85rem;
}

.impact-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-blue);
    padding: 30px;
    border-radius: 12px;
}

.impact-box h3 {
    margin-top: 0;
    color: var(--accent-blue);
}

.stats-grid {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* MISIÓN Y VISIÓN */
.grid-mision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .grid-mision {
        grid-template-columns: 1fr 1fr;
    }
}

.card-mision {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.card-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-tag.vision {
    background: #d1fae5;
    color: #047857;
}

/* ESTRUCTURA OPERATIVA */
.estructura-section {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.tab-btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--accent-blue);
    color: #ffffff;
}

.tab-pane {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.tab-pane.active {
    display: block;
}

.tab-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.op-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

@media (min-width: 600px) {
    .op-list {
        grid-template-columns: 1fr 1fr;
    }
}

.op-item {
    font-weight: 600;
    font-size: 0.9rem;
}

.op-item i {
    color: var(--light-green);
    margin-right: 6px;
}

/* MAPA */
.map-section {
    margin-bottom: 60px;
}

.map-wrapper {
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* VALORES */
.valores-section {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.val-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left; /* Alineado a la izquierda como en tu documento original */
}

.val-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-align: center;
}

.val-card h4 {
    margin: 0 0 8px 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.val-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}