:root {
    --brand-red: #ce121b;       
    --brand-red-hover: #b00f17; 
    --brand-green: #597722;
    --dark-bg: #1f1f1f;
    --dark-text: #1a1a1a;
    --light-gray-text: #cccccc;
    --white: #ffffff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Bahnschrift', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
}

/* ===================================================
   1. NAVBAR & NAVEGACIÓN
   =================================================== */
.navbar {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
    position: relative; /* <-- AGREGAR ESTA LÍNEA */
    z-index: 1000;      /* <-- AGREGAR ESTA LÍNEA */
}

.navbar-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 14px 6%; /* Un poco más de espacio arriba y abajo para que respire el logo */
    max-width: 1200px; /* Alineación perfecta con el resto de tus secciones */
    margin: 0 auto;    /* Mantiene centrado el bloque entero al cambiar zoom */
    width: 100%;
    box-sizing: border-box;
}

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

.logo-svg {
    width: 160px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px; /* Separación entre cada enlace del menú */
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap; /* Evita que los textos se rompan en dos renglones */
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.nav-btn-red {
    background-color: var(--brand-red);
    color: var(--white) !important;
    padding: 8px 18px; /* Ajuste interno balanceado para el botón HOME */
    border-radius: 8px;
    font-weight: 700 !important;
    transition: background-color 0.2s ease !important;
}

.nav-btn-red:hover {
    background-color: var(--brand-red-hover);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px; /* Separa las banderas un poco del menú de texto */
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.icon-lang {
    width: 26px; /* Tamaño nítido para las banderas */
    height: auto;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* BOTÓN HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* RESPONSIVO NAVBAR (MENÚ MÓVIL) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 12px 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
        border-top: 1px solid #f0f0f0;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }

    .lang-selector {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eaeaea;
        width: 80%;
        justify-content: center;
    }

    .hamburger.open span:nth-child(1),
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.open span:nth-child(2),
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3),
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* ===================================================
   BANNER HERO - SECCIÓN SECTORES
   =================================================== */
.hero-section {
    position: relative;
    width: 100%;

    /* Imagen de fondo */
    background-image: url("IMAGENES/A438BEE3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Altura */
    padding: 120px 6%;

    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    overflow: hidden;
}

/* CONTENEDOR INTERNO PARA CONTROLAR EL ZOOM */
.hero-content {
    position: relative;
    z-index: 2; /* Se mantiene arriba del fondo */
    width: 100%;
    max-width: 1250px; 
    margin: 0 auto;    
    color: var(--white);
    text-align: left;  
}

.hero-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ahora sí mide exactamente el tamaño del padding */
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ahora sí se congela con el contenedor */
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
    max-width: 750px; 
}

.hero-desc {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 750px; 
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-hero-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--brand-red);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-hero-outline {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
}

/* ===================================================
   SECCIÓN SECTORES - HERO BANNER PREMIUM OSCURO
   =================================================== */
.sectors-hero-banner {
    background-color: #1a1a1a;
    padding: 80px 6%;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.sectors-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    box-sizing: border-box;
}

.sectors-banner-text {
    flex: 1;
    max-width: 650px;
}

.sectors-banner-text h1 {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sectors-banner-text p {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 18px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.sectors-banner-graphic {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}

.sectors-giant-alpha {
    width: 280px;
    max-width: 100%;
    height: auto;
    filter: invert(19%) sepia(93%) saturate(6089%) hue-rotate(354%) brightness(91%) contrast(89%);
    opacity: 0.85;
    display: block;
}

/* BANNER HERO EN CELULARES */
@media (max-width: 768px) {
    .sectors-hero-banner{
        padding: 40px 20px 30px 20px;
    }
    
    .sectors-banner-container { /* RECUADRO GRIS */
        flex-direction: column;
        text-align: center;
        gap: 15px; 
        width: 100%;
    }

    .sectors-banner-text h1 { /* TEXTO PRINCIPAL */
        font-size: 28px;
        line-height: 1.4;
    }

    .sectors-banner-text p {      /* TEXTO INFORMATIVO */
        Font-size: 14.5px;
        line-height: 1.45;
        margin: 0 auto;
    }

    .sectors-banner-graphic { /* VIÑETA A */
        display: flex;
        justify-content: center;
        width: 100%;
        min-width: unset;
        margin-top: 10px;
    }

    .sectors-giant-alpha {
        width: 120px;
        max-width: 60%;
    }
}

/* ===================================================
   SECCIÓN SECTORES - CARRUSEL PRINCIPAL EN ÓRBITA CIRCULAR 3D
   =================================================== */
.sectors-carousel-section {
    padding: 35px 6%;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sectors-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.sectors-carousel-main-title {
    font-size: 32px; /* TAMAÑO TITULO*/
    font-weight: 700; /* GROSOR DE TEXTO*/
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 8px; /* ESPACIO ENTRE TITULO Y SUBTITULO*/
}

.sectors-carousel-title-line {
    width: 50px;
    height: 4px;
    background-color: #b00f17;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.sectors-carousel-subtitle {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    line-height: 1.5;
}

/* Escenario con perspectiva espacial */
.carousel-3d-scene {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px; /* Determina la profundidad física del 3D */
}

/* Eje rotatorio central */
.carousel-3d-track {
    position: relative;
    width: 230px;
    height: 170px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tarjetas en órbita constante */
.carousel-3d-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: transparent; 
    border: transparent;              
    border-radius: 20px;
    padding: 0;              
    box-shadow: transparent;     
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, z-index 0.4s step-end;
}

.c3d-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.c3d-img-box img {
    max-width: 90%; 
    max-height: 90%;
    object-fit: contain;
}

.carousel-3d-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #121212;
    margin: 15px 0 0 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botones de navegación manual */
.carousel-3d-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 18px;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    transition: a5 0.1s ease;
}

.carousel-3d-btn:hover {
    background-color: #c4122d;
    color: #ffffff;
    border-color: #c4122d;
}

.carousel-3d-btn.prev { left: 4%; }
.carousel-3d-btn.next { right: 4%; }

    /* BANNER HERO EN CELULARES */
@media (max-width: 100%) {
    .sectors-hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    .sectors-banner-container {
        flex-direction: column;
    }
    .sectors-banner-graphic {
        justify-content: center;
        margin-top: 20px;
    }
    .sectors-giant-alpha {
        max-width: 200px;
    }
    .carousel-3d-scene {
        height: 380px;
        perspective: none;
    }
    .carousel-3d-track {
        width: 200px;
        height: 265px;
        transform-style: flat;
    }
    .carousel-3d-btn.prev { left: 1%; }
    .carousel-3d-btn.next { right: 1%; }
}

/* ===================================================
   SECCIÓN DE CATÁLOGO / GRID DE INDUSTRIAS
   =================================================== */
.sectors-grid-section {
    padding: 60px 4% 100px 4%;
    background-color: #ffffff;
}

.sectors-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sectors-grid-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #121212;
    text-align: center;
    margin-bottom: 5px;
}

.sectors-grid-title-line {
    width: 50px;
    height: 4px;
    background-color: #b00f17;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.sectors-grid-subtitle {
    font-size: 15px;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
}

/* Distribución exacta en 3 columnas laterales fijos */
.sectors-industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

/* Tarjeta individual plana */
.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
}

/* ===================================================
   MINI CARRUSEL INTERNO DE CADA TARJETA
   =================================================== */
.mini-carousel {
    position: relative;
    width: 230px;
    height: 230px;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: visible; 
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 18px;
    overflow: hidden; 
}

/* Las imágenes se enciman y se muestran con transiciones suaves */
.mini-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mini-carousel-img.active {
    opacity: 1;
    visibility: visible;
}

/* Botones laterales mínimos integrados */
.mini-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 8px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* <-- Cambiado de 0 a 1 para que estén siempre visibles */
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mini-btn:hover {
    background: #c4122d;
    color: #ffffff;
}

/* Puedes eliminar o dejar esta línea si ya no necesitas que cambie la opacidad */
.mini-carousel:hover .mini-btn {
    opacity: 1; 
}

.mini-btn.m-prev { left: -9px; }
.mini-btn.m-next { right: -9px; }

/* Textos informativos inferiores */
.industry-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
    margin: 0 0 12px 0;
}

.industry-card p {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

/* Adaptación Responsiva */
@media (max-width: 992px) {
    .sectors-industry-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .sectors-industry-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles */
        gap: 40px;
    }
}

/* ===================================================
   BOTÓN ENLACE A PRODUCTOS
   =================================================== */
.industry-card.gallery-btn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinea en la parte superior igual que los carruseles */
    width: 100%;
}

.gallery-btn-card .btn-prod-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;  /* Misma anchura que la caja mini-carousel */
    height: 350px; /* Misma altura que la caja mini-carousel */
    margin-bottom: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-btn-card .btn-prod-svg {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

/* Efecto interactivo hover */
.gallery-btn-card .btn-prod-img-link:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 10px 12px #948e8e27);
}

/* ===================================================
   FOOTER - SECCIÓN FINAL
   =================================================== */
.footer {
    background-color: #1f1f1f; /* Negro mate institucional idéntico a la imagen */
    color: #cccccc;
    padding: 60px 6% 25px;
    font-family: 'Bahnschrift', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.3fr 1fr; /* Proporciones exactas de columnas */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-svg {
    width: 155px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1); /* Convierte el logotipo a blanco para fondo oscuro si es necesario */
}

.footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
}

.footer-col h4 {
    color: #ffffff; /* Verde olivo claro idéntico al de la imagen */
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Filas de contacto con tus iconos personalizados */
.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #b0b0b0;
}

.contact-item-row span {
    font-size: 13.5px;
    line-height: 1.5;
}

.contact-pdf-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    font-size: 12.5px;
    color: #777777;
}

/* LINK DE POLITICAS DE PRIVACIDAD) */
.privacy-link,
.privacy-link:visited {
    color: #cccccc !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

/* Al pasar el cursor por encima (Rojo de la marca) */
.privacy-link:hover,
.privacy-link:focus {
    color: var(--brand-red) !important;
    text-decoration: underline;
}

/* --- ICONOS DE REDES SOCIALES EN EL FOOTER --- */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

.whatsapp-btn-icon {
    width: 34px;
    height: 34px;
    display: block;
}

/* Ajustes Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}