* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a2a5e; /* azul profundo ejecutivo */
    --primary-light: #1e4a8b;
    --accent: #00c2ff; /* destello tecnológico */
    --bg: #fafafc;
    --text: #0b0f16;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 20, 50, 0.1);
    --card-bg: #ffffff;
    --shadow-sm: 0 20px 35px -8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 50px -12px rgba(0, 40, 100, 0.25);
    --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    --header-height: 85px; /* altura aproximada del nav */
}

[data-theme='dark'] {
    --primary: #1e4a8b;
    --primary-light: #3b6bb0;
    --accent: #4dd0ff;
    --bg: #0c0f15;
    --text: #f0f3fa;
    --glass: rgba(15, 20, 30, 0.8);
    --border: rgba(255, 255, 255, 0.05);
    --card-bg: #151b26;
    --shadow-sm: 0 20px 35px -8px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== COMPONENTES PRO ===== */
section {
    min-height: 100vh;
    width: 100%;
    padding: 6rem 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    will-change: transform, opacity;
}

/* Ajuste especial para la primera sección (hero) */
#inicio {
    padding-top: calc(
        1rem + var(--header-height)
    ); /* más espacio arriba por el nav flotante */
    padding-bottom: 6rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.section-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text);
}

.section-title span {
    color: var(--primary);
    display: block;
    font-weight: 300;
    font-size: 0.45em;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* barra decorativa */
.dash-large {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 2rem 0 1.5rem;
}

/* NAVBAR MÁS SÓLIDA */
nav {
    position: fixed;
    top: 1rem;
    left: 5%;
    width: 90%;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 80px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo-text {
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -2px;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-links a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* botón tema */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 60px;
    background: color-mix(in srgb, var(--border) 20%, transparent);
    transition: var(--transition);
}

/* ===== HERO REDISEÑADO - MÁS ÉPICO ===== */
#inicio {
    background:
        linear-gradient(
            105deg,
            rgb(0 22 56 / 0%) 0%,
            rgb(45 45 45 / 0%) 50%,
            rgb(0 0 0 / 0%) 100%
        ),
        url(../img/bmw&benz2.jpg) center / cover fixed;
    color: white;
    position: relative;
}

/* Overlay con patrón sutil de líneas */
#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 2px,
        transparent 2px,
        transparent 8px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge actualizado con el nombre completo */
.hero-badge {
    background: rgba(0, 194, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    margin-right: 8px;
    color: #ffffff;
    font-size: 1.3rem;
}

/* Título principal con énfasis en EUROPE IMPORTACIONES COLOMBIA */
.hero-h1 {
    font-size: clamp(3.8rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.hero-h1 .main-brand {
        display: block;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgb(0 194 255);
}

.hero-h1 .sub-brand {
        display: block;
    font-weight: 300;
    font-size: 0.5em;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-align: center;
    text-shadow: 0 0 25px black;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 1rem 0 2rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #b9ff00;
    text-shadow: 0 0 30px #b9ff00;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.btn-primary {
    background: #97e307;
    color: #000000;
    padding: 1.2rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 42, 94, 0.5);
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-primary:hover {
        background: black;
    color: #97e307;
    text-shadow: 0 0 5px #97e307;
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 42, 94, 0.7);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* grid nosostros */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.nosotros-img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    border-radius: 60px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    border: 2px solid var(--border);
}

/* ===== SUPERPOSICIÓN DE IMÁGENES EN NOSOTROS ===== */

/* 1. El contenedor con la imagen de fondo */
.nosotros-image-container {
    width: 100%;
    height: 80vh; /* Ajusta este alto a tu gusto (ej: 400px o 80vh) */

    /* Usamos la imagen de fondo (EICO parts.jpg) */
    /* Recuerda el ../ porque estamos dentro de css/ */
    background-image: url('../img/EICO parts.jpg');
    background-size: cover;      /* La imagen cubre todo el contenedor */
    background-position: center; /* Centrada */
    background-repeat: no-repeat;

    /* Estilos para el contenedor */
    border-radius: 60px; /* Mantenemos el estilo curvo de tu web */
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--border);
    overflow: hidden; /* Asegura que nada se salga de las curvas */

    /* Importante para centrar el logo */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: flex-start;
    position: relative;
}

.nosotros-image-container::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    height: 34%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(51px);
    background-color: rgb(255 255 255);
    background-blend-mode: overlay;
    transform: scale(1.1);
    z-index: 1;
}

/* 2. El logo superpuesto (EICO.png) */
.nosotros-logo-overlay {
    width: auto;            /* Mantiene su proporción */
    max-width: 60%;         /* El logo no ocupará más del 60% del ancho del fondo */
    height: auto;
    max-height: 70%;        /* Tampoco más del 70% del alto */
    object-fit: contain;    /* No se deforma ni se corta */

    /* Estilos opcionales para que resalte */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); /* Sombra suave para separarlo del fondo */
    transition: var(--transition);
    z-index: 2;
        padding-top: 15px;
}

/* Efecto hover opcional */
.nosotros-image-container:hover .nosotros-logo-overlay {
    transform: scale(1.05); /* El logo se agranda un poco al pasar el mouse */
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.stat-marker {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 10px;
}

/* MARCAS (cuadrícula elegante) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.8rem;
}

.brand-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
}

.brand-card:hover {
    transform: translateY(-12px);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.brand-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.brand-card h4 {
    font-weight: 700;
    font-size: 1.3rem;
}

/* sedes mas cuadradas y presentes */
.sedes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.sede-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sede-box:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.sede-icon {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 25px;
    display: flex;
}

/* servicios con scroll y altura fija */
.services-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2rem;
    scroll-snap-type: x mandatory;
}

.service-panel {
    min-width: 450px;
    height: 70vh;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.service-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 6s ease;
}

.service-panel:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 20, 40, 0.9) 0%, transparent 60%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.service-overlay h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* contacto 2 columnas perfectas */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.map-frame {
    border-radius: 50px;
    overflow: hidden;
    height: 55vh;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-hover);
}

/* smooth reveal */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* scrollbar elegante */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

/* ===== SECCIÓN DESTACADA IMPORTS EICO ===== */

/* 1. Contenedor de la sección para dar espacio */
.eico-imports-section {
    padding: 4rem 8% 0; /* Menos espacio abajo para conectar con marcas */
    min-height: auto; /* No necesita ocupar toda la pantalla */
}

/* 2. El contenedor que centra la imagen */
.eico-imports-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Estilos para la IMAGEN con BORDES REDONDOS */
.eico-imports-img {
    width: 100%;           /* Ocupa todo el ancho disponible del contenedor */
    height: auto;          /* Mantiene la proporción para no deformarse */
    max-width: 1200px;     /* Ancho máximo para que no sea gigante en pantallas grandes */

    /* EL DETALLE CLAVE: Bordes Redondeados */
    /* Usamos 60px para que coincida con tus otros contenedores */
    border-radius: 60px;

    /* Sombra elegante para dar profundidad */
    box-shadow: var(--shadow-hover);

    /* Borde sutil opcional */
    border: 2px solid var(--border);

    /* Asegura que el contenido se ajuste al radio de los bordes */
    object-fit: cover;
}

/* Efecto hover suave */
.eico-imports-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 60px -15px rgba(0, 40, 100, 0.3);
    transition: var(--transition);
}

/* responsive */
@media (max-width: 900px) {
    nav {
        width: 94%;
        left: 3%;
        padding: 0.8rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .nosotros-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .service-panel {
        min-width: 90%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    #inicio {
        padding-top: calc(8rem + var(--header-height));
    } /* más espacio en móvil */
}
