/*
Theme Name: AJSoluciones S.A
Theme URI: https://ajsolucionessacr.com
Author: AJSoluciones S.A
Author URI: https://ajsolucionessacr.com
Description: Tema personalizado para AJSoluciones S.A – Distribución y comercialización de insumos de laboratorio.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajsoluciones-theme
*/

/* ========================================================
   RESET & VARIABLES
======================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

:root {
    --primary:        #0a4f95;
    --primary-dark:   #073a6b;
    --primary-light:  #1a6bbf;
    --accent:         #19b3b1;
    --accent-green:   #2fbf6b;
    --bg:             #f4f7fb;
    --bg-alt:         #eef2f8;
    --text:           #1f2a37;
    --muted:          #6b7280;
    --white:          #ffffff;

    --font-body:    'Inter', "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    --shadow-sm:  0 4px 12px rgba(15, 23, 42, 0.07);
    --shadow-md:  0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-lg:  0 20px 50px rgba(15, 23, 42, 0.14);
    --shadow-colored: 0 8px 28px rgba(10, 79, 149, 0.22);

    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  22px;
    --radius-xl:  32px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height:  78px;
}

/* ========================================================
   BASE
======================================================== */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main { display: block; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
}

.container { max-width: 1200px; }

/* ========================================================
   SKIP LINK (accesibilidad)
======================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ========================================================
   NAVBAR
======================================================== */
/* Navbar fija — siempre visible encima del contenido */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Todos los links blancos por defecto (sobre fondos oscuros) */
.navbar .nav-link,
.navbar .brand-text {
    color: rgba(255, 255, 255, 0.92) !important;
}
.navbar .nav-link::after {
    background: rgba(255, 255, 255, 0.8) !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white) !important;
}
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}
.navbar .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* ── Menú colapsado en móvil ─────────────────────────────────────────────
   El fondo se aplica al navbar completo cuando está abierto, no al collapse,
   para evitar que margin/padding negativo cause overflow horizontal.
──────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Ocultar brand-text para que quepa en pantallas pequeñas */
    .brand-text {
        display: none !important;
    }

    /* Logo más pequeño en móvil */
    .logo {
        max-width: 52px;
    }

    /* Menú abierto: fondo en el navbar, no en el collapse */
    .navbar:has(.navbar-collapse.show) {
        background: rgba(7, 58, 107, 0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }
    .navbar.scrolled:has(.navbar-collapse.show) {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    /* Links en el menú colapsado */
    .navbar-collapse.show .nav-link,
    .navbar-collapse.collapsing .nav-link {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-left: 0 !important;
    }
    .navbar-collapse.show .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .navbar.scrolled .navbar-collapse.show .nav-link {
        border-bottom-color: rgba(0, 0, 0, 0.07);
        color: var(--text) !important;
    }
}

/* Navbar al hacer scroll — glassmorphism blanco */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 24px rgba(10, 79, 149, 0.13) !important;
}
.navbar.scrolled .nav-link,
.navbar.scrolled .brand-text {
    color: var(--text) !important;
}
.navbar.scrolled .nav-link::after {
    background: var(--primary) !important;
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary) !important;
}
.navbar.scrolled .navbar-toggler {
    border-color: rgba(10, 79, 149, 0.3);
}
.navbar.scrolled .navbar-toggler-icon {
    filter: none;
}


.logo {
    max-width: 70px;
    height: auto;
    transition: transform var(--transition), filter var(--transition);
}

/* Logo siempre en color original — visible sobre fondo claro y oscuro */

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.3px;
}

.navbar .nav-link {
    font-weight: 600;
    color: var(--text);
    margin-left: 12px;
    position: relative;
    padding-bottom: 4px;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 2px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary);
}

/* ========================================================
   HERO – gradiente animado
======================================================== */
@keyframes gradient-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

.hero {
    padding: calc(var(--navbar-height) + 60px) 0 80px;
    background: linear-gradient(-45deg, #0a4f95, #073a6b, #0d7a78, #19b3b1);
    background-size: 300% 300%;
    animation: gradient-shift 12s ease infinite;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo sutil */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.hero-cta-primary {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
}

/* ── Stats animadas del Hero ─────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-stat-number {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.hero-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
    display: inline-block;
    background: rgba(255,255,255,0.10);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.18);
}

.hero-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
}

.hero-card h2 {
    color: var(--primary-dark);
    font-size: 1.15rem;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.checklist li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 0.95rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
    background: rgba(47, 191, 107, 0.12);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 20px;
    text-align: center;
}


/* ========================================================
   SECTIONS
======================================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 20px;
}

/* Línea decorativa bajo el título de sección */
.section-title h2::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    border-radius: 3px;
    margin: 12px auto 0;
}

.specialty-intro {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
}

.specialty-intro .lead {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.85;
}

/* ========================================================
   CARDS – glassmorphism sutil
======================================================== */
.info-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 3px solid rgba(47, 191, 107, 0.5);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent);
}

.info-card h3 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

/* Specialty cards con glassmorphism */
.specialty-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: 4px solid var(--accent-green);
    padding: 36px 26px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
    cursor: default;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-colored);
    border-top-color: var(--primary);
}

.specialty-card h3 {
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.specialty-card p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.specialty-icon {
    font-size: 2.6rem;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(135deg, rgba(10, 79, 149, 0.08), rgba(25, 179, 177, 0.12));
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ========================================================
   BRAND MARQUEE
======================================================== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.brand-grid-page {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px;
}

.brand-marquee {
    overflow: hidden;
    position: relative;
    padding: 10px 0 24px;
}

/* Fade lateral izquierdo/derecho */
.brand-marquee::before,
.brand-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.brand-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.brand-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: brand-scroll 38s linear infinite;
}

.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}

.brand-slide {
    min-height: 180px;
    min-width: auto;
    padding: 16px;
    margin: 0 auto;
}

@keyframes brand-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-tile {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    min-height: 170px;
    min-width: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 79, 149, 0.3);
    box-shadow: var(--shadow-md);
}

/* Grayscale por defecto → color en hover */
.brand-tile img {
    width: clamp(120px, 11vw, 155px);
    height: clamp(55px, 5vw, 76px);
    object-fit: contain;
    filter: grayscale(90%) opacity(55%);
    transition: filter 0.45s ease;
}

.brand-tile:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* Grid de marcas en página /marcas */
.brand-grid-page .brand-tile img {
    filter: grayscale(60%) opacity(70%);
}

.brand-grid-page .brand-tile:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* ========================================================
   BUTTONS – microinteracciones
======================================================== */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(10, 79, 149, 0.38);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(10, 79, 149, 0.28);
}

.btn-outline-light:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-light:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(255, 255, 255, 0.25);
}

/* Ripple visual al hacer click */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    opacity: 0;
    transition: opacity 0.18s ease;
    border-radius: inherit;
}

.btn:active::after {
    opacity: 1;
}

/* ========================================================
   IMAGE
======================================================== */
.image-placeholder {
    background: linear-gradient(135deg, rgba(10, 79, 149, 0.07), rgba(25, 179, 177, 0.12));
    border-radius: var(--radius-lg);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pinvtro {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.image-caption {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}

/* ========================================================
   CTA – sección "Hablemos"
======================================================== */
.cta {
    background: linear-gradient(-45deg, #073a6b, #0a4f95, #0d7a78);
    background-size: 200% 200%;
    animation: gradient-shift 14s ease infinite;
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(7, 58, 107, 0.35);
}

/* Decoración circular */
.cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.cta p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    margin: 0;
}

.cta .btn-light {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.cta .btn-light:hover {
    background: #f0f7ff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.20);
    transform: translateY(-2px) scale(1.03);
}

/* ========================================================
   TRUST SIGNALS – banda de confianza
======================================================== */
.trust-band {
    background: var(--white);
    border-top: 1px solid rgba(15,23,42,0.07);
    border-bottom: 1px solid rgba(15,23,42,0.07);
    padding: 28px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item strong {
    color: var(--primary-dark);
    font-weight: 700;
    font-family: var(--font-heading);
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ========================================================
   PAGE HERO (páginas interiores)
======================================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
    padding: calc(var(--navbar-height) + 44px) 0 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.page-hero h1 {
    color: var(--white);
    font-weight: 800;
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ========================================================
   CONTENT CARD / FORM CARD
======================================================== */
.content-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-green);
    height: 100%;
}

.content-card p {
    color: var(--muted);
    line-height: 1.8;
}

.content-card p:last-child { margin-bottom: 0; }

.form-card { background: var(--white); }

.contact-form .form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 79, 149, 0.12);
    background: var(--white);
    outline: none;
}

.form-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ========================================================
   CONTACT INFO
======================================================== */
.contact-info { display: grid; gap: 14px; }

.contact-item {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    font-weight: 600;
}

.contact-value {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

.contact-value a {
    color: var(--primary);
    transition: color var(--transition);
}

.contact-value a:hover { color: var(--accent); }

/* ========================================================
   FOOTER
======================================================== */
.footer {
    background: #071828;
    color: rgba(255, 255, 255, 0.78);
    padding: 56px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-green));
}

.footer-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 9px;
    font-size: 0.93rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 20px;
    font-size: 0.87rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ========================================================
   WHATSAPP FLOTANTE
======================================================== */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55);
    }
    50% {
        box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0.10);
    }
}

.chat-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: whatsapp-pulse 2.8s ease infinite;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.chat-float:hover {
    transform: scale(1.12);
    animation-play-state: paused;
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.75);
    color: var(--white);
}

.chat-tooltip {
    position: absolute;
    right: 70px;
    background: #1a1a1a;
    color: var(--white);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(6px);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
}

.chat-float:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================================
   PRODUCTOS
======================================================== */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid rgba(15, 23, 42, 0.13);
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(10, 79, 149, 0.04);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10, 79, 149, 0.30);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-green);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.product-area-icon {
    font-size: 2rem;
    line-height: 1;
}

.product-badge {
    display: inline-block;
    background: rgba(10, 79, 149, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    padding: 3px 12px;
    width: fit-content;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--muted);
    flex-grow: 1;
    margin: 0;
    line-height: 1.6;
}

/* ========================================================
   SPECIALTY CARD – link "Ver productos"
======================================================== */
.specialty-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: 0.87rem;
    font-weight: 600;
    margin-top: 14px;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
}

.specialty-cta svg {
    transition: transform var(--transition);
}

.specialty-cta:hover {
    color: var(--accent);
    gap: 9px;
}

.specialty-cta:hover svg {
    transform: translateX(3px);
}

/* ========================================================
   BRAND LINK (logos clicables)
======================================================== */
.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: inherit;
}

/* Descripción de marca en página /marcas */
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
    padding: 0 4px;
}

.brand-tile-page {
    flex-direction: column;
    padding: 20px 16px;
    min-height: auto;
}

/* ========================================================
   PROCESO DE TRABAJO – 4 pasos
======================================================== */
.section-process {
    background: var(--bg);
    position: relative;
}

.step-card {
    text-align: center;
    padding: 36px 22px 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-colored);
}

/* Número decorativo grande de fondo */
.step-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(10, 79, 149, 0.055);
    line-height: 1;
    position: absolute;
    top: 8px;
    right: 14px;
    pointer-events: none;
    user-select: none;
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(10, 79, 149, 0.09), rgba(25, 179, 177, 0.13));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--primary);
    transition: background var(--transition);
}

.step-card:hover .step-icon-wrap {
    background: linear-gradient(135deg, rgba(10, 79, 149, 0.14), rgba(25, 179, 177, 0.20));
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.65;
}

/* Nota bajo el botón del proceso */
.step-cta-note {
    color: var(--muted);
    font-size: 0.83rem;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ========================================================
   MINI CTA – eyebrow y botón WhatsApp inline
======================================================== */
.section-minicta {
    background: var(--white);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.minicta-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Botón de WhatsApp inline (verde, estilo brand) */
.btn-whatsapp {
    background: #25d366;
    border: none;
    color: var(--white) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1fba59;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.38);
    color: var(--white) !important;
}

/* ========================================================
   NOSOTROS – Valor badge
======================================================== */
.valor-icono {
    margin-bottom: 10px;
}

/* ========================================================
   RESPONSIVE
======================================================== */
@media (min-width: 992px) {
    .cta {
        flex-direction: row;
        align-items: center;
    }
    /* Mostrar brand-text solo en desktop */
    .brand-text {
        display: inline;
    }
}

@media (max-width: 991px) {
    .section-title h2 {
        font-size: 1.7rem;
    }
    /* Hero: imagen debajo del texto en tablet */
    .hero .col-lg-6:last-child {
        margin-top: 8px;
    }
    .pinvtro {
        max-height: 320px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .trust-item {
        font-size: 0.82rem;
    }
    /* Stats del hero en fila apretada */
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-divider {
        display: none;
    }
    /* Proceso: tarjetas apiladas en móvil */
    .step-card {
        max-width: 420px;
        margin: 0 auto;
    }
    /* CTA horizontal → vertical */
    .cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    /* Mini-CTA */
    .section-minicta .col-md-4 {
        text-align: center;
    }
    /* Productos: 2 columnas en tablet */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    /* Tipografía */
    .section-title h2 {
        font-size: 1.45rem;
    }
    .section-title p {
        font-size: 0.92rem;
    }

    /* Hero */
    .hero {
        padding: calc(var(--navbar-height) + 28px) 0 44px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero .lead {
        font-size: 0.95rem;
    }
    .hero-card {
        padding: 20px;
    }
    .hero-stat-number {
        font-size: 1.8rem;
    }
    .hero-stat-label {
        font-size: 0.68rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 28px;
    }
    /* Imagen hero en móvil: altura controlada */
    .pinvtro {
        max-height: 220px;
    }
    .image-placeholder {
        border-radius: var(--radius-md);
    }

    /* Secciones */
    .section {
        padding: 52px 0;
    }

    /* Proceso */
    .step-number {
        font-size: 3.5rem;
    }
    .step-card {
        padding: 28px 18px 22px;
    }
    .step-icon-wrap {
        width: 54px;
        height: 54px;
    }

    /* CTA */
    .cta {
        padding: 30px 20px;
    }
    .cta h2 {
        font-size: 1.4rem;
    }

    /* Page hero (páginas interiores) */
    .page-hero {
        padding: calc(var(--navbar-height) + 28px) 0 36px;
    }
    .page-hero h1 {
        font-size: 1.6rem;
    }
    .page-hero p {
        font-size: 0.92rem;
    }

    /* Marcas */
    .brand-tile {
        min-width: auto;
        min-height: 110px;
    }
    .brand-tile img {
        width: clamp(90px, 28vw, 130px);
        height: auto;
    }

    /* Productos: 1 columna en móvil */
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-filters {
        gap: 8px;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* Specialty cards */
    .specialty-icon {
        width: 60px;
        height: 60px;
        font-size: 2.1rem;
    }

    /* Botón flotante de contacto */
    .chat-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 24px;
    }
}
