
/* =====================================================
   VARIABLES CORPORATIVAS
===================================================== */
:root {
    --torca-azul: #003366;
    --torca-rojo: #E31E24;
    --torca-oscuro: #0a0c10;
}

/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    color: #1e293b;
}


html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =====================================================
   NAVBAR ORIGINAL 
===================================================== */




.navbar-custom {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}


.nav-link {
   color: #334155 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0 10px !important;
    transition: 0.3s;
}

/* Abrir dropdown al pasar el mouse */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
/* Opcional: pequeña animación */

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    --bs-dropdown-link-active-bg: #eb272e !important;
}

.dropdown-item {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 4px;
}
.btn-contacto-final {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    /* Sombras sutiles para que el texto resalte */
    text-shadow: 0px 1px 2px rgba(0,0,0,0.1);
}


.logo-main {
    height: 100px; /* Tamaño estable original */
    width: auto;
}


/* Caja de texto en dos líneas para mejor lectura */
.text-content {
    display: flex;
    flex-direction: column;
}

/* Línea vertical divisoria elegante */
.logo-text .divider {
    width: 2px;
    height: 35px;
    background-color: var(--torca-azul);
    opacity: 0.7;
    margin-right: 7px;
}

.divider {
    height: 35px; width: 10px;
    background-color: #dee2e6;
    margin: 0 20px;
}

.line-1 { font-size: 0.75rem; font-weight: 800; color: #666; letter-spacing: 1px; }
.line-2 { font-size: 0.85rem; font-weight: 900; color: #001529; }

/* Botón de Contacto (Estilo Sólido de Ayer) */
.btn-contacto-final {
    background-color: #E31E24;
    color: white !important;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-contacto-final:hover {
    background-color: #001529;
    transform: translateY(-2px);
}






/* --- MEJORAS DE HOY (SÓLO MÓVIL) --- */
@media (max-width: 991.98px) {
    /* Logo Centrado y un poco más grande en móvil */
    .navbar-brand {
        position: absolute;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

   
    /* 2. Título TORCAVENT en el menú móvil */
    .offcanvas-title {
        font-family: 'Inter', sans-serif; /* O la que estés usando */
        font-weight: 900 !important;
        letter-spacing: -1px; /* Letras juntas para potencia visual */
        font-size: 1.6rem;
    }

    /* 3. Estilo de los Enlaces (Las Letras) */
    .nav-link-mobile {
         display: flex !important;
    align-items: center !important; /* Centrado vertical estricto del texto */
    padding: 10px 15px !important;  /* Relleno uniforme arriba, abajo y a los lados */
    border-radius: 6px;             /* Suaviza las esquinas del fondo al activarse */
    transition: background-color 0.2s ease, color 0.2s ease;
       
        /* TIPOGRAFÍA */
        color: var(--torca-oscuro) !important;
        font-weight: 700 !important; /* ...más gruesa */
        text-transform: uppercase; /* Todo en mayúsculas para look industrial */
        
        
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 0px solid rgba(255,255,255,0.05); /* Línea divisoria casi invisible */
    }
    /* 4. Efecto al tocar la letra */
    .nav-link-mobile:active, 
    .nav-link-mobile:focus {
        background-color: rgba(227, 30, 36, 0.1);
        color: #E31E24 !important; /* La letra cambia a Rojo Torca al tocar */
    }

    
    .logo-main {
        height: 56px; /* logo mas grande */
    }

    .logo-text { display: none !important; }

    /* Menú lateral (Offcanvas) que no cubre todo */
    .custom-offcanvas {
        width: 75% !important; /* Cubre el 75% */
        border-radius: 0 20px 20px 0;
    }
    
    /* Botón de contacto alineado como los otros en móvil */
    .btn-contacto-final {
        width: 50%;
        text-align: center;
    }
}
















/* =====================================================
   HERO
===================================================== */
/* ================================================================
   HERO DINÁMICO TORCAVENT - VERSIÓN FINAL RESPONSIVA
   ================================================================ */

.hero-video-effect {
    height: 80vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    background: #000; /* Fondo de seguridad */
}

/* --- MOTOR DE VIDEO (IMAGEN ANIMADA) --- */
.video-emulator {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.moving-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
    /* VELOCIDAD AUMENTADA A 8 SEGUNDOS */
    animation: zoomVideo 5s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes zoomVideo {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1%); }
}

/* Capas de texturizado técnico */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,21,41,0.9) 0%, transparent 100%);
    z-index: 2;
}

.scanline-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 3;
    pointer-events: none;
}

/* --- CONTENIDO TEXTUAL --- */
.hero-content-box {
    z-index: 10;
    position: relative;
    width: 100%;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
}

.live-dot {
    width: 10px; height: 10px;
    background: #E31E24;
    border-radius: 50%;
    box-shadow: 0 0 12px #E31E24;
    /* PULSO ACELERADO */
    animation: blinkDot 0.6s infinite;
}

@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero-title-bold {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.text-stroke-white {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

.text-danger-torca {
    color: var(--torca-rojo);
   
}

.hero-description-light {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* --- BOTONES RESPONSIVOS (SOLUCIÓN FINAL) --- */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si no caben */
    gap: 15px;       /* Espacio exacto entre botones */
    margin-top: 30px;
    justify-content: flex-start; /* Alineados a la izquierda en PC */
}

.btn-torca-solid-v2, .btn-torca-glass {
    padding: 14px 28px; /* Tamaño más equilibrado */
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Evita que el texto se amontone */
    width: auto;         /* ¡IMPORTANTE! El botón solo mide lo que mide su texto */
    min-width: 180px;    /* Un ancho mínimo para que se vean uniformes */
}

.btn-torca-solid-v2 {
    background: #E31E24;
    color: white !important;
    border: 2px solid #E31E24;
}

.btn-torca-solid-v2:hover {
    background: transparent;
    border-color: white;
    transform: translateY(-5px);
}

.btn-torca-glass {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-torca-glass:hover {
    background: white;
    color: #001529 !important;
    border-color: white;
    transform: translateY(-5px);
}

/* --- MEDIA QUERIES (CELULARES Y TABLETS) --- */

@media (max-width: 991px) {
    .hero-video-effect { height: auto; padding: 120px 0 80px 0; }
}

@media (max-width: 767px) {
    .hero-cta-group {
        justify-content: center; /* Se centran en el celular */
    }
    
    .btn-torca-solid-v2, .btn-torca-glass {
        width: auto;        /* Siguen sin ser gigantes */
        min-width: 220px;   /* Un poco más anchos en móvil para facilitar el clic */
        max-width: 280px;   /* Pero nunca ocupan toda la pantalla */
    }
}

@media (max-width: 480px) {
    .hero-title-bold { font-size: 2rem; }
    .hero-description-light { font-size: 1rem; }
}


















/* =====================================================
   CALCULADORAS
===================================================== */
/* --- ESTILOS ACCESO CALCULADORAS --- */


/* --- ESTILOS DE CABECERA --- */
.line-red-short {
    width: 40px; height: 3px; background: #E31E24;
}

.text-justify-center {
    text-align: justify;
    text-align-last: center; /* Justificado pero con la última línea al centro */
    max-width: 800px;
    margin: 0 auto;
}

/* --- TARJETAS DE COLORES --- */
.calc-card-premium {
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Colores específicos */
.tech-blue { background: linear-gradient(135deg, #001529 0%, #003366 100%); }
.tech-red  { background: linear-gradient(135deg, #E31E24 0%, #b3161b 100%); }
.tech-dark { background: linear-gradient(135deg, #2d3436 0%, #000000 100%); }

.calc-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.calc-icon-wrapper {
    width: 55px; height: 55px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.calc-tag {
    font-size: 0.65rem; font-weight: 800;
    padding: 6px 14px; background: rgba(255,255,255,0.2);
    border-radius: 50px; color: #fff; text-transform: uppercase;
}

.calc-body h4 { font-weight: 800; margin-top: 20px; font-size: 1.25rem; }

.calc-features-white {
    list-style: none; padding: 0; margin: 25px 0;
}
.calc-features-white li {
    font-size: 0.9rem; margin-bottom: 10px; color: rgba(255,255,255,0.9);
    display: flex; align-items: center;
}
.calc-features-white li i { margin-right: 12px; font-size: 1rem; }

/* Botón Blanco para fondos de color */
.btn-main-calc-white {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; color: #001529;
    padding: 14px 22px; border-radius: 12px;
    text-decoration: none; font-weight: 800; font-size: 0.85rem;
    transition: 0.3s;
}

.btn-main-calc-white:hover {
    background: #001529; color: #fff;
}

#calculadoras-quick {
    padding-top: 1px;    /* Espacio interno arriba */
    padding-bottom: 3px; /* Espacio interno abajo */
    margin-top: 0;        /* Elimina cualquier espacio exterior arriba */
}


/* --- RESPONSIVE CELULARES --- */
@media (max-width: 768px) {
    .text-justify-center {
        text-align: center; /* En móvil mejor centrado total */
        font-size: 1rem;
    }
    .calc-card-premium {
        padding: 25px;
    }
    .display-4 {
        font-size: 2.2rem;
        font-weight: 900;
    }
}






/* =====================================================
   FOOTER ORIGINAL RESTAURADO
===================================================== */
.footer-premium {
    background: radial-gradient(circle at top right, var(--torca-oscuro), var(--torca-azul));
    color: #ffffff;
    padding-top: 80px;
}

.footer-brand {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--torca-rojo);
    margin-bottom: 25px;
}

/* Redes sociales originales */
.social-container { display: flex; gap: 15px; margin-top: 25px; }

.social-box {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

.social-box.fb:hover { background: #1877F2; transform: translateY(-8px) rotate(8deg); }
.social-box.ln:hover { background: #0077B5; transform: translateY(-8px) rotate(-8deg); }
.social-box.wa:hover { background: #25D366; transform: translateY(-8px); }

.bottom-bar {
    margin-top: 80px;
    padding: 30px 0;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.dev-credit {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--torca-rojo);
    transition: 0.3s;
}

.dev-credit:hover {
    color: var(--torca-rojo);
    background: rgba(227,30,36,0.1);
}


/* --- BOTÓN VOLVER ARRIBA --- */

/* --- BOTÓN VOLVER ARRIBA (TUERCA GIRATORIA) --- */



.btn-back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 55px; height: 55px;
   background-color: var(--torca-azul);
    color: white; border: none; border-radius: 10px;
    font-size: 35px; z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: 0.3s ease;
}
.btn-back-to-top.show { opacity: 1; visibility: visible; }


/* Animación constante muy lenta para que parezca maquinaria viva */
.btn-back-to-top i {
    display: inline-block;
    animation: rotacion-lenta 2s linear infinite;
}

@keyframes rotacion-lenta {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efecto al pasar el mouse: La tuerca acelera y cambia a rojo */
.btn-back-to-top:hover {
    background-color: var(--torca-rojo);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.btn-back-to-top:hover i {
    animation: rotacion-rapida 1.5s linear infinite;
}

@keyframes rotacion-rapida {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Aparecer suave */
.btn-back-to-top.show {
    display: flex;
    animation: aparecer 0.4s ease forwards;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px) scale(0); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}





/* --- CONFIGURACIÓN DE LA SECCIÓN --- */
/* --- ESTILOS DE LA SECCIÓN INDUSTRIAL --- */
/* --- TARJETAS CON COLOR --- */
.card-premium-color {
    padding: 3rem 2rem;
    border-radius: 20px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Colores específicos por división */
.card-energy {
   background: linear-gradient(135deg, #001529 0%, #003366 100%);
    color: white;
}

.card-climate {
      background: linear-gradient(135deg, #001529 0%, #003366 100%);
    color: white;
}

.card-support {
    background: linear-gradient(135deg, #001529 0%, #003366 100%);
    color: white;
}

/* Iconos */
.card-icon-white {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: inherit;
}

/* Hover Effects */
.card-premium-color:hover {
    transform: translateY(-15px) scale(1.03);
}

.card-energy:hover { background: #003366; color: white; }
.card-:hover { background:  #003366; color: white; }
.card-support:hover { background:  #003366; color: white; }

/* Textos dentro de tarjetas */
.card-premium-color h3 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-premium-color p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    flex-grow: 1;
}

/* Botones internos */
.btn-card-more, .btn-card-more-white {
    margin-top: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-card-more-white { color: white; }

.card-premium-color:hover .btn-card-more,
.card-premium-color:hover .btn-card-more-white {
    gap: 15px;
}



/* --- ESTILOS ESPECÍFICOS PÁGINA NOSOTROS --- */
/* --- ESTILOS GENERALES NOSOTROS --- */
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }

/* Identidad (Misión/Visión) */
/* --- TARJETAS DE IDENTIDAD: LOOK INDUSTRIAL --- */
.identity-card {
    padding: 40px;
    border-radius: 4px; /* Menos redondeado = Más técnico/industrial */
    background: #f8fafc; /* Gris de fondo muy limpio */
    border: 1px solid #e2e8f0;
    border-top: 4px solid #cbd5e1; /* Borde superior grueso tipo panel de control */
    transition: all 0.3s ease;
    height: 100%;
}

/* Efecto al pasar el mouse: El borde superior se activa con el rojo Torca */
.identity-card:hover {
    background: #ffffff;
    border-top-color: #E31E24;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.05);
    transform: translateY(-5px);
}

.identity-card h3 { 
    font-weight: 800; 
    font-size: 1.15rem;
    margin-bottom: 1.2rem; 
    color: #003366; /* Azul Torca para títulos */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.identity-icon { 
    font-size: 2.2rem; 
    color: #64748b; /* Gris industrial por defecto */
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.identity-card:hover .identity-icon {
    color: #E31E24; /* El icono cobra vida al hacer hover */
}

/* Tarjeta Central (Diferenciada pero no oscura) */
.featured-industrial { 
    background: #f1f5f9; 
    border-color: #cbd5e1;
    border-top-color: #003366; /* Resalta con el azul corporativo */
}

.featured-industrial h3 { color: #003366; }
.featured-industrial .identity-icon { color: #003366; }

/* Lista de Valores Técnica */
.values-list { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.values-list li { 
    margin-bottom: 12px; 
    padding: 8px 12px 8px 30px; 
    position: relative; 
    font-size: 0.9rem; 
    color: #334155;
    background: rgba(255,255,255,0.5); /* Sutil fondo para cada item */
    border-radius: 4px;
}

/* Indicador tipo "puntero de medición" */
.values-list li::before { 
    content: ''; 
    position: absolute; 
    left: 12px; 
    top: 50%; 
    width: 8px; 
    height: 2px; 
    background: #E31E24; 
    transform: translateY(-50%);
}

.values-list li strong {
    color: #003366;
    font-weight: 700;
}

/* Estructura Legal */
.line-red { width: 40px; height: 3px; background: #E31E24; }
.legal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #001021;
    font-weight: 600;
}
.legal-item i { color: #E31E24; font-size: 1.2rem; }

.cert-box {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}
.cert-box i { display: block; font-size: 1.5rem; color: #E31E24; margin-bottom: 5px; }
.cert-box:hover { background: #001021; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .identity-card { padding: 30px; }
    .display-3 { font-size: 2.5rem; }
}


/* Ajuste de tipografía para títulos de alto impacto */
.fw-900 { font-weight: 900; }
.tracking-wider { letter-spacing: 2px; }

/* Animación para el carrusel de logos (si no la tienes) */
.client-logo-slider {
   
    background-color: #fcfcfc;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.client-logo-track {
    display: flex;
    width: calc(250px * 14); /* Ajustar según número de logos */
    animation: scrollLogos 40s linear infinite;
}

.logo-item {
    width: 200px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    filter: grayscale(0%); /* Logos en gris para look más elegante */
    opacity: 1;
    transition: 0.3s;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}


/* Ajuste para la imagen al lado del texto */
.nosotros-page .img-fluid.rounded-4 {
    max-height: 450px; /* Evita que crezca demasiado hacia abajo */
    width: 100%;
    object-fit: cover; /* Mantiene la proporción sin deformar */
    display: block;
    margin: 0 auto;
}

/* Ajuste del cuadro de "10+ años" para que no tape todo */
.nosotros-page .bg-danger.p-4 {
    padding: 1.5rem !important;
    transform: scale(0.9); /* Lo hace un poco más pequeño */
}






/* --- ESTILOS ENERGÍA CRÍTICA --- */

/* Estilos Específicos Energía Crítica */


/* --- TARJETAS DE INGENIERÍA CON MÁSCARA --- */
/* Párrafos descriptivos */
.engineering-card p.small {
    font-size: 1.0rem !important; /* Aumentado de 0.85rem */
    line-height: 1.6;
    color: #353d4b !important; /* Gris un poco más oscuro para contraste */
}

.engineering-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.engineering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-color: #E31E24;
}

/* Manejo de la Imagen y su Recorte */
.image-mask {
    width: 200px;
    height: 200px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid transparent; /* Contorno dinámico */
}

.engineering-card:hover .image-mask {
    border-color: #E31E24; /* El contorno se activa al hover */
    transform: rotate(2deg);
}

.image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.engineering-card:hover .image-mask img {
    transform: scale(1.1);
}

/* FORMAS GEOMÉTRICAS INDUSTRIALES (CLIP-PATH) */
.shape-octagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.shape-hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.shape-circle {
    clip-path: circle(50% at 50% 50%);
}

/* Tipografía y detalles */
.ultra-small {
    font-size: 0.95rem;
    line-height: 1.4;
}

.tracking-wider { letter-spacing: 1.5px; }
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }


/* Estilo para el botón desplegable */
[data-bs-toggle="collapse"] {
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

[data-bs-toggle="collapse"][aria-expanded="true"] {
    background-color: #dc3545;
    color: white;
}

/* Estilo de la lista interna */
.card-body ul li i {
    font-size: 1.1rem;
}

.card-body {
    border-left: 4px solid #dc3545 !important; /* Acento rojo lateral */
}





/* Galería de Proyectos */
.project-item {
    overflow: hidden;
    border-radius: 8px;
}

.project-item .img-wrapper {
    height: 220px;
    overflow: hidden;
}

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

.project-item:hover img {
    transform: scale(1.1);
}

.line-red {
    width: 60px;
    height: 4px;
    background: #E31E24;
}






/* --- ESTILOS CLIMATIZACIÓN --- */
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }

.line-red {
    width: 50px;
    height: 4px;
    background: #E31E24;
}

/* Acordeón Personalizado */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #E31E24;
    box-shadow: none;
}

/* Galería de Proyectos */
.project-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.project-item .img-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Contenedor principal de la imagen */
.fixed-image-container {
    width: 95%;
    height: 70%; /* Tu altura fija */
    display: flex; /* Activamos Flexbox */
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center; /* Centra la imagen verticalmente */
    background-color: #f8f9fa; /* Color de fondo para las áreas que la imagen no cubra */
    overflow: hidden;
    position: relative; /* Evita que se encime con otros elementos */
}

.img-full-view {
    max-width: 100%; /* No permite que sea más ancha que el cuadro */
    max-height: 100%; /* No permite que sea más alta que los 450px */
    width: auto; /* Mantiene la proporción original */
    height: auto; /* Mantiene la proporción original */
    object-fit: contain; /* LA CLAVE: Ajusta la imagen completa al contenedor */
}

/* Reglas de estabilidad para la imagen */
.img-stable {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* LLena el espacio sin deformarse */
    object-position: center; /* Centra la imagen siempre */
    display: block;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .fixed-image-container {
        height: 300px; /* En móviles la hacemos un poco más pequeña */
    }
}




/* --- ESTILOS SERVICIO TÉCNICO --- */
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }

/* Botón de Emergencia */
.emergency-box {
    background: rgba(227, 30, 36, 0.15);
    border: 1px solid rgba(227, 30, 36, 0.3);
    backdrop-filter: blur(10px);
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: #25D366; /* Color WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Animación de Pulso para el icono de emergencia */
.pulse-red {
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Plan Cards */
.plan-card {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card ul li {
    margin-bottom: 8px;
}


/* --- ESTILOS CARRUSEL DE LOGOS INFINITO --- */
/* --- CABECERA ESTILO ANTERIOR --- */
.line-red-short {
    width: 30px;
    height: 3px;
    background: var(--torca-rojo);
}

/* --- CARRUSEL PREMIUM INFINITO --- */
.client-logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    /* Efecto de desvanecimiento en los bordes */
}

.client-logo-slider::before,
.client-logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px; /* Tamaño del desvanecimiento */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.client-logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.client-logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.client-logo-track {
    display: flex;
    /* Calculado: (Ancho logo 300px * total de items (originales+copias)) */
    width: calc(300px * 24); 
    animation: scrollLogos 40s linear infinite;
}

.logo-item {
    width: 300px; /* Espacio generoso para cada logo */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 45px;
    flex-shrink: 0;
}

.logo-item img {
    max-width: 100%;
    max-height: 150px; /* Tamaño ideal para visibilidad */
    object-fit: contain;
   
    opacity: 1;
    transition: all 0.4s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15); /* Pop visual */
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 12)); } /* Salta justo a la mitad */
}

/* Pausar al pasar el mouse */
.client-logo-slider:hover .client-logo-track {
    animation-play-state: paused;
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .client-logo-slider::before, .client-logo-slider::after { width: 50px; }
    .logo-item { width: 200px; }
    @keyframes scrollLogos {
        100% { transform: translateX(calc(-200px * 12)); }
    }
}




/* CALCULADORAS */


/* FUENTES Y PESOS */
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }
.tracking-wider { letter-spacing: 2px; }

/* TABS DE INGENIERÍA */
/* --- AJUSTES PARA CENTRADO PROFESIONAL --- */
.engineering-tabs-container {
    width: 100%;
}

.custom-eng-tabs {
    background: #ffffff;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    display: inline-flex; /* Para que el fondo solo ocupe el espacio necesario */
    gap: 15px;
}

.custom-eng-tabs .nav-link {
    min-width: 220px; /* Asegura que todas tengan el mismo ancho */
    padding: 25px 20px;
    border-radius: 20px !important;
    display: flex;
    justify-content: center;
}

/* Alineación vertical de icono y texto */
.tab-content-wrapper {
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo */
    align-items: center;    /* Centrado horizontal */
    justify-content: center;
}

.tab-content-wrapper i {
    font-size: 2.5rem; /* Un poco más grande para el impacto visual */
    margin-bottom: 10px;
}

.tab-text {
    text-align: center; /* Centra el título y subtítulo */
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .custom-eng-tabs {
        flex-direction: column;
        width: 100%;
    }
    .custom-eng-tabs .nav-link {
        width: 100%;
        min-width: unset;
    }
}

/* ESTADO ACTIVO */
.custom-eng-tabs .nav-link.active {
    background: #001529 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 21, 41, 0.2);
}
.custom-eng-tabs .nav-link.active i { color: #e90911; transform: scale(1.1); }

/* RESULTADOS */
.result-display {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .custom-eng-tabs { flex-direction: column; }
}



/* Definimos la animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Esta clase se activará desde JS */
.seccion-activa {
    display: block !important; /* Quitamos el d-none */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 5px solid #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1) !important; /* Sombra rojiza sutil */
}

/* Efecto extra: Un pulso suave al borde para llamar la atención */
.border-danger {
    position: relative;
}



/* --- ESTILOS DE PRODUCTOS --- */
/* --- HERO TITULO --- */
.fw-900 { font-weight: 900; }

.products-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
}

/* --- ESTABILIDAD DE IMÁGENES --- */
.product-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img-frame {
    width: 100%;
    height: 220px; /* Altura obligatoria para que todas sean iguales */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.product-img-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta sin recortar el producto */
}

/* Alineación de botones al fondo */
.card-body {
    display: flex;
    flex-direction: column;
}

.flex-grow-1 {
    flex-grow: 1; /* Esto empuja el botón de PDF hacia abajo */
}


/* --- ESTILOS CONTACTO --- */
/* --- ESTILOS DE FORMULARIO PREMIUM --- */
/* --- ESTILOS DE COLOR Y TARJETAS --- */
.info-card-colored {
    background: linear-gradient(135deg, #001529 0%, #002347 100%);
    border-radius: 24px;
    /* Borde rojo con sombra interna para dar grosor visual */
    border-left: 8px solid #E31E24;
    padding: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.info-card-colored::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.info-card-colored h4 {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.icon-box-light {
    width: 40px;
    height: 40px;
    background: rgba(227, 30, 36, 0.15); /* Fondo rojizo suave */
    color: #E31E24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Estilo para los textos de dirección */
.contact-item-light h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item-light p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.emergency-card-vibrant {
   background: #001529; /* El Azul Profundo de Torcavent */
    border-radius: 24px;
    border-left: 6px solid #25D366; /* El acento de WhatsApp en el borde */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.emergency-card-vibrant:hover {
    transform: translateY(-5px);
}

.btn-whatsapp-vibrant {
   background-color: #25D366;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-whatsapp-vibrant:hover {
    background-color: #1ea851;
    color: white !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* --- FORMULARIO TECH (BORDE VIBRANTE) --- */
.form-tech-container {
    background: #fff;
    border-radius: 30px;
    border-top: 6px solid #E31E24;
}

.form-input-tech {
    width: 100%;
    background-color: #f1f3f5;
    border: 2px solid #f1f3f5;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.form-input-tech:focus {
    background-color: #fff;
    border-color: #E31E24;
    outline: none;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.1);
}

.btn-submit-vibrant {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #001529 0%, #002b52 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    transition: 0.4s;
}

.btn-submit-vibrant:hover {
    background: var(--torca-azul);
    transform: scale(1.02);
}

/* --- MAPA TIPO DASHBOARD --- */
.map-container-premium {
    background: #1a1a1a;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #333;
}

.map-nav-bar {
    height: 50px;
    background: #252525;
}

.map-iframe-premium {
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(0.5) contrast(1.2); /* Look técnico */
}

.map-status-dot {
    height: 10px; width: 10px; background: #2ecc71; border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

.pulse-white {
    width: 10px; height: 10px; background: #2fbd04; border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}







