/* =============================================================
   BARI INDUMENTARIA — styles.css
   Paleta: Primario #fc1d29 · Secundario/Fondo #212121 · Texto #fff
   Tipografías: Teko (títulos) · Outfit (texto)
   ============================================================= */

/* ---------- Variables ---------- */
:root {
    --color-primary: #fc1d29;
    --color-primary-dark: #d1121d;
    --color-secondary: #212121;
    --color-dark: #171717;
    --color-dark-2: #262626;
    --color-white: #ffffff;
    --color-muted: #b5b5b5;
    --color-line: rgba(255, 255, 255, 0.10);

    --font-title: 'Teko', sans-serif;
    --font-text: 'Outfit', sans-serif;

    --container: 1440px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-red: 0 14px 40px rgba(252, 29, 41, 0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 82px;
    --topbar-h: 42px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--topbar-h)); }

body {
    font-family: var(--font-text);
    background: var(--color-secondary);
    color: var(--color-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Accesibilidad ---------- */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--color-primary); color: #fff; padding: 10px 18px;
    border-radius: 0 0 10px 10px; font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Utilidades ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 120px) 0; }

.text-accent { color: var(--color-primary); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section__eyebrow {
    display: inline-block; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    font-size: .8rem; color: var(--color-primary); margin-bottom: 14px;
}
.section__title {
    font-family: var(--font-title); font-weight: 600; line-height: .95;
    font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: .5px; text-transform: uppercase;
}
.section__title--dark { color: var(--color-secondary); }
.section__lead { color: var(--color-muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: 50px; font-weight: 600; font-size: 1rem;
    letter-spacing: .3px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
    position: relative; text-align: center;
}
.btn i { font-size: 1.1em; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(252,29,41,.5); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--color-secondary); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.btn--block { width: 100%; }
.btn--scroll:hover i { animation: bob .8s var(--ease) infinite; }

/* Efecto PULSE (anillo expansivo) — sin guard de reduced-motion */
.btn--pulse::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(252, 29, 41, 0.6);
    animation: pulseRing 2.2s ease-out infinite;
    z-index: -1;
}
.btn--light.btn--pulse::before { box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation-name: pulseRingLight; }

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(252,29,41,.55); }
    70%  { box-shadow: 0 0 0 18px rgba(252,29,41,0); }
    100% { box-shadow: 0 0 0 0 rgba(252,29,41,0); }
}
@keyframes pulseRingLight {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
    70%  { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* =============================================================
   TOPBAR
   ============================================================= */
.topbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--topbar-h); z-index: 1001;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: .92rem; font-weight: 500; letter-spacing: .02em; padding: 0 16px; text-align: center;
}
.topbar i { font-size: 1rem; }

/* =============================================================
   HEADER / NAVBAR
   ============================================================= */
.header {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.header__logo { display: inline-flex; align-items: center; }
.logo { height: 59px; width: auto; transition: opacity .3s var(--ease); }
.logo--light { display: none; }

/* Estado "scrolled": fondo claro + logo2 */
.header.scrolled {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.header.scrolled .logo--dark { display: none; }
.header.scrolled .logo--light { display: block; }
.header.scrolled .nav__link { color: var(--color-secondary); }
.header.scrolled .nav__link:hover { color: var(--color-primary); }
.header.scrolled .nav__toggle span { background: var(--color-secondary); }

.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
    font-weight: 500; color: #fff; position: relative; padding: 6px 0; letter-spacing: .3px;
    transition: color .25s var(--ease);
}
.nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--color-primary); transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--color-primary); }
.nav__link:hover::after { width: 100%; }
.nav__cta-item { margin-left: 8px; }
.nav__cta { padding: 12px 22px; font-size: .95rem; }

/* Hamburguesa */
.nav__toggle { display: none; flex-direction: column; gap: 6px; width: 42px; height: 42px; align-items: center; justify-content: center; z-index: 1100; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 990; opacity: 0; transition: opacity .3s var(--ease); }
.nav__overlay.show { opacity: 1; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: calc(var(--header-h) + var(--topbar-h)); overflow: hidden; isolation: isolate;
}
.hero__slider { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08) translateX(6%);
    transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; transform: scale(1) translateX(0); z-index: 1; }
.hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(23,23,23,.94) 0%, rgba(23,23,23,.78) 42%, rgba(23,23,23,.45) 100%);
}

.hero__content { position: relative; z-index: 2; padding: 40px 0; }
.hero__eyebrow {
    display: inline-block; background: rgba(252,29,41,.15); border: 1px solid rgba(252,29,41,.5);
    color: #fff; padding: 8px 18px; border-radius: 50px; font-weight: 500; font-size: .9rem;
    letter-spacing: .05em; margin-bottom: 22px;
}
.hero__title {
    font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
    font-size: clamp(3.2rem, 9vw, 7rem); line-height: .9; letter-spacing: 1px; margin-bottom: 18px;
}
.hero__subtitle { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 500; max-width: 640px; margin-bottom: 14px; }
.hero__hook { color: var(--color-muted); max-width: 560px; margin-bottom: 34px; font-size: 1.05rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 54px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); }
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__plus {
    font-family: var(--font-title); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 600;
    line-height: 1; color: var(--color-primary);
}
.stat__plus { display: inline; }
.stat__plus--pre { margin-right: -2px; }
.stat:has(.stat__num) { position: relative; }
.stat > .stat__num + .stat__plus { margin-left: -4px; }
.stat__label { color: var(--color-muted); font-size: .95rem; margin-top: 6px; font-weight: 500; }
/* Mantener número y "+" en la misma línea */
.stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.stat__label { flex-basis: 100%; }

/* Flechas del hero */
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s var(--ease), transform .3s var(--ease); backdrop-filter: blur(6px);
}
.hero__arrow:hover { background: var(--color-primary); border-color: var(--color-primary); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }

.hero__chevron {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff;
    animation: chevronBob 2s var(--ease) infinite;
}
.hero__chevron:hover { background: var(--color-primary); border-color: var(--color-primary); }
@keyframes chevronBob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }

/* =============================================================
   MARQUESINA DE TEXTO (prendas)
   ============================================================= */
.text-marquee {
    width: 100%; overflow: hidden; background: var(--color-primary);
    padding: 18px 0; border-block: 3px solid rgba(0,0,0,.15);
}
.text-marquee__track {
    display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
    animation: marqueeText 26s linear infinite; will-change: transform;
}
.text-marquee span {
    font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.text-marquee .dot { color: rgba(255,255,255,.6); }
@keyframes marqueeText { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* =============================================================
   NOSOTROS / ABOUT
   ============================================================= */
.about { background: var(--color-secondary); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
    position: absolute; left: 20px; bottom: 20px; background: var(--color-primary); color: #fff;
    padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-red);
    display: inline-flex; align-items: center; gap: 8px;
}
.about__content { display: flex; flex-direction: column; justify-content: center; }
.about__content .section__title { text-align: left; margin-bottom: 22px; }
.about__content p { color: #d7d7d7; margin-bottom: 16px; }
.about__content .btn { margin-top: 14px; align-self: flex-start; }

/* =============================================================
   BANNER MAYORISTA
   ============================================================= */
.wholesale { background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }
.wholesale__inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    text-align: center; padding: clamp(38px, 5vw, 64px) clamp(28px, 4vw, 56px);
}
.wholesale__text h2 { font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.wholesale__text h2 .text-accent { color: var(--color-secondary); }
.wholesale__text p { font-size: 1.1rem; max-width: 640px; margin-inline: auto; }

/* =============================================================
   INDUMENTARIA / PRODUCTS
   ============================================================= */
.products { background: var(--color-dark); }
.products__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px;
}
.product-card {
    position: relative; background: var(--color-dark-2); border-radius: var(--radius); overflow: visible;
    border: 1px solid var(--color-line); transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
    padding-top: 0;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(252,29,41,.5); box-shadow: var(--shadow); }
.product-card__img { height: 220px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.08); }

/* Ícono flotante — siempre visible, nunca cortado */
.product-card__icon {
    position: absolute; top: 220px; left: 24px; transform: translateY(-50%);
    width: 56px; height: 56px; border-radius: 14px; background: var(--color-primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
    box-shadow: var(--shadow-red); z-index: 3;
}
.product-card__icon i + i { display: none; } /* fallback: usa el primer ícono disponible */
.product-card__body { padding: 34px 24px 26px; }
.product-card__body h3 { font-family: var(--font-title); font-size: 1.9rem; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.product-card__body p { color: var(--color-muted); font-size: .96rem; }

/* =============================================================
   BENEFICIOS
   ============================================================= */
.benefits { background: var(--color-secondary); }
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.benefit-card {
    background: linear-gradient(160deg, var(--color-dark-2), var(--color-dark));
    border: 1px solid var(--color-line); border-radius: var(--radius); padding: 40px 28px; text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.benefit-card:hover { transform: translateY(-8px); border-color: rgba(252,29,41,.55); box-shadow: var(--shadow); }
.benefit-card__icon {
    width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
    background: rgba(252,29,41,.14); border: 1px solid rgba(252,29,41,.4);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--color-primary);
    transition: background .4s var(--ease), transform .4s var(--ease);
}
.benefit-card:hover .benefit-card__icon { background: var(--color-primary); color: #fff; transform: scale(1.08) rotate(-6deg); }
.benefit-card h3 { font-family: var(--font-title); font-size: 1.9rem; text-transform: uppercase; line-height: 1; margin-bottom: 10px; }
.benefit-card p { color: var(--color-muted); font-size: .98rem; }

/* =============================================================
   GALERÍA MARQUESINA
   ============================================================= */
.gallery { background: var(--color-dark); padding-bottom: clamp(64px, 8vw, 120px); }
.gallery__marquee {
    width: 90%; margin: 0 auto; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery__track {
    display: flex; gap: 20px; width: max-content;
    animation: marqueeGallery 32s linear infinite; will-change: transform;
}
.gallery__marquee:hover .gallery__track { animation-play-state: paused; }
.gallery__item {
    width: 350px; height: 350px; flex: 0 0 350px; border-radius: var(--radius); overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.12); }
@keyframes marqueeGallery { from{ transform: translateX(0);} to{ transform: translateX(calc(-50% - 10px));} }

/* =============================================================
   MARCAS
   ============================================================= */
.brands { background: var(--color-secondary); }
.brands__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; align-items: center; }
.brand {
    background: rgba(255,255,255,.04); border: 1px solid var(--color-line); border-radius: var(--radius);
    padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 160px;
    transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.brand img { max-height: 120px; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover { transform: translateY(-6px); border-color: rgba(252,29,41,.4); background: rgba(255,255,255,.07); }
.brand:hover img { transform: scale(1.08); }

/* =============================================================
   INSTAGRAM
   ============================================================= */
.instagram { background: #ffffff; padding: clamp(64px, 8vw, 110px) 0; }
.instagram .section__eyebrow { color: var(--color-primary); }
.instagram__feed { width: 90%; margin: 0 auto; }

/* =============================================================
   SUCURSALES
   ============================================================= */
.branches { background: var(--color-dark); }
.branches__general { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 54px; }
.contact-pill {
    display: inline-flex; align-items: center; gap: 12px; background: var(--color-dark-2);
    border: 1px solid var(--color-line); border-radius: 50px; padding: 12px 22px; font-size: .98rem;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-pill:hover { border-color: rgba(252,29,41,.5); transform: translateY(-3px); }
.contact-pill i { color: var(--color-primary); font-size: 1.3rem; }
.contact-pill strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.contact-pill--social { gap: 16px; }
.contact-pill--social a { width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.contact-pill--social a i { color: #fff; font-size: 1.05rem; }
.contact-pill--social a:hover { transform: translateY(-3px) scale(1.06); }

.branches__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.branch {
    background: var(--color-dark-2); border: 1px solid var(--color-line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.branch:hover { transform: translateY(-6px); border-color: rgba(252,29,41,.4); box-shadow: var(--shadow); }
.branch__img { height: 230px; overflow: hidden; }
.branch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.branch:hover .branch__img img { transform: scale(1.06); }
.branch__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.branch__body h3 { font-family: var(--font-title); font-size: 1.7rem; text-transform: uppercase; line-height: 1; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.branch__body h3 i { color: var(--color-primary); font-size: 1.3rem; }
.branch__addr { color: var(--color-muted); margin-bottom: 4px; }
.branch__hours { color: #d7d7d7; font-size: .95rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.branch__hours i { color: var(--color-primary); }
.branch__map { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.branch__map iframe { width: 100%; height: 230px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }
.branch__wa {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: #fff; padding: 11px 18px; border-radius: 50px; font-weight: 600;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.branch__wa:hover { background: #1fb457; transform: translateY(-2px); }

/* =============================================================
   CONTACTO / FORM
   ============================================================= */
.contact { background: var(--color-secondary); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.contact__info .section__title { text-align: left; margin-bottom: 18px; }
.contact__list { margin-top: 28px; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__list i { width: 44px; height: 44px; border-radius: 50%; background: rgba(252,29,41,.14); border: 1px solid rgba(252,29,41,.4); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.contact__form {
    background: var(--color-dark-2); border: 1px solid var(--color-line); border-radius: var(--radius);
    padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: .95rem; }
.form-group label span { color: var(--color-primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--color-dark);
    border: 1.5px solid var(--color-line); color: #fff; font-family: inherit; font-size: 1rem;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6f6f6f; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(252,29,41,.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--color-primary); }
.form-error { display: block; color: #ff6b73; font-size: .85rem; margin-top: 6px; min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-status { margin-top: 16px; font-weight: 500; text-align: center; min-height: 1.4em; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #ff6b73; }

.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label::after { content: "…"; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--color-secondary); border-top: 3px solid var(--color-primary); position: relative; }
.footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
    padding: clamp(48px, 6vw, 80px) 0 40px;
}
.footer__logo { width: 100%; max-width: 230px; height: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--color-muted); font-size: .96rem; margin-bottom: 20px; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; background: var(--color-dark-2); border: 1px solid var(--color-line); display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), transform .3s var(--ease); }
.footer__social a:hover { background: var(--color-primary); transform: translateY(-3px); }
.footer__col h4 { font-family: var(--font-title); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; }
.footer__nav { display: grid; gap: 10px; }
.footer__nav li { color: var(--color-muted); }
.footer__nav a { color: var(--color-muted); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer__nav a:hover { color: var(--color-primary); padding-left: 5px; }
.footer__wa { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-title); font-size: 2.9rem; line-height: 1; color: #fff; letter-spacing: .5px; transition: color .3s var(--ease); }
.footer__wa i { color: var(--color-primary); }
.footer__wa:hover { color: var(--color-primary); }
.footer__email { display: inline-block; margin-top: 12px; color: var(--color-muted); transition: color .3s var(--ease); }
.footer__email:hover { color: var(--color-primary); }

.footer__bottom { border-top: 1px solid var(--color-line); padding: 22px 0; }
.footer__bottom-inner { text-align: center; color: var(--color-muted); font-size: .9rem; }
.footer__bottom a { color: var(--color-primary); font-weight: 600; }

/* Botón subir */
.to-top {
    position: fixed; right: 26px; bottom: 100px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; background: var(--color-secondary);
    border: 2px solid var(--color-primary); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-primary); }

/* =============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================= */
.wa-float { position: fixed; right: 26px; bottom: 26px; z-index: 950; }
.wa-float__btn {
    width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.9rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.3);
    transition: transform .3s var(--ease);
}
.wa-float__btn.btn--pulse::before { box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulseRingWa 2.2s ease-out infinite; }
@keyframes pulseRingWa {
    0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.55);} 70%{ box-shadow: 0 0 0 20px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);}
}
.wa-float__btn:hover { transform: scale(1.06); }

.wa-float__panel {
    position: absolute; right: 0; bottom: 78px; width: 300px; max-width: calc(100vw - 40px);
    background: #fff; color: var(--color-secondary); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 22px 55px rgba(0,0,0,.35); transform-origin: bottom right;
    animation: waPop .28s var(--ease);
}
@keyframes waPop { from{ opacity: 0; transform: translateY(12px) scale(.94);} to{ opacity: 1; transform: translateY(0) scale(1);} }
.wa-float__header { background: #128C7E; color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-float__header > i { font-size: 1.8rem; }
.wa-float__header strong { display: block; font-size: 1rem; }
.wa-float__header span { font-size: .82rem; opacity: .85; }
.wa-float__close { margin-left: auto; color: #fff; font-size: 1.2rem; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s var(--ease); }
.wa-float__close:hover { background: rgba(255,255,255,.2); }
.wa-float__list { padding: 8px; max-height: 320px; overflow-y: auto; }
.wa-float__list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease); }
.wa-float__list a i { color: var(--color-primary); }
.wa-float__list a:hover { background: #f1f1f1; color: var(--color-primary); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 992px) {
    .about__grid { grid-template-columns: 1fr; }
    .about__media { min-height: 320px; }
    .contact__inner { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .branches__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 72px; --topbar-h: 38px; }

    .topbar { font-size: .74rem; gap: 7px; line-height: 1.15; }
    .topbar i { font-size: .85rem; }

    .nav__toggle { display: flex; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); height: 100vh;
        background: #fff; flex-direction: column; padding: calc(var(--header-h) + var(--topbar-h) + 16px) 30px 30px;
        transform: translateX(100%); transition: transform .35s var(--ease); z-index: 1002;
        box-shadow: -10px 0 40px rgba(0,0,0,.25); overflow-y: auto;
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
    .nav__list li { width: 100%; }
    .nav__link { display: block; width: 100%; padding: 14px 4px; color: var(--color-secondary); border-bottom: 1px solid #eee; font-size: 1.1rem; }
    .nav__link:hover { color: var(--color-primary); }
    .nav__cta-item { margin: 18px 0 0; width: 100%; }
    .nav__cta { width: 100%; justify-content: center; }

    /* En móvil el logo dark siempre podría verse sobre header transparente; aseguramos contraste */
    .header:not(.scrolled) .nav__toggle span { background: #fff; }

    .hero { text-align: left; }
    .hero__arrow { width: 44px; height: 44px; }
    .hero__arrow--prev { left: 10px; }
    .hero__arrow--next { right: 10px; }

    .footer__grid { grid-template-columns: 1fr; text-align: left; }
    .branches__grid { grid-template-columns: 1fr; }

    .to-top { bottom: 92px; right: 18px; }
    .wa-float { right: 18px; bottom: 18px; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 32px, var(--container)); }
    .gallery__item { width: 260px; height: 260px; flex-basis: 260px; }
    .hero__cta .btn { width: 100%; }
    .hero__stats { gap: 24px; }
}

/* =============================================================
   REDUCED MOTION
   El usuario tiene reduced-motion activado en el sistema, pero el
   cliente pidió que PULSE, BARRIDO y MARQUESINAS funcionen SIEMPRE.
   Por eso NO desactivamos esas animaciones aquí; solo suavizamos
   micro-interacciones no esenciales para mantener buena UX.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    /* Se mantienen intencionalmente activas:
       .text-marquee__track, .gallery__track, .btn--pulse, .wa-float__btn,
       .hero__slide (barrido) y .hero__chevron. */
    html { scroll-behavior: auto; }
}
