/* =============================================
        hero section (imagen) 
   ============================================= */

.hero {
    /* Aquí pones la ruta de tu imagen */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/home/maquinaria-rio2.png');
    background-size: 120%; /* La imagen siempre llena el espacio sin deformarse */
    background-position: right; /* Centra la imagen */
    height: 60vh; /* Ocupa el 80% de la altura de la pantalla */
    display: flex;
    position: relative;
    isolation: isolate;
    justify-content: right;
    align-items: center;
    text-align: center;
    color: #f5f0e8;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: -1;
    animation: hero-respirar 14s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: hero-contenido-entrada .8s ease both;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.color-hero {
    /* color: #61C4FA; */
    color: #FFCB11;
}

.tt-green {
    color: #1DA851;
}

/* Estilo del botón (Similar al visto en la Sesión 04) */
.btn-main {
    background-color: transparent;
    color: white;
    border: 2px solid white /* #84b6f4 */;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-main:hover {
    /*  color: white;
     background-color: #2966C4;  */
    color: black;
    background-color: #FFCB11;
    border: 3px solid white;
}

.slogan {
    padding: 15px;
}

/* modo movil */

@media (max-width: 768px) {
    .hero {
        height: 60vh; /* Bajamos la altura en celular para que se vea mejor el contenido */
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Letra más pequeña para que no se corte */
    }
}


/* =============================================
        section STATS GLOB
   ============================================= */
.stats-static {
    background-color: whitesmoke /* #1a1a1a */; /* Fondo oscuro tipo industrial */
    padding: 1px 5%;
    color: black;
    border-top: 4px solid #003698; /* El verde que usamos en los botones */
}

.stat-box {
    transition: transform .3s ease, background-color .3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 203, 17, .12);
}

.stats-wrapper {
    display: flex;
    justify-content: space-around; /* Reparte el espacio entre los 4 */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Clave para que en móvil bajen */
}

.stat-box {
    text-align: center;
    padding: 15px;
    flex: 1;
    min-width: 200px; /* Evita que se aplasten mucho */
}

.stat-val {
    display: block;
    font-size: 2.3rem;
    font-weight: 800;
    color: black /* #229797 */;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    opacity: 0.8;
}

/* modo movil */
@media (max-width: 768px) {
    .stats-wrapper {
        flex-direction: column; /* Se apilan en columna en celular */
        gap: 30px;
    }

    .stat-box {
        border-bottom: 1px solid #333;
        width: 100%;
    }

    .stat-box:last-child {
        border-bottom: none;
    }
}

/* =============================================
      SECCIÓN VITRINA (PRODUCTOS / SERVICIOS)
============================================= */
.vitrina-bulcar {
    padding: 80px 5%;
    background-color: #f4f6f9; /* Fondo muy claro para contrastar */
    font-family: sans-serif;
}

/* --- CABECERA DE LA SECCIÓN --- */
.vitrina-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 2px solid #e1e5eb;
    padding-bottom: 20px;
}

.titulos-vitrina {
    max-width: 600px;
}

.badge-vitrina {
    display: inline-block;
    color: #003698;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.tt-pro-serv {
    font-size: 2.5rem;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.titulos-vitrina p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

.btn-ver-todo {
    color: #2966C4;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.btn-ver-todo:hover {
    color: #FFCB11; /* Tu amarillo Bulcar */
}

/* --- GRID DE TARJETAS --- */
.grid-vitrina {
    display: grid;
    /* Esto hace que sea responsivo automáticamente sin media queries complejas */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

/* --- TARJETA INDUSTRIAL INTERACTIVA --- */
.card-industrial {
    position: relative;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #000;
    transition: transform .4s ease, box-shadow .4s ease;
}

.card-industrial:hover,
.card-industrial:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(15, 32, 51, .2);
}

/* La imagen de fondo */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Filtro oscuro que se oscurece más al pasar el mouse */
.card-filtro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.4) 50%, rgba(15, 20, 25, 0.1) 100%);
    transition: background 0.4s ease;
}

/* Contenido de texto que se superpone */
.card-contenido {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.card-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-left: 3px solid #FFCB11;
    padding-left: 15px;
    transition: transform 0.4s ease;
}

.card-encabezado h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.card-encabezado i {
    color: white;
    font-size: 1.5rem;
}

/* La información que está oculta y aparece al pasar el mouse */
.card-oculto {
    max-height: 0; /* Oculto inicialmente */
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.lista-vitrina {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.lista-vitrina li {
    font-size: 0.95rem;
    color: #d1d5db;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-vitrina i {
    color: #FFCB11;
    font-size: 0.8rem;
}

.btn-vitrina {
    display: block;
    text-align: center;
    background-color: #003698;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-vitrina:hover {
    background-color: #FFCB11;
    color: #111;
}

/* --- EFECTOS HOVER (La magia de la interacción) --- */
.card-industrial:hover .card-bg {
    transform: scale(1.1); /* La foto hace zoom in lento */
}

.card-industrial:hover .card-filtro {
    background: linear-gradient(to top, rgba(15, 20, 25, 0.98) 0%, rgba(15, 20, 25, 0.8) 100%);
}

.card-industrial:hover .card-encabezado {
    transform: translateY(-10px); /* El título sube un poco */
}

.card-industrial:hover .card-oculto {
    max-height: 250px; /* Se despliega la lista y el botón */
    opacity: 1;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .vitrina-cabecera {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tt-pro-serv {
        font-size: 2rem;
    }

    /* En móvil no hay "hover", así que mostramos la info directamente */
    .card-oculto {
        max-height: 250px;
        opacity: 1;
    }

    .card-industrial {
        height: auto;
        min-height: 400px;
    }

    .card-filtro {
        background: linear-gradient(to top, rgba(15, 20, 25, 0.98) 0%, rgba(15, 20, 25, 0.6) 100%);
    }
}

/* =============================================
       Photos enterprise
   ============================================= */
/* --- SLIDER FULL WIDTH (UI/UX Expert) --- */

.slider-fw-section {
    width: 100vw; /* 100% del ancho de la ventana del navegador */
    margin-left: calc(-50vw + 50%); /* Truco avanzado para romper los márgenes de contenedores padres */
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slider-fw-container {
    width: 100%;
    position: relative;
    border-top: 5px solid #A7C7E7;
}

.slider-fw-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Transición mucho más profesional y fluida */
}

.slide-fw {
    min-width: 100vw; /* Cada foto ocupa toda la pantalla a lo ancho */
    height: clamp(420px, 64vw, 700px); /* Altura adaptable */
    position: relative;
}

.slide-fw img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las fotos se aplasten */
}

/* El Gradiente Oscuro para legibilidad perfecta (Principio de Accesibilidad UX) */
.slide-fw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end; /* Manda el texto hacia abajo */
    justify-content: center;
    padding-bottom: 80px;
}

.slide-fw-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.slide-fw-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-fw-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Botones minimalistas */
.fw-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%; /* Botones redondos se ven más modernos */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Efecto cristal moderno */
}

.fw-btn:hover {
    background: #229797; /* Tu color de marca */
    border-color: #229797;
    transform: translateY(-50%) scale(1.1); /* Crece un poco al pasar el mouse */
}

.prev-fw {
    left: 30px;
}

.next-fw {
    right: 30px;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .slide-fw {
        height: 400px;
    }

    .slide-fw-content h2 {
        font-size: 2rem;
    }

    .fw-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .prev-fw {
        left: 10px;
    }

    .next-fw {
        right: 10px;
    }
}


/* =============================================
        carrusel Logos Clientes (empresas)
   ============================================= */

/* CARRUSEL DE LOGOS CLIENTES */
.seccion-logos {
    padding: 60px 0;
    background-color: white; /* Tu azul bajo de fondo */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;

}

/* Animaciones activadas progresivamente desde script.js */
.js-animaciones .reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.js-animaciones .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hero-respirar {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@keyframes hero-contenido-entrada {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.titulo-confianza {
    color: #003698; /* El mismo azul bajo de tus otros textos */
    font-size: 24px;
    font-weight: 400; /* Estilo elegante, no tan grueso */
    text-transform: uppercase; /* Opcional: le da un toque más corporativo */
    letter-spacing: 2px; /* Un poco de aire entre letras */
    position: relative;
    transition: font-weight 0.3s ease;
}


.carousel-container {
    width: 90%;
    max-width: 1300px; /* <--- AQUÍ limitas el ancho para que no sea toda la pantalla */
    overflow: hidden; /* Esconde los logos que van saliendo */
    position: relative;
    background: white; /* Opcional: un fondo blanco pastel para los logos */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(167, 199, 231, 0.2);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 70px; /* Espacio entre logos */
    width: max-content;
    /* Si vas a usar animación automática, agrégala aquí */
    animation: scroll 15s linear infinite; /* velocidad del carrusel */
}

.logo-item img {
    height: 110px; /* Tamaño controlado de los logos */
    width: auto;
    /*  filter: grayscale(100%); /* Opcional: logos en gris
     opacity: 0.6; */
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%); /* A color al pasar el mouse */
    opacity: 1;
    transform: scale(1.4);

}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Animación simple de desplazamiento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}




.hero {
    min-height: 650px;
    height: auto;
    justify-content: flex-start;
    text-align: left;
}

.hero-content {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.hero-content h1 {
    max-width: 920px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.08;
    text-wrap: balance;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-eyebrow i, .hero-benefits i {
    color: #ffcb11;
}

.hero .slogan {
    max-width: 720px;
    margin: 0;
    padding: 0;
    font-size: 1.18rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero .btn-main {
    display: inline-block;
    padding: 14px 24px;
}

.hero .btn-main-primary {
    color: #122033;
    background: #ffcb11;
    border-color: #ffcb11;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.hero-benefits li {
    font-weight: 700;
}

.hero-benefits i {
    margin-right: 7px;
}

@media (max-width: 768px) {

    .hero {
        min-height: 620px;
        height: auto;
        background-position: 60% center;
        background-size: cover;
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-eyebrow {
        font-size: .78rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-main {
        text-align: center;
        width: 100%;
    }

    .hero-benefits {
        flex-direction: column;
        gap: 10px;
    }

    .vitrina-bulcar,
    .seccion-logos {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .vitrina-cabecera {
        margin-bottom: 32px;
    }

    .card-industrial {
        min-height: 360px;
    }

    .card-contenido {
        padding: 24px;
    }

    .slide-fw {
        height: clamp(420px, 115vw, 560px);
    }

    .slide-fw-overlay {
        padding: 0 16px 56px;
    }

    .slide-fw-content h2 {
        line-height: 1.15;
    }

    .carousel-container {
        width: 100%;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
