/* ================================================================== */
/* CYMIBSA | ESTILOS COMPLETOS - PALETA OSCURA + AZUL FUERTE         */
/* ================================================================== */

/* ========== RESET Y VARIABES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ========== COLORES CORPORATIVOS ========== */
    --primary: #0A5CFF;
    --primary-dark: #0328A0;
    --primary-light: #3B82F6;
    --primary-soft: rgba(10, 92, 255, 0.12);
    
    --secondary: #F0F4FA;
    --secondary-dark: #A8BCD6;
    
    /* ========== FONDOS OSCUROS (MODO OSCURO) ========== */
    --bg: #0A0E15;
    --bg-soft: #0F141E;
    --bg-elevated: #1A1F2E;
    --surface: rgba(18, 24, 38, 0.95);
    --surface-strong: #121826;
    --panel: #1A2332;
    --panel-strong: #1F2A3A;
    
    /* ========== BORDES ========== */
    --border: rgba(37, 46, 63, 0.8);
    --border-strong: #3A4559;
    --border-focus: #0A5CFF;
    
    /* ========== TEXTOS (MODO OSCURO) ========== */
    --text: #F0F4FA;
    --text-soft: #E2E8F0;
    --text-muted: #A8BCD6;
    --text-light: #6B7F9E;
    
    /* ========== ESTADOS ========== */
    --success: #00C853;
    --success-soft: rgba(0, 200, 83, 0.12);
    --error: #FF4D4D;
    --error-soft: rgba(255, 77, 77, 0.12);
    --warning: #FFB74D;
    --info: #29B6F6;
    
    /* ========== SOMBRAS ========== */
    --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(10, 92, 255, 0.3);
    
    /* ========== GRADIENTES ========== */
    --gradient-primary: linear-gradient(135deg, #0A5CFF, #0328A0);
    --gradient-hero: radial-gradient(circle at 80% 10%, #111827, #080C12);
    --gradient-text: linear-gradient(135deg, #FFFFFF, #BFD6FF);
    
    /* ========== RADIOS ========== */
    --radius: 12px;
    --radius-lg: 24px;
    --radius-xl: 28px;
}

/* ========== MODO CLARO ========== */
[data-theme="light"] {
    --bg: #F5F7FB;
    --bg-soft: #EDF1F8;
    --bg-elevated: #E8EDF5;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-strong: #FFFFFF;
    --panel: #FFFFFF;
    --panel-strong: #F8FAFE;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: #D1D9E6;
    
    --text: #1A2C3E;
    --text-soft: #2C3E50;
    --text-muted: #5A6E85;
    --text-light: #8A9BB0;
    
    --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    
    --gradient-text: linear-gradient(135deg, #1A2C3E, #0A5CFF);
}

/* ========== BASE ========== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo-image {
    width: 60px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(10, 92, 255, 0.3);
}

.container {
    width: min(1700px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero-img-extra {
    width: 2000px;
    height: 350px;
}

img, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

/* ========== BOTÓN DARK MODE ========== */
.theme-toggle {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.theme-toggle i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.theme-toggle:hover i {
    color: var(--primary);
}

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

.theme-toggle .fa-moon {
    display: block;
}

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

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

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

[data-theme="light"] .theme-toggle-text {
    content: "Modo oscuro";
}

/* ========== TIPOGRAFÍA ========== */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--text);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* ========== MENÚ RESPONSIVE ========== */
.nav-checkbox {
    display: none;
}

.navbar {
    background: rgba(10, 14, 21, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 92, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(10, 92, 255, 0.15);
}

.navbar .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(10, 92, 255, 0.3);
}

.logo-icon i {
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    display: grid;
    gap: 0.15rem;
}

.logo-text h1 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}

.logo-text span {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    font-weight: 600;
}

[data-theme="light"] .nav-links a.active,
[data-theme="light"] .nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
}

.nav-toggle {
    display: none;
}

.nav-toggle label {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

[data-theme="light"] .nav-toggle label {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    transform: translateY(-7px);
}

.nav-toggle span::after {
    transform: translateY(7px);
}

/* ========== MEDIA QUERIES MENÚ ========== */
@media (max-width: 860px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem;
        border-radius: 0 0 22px 22px;
        border-top: 1px solid rgba(10, 92, 255, 0.2);
        background: rgba(10, 14, 21, 0.98);
        backdrop-filter: blur(12px);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(10, 92, 255, 0.15);
    }

    .nav-links a {
        padding: 0.95rem 1rem;
        border-radius: 16px;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
    }
    
    [data-theme="light"] .nav-links a {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-links a.active,
    .nav-links a:hover {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .nav-links .btn-secondary {
        background: var(--primary);
        color: white;
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-checkbox:checked ~ .navbar .nav-links,
    .nav-checkbox:checked + .navbar .nav-links {
        max-height: 460px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .bar {
        padding: 0.8rem 1rem;
    }
    
    .theme-toggle {
        padding: 0.4rem 0.8rem;
    }
    
    .theme-toggle-text {
        display: none;
    }
    
    .theme-toggle i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-icon i {
        font-size: 1rem;
    }
    .logo-text h1 {
        font-size: 0.9rem;
    }
    .logo-text span {
        font-size: 0.6rem;
    }
    .nav-toggle label {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 360px) {
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    .logo-text h1 {
        font-size: 0.8rem;
    }
}

@media (min-width: 1920px) {
    .navbar .bar {
        max-width: 1600px;
        margin: 0 auto;
        padding: 1.2rem 2rem;
    }
    .nav-links {
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        transition: none;
    }
}

/* ========== HERO ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: url('../assets/hero.jpeg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(5, 15, 35, 0.95) 35%,
        rgba(5, 15, 35, 0.75) 60%,
        rgba(5, 15, 35, 0.3) 80%,
        transparent
    );
    z-index: 1;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 247, 251, 0.92) 35%,
        rgba(245, 247, 251, 0.75) 60%,
        rgba(245, 247, 251, 0.3) 80%,
        transparent
    );
}

.hero-banner {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-banner h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff !important;
    background: none !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin: 1rem 0;
}

[data-theme="light"] .hero-banner h1 {
    color: #1A2C3E !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-banner p {
    color: #e2e8f0;
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 2rem;
}

[data-theme="light"] .hero-banner p {
    color: #2C3E50;
}

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

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 1rem 1.8rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary, .btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-secondary:hover, .btn-outline:hover {
    background: var(--primary-soft);
}

/* ========== SECCIONES GENERALES ========== */
.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--bg-soft);
}

.section-title {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    color: var(--text);
    font-weight: 800;
    transition: color 0.3s ease;
}

.section-title p {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .section-title h2,
[data-theme="light"] .section-title h2 {
    color: var(--text);
}

[data-theme="dark"] .section-title p,
[data-theme="light"] .section-title p {
    color: var(--text-muted);
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ========== SECCIÓN DE VIDEO ========== */
.video-section {
    position: relative;
    padding: 5rem 0;
    background: var(--bg);
    overflow: hidden;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-content {
    padding-right: 2rem;
}

.video-content .eyebrow {
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.video-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 800;
}

.video-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.video-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

.video-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.video-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--panel);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    display: block;
}

.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.video-badge i {
    font-size: 0.9rem;
}

/* ========== TARJETAS DE SERVICIOS MEJORADAS ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.8rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ========== GRIDS GENERALES ========== */
.grid-2, .grid-3, .stats-grid, .client-logos, .contact-grid, .testimonials-grid {
    display: grid;
    gap: 1.8rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-logos {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
}

.contact-grid {
    grid-template-columns: 1.1fr 0.95fr;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ========== TARJETAS GENERALES ========== */
.card, .product-card, .project-card, .contact-card, .stat-card, .testimonial-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover, .product-card:hover, .project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.stat-card {
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card strong {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-card span {
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== ICONOS ========== */
.card-icon, .product-icon, .feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* ========== BADGES ========== */
.badge, .project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========== PROYECTOS ========== */
.project-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--panel);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 0.75rem;
}

/* ========== TESTIMONIOS ========== */
.testimonial-card i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-author strong {
    display: block;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== CLIENTES ========== */
.client-item {
    background: var(--surface-strong);
    padding: 0.8rem 1.2rem;
    border-radius: 60px;
    border: 1px solid var(--border);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.client-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== FORMULARIO ========== */
.form-field {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.form-field label {
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 1rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* ========== INFO CONTACTO ========== */
.info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.info-card .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}

.info-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.info-card p, .info-card a {
    color: var(--text-muted);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--primary);
}

.location-panel iframe {
    width: 100%;
    min-height: 320px;
    border: none;
    border-radius: 18px;
    margin-top: 1rem;
}

/* ========== FOOTER ========== */
.footer {
    background: #05080E;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    transition: background 0.3s ease;
}

[data-theme="light"] .footer {
    background: #EDF1F8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.footer-grid a {
    display: block;
    color: var(--text-muted);
    margin-top: 0.75rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.footer-logo strong {
    font-size: 1.3rem;
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

[data-theme="light"] .social-links a {
    background: rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-note {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ========== PRODUCTOS ========== */
/* ========== CONTACTO - DISEÑO DEL PANEL IZQUIERDO Y FORMULARIO ========== */

.contact-grid {
    align-items: start;
    gap: 1rem;
}

.contact-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
}

.contact-info h3,
.contact-form h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contact-list {
    list-style: none;
    margin: 0.6rem 0 0.9rem 0;
    padding: 0;
    color: var(--text-muted);
    display: grid;
    gap: 0.4rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.contact-card-info h4 {
    margin: 0.4rem 0 0.15rem 0;
    color: var(--text);
    font-size: 0.95rem;
}

.contact-cta {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea {
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.contact-form .form-privacy-note,
.contact-form .form-privacy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-message {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.form-message.success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success);
    display: flex;
}

.form-message.error {
    background: var(--error-soft);
    color: var(--error);
    border: 1px solid var(--error);
    display: flex;
}

@media (max-width: 1080px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 1rem;
    }
}

/* ========== END CONTACTO STYLES ========== */

/* ========== CONTACTO PROFESIONAL PAGE LAYOUT ========== */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-centered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.contact-centered.contact-two-col {
    grid-template-columns: minmax(320px, 1.1fr) minmax(380px, 1fr);
    gap: 1.5rem;
}

.contact-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    border-radius: 22px;
    padding: 0;
}

.contact-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-image-copy {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(8, 14, 28, 0.72);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.5rem;
    color: white;
}

.contact-image-copy .eyebrow {
    color: #B5C9FF;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-image-copy h3 {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    margin: 0.75rem 0 0.8rem;
    line-height: 1.1;
}

.contact-image-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.contact-centered .contact-card.contact-form {
    min-width: auto;
}

@media (max-width: 900px) {
    .contact-centered.contact-two-col {
        grid-template-columns: 1fr;
    }

    .contact-image {
        min-height: 420px;
    }

    .contact-image-copy {
        position: relative;
        background: rgba(255, 255, 255, 0.92);
        color: var(--text);
    }
}

/* Reduce textarea height on compact layout */
.contact-form textarea {
    min-height: 140px;
}

/* Tighten label spacing */
.contact-form .form-field label {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* Compact submit button */
.contact-form .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Small visual divider */
.contact-card.contact-info {
    border-right: 1px solid var(--border);
}

@media (max-width: 900px) {
    .contact-card.contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* ========== END CONTACTO PROFESIONAL LAYOUT ========== */
.product-card {
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 1080px) {
    .grid-2, .grid-3, .stats-grid, .contact-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 968px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-content {
        padding-right: 0;
        text-align: center;
    }
    
    .video-stats {
        justify-content: center;
    }
    
    .video-stat-item {
        text-align: center;
    }
    
    .video-wrapper iframe {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-trust {
        justify-content: center;
    }
    .footer-grid {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .info-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .info-card .feature-icon {
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-image {
        height: 200px;
    }
    .service-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 1.5rem);
    }
    .card, .product-card, .project-card {
        padding: 1.5rem;
    }
    .stat-card strong {
        font-size: 1.8rem;
    }
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .video-stats {
        gap: 1rem;
        justify-content: space-around;
    }
    .video-stat-number {
        font-size: 1.5rem;
    }
    .video-stat-label {
        font-size: 0.7rem;
    }
    .video-wrapper iframe {
        min-height: 220px;
    }
    .video-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
}

/* ========== ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}  

.img-circulo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
/* ========== APARTADO DE PROYECTOS ========== */

.project-image {
    width: 100%;
    height: 200px; /* MISMO ALTO PARA TODAS */
    overflow: hidden;
    border-radius: 12px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 recorta la imagen sin deformarla */
    display: block;
} 

.estado {
    color: #1e90ff;
    font-weight: 800;
} 

/* =========================================
   CLIENTES
========================================= */

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-item {
    background: white;
    border-radius: 24px;
    height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    transition: all 0.4s ease;

    border: 1px solid rgba(0,0,0,0.06);
}

/* HOVER */

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* IMAGENES */

.client-item img {
    width: 100%;
    max-width: 180px;
    max-height: 90px;

    object-fit: contain;

    filter: grayscale(100%);
    opacity: 0.8;

    transition: all 0.4s ease;
}

/* EFECTO */

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
} 

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 50px;   /* tamaño del logo */
    height: 50px;
    object-fit: contain;
}

/* ========== NUEVA SECCIÓN: DEPARTAMENTOS Y CONTACTO MEJORADO ========== */

/* ========== GRID DE DEPARTAMENTOS ========== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ========== TARJETAS DE DEPARTAMENTOS ========== */
.department-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.department-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.dept-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.department-card:hover .dept-icon {
    transform: rotate(-5deg) scale(1.1);
}

.dept-icon.projects { background: linear-gradient(135deg, rgba(10,92,255,0.2), rgba(59,130,246,0.2)); color: #0A5CFF; }
.dept-icon.engineering { background: linear-gradient(135deg, rgba(41,182,246,0.2), rgba(10,92,255,0.2)); color: #29B6F6; }
.dept-icon.operations { background: linear-gradient(135deg, rgba(0,200,83,0.2), rgba(41,182,246,0.2)); color: #00C853; }
.dept-icon.finance { background: linear-gradient(135deg, rgba(255,180,77,0.2), rgba(255,193,7,0.2)); color: #FFB74D; }
.dept-icon.admin { background: linear-gradient(135deg, rgba(244,67,54,0.2), rgba(233,30,99,0.2)); color: #FF4D4D; }
.dept-icon.safety { background: linear-gradient(135deg, rgba(233,30,99,0.2), rgba(156,39,176,0.2)); color: #FF1493; }
.dept-icon.warehouse { background: linear-gradient(135deg, rgba(103,58,183,0.2), rgba(63,81,181,0.2)); color: #673AB7; }

.department-card h3 { margin-bottom: 0.5rem; color: var(--text); font-weight: 700; }
.department-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }

.dept-features { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dept-features li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-soft); font-size: 0.85rem; }
.dept-features li i { font-size: 0.7rem; color: var(--primary); flex-shrink: 0; }

/* ========== BANNER DE CONFIANZA ========== */
.trust-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; padding: 3rem 2rem; background: linear-gradient(135deg, rgba(10,92,255,0.08), rgba(10,92,255,0.02)); border:1px solid var(--border); border-radius: var(--radius-lg); }
.trust-item { display:flex; align-items:center; gap:1.2rem; text-align:left; }
.trust-icon { width:56px; height:56px; display:grid; place-items:center; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size:1.6rem; flex-shrink:0; transition: all 0.3s ease; }
.trust-item:hover .trust-icon { background: var(--primary); color:white; transform: scale(1.1); }
.trust-content h3 { margin-bottom:0.25rem; font-size:1rem; font-weight:700; color: var(--text); }
.trust-content p { color: var(--text-muted); font-size:0.85rem; }

/* ========== FORMULARIO Y TARJETAS DE CONTACTO ========== */
.contact-card { background: var(--surface-strong); border:1px solid var(--border); border-radius: var(--radius-lg); padding:2.5rem; transition: all 0.3s ease; }
.contact-card h3 { display:flex; align-items:center; gap:0.8rem; margin-bottom:1rem; color:var(--text); }
.contact-card h3 i { font-size:1.5rem; color:var(--primary); }
.contact-info { background: linear-gradient(135deg, var(--surface-strong), var(--bg-elevated)); }
.contact-form { background: linear-gradient(135deg, var(--surface-strong), var(--bg-soft)); }
.contact-promo { background: linear-gradient(135deg, #f8fbff, #ffffff); display:flex; flex-direction:column; justify-content:space-between; }
.contact-promo.contact-promo-personalized { background: linear-gradient(135deg, rgba(10,92,255,0.14), rgba(255,255,255,0.95)); border: 1px solid rgba(10,92,255,0.18); }
[data-theme="dark"] .contact-promo.contact-promo-personalized { background: linear-gradient(135deg, rgba(4,44,92,0.22), rgba(10,25,56,0.75)); border-color: rgba(59,130,246,0.35); }
.contact-promo h3 { color: var(--text); }
.contact-form-wrapper { display:flex; flex-direction:column; gap:1.2rem; }
.promo-image { width: 100%; border-radius: var(--radius-lg); margin: 1.5rem 0; object-fit: cover; }
.promo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.promo-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; color: var(--text-soft); }
.promo-list li i { color: var(--primary); }
.promo-note { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

.form-field input:invalid:not(:placeholder-shown), .form-field select:invalid:not(:placeholder-shown), .form-field textarea:invalid:not(:placeholder-shown) { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255,77,77,0.1); }
.form-field input:valid:not(:placeholder-shown), .form-field select:valid:not(:placeholder-shown), .form-field textarea:valid:not(:placeholder-shown) { border-color: var(--success); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-light); }

.form-message { padding:1rem; border-radius:var(--radius); margin-bottom:1rem; display:flex; align-items:center; gap:0.75rem; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity:0; transform: translateY(-10px);} to { opacity:1; transform: translateY(0);} }
.form-message.success { background: var(--success-soft); color: var(--success); border:1px solid var(--success); }
.form-message.error { background: var(--error-soft); color: var(--error); border:1px solid var(--error); }
.form-message i { font-size:1.2rem; flex-shrink:0; }

.form-privacy { font-size:0.8rem; color: var(--text-muted); display:flex; align-items:center; gap:0.5rem; margin-top:0.5rem; }
.form-privacy i { color: var(--success); font-size:1rem; }

.form-field-checkbox { display:flex; align-items:flex-start; margin-top:0.25rem; }
.form-field-checkbox .checkbox-label {
    display:flex;
    align-items:flex-start;
    gap:0.8rem;
    line-height:1.5;
    color: var(--text);
    font-size:0.95rem;
}
.form-field-checkbox input {
    margin-top:0.2rem;
    width: auto;
    min-width: auto;
}

.form-privacy-note {
    margin: 0 0 1rem;
    padding: 1rem 1rem;
    border-radius: var(--radius);
    background: rgba(10, 92, 255, 0.06);
    border: 1px solid rgba(10, 92, 255, 0.16);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.privacy-section {
    background: rgba(10, 92, 255, 0.06);
    border: 1px solid rgba(10, 92, 255, 0.18);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    color: var(--text);
}
.privacy-section h4 {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-size: 1rem;
}
.privacy-section p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}
.privacy-list {
    margin: 0 0 0.75rem 1.2rem;
    padding: 0;
    list-style: disc;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}
.privacy-list li {
    margin-bottom: 0.45rem;
}
.privacy-section a,
.privacy-note a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-note {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.privacy-note p {
    margin: 0;
}

#submitBtn { position:relative; overflow:hidden; transition: all 0.3s ease; }
#submitBtn:disabled { opacity:0.6; cursor:not-allowed; }
#submitBtn.loading::after { content: ''; position:absolute; top:50%; left:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border:2px solid rgba(255,255,255,0.3); border-top-color:white; border-radius:50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .departments-grid { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .departments-grid { grid-template-columns: 1fr; }
    .trust-banner { grid-template-columns: repeat(2,1fr); gap:1.5rem; padding:2rem; }
    .trust-item { flex-direction: column; text-align:center; gap:0.8rem; }
    .contact-card { padding:2rem; }
    .contact-form-wrapper { gap:1rem; }
}

@media (max-width: 480px) {
    .departments-grid { grid-template-columns:1fr; gap:1.5rem; }
    .department-card { padding:1.5rem; }
    .trust-banner { grid-template-columns:1fr; gap:1rem; padding:1.5rem; }
    .trust-icon { width:48px; height:48px; font-size:1.4rem; }
    .contact-card { padding:1.5rem; }
    .form-actions { flex-direction:column; }
    .form-actions .btn { width:100%; }
    .contact-form-wrapper { gap:0.9rem; }
}

/* SOLO EN MODO CLARO */

[data-theme="light"] .footer-logo-img,
[data-theme="light"] .logo-image{
    background:#0A0E15;
    padding:6px;
    border-radius:12px;
}  
