/* ==========================================================================
   STV SOLAR - HOJA DE ESTILOS CORPORATIVA Y PROFESIONAL
   Diseño de alta gama, serio y estructurado en tonos Azul Corporativo
   ========================================================================== */

/* Importación de tipografías profesionales */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (TEMA CLARO CORPORATIVO)
   ========================================================================== */
:root {
    /* Tipografías corporativas */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transición suave */
    --theme-transition: background-color 0.3s ease, 
                        color 0.3s ease, 
                        border-color 0.3s ease, 
                        box-shadow 0.3s ease;

    /* TEMA CLARO CORPORATIVO (Default) */
    --bg-primary: #f8fafc;          /* Blanco pizarra muy claro */
    --bg-secondary: #ffffff;        /* Blanco puro para tarjetas y bloques */
    --bg-tertiary: #f1f5f9;         /* Gris azulado suave */
    
    --text-primary: #0f172a;        /* Azul medianoche profundo para máxima legibilidad */
    --text-secondary: #334155;      /* Slate gris para textos secundarios */
    --text-muted: #64748b;          /* Gris frío para subtítulos y bordes tenues */
    
    --color-solar: #0f52ba;         /* Azul Zafiro / Corporativo principal */
    --color-solar-hover: #0a3d8c;   /* Azul profundo */
    --color-accent: #f59e0b;        /* Oro solar / Energía solar controlada */
    --color-accent-hover: #d97706;
    --color-wind: #0ea5e9;          /* Cyan limpio / Energía renovable */
    
    --border-color: #cbd5e1;        /* Bordes claros profesionales */
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    --hover-shadow: 0 12px 30px rgba(15, 82, 186, 0.12);
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(203, 213, 225, 0.6);
    --glass-blur: blur(8px);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

/* TEMA OSCURO CORPORATIVO (Elegante y no invasivo) */
[data-theme="dark"] {
    --bg-primary: #0b132b;         /* Azul oxford profundo */
    --bg-secondary: #1c2541;       /* Azul marino de superficie */
    --bg-tertiary: #1b263b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --color-solar: #38bdf8;        /* Azul eléctrico claro para destacar en fondo oscuro */
    --color-solar-hover: #0ea5e9;
    --color-accent: #fbbf24;
    --color-accent-hover: #d97706;
    
    --border-color: #334155;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --hover-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
    
    --glass-bg: rgba(28, 37, 65, 0.95);
    --glass-border: rgba(51, 65, 85, 0.6);
    --glass-blur: blur(8px);
}

/* ==========================================================================
   RESET & ESTILOS GENERALES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--theme-transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Contenedor estándar */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   BOTONES CORPORATIVOS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm); /* Bordes más rectos y serios */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Botón Azul Corporativo */
.btn-primary {
    background-color: var(--color-solar);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 82, 186, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-solar-hover);
    box-shadow: 0 4px 8px rgba(15, 82, 186, 0.25);
    transform: translateY(-1px);
}

/* Botón Accent / Naranja energético */
.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.25);
    transform: translateY(-1px);
}

/* Botón Outline */
.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--color-solar);
    color: var(--color-solar);
    background-color: rgba(15, 82, 186, 0.02);
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER Y MENÚ DE NAVEGACIÓN
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--card-shadow);
    padding: 0.2rem 0;
}

.header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.header nav {
    justify-self: center;
}

/* Logotipo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: start;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.85;
}

/* En modo oscuro, el logo azul sobre fondo oscuro gana un leve brillo */
[data-theme="dark"] .logo img {
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(56, 189, 248, 0.25));
}

/* Enlaces de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-solar);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-out;
}

.nav-link:hover {
    color: var(--color-solar);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Acciones en Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-self: end;
}

/* Selector de Tema */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--color-solar);
    border-color: var(--color-solar);
    background-color: var(--bg-tertiary);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Menú Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 25px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.2s ease;
}

/* ==========================================================================
   HERO SLIDER CORPORATIVO
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    width: 100%;
    background-color: #0c1c38; /* Azul corporativo muy oscuro de fondo */
    overflow: hidden;
    margin-top: 65px; /* Compensa la barra de navegación fija */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* visibility se oculta DESPUÉS de que opacity termine (0.8s delay) */
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    display: flex;
    align-items: center;
    /* Crea contexto de apilamiento propio para aislar z-index de los hijos */
    isolation: isolate;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    /* Al mostrar: visibility aparece inmediatamente (sin delay) */
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* Positivo: visible dentro del contexto aislado de .slide */
    overflow: hidden;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente azul corporativo premium suavizado */
    background: linear-gradient(135deg, rgba(8, 24, 56, 0.6) 20%, rgba(12, 38, 88, 0.3) 70%, rgba(0, 86, 179, 0) 100%);
    z-index: 1;  /* Sobre la imagen, bajo el contenido */
}

.slide-bg-img {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    max-width: none;
    object-fit: cover;
    z-index: 0;  /* Base: imagen de fondo */
    pointer-events: none;
    transform: scale(1.02);
}

/* Efecto Ken Burns automático para profundidad de imagen activa */
@keyframes kenBurns {
    0% {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.08) translate3d(-1%, -0.5%, 0);
    }
}

.slide.active .slide-bg-img {
    animation: kenBurns 18s ease-out forwards;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 600px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-title span {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2.25rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btns .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero-btns .btn-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Indicadores de Slider */
.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
}

.slider-dot {
    width: 25px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #38bdf8;
    width: 45px;
}

/* ==========================================================================
   MÉTRICAS FLOTANTES (OVERLAPPING CARDS)
   ========================================================================== */
.stats-overlap {
    position: relative;
    z-index: 20;
    margin-top: -3.5rem;
    padding-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px; /* Efecto de borde fino entre columnas */
    background-color: var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    transition: var(--theme-transition);
}

.stat-icon {
    background-color: rgba(15, 82, 186, 0.06);
    color: var(--color-solar);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   ESTILOS DE SECCIÓN ESTÁNDAR
   ========================================================================== */
.section {
    padding: 5.5rem 0;
}

.section-bg {
    background-color: var(--bg-secondary);
    transition: var(--theme-transition);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--color-solar);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* ==========================================================================
   SERVICIOS (NUEVO DISEÑO)
   ========================================================================== */
.services-new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-new-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.service-new-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--color-solar);
}

.service-new-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-new-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-new-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 25px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.service-new-card:hover .service-new-overlay {
    opacity: 1;
    visibility: visible;
}

.service-new-card:hover .service-new-img-container img {
    transform: scale(1.08);
}

.service-new-overlay h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.service-new-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.service-new-card:hover .service-new-overlay h4,
.service-new-card:hover .service-new-overlay p {
    transform: translateY(0);
}

.service-new-content {
    padding: 25px 20px;
}

.service-new-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-new-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-solar);
}

.service-new-divider::before,
.service-new-divider::after {
    content: '';
    height: 1px;
    width: 30px;
    background-color: var(--border-color);
    margin: 0 15px;
}

[data-theme="dark"] .service-new-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
[data-theme="dark"] .service-new-divider::before,
[data-theme="dark"] .service-new-divider::after {
    background-color: var(--border-color);
}

/* ==========================================================================
   INTERACTIVE SOLAR CALCULATOR (MICRO-APP)
   ========================================================================== */
.calculator-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    transition: var(--theme-transition);
}

.calc-inputs {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
}

.calc-results {
    padding: 3rem;
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--theme-transition);
}

.calc-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.calc-title svg {
    color: var(--color-solar);
    width: 28px;
    height: 28px;
}

.calc-desc {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.input-label span:last-child {
    color: var(--color-solar);
    font-size: 1rem;
    font-weight: 700;
}

/* Rango Slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: #cbd5e1;
    outline: none;
}

[data-theme="dark"] .range-slider {
    background: #475569;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-solar);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Opciones de propiedad */
.property-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.property-option {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

.property-option svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.property-option span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.property-option:hover {
    border-color: var(--color-solar);
}

.property-option.active {
    border-color: var(--color-solar);
    background-color: rgba(15, 82, 186, 0.04);
}

.property-option.active svg {
    color: var(--color-solar);
}

.property-option.active span {
    color: var(--color-solar);
}

/* Resultados */
.result-header {
    margin-bottom: 1.5rem;
}

.result-header-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.result-main-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-solar);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.result-main-label {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Métricas secundarias */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.result-card-label {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.result-card-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Indicador Ecológico */
.eco-impact-meter {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(15, 82, 186, 0.06) 100%);
    border: 1px dashed rgba(15, 82, 186, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eco-impact-icon {
    color: var(--color-wind);
    flex-shrink: 0;
}

.eco-impact-icon svg {
    width: 28px;
    height: 28px;
}

.eco-impact-text h4 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.eco-impact-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SHOWCASE TECNOLÓGICO (INTERACTIVE PRODUCTS)
   ========================================================================== */
.showcase-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.showcase-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showcase-tab {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.showcase-tab:hover {
    border-color: var(--color-solar);
}

.showcase-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.showcase-tab-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.showcase-tab-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tab activo */
.showcase-tab.active {
    border-color: var(--color-solar);
    background-color: rgba(15, 82, 186, 0.02);
}

.showcase-tab.active .showcase-tab-icon {
    background-color: var(--color-solar);
    color: #ffffff;
}

.showcase-tab.active .showcase-tab-content h4 {
    color: var(--color-solar);
}

/* Contenido de Panel */
.showcase-panels {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 3rem;
    min-height: 400px;
    transition: var(--theme-transition);
}

.showcase-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.showcase-panel.active {
    display: grid;
    animation: fadeIn 0.4s ease forwards;
}

.panel-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.panel-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
}

.panel-specs {
    list-style: none;
    margin-bottom: 2rem;
}

.panel-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.panel-specs li svg {
    color: var(--color-solar);
    width: 18px;
    height: 18px;
}

.panel-visual {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.panel-visual svg {
    width: 100%;
    height: auto;
    max-height: 220px;
}

/* ==========================================================================
   SECCIÓN DE IMPACTO ECOLÓGICO
   ========================================================================== */
.impact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-visual {
    position: relative;
}

.impact-image-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 380px;
    background: linear-gradient(135deg, #0f2b5c, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-image-container svg {
    width: 70%;
    height: auto;
}

.impact-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
    z-index: 5;
    transition: var(--theme-transition);
}

.impact-badge-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.impact-badge-text {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.benefit-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(15, 82, 186, 0.06);
    color: var(--color-solar);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
}

.benefit-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.benefit-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   TESTIMONIALS SLIDER SECTION
   ========================================================================== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-quote-icon {
    color: rgba(15, 82, 186, 0.08);
    margin-bottom: 1.25rem;
}

.testimonial-quote-icon svg {
    width: 48px;
    height: 48px;
}

.testimonial-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-solar), var(--color-wind));
    padding: 2px;
    margin-bottom: 0.75rem;
}

.testimonial-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-solar);
    font-size: 1.1rem;
}

.testimonial-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.testimonial-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-btn:hover {
    background: var(--color-solar);
    border-color: var(--color-solar);
    color: #ffffff;
}

/* ==========================================================================
   FORMULARIO DE COTIZACIÓN
   ========================================================================== */
.quote-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quote-info p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 2.5rem;
}

.quote-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.quote-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-color: rgba(14, 165, 233, 0.06);
    color: var(--color-wind);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-feat-icon svg {
    width: 22px;
    height: 22px;
}

.quote-feat-text h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.quote-feat-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quote-form-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    transition: var(--theme-transition);
}

.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--color-solar);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.08);
}

textarea.form-control {
    resize: none;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-check input {
    margin-top: 0.2rem;
}

.form-check span {
    font-size: 0.775rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.footer {
    background-color: #0b1426;     /* Azul oxford ultra-profundo corporativo */
    color: #ffffff;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid #1c2541;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info .logo {
    margin-bottom: 1.25rem;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    background-color: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    background-color: var(--color-solar);
    color: #ffffff;
    border-color: var(--color-solar);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: #38bdf8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 2px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-contact-item svg {
    color: #38bdf8;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.75rem 3rem 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #38bdf8;
    background-color: rgba(255, 255, 255, 0.06);
}

.newsletter-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background-color: var(--color-solar);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-btn:hover {
    background-color: var(--color-solar-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.8rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #64748b;
    font-size: 0.8rem;
}

.footer-legal-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   CSS KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .stats-overlap {
        margin-top: -2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .calculator-box {
        grid-template-columns: 1fr;
    }
    
    .calc-inputs {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .calc-results {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    
    .showcase-tab {
        flex-shrink: 0;
        padding: 0.85rem 1.25rem;
    }
    
    .showcase-panels {
        padding: 2rem;
    }
    
    .showcase-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .quote-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        display: flex;
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 3rem 2rem;
        gap: 1.5rem;
        z-index: 1005;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .header-actions {
        margin-right: 0.5rem;
    }
    
    .header-actions .btn {
        display: none; /* Oculta cotizador en móvil */
    }
    
    .hero {
        height: 75vh;
        min-height: 480px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .slider-dots {
        bottom: 1.5rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quote-form-box {
        padding: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

/* ==========================================================================
   WIDGET INTERACTIVO DE PLANTA FOTOVOLTAICA (CASOS DE ESTUDIO)
   ========================================================================== */
.interactive-map-wrapper {
    width: 100%;
    margin-top: 2rem;
    position: relative;
}

.interactive-map-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: visible; /* Permite que los tooltips floten fuera de la imagen */
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.map-point {
    position: absolute;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

/* Efecto Blinking / Pulsaciones del Anillo */
.pulse-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0;
    animation: mapPointPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    pointer-events: none;
}

.point-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    border: 2px solid #ffffff;
}

.point-icon svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
}

.map-point:hover .point-icon {
    transform: scale(1.15);
    background-color: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

/* Diseño Premium del Tooltip */
.point-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 10px);
    width: 280px;
    background-color: #111827; /* Gris-Azul ultra oscuro premium */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    padding: 14px 18px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
    z-index: 25;
}

/* Flecha Conectora */
.point-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.map-point:hover .point-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tooltip-content h4 {
    color: #fbbf24; /* Amarillo oro premium */
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tooltip-content p {
    color: #e2e8f0;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.45;
}

/* Animación de Pulsación */
@keyframes mapPointPulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Adaptación en pantallas móviles */
@media (max-width: 768px) {
    .interactive-map-wrapper {
        overflow-x: auto;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .interactive-map-container {
        min-width: 850px; /* Asegura espacio para la interacción táctil sin encoger el mapa */
    }
}


/* ==========================================================================
   SECCIÓN INSTITUCIONAL — QUIÉNES SOMOS, MISIÓN, VISIÓN, VALORES, MANIFIESTO
   ========================================================================== */

/* ── QUIÉNES SOMOS ── */
.inst-quienes {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--color-solar);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}
.inst-quienes:hover {
    box-shadow: var(--hover-shadow);
}
.inst-quienes-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-solar), var(--color-wind));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 14px;
}
.inst-quienes-badge svg {
    width: 100%;
    height: 100%;
}
.inst-quienes-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-solar);
    margin-bottom: 0.75rem;
}
.inst-quienes-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}
.inst-quienes-body strong {
    color: var(--text-primary);
    font-weight: 700;
}
.inst-quienes-body em {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 500;
}

/* ── MISIÓN / VISIÓN GRID ── */
.inst-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.inst-mv-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.inst-mv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.inst-card-mision::before {
    background: linear-gradient(90deg, var(--color-solar), var(--color-wind));
}
.inst-card-vision::before {
    background: linear-gradient(90deg, var(--color-accent), #f97316);
}
.inst-mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}
.inst-mv-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    padding: 10px;
}
.inst-card-mision .inst-mv-icon {
    background: rgba(15, 82, 186, 0.1);
    color: var(--color-solar);
}
.inst-card-vision .inst-mv-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
}
.inst-mv-icon svg { width: 100%; height: 100%; }
.inst-mv-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.inst-mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ── VALORES CORPORATIVOS ── */
.inst-valores-header {
    text-align: center;
    margin-bottom: 2rem;
}
.inst-valores-header h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.5rem;
}
.inst-valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}
.inst-valor-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}
.inst-valor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--color-solar);
}
.inst-valor-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.12), rgba(14, 165, 233, 0.08));
    color: var(--color-solar);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    padding: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}
.inst-valor-card:hover .inst-valor-icon {
    background: var(--color-solar);
    color: #fff;
}
.inst-valor-icon svg { width: 100%; height: 100%; }
.inst-valor-card h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.inst-valor-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── MANIFIESTO DE IMPACTO ── */
.inst-manifiesto {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #0f172a 100%);
    padding: 0.5rem;
}
.inst-manifiesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 65%);
    pointer-events: none;
}
.inst-manifiesto-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 3rem;
}
.inst-manifiesto-ornament {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.inst-manifiesto-ornament svg { width: 100%; height: 100%; }
.inst-manifiesto-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-full);
    padding: 0.3rem 1.2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.inst-manifiesto-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    margin-bottom: 1.75rem;
    max-width: 700px;
}
.inst-manifiesto-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #94a3b8;
    max-width: 760px;
    margin-bottom: 2.5rem;
}
.inst-manifiesto-firma {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 600px;
}
.inst-manifiesto-linea {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}
.inst-manifiesto-firma > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(245, 158, 11, 0.7);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ── RESPONSIVE INSTITUCIONAL ── */
@media (max-width: 1024px) {
    .inst-valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .inst-quienes {
        flex-direction: column;
    }
    .inst-mv-grid {
        grid-template-columns: 1fr;
    }
    .inst-valores-grid {
        grid-template-columns: 1fr 1fr;
    }
    .inst-manifiesto-inner {
        padding: 3rem 1.5rem;
    }
    .inst-manifiesto-firma {
        flex-direction: column;
        gap: 0.5rem;
    }
    .inst-manifiesto-linea {
        width: 80px;
        height: 1px;
    }
}
@media (max-width: 480px) {
    .inst-valores-grid {
        grid-template-columns: 1fr;
    }
}


