/* ==========================================================================
   Mate Industrial Perú — estilos del sitio
   ========================================================================== */

:root {
    --blue: #1c5fc4;
    --blue-dark: #123f86;
    --mate-can-blue: #052b73;
    --navy: #0b1f3a;
    --navy-soft: #12294d;
    --green: #1fae4e;
    --green-dark: #178a3e;
    --red: #d81f2a;
    --red-dark: #b3151f;
    --gray-bg: #f4f5f7;
    --text: #1f2430;
    --muted: #6b7280;
    --border: #e4e6eb;
    --radius: 10px;
    --container: 1180px;
    --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

    /* Escala tipográfica estándar y fluida — usar SIEMPRE estas variables.
       clamp(mínimo-en-móvil, ideal-según-viewport, máximo-en-escritorio) */
    --fs-display: clamp(1.8rem, 5.5vw, 3.8rem);   /* título del hero de portada */
    --fs-h1: clamp(1.6rem, 3.6vw, 2rem);        /* título principal de página */
    --fs-h2: clamp(1.35rem, 3vw, 1.8rem);       /* título de sección */
    --fs-h3: clamp(1.05rem, 1.8vw, 1.15rem);    /* subtítulo / título de tarjeta */
    --fs-lead: clamp(0.95rem, 1.6vw, 1.05rem);  /* párrafo de entrada / texto destacado */
    --fs-body: 0.95rem;    /* párrafo estándar */
    --fs-small: 0.82rem;   /* metadatos, notas al pie, etiquetas */
    --fs-eyebrow: 0.8rem;  /* rótulo superior en mayúsculas */
    --lh-tight: 1.2;
    --lh-normal: 1.6;

    /* Espaciados fluidos */
    --section-pad-y: clamp(40px, 7vw, 64px);    /* padding vertical de secciones */
    --container-pad: clamp(16px, 4vw, 20px);    /* padding lateral del contenedor */
    --grid-gap: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;   /* red de seguridad contra desbordes horizontales (no rompe position:sticky) */
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: var(--lh-tight); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-normal); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--container-pad); }
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { padding: var(--section-pad-y) 0; }
.eyebrow {
    color: var(--blue);
    font-weight: 700;
    font-size: var(--fs-eyebrow);
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.section h2 { font-size: var(--fs-h2); color: var(--navy); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); margin-top: 8px; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-home-blue { background: var(--mate-can-blue); color: #fff; border-color: var(--mate-can-blue); margin-top: 8px; }
.btn-home-blue:hover { background: #031f55; border-color: #031f55; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-green { background: var(--green); color: #fff; border: none; }
.btn-green:hover { background: var(--green-dark); }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-badge { width: 66px; height: 66px; object-fit: contain; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: .01em;
    max-width: 180px;
}

.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-color: var(--blue); }

.header-cta { flex-shrink: 0; padding: 10px 21px; font-size: .76rem; border-radius: 10px; }
.header-cta svg { width: 14px; height: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    min-height: calc(clamp(440px, 68vh, 620px) + 3cm);
    overflow: hidden;
    color: #fff;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1.1s cubic-bezier(.45,.05,.35,1), opacity .9s ease;
    z-index: 0;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
}
.hero-slide.out {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,15,30,.85) 0%, rgba(6,15,30,.55) 45%, rgba(6,15,30,.15) 75%);
}
/* Contenido alineado con el contenedor del sitio en cualquier ancho (sin hacks de margen negativo) */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(40px, 9vw, 90px) var(--container-pad) clamp(64px, 12vw, 110px);
}
.hero-marca { display: inline-block; font-size: var(--fs-body); letter-spacing: 3px; font-weight: 700; color: #ffd400; text-transform: uppercase; margin-bottom: 10px; }
.hero-content h1 { max-width: 640px; font-size: var(--fs-display); font-weight: 800; color: #fff; line-height: 1.15; text-transform: uppercase; }
.hero-content p { max-width: 640px; color: #dbe4f3; font-size: var(--fs-lead); margin-bottom: 24px; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
.hero-dots button { width: 32px; height: 4px; border: 0; border-radius: 2px; padding: 0; cursor: pointer; background: rgba(255,255,255,.45); }
.hero-dots button.active { background: #fff; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* ---------------------------------------------------------------------- */
/* Marcas                                                                  */
/* ---------------------------------------------------------------------- */
.section-brands { background: var(--gray-bg); padding: 50px 0 40px; }
.section-brands .eyebrow { color: #000; }
.brands-img { max-width: 720px; margin: 20px auto 28px; width: 100%; height: auto; }

.marcas-marquee {
    overflow: hidden;
    width: 100%;
    margin: 24px 0 48px;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marcas-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marcas-scroll var(--marquee-duration, 30s) linear infinite;
}
.marcas-marquee:hover .marcas-track { animation-play-state: paused; }
.marca-logo { flex: 0 0 auto; height: 80px; display: flex; align-items: center; }
.marca-logo img { height: 100%; width: auto; max-width: 140px; object-fit: contain; }
@keyframes marcas-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marcas-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

.marcas-grid-wrap {
    position: relative;
    padding: 40px 0;
}
.marcas-grid-wrap::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: -1;
    background-image:
        radial-gradient(circle at 12% 15%, rgba(28,95,196,.08) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(216,31,42,.06) 0%, transparent 45%);
}
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.marca-grid-item {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(155deg, #fff 55%, var(--gray-bg) 130%);
    box-shadow: 0 6px 18px rgba(11,31,58,.07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.marca-grid-item::before {
    content: "";
    position: absolute;
    top: -26px;
    right: -26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blue);
    opacity: .07;
}
.marca-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(11,31,58,.14);
    border-color: var(--blue);
}
.marca-grid-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
@media (max-width: 520px) {
    .marcas-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .marca-grid-item { height: 100px; padding: 14px; }
}

/* ---------------------------------------------------------------------- */
/* Categorías banner (Frame 112-115)                                       */
/* ---------------------------------------------------------------------- */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.banner-card {
    position: relative;
    min-height: 160px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    overflow: hidden;
    isolation: isolate;
}
.banner-card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,12,25,.15) 0%, rgba(6,12,25,.85) 100%);
    z-index: -1;
}
.banner-title { color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.3; }

/* ---------------------------------------------------------------------- */
/* Promo Ambro-Sol                                                         */
/* ---------------------------------------------------------------------- */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: center;
}
.promo-image img { border-radius: var(--radius); width: 100%; }
.brand-ambrosol-logo {
    height: 150px;
    width: auto;
    margin-bottom: 4px;
    margin-top: -40px;
    display: block;
}
.promo-brand-text { display: flex; flex-direction: column; gap: 4px; }
.promo-text h2 { color: var(--navy); font-size: var(--fs-h2); line-height: 1.3; }
.promo-text p { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-normal); margin-top: 4px; }

/* ---------------------------------------------------------------------- */
/* Productos destacados                                                    */
/* ---------------------------------------------------------------------- */
.section-destacados { background: var(--gray-bg); }
.destacados-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.5fr;
    grid-template-rows: 240px 240px;
    gap: 16px;
    margin: 32px 0 32px;
}
.dcard {
    position: relative;
    border-radius: var(--radius);
    background-color: #14141a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    transition: transform .3s ease, box-shadow .3s ease;
}
.dcard-lg {
    grid-column: "";
    grid-row: "";
}
.dcard::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,14,.75) 0%, rgba(10,10,14,.10) 50%, rgba(10,10,14,.65) 100%);
    z-index: -1;
}
.dcard-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.dcard-title { color: #fff; font-weight: 700; font-size: var(--fs-h3); }
.dcard-sub { color: #cfd3da; font-size: var(--fs-small); max-width: 220px; }
.dcard-link { color: #fff; font-size: var(--fs-small); font-weight: 600; margin-top: 4px; }
.dcard:hover .dcard-link { text-decoration: underline; }
.dcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }

/* ---------------------------------------------------------------------- */
/* Contacto                                                                */
/* ---------------------------------------------------------------------- */
.section-contacto {
    background: var(--navy);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(28,95,196,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(216,31,42,.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.03) 0%, transparent 30%);
    padding: var(--section-pad-y) 0;
}
.promo-grid-reverse .promo-image-square .promo-carousel { aspect-ratio: 1 / 1.2; }
.promo-carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.promo-frame .promo-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    border-radius: 0;
    box-shadow: none;
    transition: opacity .7s ease;
}
.promo-frame .promo-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}
.promo-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.promo-carousel-dots button { width: 22px; height: 4px; border: 0; border-radius: 2px; padding: 0; cursor: pointer; background: rgba(255,255,255,.55); }
.promo-carousel-dots button.active { background: #fff; }
.promo-frame {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    max-width: 380px;
}
.promo-frame img { border-radius: 10px; width: 100%; height: auto; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.promo-eyebrow {
    display: block;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
}
.contact-frame {
    background: #fff;
    border: 1px solid #dde1e8;
    border-radius: 16px;
    padding: clamp(24px, 5vw, 44px) clamp(20px, 4vw, 40px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    border-left: 5px solid var(--red);
}
.section-contacto .section-header h2 { color: #fff; font-size: var(--fs-h3); }
.section-contacto .section-header p { color: rgba(255,255,255,.8); }
.section-contacto .eyebrow { color: var(--red); }
.section-contacto .promo-eyebrow { color: var(--navy); }
.contact-card {
    background: transparent;
    border: none;
    border-left: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.contact-title {
    display: inline-block;
    background: var(--red);
    color: #fff !important;
    padding: 10px 24px;
    font-size: var(--fs-h3);
    border-radius: 4px;
    margin-bottom: 22px;
    font-weight: 700;
    border-bottom: none;
}
.form-row { margin-bottom: 18px; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    background: #f8f9fb;
    resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .82rem;
    color: #fff;
    margin-bottom: 20px;
}
.form-check input { margin-top: 3px; }
.form-check a { color: var(--blue); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    background: #e8f8ee;
    color: var(--green-dark);
    border-radius: 6px;
    font-size: .88rem;
}

/* ---------------------------------------------------------------------- */
/* Soluciones por categoría (grid estático)                                */
/* ---------------------------------------------------------------------- */
.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.soluciones-carousel { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.soluciones-viewport { flex: 1; overflow: hidden; }
.soluciones-track { display: flex; gap: 16px; }
.soluciones-track .scard { flex: 0 0 calc((100% - 32px) / 3); }
.scard {
    position: relative;
    height: 220px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}
.scard::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,12,25,.05) 30%, rgba(6,12,25,.75) 100%);
    z-index: -1;
}
.scard-body { padding: 16px; }
.scard-title { display: block; color: #fff; font-weight: 700; font-size: var(--fs-small); letter-spacing: .02em; }
.scard-link { display: block; color: #dbe4f3; font-size: var(--fs-small); margin-top: 4px; }
.carousel-arrow {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
    transition: background .2s ease;
}
.carousel-arrow:hover { background: var(--gray-bg); }
.soluciones-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.soluciones-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s ease; }
.soluciones-dots span.active { background: var(--blue); }

/* ---------------------------------------------------------------------- */
/* Quiénes somos                                                           */
/* ---------------------------------------------------------------------- */
.quienes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: center;
}
.section-quienes h2 { font-size: var(--fs-h2); }
.quienes-image img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------------------------------------------------------------------- */
/* CTA final                                                               */
/* ---------------------------------------------------------------------- */
.section-cta {
    background: var(--gray-bg);
    padding: var(--section-pad-y) 0;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: center;
}
.cta-content h2 { color: var(--navy); font-size: var(--fs-h2); }
.cta-content p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 24px; }
.cta-email { display: inline-flex; align-items: center; gap: 10px; }
.cta-locations { display: flex; flex-direction: column; gap: 18px; }
.location-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 24px rgba(11,31,58,.08); }
.location-block h3 { color: var(--navy); font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; }
.location-map { width: 100%; height: 210px; overflow: hidden; border-radius: 8px; }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 9px; color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; }
.map-link:hover { color: var(--red); }
.location-warehouse p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.location-warehouse i { color: var(--red); margin-right: 6px; }

/* ---------------------------------------------------------------------- */
/* Banner B-Corp                                                           */
/* ---------------------------------------------------------------------- */
.section-bcorp { padding: 0; }
.bcorp-banner {
    position: relative;
    width: 100%;
    min-height: clamp(380px, 60vh, 560px);
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.bcorp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,15,30,.88) 0%, rgba(6,15,30,.6) 50%, rgba(6,15,30,.2) 100%);
}
.bcorp-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 60px) var(--container-pad);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}
.bcorp-text { max-width: 580px; }
.bcorp-main {
    color: #fff;
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.45;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.bcorp-line {
    border: none;
    border-top: 3px solid #ffd400;
    width: 60px;
    margin: 0 0 18px;
}
.bcorp-sub {
    color: #ffd400;
    font-size: var(--fs-h3);
    font-weight: 700;
    font-style: italic;
}
.btn-bcorp {
    display: inline-block;
    background: #ff6a13;
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: .95rem;
    border: 2px solid #ff6a13;
    transition: all .25s;
    margin-bottom: 24px;
}
.btn-bcorp:hover { background: transparent; color: #ff6a13; border-color: #ff6a13; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #cfd6e3; padding-top: 56px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-badge { width: 73px; height: 73px; margin-bottom: 14px; object-fit: contain; background: transparent; padding: 0; border-radius: 0; }
.footer-logo-circle { width: 104px; height: 104px; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.footer-logo-circle .footer-badge { width: 78px; height: 78px; margin-bottom: 0; background: transparent; padding: 0; }
.footer-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-top .footer-logo-circle { margin-bottom: 0; }
.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.02rem;
    color: #fff;
    line-height: 1.2;
    letter-spacing: .01em;
    max-width: 180px;
}
.footer-brand p { color: #9fabc2; font-size: .88rem; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    color: #cfd6e3;
    transition: background .2s;
}
.footer-badge {
    mix-blend-mode: screen;
}
.social-links a:hover { background: var(--green); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-heading); font-size: .95rem; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: #9fabc2; font-size: .88rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; font-size: .8rem; color: #7c8aa5; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #9fabc2; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------------- */
/* Secciones / Categorías (vista previa)                                   */
/* ---------------------------------------------------------------------- */
.seccion-productos-block { padding: clamp(32px, 6vw, 48px) 0; border-bottom: 1px solid var(--border); }
.seccion-productos-block:last-child { border-bottom: none; }
.seccion-block-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 28px; gap: 16px;
}
.seccion-block-title { margin: 0; font-size: var(--fs-h2); color: var(--navy); }
.seccion-block-count { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-small); }
.btn-ver-todos {
    background: var(--navy); color: #fff; padding: 10px 24px; border-radius: 6px;
    font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap;
    transition: background .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ver-todos:hover { background: #0d1f3c; transform: translateY(-1px); }
.btn-ver-todos i { font-size: .75rem; }
.seccion-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: clamp(12px, 2.5vw, 20px);
}

@media (max-width: 720px) {
    .seccion-block-header { flex-direction: column; align-items: flex-start; }
    .seccion-block-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
    .seccion-block-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Catálogo de productos                                                   */
/* ---------------------------------------------------------------------- */
.catalogo-toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px;
}
.catalogo-toolbar input, .catalogo-toolbar select {
    padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit; font-size: .9rem; background: #fff;
}
.catalogo-toolbar input { flex: 1 1 260px; }
.catalogo-toolbar select { flex: 0 1 260px; }
.catalogo-count { color: var(--muted); font-size: .85rem; margin: 12px 0 20px; }
.catalogo-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.categoria-hero-img {
    display: block; width: 100%; max-height: 320px; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 24px;
}
.subcategoria-descripcion { color: var(--muted); margin-bottom: 20px; max-width: 760px; }

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: clamp(12px, 2.5vw, 20px);
}
.producto-card {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: #fff; transition: box-shadow .2s ease, transform .2s ease;
    display: flex; flex-direction: column;
}
.producto-card:hover { box-shadow: 0 12px 28px rgba(11,31,58,.12); transform: translateY(-2px); }
.producto-card-img {
    aspect-ratio: 4/5;
    background: #ffffff;
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px 18px 24px;
    position: relative;
}
.producto-card-img img {
    width: auto; max-width: 85%; height: 88%; object-fit: contain;
    position: relative; z-index: 2;
}
.producto-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.producto-card-marca { color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.producto-card-title { margin: 0; font-size: .82rem; color: var(--text); line-height: 1.3; min-height: 2.2em; }
.producto-card-cant { color: var(--muted); font-size: .72rem; }
.producto-card-precio { color: var(--navy); font-weight: 700; font-size: .82rem; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* Detalle de producto                                                     */
/* ---------------------------------------------------------------------- */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; }
.breadcrumb a { color: var(--blue); }
.btn-volver {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--border); border-radius: 6px;
    padding: 8px 16px; font-family: inherit; font-size: .85rem; color: var(--navy);
    cursor: pointer; transition: background .2s, color .2s; margin-bottom: 24px;
}
.btn-volver:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.producto-detalle { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: start; }
.producto-galeria-principal {
    aspect-ratio: 1/1; background: var(--gray-bg); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 1px solid var(--border); transition: transform .3s ease;
}
.producto-galeria-principal:hover { transform: scale(1.02); }
.producto-galeria-principal img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.producto-galeria-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.producto-thumb {
    width: 64px; height: 64px; border: 2px solid transparent; border-radius: 8px; padding: 4px;
    background: var(--gray-bg); cursor: pointer;
}
.producto-thumb.active { border-color: var(--blue); }
.producto-thumb img { width: 100%; height: 100%; object-fit: contain; }

.producto-info-marca { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.producto-info h1 { color: var(--navy); font-size: var(--fs-h1); margin: 6px 0 14px; line-height: 1.3; }
.producto-info-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { background: var(--gray-bg); color: var(--text); font-size: .78rem; padding: 5px 12px; border-radius: 20px; }
.producto-lead { font-size: var(--fs-lead); color: var(--text); line-height: var(--lh-normal); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.producto-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.producto-descripcion { margin-top: 4px; }
.producto-descripcion h2 { font-size: var(--fs-h3); color: var(--navy); margin-bottom: 10px; }
.producto-descripcion p { white-space: pre-line; font-size: var(--fs-body); color: var(--text); line-height: 1.7; }

.producto-recursos {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 24px);
    align-items: start;
}
.producto-recursos.is-single { grid-template-columns: minmax(0, 460px); }
.producto-recurso {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 18px 20px;
    background: #fff;
}
.producto-recurso h2 { font-size: var(--fs-h3); color: var(--navy); margin: 0 0 12px; }
.producto-recurso-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
}
.producto-recurso-video video,
.producto-recurso-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}
.producto-recurso-ficha { display: flex; align-items: center; gap: 16px; }
.ficha-icono {
    flex-shrink: 0;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-bg);
    border-radius: 10px;
    font-size: 1.6rem;
    color: var(--red);
}
.ficha-datos { min-width: 0; }
.ficha-nombre { font-size: var(--fs-body); color: var(--text); margin: 0 0 12px; line-height: 1.4; }
.ficha-tipo {
    display: inline-block;
    background: var(--gray-bg);
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 4px;
}
.producto-recurso-ficha .btn { padding: 9px 20px; font-size: var(--fs-small); }

@media (max-width: 780px) {
    .producto-recursos,
    .producto-recursos.is-single { grid-template-columns: 1fr; }
}

/* Productos destacados bajo la ficha */
.section-destacados-producto { background: var(--gray-bg); }
.section-destacados-producto .eyebrow { margin-bottom: 6px; }
.section-destacados-producto h2 { color: var(--navy); margin-bottom: 28px; }
.destacados-producto-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) {
    .destacados-producto-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .destacados-producto-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .destacados-producto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .producto-detalle { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Páginas simples (productos / marcas / nosotros)                         */
/* ---------------------------------------------------------------------- */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: var(--section-pad-y) 0;
    text-align: center;
}
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: 8px; }
.page-hero p { color: #b7c2d6; font-size: var(--fs-lead); }
.page-placeholder {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(48px, 10vw, 80px) var(--container-pad);
    text-align: center;
}
.page-placeholder h2 { color: var(--navy); }

/* ---------------------------------------------------------------------- */
/* Catálogo con filtros                                                    */
/* ---------------------------------------------------------------------- */
.page-hero-productos {
    /* Fondo: imagen del cliente con una capa oscura encima para que el texto blanco se lea bien.
       Para cambiar la imagen, cambia el nombre del archivo; para oscurecer más/menos, cambia .62 */
    background: linear-gradient(rgba(10, 20, 45, .62), rgba(10, 20, 45, .62)),
                url("../../content/imagenes/Banner_Productos.jpeg") center / cover no-repeat;
    color: #fff;
    padding: clamp(30px, 5vw, 50px) 0;
    text-align: center;
}
.page-hero-productos h1 { font-size: var(--fs-h1); margin-bottom: 8px; }
.page-hero-productos p { color: #b7c2d6; font-size: var(--fs-lead); }

.catalogo-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.catalogo-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--muted);
    cursor: pointer;
}

.filter-group {
    margin-bottom: 18px;
}
.filter-group h4 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.filter-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .82rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--gray-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ba3b5' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
}
.filter-search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(28,95,196,.1);
    background-color: #fff;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.filter-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    color: var(--text);
    text-decoration: none;
    font-size: .82rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.filter-list li a:hover {
    background: var(--gray-bg);
}
.filter-list li a.active {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
}
.filter-count {
    background: rgba(0,0,0,.08);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: .7rem;
}
.filter-list li a.active .filter-count {
    background: rgba(255,255,255,.2);
}

.btn-filter-clear {
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    font-size: .82rem;
}

/* Main content */
.catalogo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}
.catalogo-count {
    font-size: .9rem;
    color: var(--muted);
}
.catalogo-count span {
    font-weight: 700;
    color: var(--text);
}

.btn-filter-mobile {
    display: none;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
}

.catalogo-view-toggle {
    display: flex;
    gap: 4px;
}
.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
    transition: all .15s;
}
.view-btn.active,
.view-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.catalogo-grid.list-view {
    grid-template-columns: 1fr;
}
.catalogo-grid.list-view .producto-card {
    flex-direction: row;
    align-items: center;
}
.catalogo-grid.list-view .producto-card-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.catalogo-grid.list-view .producto-card-body {
    flex: 1;
}

.catalogo-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.catalogo-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: .3;
}
.catalogo-empty p {
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

/* Tablet grande: la barra horizontal ya no cabe cómoda -> menú hamburguesa */
@media (max-width: 900px) {
    .header-inner { gap: 14px; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--container-pad) 16px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
    .main-nav a:last-child { border-bottom: 0; }
    .nav-toggle { display: flex; margin-right: calc(-1 * var(--container-pad)); }
    .header-cta { display: none; }
}

/* Tablet: grids de 2 columnas */
@media (max-width: 960px) {
    .promo-grid, .quienes-grid, .cta-grid { grid-template-columns: 1fr; }
    .quienes-image { order: -1; }
    .brand-ambrosol-logo { height: 105px; margin-top: 12px; }
    .destacados-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
    .dcard-lg { grid-column: 1 / 3; grid-row: 1; }
    .banner-grid { grid-template-columns: 1fr 1fr; }
    .soluciones-grid { grid-template-columns: repeat(2, 1fr); }
    .soluciones-track .scard { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Móvil */
@media (max-width: 640px) {
    .hero-slider { min-height: clamp(320px, 48vh, 420px); }
    .hero-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .destacados-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .dcard-lg { grid-column: 1; grid-row: auto; }
    .dcard { min-height: 190px; }
    .banner-grid { grid-template-columns: 1fr; }
    .scard { min-height: 210px; }
    .marca-logo { height: 56px; }
    .marca-logo img { max-width: 110px; }
    .promo-frame { max-width: 100%; }
    .btn { padding: 11px 20px; }
    .producto-acciones .btn,
    .producto-recurso-ficha .btn { width: 100%; justify-content: center; }

    /* Filtros responsive */
    .catalogo-layout { grid-template-columns: 1fr; }
    .catalogo-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .3s ease;
        border-radius: 0;
        overflow-y: auto;
    }
    .catalogo-sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .btn-filter-mobile { display: flex; align-items: center; gap: 6px; }
    .catalogo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .breadcrumb { flex-wrap: wrap; }
    .soluciones-grid { grid-template-columns: 1fr; }
    .soluciones-carousel { gap: 6px; }
    .soluciones-track .scard { flex: 0 0 100%; }
}

/* ---------------------------------------------------------------------- */
/* Animaciones                                                             */
/* ---------------------------------------------------------------------- */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.promo-frame { transition: transform .3s ease, box-shadow .3s ease; }
.promo-frame:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }