/* =====================================================
   VARIABLES GLOBALES
===================================================== */
:root {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333;
}

/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    padding-top: 90px; /* Navbar fixed */
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--dark);
}

a {
    text-decoration: none;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-logo {
    height: 48px;
    width: auto;
}

.brand-text {
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* =====================================================
   HERO HOME
===================================================== */
.hero-section {
    background: linear-gradient(135deg, #0d1b2a, #1e2a38);
    color: #ffffff;
    padding: 100px 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f8f9fa;
}

.hero-text {
    font-size: 1.1rem;
    margin-top: 20px;
    opacity: 0.95;
}

/* HERO – CARRUSEL */
.hero-carousel-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 420px;
}

.hero-carousel-img {
    height: 260px;
    object-fit: contain;
}

/* =====================================================
   SECCIONES
===================================================== */
.section-light {
    background-color: #f8f9fb;
}

.section-gray {
    background-color: #eef1f4;
}

.section-dark {
    background: linear-gradient(135deg, #1e2a38, #0d1b2a);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: #ffffff;
}

.section-padding {
    padding: 80px 0;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 20px auto 40px auto;
    border-radius: 5px;
}

/* =====================================================
   CARDS
===================================================== */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card-body {
    display: flex;
    flex-direction: column;
}

/* =====================================================
   BOTONES
===================================================== */
.btn {
    border-radius: 30px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* =====================================================
   FORMULARIOS
===================================================== */
.form-control {
    border-radius: 8px;
    padding: 10px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
}

/* =====================================================
   IMÁGENES – CONTROL PROFESIONAL
===================================================== */
.img-section {
    max-width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.img-section-sm {
    height: 250px;
}

/* CONTENEDOR DE IMÁGENES (NOSOTROS / SERVICIOS) */
.image-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box img {
    max-width: 100%;
    height: 260px;
    object-fit: contain;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background-color: var(--dark);
    color: #ffffff;
    margin-top: 80px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-carousel-img {
        height: 200px;
    }

    .img-section,
    .img-section-sm {
        height: 220px;
        margin-top: 20px;
    }

    .image-box img {
        height: 200px;
    }
}
/* =====================================================
   HERO – CARRUSEL PROFESIONAL
===================================================== */

/* Caja general del carrusel */
.hero-carousel-box {
    background: linear-gradient(
        135deg,
        #ffffff,
        #f1f4f8
    );
    padding: 35px;
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255,255,255,0.6);
    max-width: 460px;
    margin: auto;
    position: relative;
}
/* Marco decorativo */
.hero-carousel-box::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px dashed rgba(13,110,253,0.25);
    pointer-events: none;
}

/* Área fija del carrusel */
.hero-carousel-inner {
    height: 300px;            /* TAMAÑO UNIFICADO */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imágenes del carrusel */
.hero-carousel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;      /* NO se deforman */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Animación suave */
.carousel-item.active .hero-carousel-img {
    transform: scale(1.03);
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.8;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel-inner {
        height: 220px;
    }

    .hero-carousel-box {
        padding: 25px;
    }
}
/* SIDEBAR ADMIN */
.admin-sidebar {
    width: 240px;
    top: 0;
    left: 0;
    z-index: 1030;
}

.admin-sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}
/* =====================
   IDENTIDAD INDUSTRIAL
===================== */

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b1b2e;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* HERO */

/* =========================
   HERO – PRODUCTOS / HOME
========================= */

.home-hero {
    position: relative;
    background: linear-gradient(
        180deg,
        #0b1b2e 0%,
        #102a43 100%
    );
    color: #ffffff;
    padding: 140px 0 130px;
    text-align: center;
    overflow: hidden;
}

/* Fondo sutil técnico */
.home-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(transparent 95%, rgba(255,255,255,0.04) 95%),
        linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.04) 95%);
    background-size: 42px 42px;
    opacity: 0.25;
    pointer-events: none;
}

/* Contenedor centrado */
.home-hero .container {
    position: relative;
    z-index: 2;
}

/* TÍTULO PRINCIPAL */
.home-hero-title {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #ffffff;
}

/* SUBTEXTO */
.home-hero-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #d1d5db;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Responsive fino */
@media (max-width: 768px) {
    .home-hero {
        padding: 110px 0 100px;
    }

    .home-hero-title {
        font-size: 2.3rem;
    }

    .home-hero-text {
        font-size: 1.05rem;
    }
}

/* IMAGEN HERO */

.hero-img {
    filter: drop-shadow(0 30px 70px rgba(0,0,0,0.6));
}

/* CARDS */

.trust-card,
.benefit-card,
.product-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* CTA */

.home-cta {
    background: linear-gradient(180deg, #0b1b2e, #102a43);
    color: #ffffff;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
}
/* ==========================
   PRODUCTOS – CATALOGO PRO
========================== */

.home-products {
    background-color: #f8fafc;
}

.product-card-industrial {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card-industrial:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

/* IMAGEN */

.product-image-box {
    background: linear-gradient(180deg, #0b1b2e, #102a43);
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.product-image-box img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
}

/* CUERPO */

.product-body {
    padding: 22px;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1b2e;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: #6b7280;
}

/* FOOTER */

.product-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

/* BOTON */

.product-card-industrial .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
}
/* ================= FOOTER PROFESIONAL ================= */

.footer {
    background: linear-gradient(135deg, #0b2e59, #123f7a);
    color: #ffffff;
    padding: 80px 0 30px;
}

.footer h6,
.footer h5 {
    color: #ffffff;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: .9;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: .85;
    transition: all .2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 8px;
    opacity: .8;
}

.footer-social {
    color: #ffffff;
    font-size: 18px;
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease;
}

.footer-social:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255,255,255,.15);
    margin: 40px 0 20px;
}

.footer-copy {
    font-size: 13px;
    opacity: .7;
}
/* =========================================================
   ESTADOS HOVER GLOBALES – PROFESIONAL / CORPORATIVO
   ========================================================= */

/* ---------- LINKS GENERALES ---------- */
a {
    transition: color .2s ease, opacity .2s ease;
}

a:hover {
    opacity: .9;
}

/* ---------- NAVBAR LINKS ---------- */
.navbar .nav-link {
    position: relative;
    transition: color .2s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all .25s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

/* ---------- BOTONES ---------- */
.btn {
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Botón principal rojo */
.btn[style*="#d62828"]:hover {
    background-color: #b91c1c !important;
}

/* Botones outline */
.btn-outline-light:hover {
    background: rgba(255,255,255,.15);
}

.btn-outline-primary:hover {
    background: rgba(13,110,253,.1);
}

/* ---------- CARDS (product, benefit, etc.) ---------- */
.product-card,
.benefit-card,
.trust-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover,
.benefit-card:hover,
.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

/* ---------- ICONOS ---------- */
i {
    transition: transform .2s ease, opacity .2s ease;
}

a:hover i {
    transform: scale(1.05);
}

/* ---------- LISTAS (why-list) ---------- */
.why-list li {
    transition: transform .2s ease;
}

.why-list li:hover {
    transform: translateX(4px);
}

/* ---------- FORM INPUTS ---------- */
.form-control:focus,
.form-select:focus {
    border-color: #0b2e59;
    box-shadow: 0 0 0 .2rem rgba(11,46,89,.15);
}

/* ---------- HERO BOTONES ---------- */
.home-hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
/* =========================================================
   CARDS – ESPACIADO Y JERARQUÍA VISUAL (GLOBAL)
   ========================================================= */

/* Base común para cards del sitio */
.product-card,
.benefit-card,
.trust-card,
.why-box {
    border-radius: 16px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* TÍTULOS EN CARDS */
.product-card h5,
.benefit-card h5,
.trust-card h5 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #0b2e59;
    line-height: 1.3;
}

/* TEXTOS EN CARDS */
.product-card p,
.benefit-card p,
.trust-card p {
    font-size: .95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ICONOS EN CARDS */
.benefit-card i,
.trust-card i {
    font-size: 40px;
    margin-bottom: 18px;
    color: #0b2e59;
}

/* PRODUCT CARD ESPECÍFICO */
.product-card img {
    margin-bottom: 16px;
}

/* BOTONES DENTRO DE CARDS */
.product-card .btn {
    margin-top: 18px;
}

/* =====================================
   NOSOTROS – CORRECCIÓN DE CONTRASTE
   Cuadros azules (why-box)
===================================== */

.why-box {
    background: linear-gradient(135deg, #0b2e59, #123f7a);
    color: #ffffff;
}

/* TÍTULO (+500, 24/7, +20 años) */
.why-box h3 {
    color: #ffffff;
    font-weight: 800;
}

/* TEXTO DESCRIPTIVO */
.why-box span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Asegurar que nada herede color oscuro */
.why-box * {
    color: inherit;
}

/* GRID RESPIRABLE */
.home-products .row,
.home-benefits .row,
.home-trust .row,
.home-why .row {
    --bs-gutter-y: 2rem;
}

/* ESTADO HOVER REFINADO (COMPLEMENTA PASO 2) */
.product-card:hover,
.benefit-card:hover,
.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
}
/* =========================================================
   TIPOGRAFÍA GLOBAL – JERARQUÍA PROFESIONAL
   ========================================================= */

/* BASE */
body {
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TÍTULOS GENERALES */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0b2e59;
    line-height: 1.25;
    margin-bottom: .75rem;
}

/* HERO */
.home-hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* SUBTÍTULOS */
.home-hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .95;
}

/* SECCIONES */
section h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
}

/* SUBTÍTULOS DE SECCIÓN */
section p.text-muted {
    font-size: .95rem;
    line-height: 1.6;
}

/* CARDS */
.product-card h5,
.benefit-card h5,
.trust-card h5 {
    font-size: 1.05rem;
}

.product-card p,
.benefit-card p,
.trust-card p {
    font-size: .92rem;
}

/* LISTAS */
.why-list li {
    font-size: .95rem;
    line-height: 1.6;
}

/* CTA */
.cta-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
}

.cta-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: .95;
}

/* FORMULARIOS */
.form-label {
    font-size: .9rem;
}

.form-control,
.form-select,
textarea {
    font-size: .95rem;
}

/* FOOTER */
.footer {
    font-size: .85rem;
}

.footer h5,
.footer h6 {
    font-size: 1rem;
    font-weight: 600;
}
/* =========================
   BREADCRUMB – PROFESIONAL
========================= */

.breadcrumb-section {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb-item a {
    color: #0b2e59;
    font-weight: 500;
    transition: color .2s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
    padding: 0 10px;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        justify-content: center;
        font-size: 0.85rem;
    }
}
/* =====================================
   CTA FINAL – CORRECCIÓN DE CONTRASTE
===================================== */

.home-cta {
    background: linear-gradient(180deg, #0b1b2e, #102a43);
    color: #ffffff;
}

/* TÍTULO PRINCIPAL */
.home-cta .cta-title {
    color: #ffffff !important;
    font-weight: 800;
}

/* TEXTO SECUNDARIO */
.home-cta .cta-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Asegurar que ningún hijo herede azul oscuro */
.home-cta * {
    color: inherit;
}

/* Título */
section .row > .col-lg-5 h3,
section .row > .col-lg-4 h3 {
    color: #0b2e59 !important;
    font-weight: 700;
}

/* Texto */
section .row > .col-lg-5 p,
section .row > .col-lg-4 p {
    color: #374151 !important;
}

/* Íconos */
section .row > .col-lg-5 i,
section .row > .col-lg-4 i {
    color: #0b2e59 !important;
}

/* Quitar cualquier gradiente previo */
section .row > .col-lg-5::before,
section .row > .col-lg-4::before {
    display: none !important;
}
/* 🔥 CORRECCIÓN DEFINITIVA BARRA BLANCA CTA SERVICIOS */
.home-cta {
    background: linear-gradient(135deg, #0b2e59, #123f7a);
    position: relative;
}
.home-cta::before,
.home-cta::after {
    display: none !important;
}
/* ===============================
   LOGO NAVBAR – PRESENCIA PRO
================================ */

.navbar-logo-pro {
    height: 44px;
    width: auto;
    padding: 6px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.navbar-brand:hover .navbar-logo-pro {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.brand-text-pro {
    font-size: 1.15rem;
    letter-spacing: .6px;
    color: #ffffff;
}
/* ===============================
   LOGO NAVBAR – LIMPIO & PRO
================================ */

.navbar-logo-pro {
    height: 48px;                 /* Más notorio */
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
    transition: transform .25s ease, filter .25s ease;
}

.navbar-brand:hover .navbar-logo-pro {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 26px rgba(0,0,0,.7));
}

.brand-text-pro {
    font-size: 1.15rem;
    letter-spacing: .6px;
    color: #ffffff;
}
/* ================================
   NAVBAR PROFESIONAL – LOGO LIMPIO
================================ */

.navbar-pro {
    background: rgba(17,24,39,.96);
    backdrop-filter: blur(6px);
}

/* Marca */
.navbar-brand-pro {
    padding: 0;
    background: none !important;
}

/* LOGO SIN FONDO NI BORDE */
.navbar-logo-pro {
    height: 60px;              /* MÁS GRANDE */
    width: auto;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    /* Presencia visual */
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.6));
    transition: transform .25s ease, filter .25s ease;
}

/* Hover elegante */
.navbar-brand-pro:hover .navbar-logo-pro {
    transform: scale(1.08);
    filter: drop-shadow(0 14px 30px rgba(0,0,0,.8));
}

/* Texto de marca */
.brand-text-pro {
    font-size: 1.15rem;
    letter-spacing: .6px;
    color: #ffffff;
    line-height: 1;
}
/* ===============================
   WHATSAPP FLOAT – CORPORATIVO
================================ */

.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #25D366;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 50px;

    font-weight: 600;
    font-size: 14px;
    text-decoration: none;

    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    transition: all .25s ease;
}

.whatsapp-float i {
    font-size: 26px;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    color: #ffffff;
    text-decoration: none;
}

/* Texto solo en desktop */
.whatsapp-text {
    white-space: nowrap;
}

/* Mobile: solo icono */
@media (max-width: 768px) {
    .whatsapp-text {
        display: none;
    }

    .whatsapp-float {
        padding: 16px;
        border-radius: 50%;
    }
}
/* ===============================
   BANDERA COLOMBIA – NAVBAR
================================ */

.flag-colombia {
    height: 16px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    opacity: .95;
    transition: transform .2s ease, opacity .2s ease;
}

.navbar-brand:hover .flag-colombia {
    transform: scale(1.08);
    opacity: 1;
}
