@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   VARIABLES Y PALETA DE COLORES (ESTILO LOGÍSTICA DE ALTA TECNOLOGÍA)
   ========================================================================== */
:root {
    /* Tema Claro (Concrete Log panel) */
    --bg-primary: #f3f4f6;
    --bg-secondary: #e5e7eb;
    --bg-card: #ffffff;
    --grid-border: rgba(10, 15, 30, 0.08);
    --grid-border-strong: #0a0f1e;
    --text-primary: #0a0f1e;
    --text-secondary: #4b5563;
    
    --primary: #e30016; /* Coca-Cola Red */
    --primary-hover: #b30010;
    --primary-rgb: 227, 0, 22;
    --accent: #10b981; /* Verde LED */
    
    --shadow-solid: 6px 6px 0px #0a0f1e;
    --shadow-solid-primary: 6px 6px 0px #e30016;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Tema Oscuro (Chasis Carbono & LEDs) */
    --bg-primary: #0b0d13;
    --bg-secondary: #131722;
    --bg-card: #181d2a;
    --grid-border: rgba(255, 255, 255, 0.06);
    --grid-border-strong: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary: #f4001a;
    --primary-hover: #e30016;
    
    --shadow-solid: 6px 6px 0px #f8fafc;
    --shadow-solid-primary: 6px 6px 0px #f4001a;
}

/* ==========================================================================
   RESET, TEXTURAS Y MAQUETACIÓN BRUTALISTA DE CLASE MUNDIAL
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Capa de Grano Cinematográfico Analógico (Awwwards Style) */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Rejilla de Fondo Modular del Tablero */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-border) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* LEDs Indicadores de Estado */
.led-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.led-green {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.led-orange {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}
.led-pulse {
    animation: ledPulse 1.6s infinite ease-in-out;
}
@keyframes ledPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ==========================================================================
   CABECERA (HEADER) Y LOGOTIPO
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(var(--bg-primary) === '#0b0d13' ? 11 : 243, 244, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--text-primary);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}

[data-theme="dark"] .logo-img {
    filter: drop-shadow(0px 2px 6px rgba(255,255,255,0.15)) brightness(1.1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Toggle Temático */
.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--text-primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 3px 3px 0px var(--text-primary);
}

.theme-toggle-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--text-primary);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-primary);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

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

/* Botón Brutalista Fino */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-solid);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--text-primary);
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--primary);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================================================
   HERO INMERSIVO A PANTALLA COMPLETA
   ========================================================================== */
.hero {
    position: relative;
    padding: 10rem 2rem 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--text-primary);
    z-index: 2;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(var(--bg-primary), 0.2) 0%, rgba(var(--bg-primary), 0.98) 100%),
                url('../imagenes/coca-cola-embonor.jpg') no-repeat center center/cover;
    filter: grayscale(15%) contrast(105%);
    z-index: -1;
    opacity: 0.95;
}

[data-theme="dark"] .hero-background {
    background: linear-gradient(180deg, rgba(11, 13, 19, 0.4) 0%, #0b0d13 100%),
                url('../imagenes/coca-cola-embonor.jpg') no-repeat center center/cover;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    background-color: var(--bg-card);
    border: 2px solid var(--text-primary);
    padding: 4rem;
    box-shadow: var(--shadow-solid);
    position: relative;
    max-width: 750px;
}

.hero-content::before {
    content: '[ TERMINALES DE COCA-COLA ANDINA ]';
    position: absolute;
    top: -12px;
    left: 30px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border: 2px solid var(--text-primary);
    letter-spacing: 1px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
    display: block;
    font-size: 4.8rem;
    letter-spacing: -3px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px dashed var(--grid-border-strong);
    padding-top: 2.5rem;
    gap: 1.5rem;
}

.stat-item {
    text-align: left;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Columna Imagen Asimétrica en Hero */
.hero-image-block {
    position: relative;
    border: 2px solid var(--text-primary);
    box-shadow: var(--shadow-solid-primary);
    height: 520px;
    overflow: hidden;
    transform: rotate(1deg);
}

.hero-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-block:hover img {
    transform: scale(1.03) rotate(-1deg);
}

.hero-image-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid var(--grid-border-strong);
    text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN DE SECCIONES GENERALES
   ========================================================================== */
.section {
    padding: 8rem 2rem;
    border-bottom: 2px solid var(--text-primary);
    position: relative;
    z-index: 2;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: inline-block;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 0.5rem;
    max-width: 900px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    max-width: 700px;
    font-weight: 500;
}

/* ==========================================================================
   DASHBOARD EN VIVO Y ESTADO DE LOGÍSTICA
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.dashboard-card {
    background-color: var(--bg-card);
    border: 2px solid var(--text-primary);
    padding: 2rem;
    box-shadow: 4px 4px 0px var(--text-primary);
    position: relative;
}

.dashboard-card h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .metric {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* Barra de progreso de dashboard */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-primary);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-card .subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   MAPA VECTORIAL INTERACTIVO (RUTAS SVG)
   ========================================================================== */
.map-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--text-primary);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-solid);
    overflow: hidden;
    margin-bottom: 6rem;
}

.map-sidebar {
    padding: 4.5rem;
    border-right: 2px solid var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-sidebar h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.map-sidebar p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hub-details-box {
    background-color: var(--bg-secondary);
    border: 2px solid var(--text-primary);
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.hub-details-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hub-details-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.map-svg-container {
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.map-svg-container svg {
    max-width: 100%;
    height: 400px;
}

/* Estilos de SVG animado */
.map-dot {
    cursor: pointer;
    transition: var(--transition);
}

.map-dot:hover {
    fill: var(--primary) !important;
    r: 10;
}

.map-dot.active {
    fill: var(--primary) !important;
    r: 9;
}

.map-route {
    stroke-dasharray: 6;
    animation: dash 12s linear infinite;
    stroke: var(--grid-border-strong);
    opacity: 0.35;
    transition: var(--transition);
}

.map-route.active {
    stroke: var(--primary);
    stroke-width: 3;
    opacity: 1;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* ==========================================================================
   CONMUTADOR DE SERVICIOS DINÁMICO (TAB SWITCHER)
   ========================================================================== */
.tabs-container {
    border: 2px solid var(--text-primary);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-solid);
    overflow: hidden;
}

.tabs-headers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 2px solid var(--text-primary);
}

.tab-btn {
    padding: 1.5rem;
    background-color: var(--bg-card);
    border: none;
    border-right: 2px solid var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.tab-content-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 400px;
}

.tab-info {
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.tab-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.tab-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px dashed var(--grid-border-strong);
    padding-top: 2rem;
}

.tab-spec-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.tab-spec-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.tab-img {
    border-left: 2px solid var(--text-primary);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.tab-img::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-color: rgba(227,0,22,0.08);
    mix-blend-mode: multiply;
}

/* ==========================================================================
   CASO DE ÉXITO COCA-COLA ANDINA (ESTRUCTURA EDITORIAL)
   ========================================================================== */
.case-study-banner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border: 2px solid var(--text-primary);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-solid);
    overflow: hidden;
}

.case-study-info {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-badge {
    background-color: #e30016; /* Rojo Coca Cola */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    align-self: flex-start;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--text-primary);
}

.case-study-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.case-study-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.case-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-top: 2px dashed var(--grid-border-strong);
    padding-top: 2.5rem;
}

.case-stat-val {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: #e30016;
}

.case-stat-lbl {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.case-study-img {
    background: url('../imagenes/coca-cola-chile-bebidas-gaseosas-11-737x413.jpg') no-repeat center center/cover;
    min-height: 500px;
    position: relative;
    border-left: 2px solid var(--text-primary);
}

.case-study-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(227, 0, 22, 0.12);
    mix-blend-mode: multiply;
}

/* ==========================================================================
   ACERCA DE Y VALORES (ASIMETRÍA DE GRID)
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-img-box {
    border: 2px solid var(--text-primary);
    box-shadow: var(--shadow-solid);
    position: relative;
    overflow: hidden;
}

.about-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--text-primary);
}

.about-experience-badge h4 {
    color: var(--primary);
    font-size: 2.2rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.about-experience-badge p {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--text-primary);
    margin-top: 5rem;
}

.value-card {
    background-color: var(--bg-card);
    padding: 4.5rem 3.5rem;
    border-right: 2px solid var(--text-primary);
    transition: var(--transition);
}

.value-card:last-child {
    border-right: none;
}

.value-card:hover {
    background-color: var(--bg-secondary);
}

.value-card-icon {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.value-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.45rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   CONTACTO (DISEÑO BRUTALISTA TIPO TICKET DE TRANSPORTE)
   ========================================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 6rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--text-primary);
    background-color: var(--bg-secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 4px 4px 0px var(--text-primary);
}

.contact-info-text h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-info-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-form-container {
    background-color: var(--bg-card);
    border: 2px solid var(--text-primary);
    padding: 4.5rem;
    box-shadow: var(--shadow-solid);
}

.normal-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.normal-form input,
.normal-form textarea {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--grid-border-strong);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
}

.normal-form input:focus,
.normal-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.map-container {
    border: 2px solid var(--text-primary);
    box-shadow: var(--shadow-solid);
    height: 480px;
    margin-top: 6rem;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%) contrast(105%);
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 2px solid var(--text-primary);
    padding: 3.5rem;
    box-shadow: 5px 5px 0px var(--text-primary);
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--grid-border-strong);
    font-weight: 900;
    pointer-events: none;
}

.stars {
    color: #f59e0b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.client-img {
    width: 56px;
    height: 56px;
    border: 2px solid var(--text-primary);
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.client-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   LLAMADA A LA ACCIÓN (CTA)
   ========================================================================== */
.cta-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 9rem 2rem;
    border-bottom: 2px solid var(--text-primary);
    text-align: center;
    position: relative;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 500;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn-white {
    background-color: #ffffff;
    color: #0c0e12;
    border-color: #0c0e12;
    box-shadow: 4px 4px 0px #0c0e12;
}

.cta-btn-white:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px #0c0e12;
    background-color: #f8fafc;
}

.cta-btn-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
}

.cta-btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #0c0e12;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--grid-border-strong);
    padding: 7rem 2rem 3rem;
    color: var(--text-primary);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.3fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

[data-theme="dark"] .footer-logo img {
    filter: drop-shadow(0px 2px 6px rgba(255,255,255,0.15)) brightness(1.1);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 2px solid var(--text-primary);
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 3px 3px 0px var(--text-primary);
}

.social-link:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px var(--text-primary);
}

.footer-col h3 {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary);
    display: inline-block;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

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

.footer-contact-item {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 2px solid var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* ==========================================================================
   CHATBOT TERMINAL INDUSTRIAL
   ========================================================================== */
.chatbot-bubble {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--text-primary);
    box-shadow: 4px 4px 0px var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
}

.chatbot-bubble:hover {
    transform: translate(-3px, -3px) rotate(-3deg);
    box-shadow: 7px 7px 0px var(--text-primary);
}

.chatbot-bubble svg {
    width: 24px;
    height: 24px;
}

.chatbot-notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background-color: #10b981;
    border: 2px solid var(--text-primary);
    animation: pulse 2s infinite;
}

.chatbot-window {
    position: fixed;
    bottom: 6.5rem;
    right: 2.5rem;
    width: 380px;
    height: 520px;
    background-color: var(--bg-card);
    border: 2px solid var(--text-primary);
    box-shadow: var(--shadow-solid);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transform: translateY(15px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text-primary);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid var(--text-primary);
}

.chatbot-status h4 {
    font-size: 0.85rem;
    color: var(--bg-primary);
    font-weight: 800;
}

.chatbot-status span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: var(--bg-primary);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 900;
    transition: var(--transition);
}

.chatbot-close-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-primary);
}

.message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    font-weight: 600;
}

.message.bot {
    background-color: var(--bg-card);
    color: var(--text-primary);
    align-self: flex-start;
    border: 2px solid var(--text-primary);
    box-shadow: 2px 2px 0px var(--grid-border-strong);
}

.message.bot.terminal-log {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    background-color: #0c0e12;
    color: #10b981;
    border-color: #10b981;
    box-shadow: none;
    max-width: 95%;
}

.message.user {
    background-color: var(--primary);
    color: #ffffff;
    align-self: flex-end;
    border: 2px solid var(--text-primary);
    box-shadow: 2px 2px 0px var(--text-primary);
}

/* Respuestas rápidas */
.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 1.25rem;
    background-color: var(--bg-primary);
    border-top: 1px dashed var(--grid-border-strong);
}

.quick-reply-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--text-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 2px 2px 0px var(--text-primary);
}

.quick-reply-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--text-primary);
}

.chatbot-input-area {
    padding: 1rem 1.25rem;
    border-top: 2px solid var(--text-primary);
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid var(--text-primary);
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-send-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 2px 2px 0px var(--text-primary);
}

.chatbot-send-btn:hover {
    background-color: var(--primary-hover);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--text-primary);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.5rem;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE INDUSTRIAL
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-container { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-content { margin: 0 auto; text-align: left; }
    .hero h1 { font-size: 3rem; }
    .hero h1 span { font-size: 3.6rem; }
    .hero-btns { justify-content: center; }
    .hero-image-block { display: none; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .map-panel { grid-template-columns: 1fr; }
    .map-sidebar { border-right: none; border-bottom: 2px solid var(--text-primary); padding: 3rem; }
    .tab-content-panel { grid-template-columns: 1fr; }
    .tab-img { border-left: none; border-top: 2px solid var(--text-primary); min-height: 300px; }
    .case-study-banner { grid-template-columns: 1fr; }
    .case-study-img { border-left: none; border-top: 2px solid var(--text-primary); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; gap: 4rem; }
    .values-grid { grid-template-columns: 1fr; }
    .value-card { border-right: none; border-bottom: 2px solid var(--text-primary); }
    .value-card:last-child { border-bottom: none; }
    .contact-split { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 84px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 84px);
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition);
        border-top: 2px solid var(--text-primary);
        align-items: flex-start;
        box-shadow: var(--shadow-solid);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .hero-content {
        padding: 2.5rem 2rem;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .hero h1 span { font-size: 2.8rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .map-sidebar { padding: 2.5rem; }
    .map-svg-container { padding: 1.5rem; }
    .map-svg-container svg { height: 300px; }
    .tabs-headers { grid-template-columns: 1fr; }
    .tab-btn { border-right: none; border-bottom: 2px solid var(--text-primary); }
    .tab-btn:last-child { border-bottom: none; }
    .tab-info { padding: 2.5rem; }
    .case-study-info { padding: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1.5rem; }
    
    .chatbot-window {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 5rem;
        height: 480px;
    }
    .chatbot-bubble {
        bottom: 1rem;
        right: 1rem;
    }
}
