html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 160px; /* Ajusta este valor según el alto de tu header */
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

        .gallery-random {
    column-count: 1;
    column-gap: 12px;
    padding: 10px;
}

/* tablet */
@media (min-width: 600px) {
    .gallery-random {
        column-count: 2;
    }
}

/* desktop */
@media (min-width: 1024px) {
    .gallery-random {
        column-count: 3;
    }
}

/* imágenes */
.gallery-random img {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
    display: block;
    break-inside: avoid;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-random img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* filtros */
.filters {
    text-align: center;
    margin-bottom: 20px;
}

.filters button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 8px;
}

.filters button.active {
    background: #333;
    color: #fff;
}

/* galería */
.gallery {
    display: grid;
    gap: 15px;
    padding: 10px;
}

/* 📱 móvil */
@media (max-width: 600px) {

    .brief-list{
        display: block !important;
        margin-top: 5px;
        font-family: 'Oswald', sans-serif; /* Requiere importar de Google Fonts */
        font-size: 0.6rem;
        letter-spacing: 4px; /* Da elegancia */
        color: #555;/*var(--verde); /* O un gris industrial #555 */
        font-weight: 400;
        text-transform: uppercase;
    }

    .whatsapp{
        right: 3px !important;
    }

    .facebook-float {
        right: 3px !important;
    }

    .hero-slider{
        margin-top: 70px !important;
    }

    .top-title{
        margin-top: 20% !important;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: 1fr !important;
    }

    header {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Crea 3 columnas iguales */
        align-items: center;
        padding: 10px 15px;
        justify-content: center !important;
        background-color: #fff; /* O el color de tu header */
    }

    /* El logo siempre irá al centro (columna 2) */
    header .logo {
        grid-column: 2;
        max-height: 300px; /* Ajusta según necesites */
        margin: 0 auto;
        width:  200px;
        height: 100px;
    }
}

/* 📱 tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 💻 desktop grande → SIEMPRE 3 columnas */
@media (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item:hover img {
    transform: scale(1.1);
}

/* etiqueta */
.item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px;
    font-size: 14px;
}

/* efecto hover elegante */
.gallery .item:hover img {
    transform: scale(1.1);
}

.carousel-wrapper {
    position: relative;
    margin-top: 40px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;

    /* 👇 esto es clave */
    scroll-snap-type: x mandatory;
}

/* ocultar scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}

.item {
    flex: 0 0 300px; /* tamaño de cada card */
    scroll-snap-align: start;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* hover tipo Netflix */
.item:hover {
    transform: scale(1.08);
}

/* botones */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 25px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.prev { left: -10px; }
.next { right: -10px; }

        :root {
            --verde: #2ECC71;
            --amarillo: #F1C40F;
            --negro: #1A1A1A;
            --gris-fondo: #F4F7F6;
            --blanco: #FFFFFF;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

        header {
            display: flex;
            justify-content: space-between; /* Empuja logo a izq y menú a der */
            /*: column; /* Logo arriba, menú abajo en escritorio si quieres */
            align-items: center;
            padding: 15px 0;
            position: fixed; /* Mantiene el menú arriba siempre */
            top: 0;
            width: 100%;
            background: #fff;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: anchor-center;/*flex-start; /* Alinea logo y texto a la izquierda */
        }

        .logo {
            width: 100px; /* Aquí ajustas el ancho que querías */
            height: auto;
            transition: transform 0.3s ease;
        }

        .brief-list {
            display: none;
        }

        /* MENU DESKTOP */
        nav ul { display: flex; list-style: none; }
        nav ul li { margin-left: 25px; }
        nav a { text-decoration: none; color: var(--negro); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
        nav a:hover { color: var(--verde); }

        /* MENU MOBILE (HAMBURGUESA) */
        .menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--negro);     position: absolute;
    top: 0;
    right: 0;
    padding-right: 20px;
    padding-top: 15px;}

        section {
            min-height: 85vh; 
            padding: 80px 10%;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
        }

                /* Botón estilo Industrial Premium */
        .btn-industrial {
            background: var(--verde);
            color: white;
            padding: 18px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-industrial:hover {
            background: var(--negro);
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        /* Efecto para las mini cards */
        .card-mini {
            transition: 0.3s;
            border: 1px solid #eee;
        }

        .card-mini:hover {
            border-color: var(--verde);
            transform: scale(1.02);
        }

        /* Ajuste responsivo */
        @media (max-width: 768px) {
            .row-flex { flex-direction: column; text-align: center; }
            .col-content ul li { text-align: left; }
        }

        /* Contenedor de botones en las sedes */
        .sede-card .buttons-container {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        /* Estilo base para los enlaces/botones */
        .sede-card a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 18px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s ease;
            color: white;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border: none;
        }

        /* Efecto hover general */
        .sede-card a:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
            filter: brightness(1.1);
        }

        /* Colores específicos según marca */
        .sede-card a[href*="waze"] { background: #33f1ff; color: #1A1A1A; } /* Celeste Waze */
        .sede-card a[href*="google"] { background: #ea4335; } /* Rojo Google */
        .sede-card a[href*="tel"] { background: var(--verde); } /* Verde Tel */

        /* Ajuste de iconos dentro de los botones */
        .sede-card a i {
            margin-right: 8px;
            font-size: 1.1rem;
        }

        .section-title { text-align: center; margin-bottom: 40px; width: 100%; }
        .section-title h2 { font-size: 2.5rem; color: var(--negro); text-transform: uppercase; letter-spacing: 1px; }
        .section-title div { width: 80px; height: 5px; background: var(--verde); margin: 15px auto; border-radius: 10px; }

        /* HERO */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('hero-industrial.webp') center/cover fixed no-repeat;
            color: white; text-align: center; min-height: 90vh;
        }
        .hero h1 { font-size: 4rem; margin-bottom: 1rem; }
        .hero p { font-size: 1.4rem; max-width: 700px; margin-bottom: 2rem; }

        /* CARDS & GRID */
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; width: 100%; }
        .card { 
            background: var(--gris-fondo); padding: 40px 20px; border-radius: 15px; 
            text-align: center; transition: 0.3s;
        }
        .card i { font-size: 3rem; color: var(--verde); margin-bottom: 20px; }

        /* CONTACTO & SEDES */
        .contacto-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; width: 100%; }
        .sedes-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
        .sede-card { background: var(--blanco); padding: 25px; border-radius: 12px; border-left: 5px solid var(--verde); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
        .sede-card h4 { margin-bottom: 10px; color: var(--negro); }
        .btn-call { display: inline-block; margin-top: 10px; color: var(--verde); text-decoration: none; font-weight: bold; }

        .btn { 
            display: inline-block; padding: 12px 30px; background: var(--verde); 
            color: white; text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; text-align: center;
        }
        .btn:hover { background: var(--amarillo); color: black; }

        .facebook-float {
            position: fixed;
            bottom: 100px; /* Arriba del de WhatsApp */
            right: 30px;
            background: #1877F2;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            z-index: 1000;
            text-decoration: none;
            transition: 0.3s;
        }
        .facebook-float:hover { transform: scale(1.1); }
        .whatsapp { 
            position: fixed; bottom: 30px; right: 30px; background: #25D366; 
            color: white; width: 60px; height: 60px; border-radius: 50%; 
            display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1000;
        }

        .rec-box {
            background: var(--negro);
            color: white;
            padding: 50px;
            border-radius: 20px;
        }

        .rec-container {
            display: grid;
            gap: 40px;
            width: 100%;
        }

        /* 📱 móvil → 1 columna (se expande full ancho) */
        @media (max-width: 768px) {
            .rec-container {
                grid-template-columns: 1fr;
            }
        }

        /* 💻 desktop → 2 columnas */
        @media (min-width: 769px) {
            .rec-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        .slider-container {
            width: 100%;
            overflow: hidden;
            border-radius: 20px;
            margin-top: 40px;
        }
        .slider {
            display: flex;
            transition: transform 0.6s ease;
        }
        .slide {
            min-width: 100%;
            position: relative;
            height: 400px;
        }
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .slide-caption {
            position: absolute;
            bottom: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            width: 100%;
            padding: 40px 10%;
        }
        @keyframes slide-animation {
            0% { transform: translateX(0); }
            30% { transform: translateX(0); }
            33% { transform: translateX(-33.33%); }
            63% { transform: translateX(-33.33%); }
            66% { transform: translateX(-66.66%); }
            96% { transform: translateX(-66.66%); }
            100% { transform: translateX(0); }
        }

        footer { background: var(--negro); color: white; padding: 40px 10%; text-align: center; }
        .apsy-link { color: var(--verde); text-decoration: none; font-weight: bold; }
                /* Nuevo Hero Slider */
        .hero-slider {
            position: relative;
            height: 90vh;
            width: 100%;
            overflow: hidden;
            background: var(--negro);
        }

        .slider-hero {
            height: 100%;
            width: 100%;
        }

        .slide-item {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            z-index: 1;
        }

        .slide-item.active {
            opacity: 1;
            z-index: 2;
        }

        .hero-content {
            max-width: 900px;
            padding: 0 20px;
            color: white;
            transform: translateY(30px);
            transition: 0.8s all ease;
        }

        .slide-item.active .hero-content {
            transform: translateY(0);
        }

        .hero-tag {
            background: var(--verde);
            padding: 5px 15px;
            border-radius: 5px;
            font-size: 0.9rem;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 20px;
            display: inline-block;
        }

        .hero-content h1 {
            font-size: clamp(2.5rem, 8vw, 4.5rem);
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .hero-content p {
            font-size: clamp(1.1rem, 3vw, 1.5rem);
            margin-bottom: 30px;
            opacity: 0.9;
        }

        /* Botón transparente */
        .btn-outline {
            border: 2px solid white;
            color: white;
            padding: 18px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            transition: 0.3s;
            margin-left: 15px;
        }
        .btn-outline:hover { background: white; color: var(--negro); }

        /* Dots */
        .slider-dots {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            display: flex;
            gap: 10px;
        }
        .dot {
            width: 12px; height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            cursor: pointer;
        }
        .dot.active { background: var(--verde); width: 30px; border-radius: 10px; }

        @media (max-width: 768px) {
            .btn-outline { margin-left: 0; margin-top: 15px; display: block; }
            .hero-btns { display: flex; flex-direction: column; align-items: center; }
        }
        /* MEDIA QUERIES PARA RESPONSIVE */
        @media (max-width: 992px) {
            .menu-toggle { display: block; }
            nav {
                position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
                background: var(--blanco); transition: 0.4s; z-index: 999;
            }
            nav.active { left: 0; }
            nav ul { flex-direction: column; align-items: center; padding-top: 50px; }
            nav ul li { margin: 20px 0; }
            nav a { font-size: 1.5rem; }
            
            .hero h1 { font-size: 2.8rem; }
            .contacto-wrapper { grid-template-columns: 1fr; }
        }

        @media (max-width: 600px) {
            section {
                padding: 60px 20px !important; /* Menos padding lateral en móvil */
            }
            .col-image {
                margin-bottom: 40px; /* Espacio para que la etiqueta no choque con el texto de abajo */
            }
            .rec-box {
                padding: 25px !important; /* Cajas menos masivas en móvil */
            }
        }