/* =======================================================
   TRAFFIC EMPAQUES - Tienda / Landing publica
   Paleta de marca: cyan #29ABE2 sobre negro #111
   ======================================================= */

:root {
    --brand:        #29ABE2;
    --brand-dark:   #1B8CBD;
    --brand-soft:   rgba(41, 171, 226, .12);
    --ink:          #111111;
    --ink-2:        #1c1c1c;
    --ink-3:        #222222;
    --gray-900:     #2b2b2b;
    --gray-700:     #555555;
    --gray-500:     #838383;
    --gray-300:     #d9d9d9;
    --gray-100:     #f1f2f4;
    --gray-50:      #f8f9fa;
    --white:        #ffffff;
    --radius:       12px;
    --radius-lg:    18px;
    --shadow-sm:    0 2px 10px rgba(0, 0, 0, .06);
    --shadow:       0 8px 28px rgba(0, 0, 0, .10);
    --shadow-lg:    0 18px 50px rgba(0, 0, 0, .16);
    --header-h:     72px;
    --font:         'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Tipografia de seccion ---------- */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--ink); color: var(--white); }

.section-head { text-align: center; margin-bottom: 44px; }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.4px;
}
.section--dark .section-title { color: var(--white); }

.section-title-rule {
    width: min(560px, 80%);
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    margin: 14px auto 0;
}

.section-sub {
    margin-top: 16px;
    color: var(--gray-700);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: .95rem;
}
.section--dark .section-sub { color: rgba(255, 255, 255, .7); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--brand); color: var(--white); box-shadow: 0 6px 18px rgba(41, 171, 226, .32); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--outline { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: var(--white); }

.btn--ghost-light { border: 2px solid rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gray-900); }

.btn--block { width: 100%; }
.btn--lg { padding: 15px 34px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* =======================================================
   HEADER
   ======================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(17, 17, 17, .92);
    backdrop-filter: blur(10px);
    z-index: 900;
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header--solid { background: var(--ink); box-shadow: 0 2px 16px rgba(0, 0, 0, .35); }

.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.nav-main { display: flex; align-items: center; gap: 34px; }

.nav-link {
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.header-logo { justify-self: center; display: flex; align-items: center; }
/* El header mide var(--header-h) = 72px, asi que 56px deja ~8px de aire arriba y abajo. */
.header-logo img { height: 56px; width: auto; display: block; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }

.cart-button {
    position: relative;
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1;
    padding: 6px;
    transition: color .18s ease;
}
.cart-button:hover { color: var(--brand); }

.cart-count {
    position: absolute;
    top: -2px; right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Acceso al sistema interno (login) */
.login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 5px 16px rgba(41, 171, 226, .3);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.login-button i { font-size: 1.05rem; }
.login-button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: var(--white);
    box-shadow: 0 7px 20px rgba(41, 171, 226, .4);
}

.nav-toggle { display: none; color: var(--white); font-size: 1.5rem; }

/* Menu movil: panel completo, comodo para el pulgar */
.nav-mobile {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 26px 40px;
    display: none;
    flex-direction: column;
    z-index: 899;
    -webkit-overflow-scrolling: touch;
}
.nav-mobile.is-open { display: flex; }

.nav-mobile a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .9);
    padding: 20px 4px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    transition: color .16s ease, padding-left .16s ease;
}
.nav-mobile a i { font-size: 1.3rem; color: var(--brand); }
.nav-mobile a:active,
.nav-mobile a:hover { color: var(--brand); padding-left: 10px; }
.nav-mobile a:last-child { border-bottom: none; }

/* Acceso al sistema, destacado al final del panel */
.nav-mobile .nav-mobile__login {
    margin-top: 22px;
    justify-content: center;
    padding: 17px 20px;
    border: none;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .86rem;
    letter-spacing: 1px;
}
.nav-mobile .nav-mobile__login i { color: var(--white); font-size: 1.15rem; }
.nav-mobile .nav-mobile__login:hover,
.nav-mobile .nav-mobile__login:active {
    background: var(--brand-dark);
    color: var(--white);
    padding-left: 20px;
}

/* =======================================================
   HERO
   ======================================================= */
.hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--ink);
}
.hero--compact { min-height: 340px; }

.hero-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hero-bg span {
    background-size: cover;
    background-position: center;
    filter: brightness(.72);
}
.hero-bg--single { grid-template-columns: 1fr; }

/* ---------- Carrusel del banner principal (hasta 5 imagenes) ---------- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.72);
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s linear;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

/* Puntos de navegacion */
.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, width .2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active { background: var(--white); width: 26px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity .3s ease; transform: none; }
    .hero-slide.is-active { transform: none; }
}

/* =======================================================
   CAMPAÑA DEL MES (imagenes administrables)
   ======================================================= */
.campania-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
/* Una sola pieza: banda ancha centrada, no una tarjeta perdida */
.campania-grid:has(.campania-item:only-child) { grid-template-columns: minmax(0, 900px); justify-content: center; }

.campania-item {
    position: relative;
    display: block;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.campania-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.campania-item__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(145deg, #1d1d1d, #2f2f2f);
}
.campania-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.campania-item:hover .campania-item__media img { transform: scale(1.05); }

/* Velo inferior: sostiene el texto cuando la pieza trae titulo */
.campania-item--texto .campania-item__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 40%, rgba(0, 0, 0, .74));
}

.campania-item__caption {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.campania-item__titulo {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.campania-item__texto {
    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.campania-item__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.campania-item__link i { transition: transform .18s ease; }
.campania-item:hover .campania-item__link i { transform: translateX(4px); }

/* Piezas de video: la campaña las pinta como <button>, hay que neutralizar
   los estilos nativos para que se vean igual que las tarjetas de imagen. */
button.campania-item {
    width: 100%;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.campania-item__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(41, 171, 226, .94);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
    transition: transform .2s ease;
}
.campania-item:hover .campania-item__play { transform: translate(-50%, -50%) scale(1.08); }

.campania-item__tipo {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .74);
    color: var(--white);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.campania-item__tipo i { color: var(--brand); }

/* Con el boton de play centrado, el titulo baja para no quedar debajo */
.campania-item--texto:has(.campania-item__play) .campania-item__caption { padding-bottom: 14px; }

/* Velo suave: solo lo necesario para que el texto blanco tenga contraste.
   Se concentra arriba (header) y abajo, dejando el centro casi limpio. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .42));
}

.hero-content { position: relative; z-index: 2; padding: 60px 24px; max-width: 860px; }

.hero-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    /* Compensa el velo mas claro: la sombra sostiene la legibilidad */
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 8px 32px rgba(0, 0, 0, .35);
}

.hero-rule { width: 180px; height: 3px; background: rgba(255, 255, 255, .75); margin: 20px auto 0; }

.hero-text {
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
    margin-top: 18px;
    font-size: 1rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =======================================================
   LANDING - tarjetas de linea (Empaques / Digital)
   ======================================================= */
.line-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Tarjeta de linea: imagen grande arriba, contenido abajo sobre fondo claro */
.line-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.line-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.line-card__media {
    position: relative;
    aspect-ratio: 21 / 9;   /* banda ancha y baja, la tarjeta no se estira */
    overflow: hidden;
    background: linear-gradient(145deg, #1d1d1d, #2f2f2f);
}

.line-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.line-card:hover .line-card__img { transform: scale(1.05); }

/* Velo ligero: solo sostiene la etiqueta, la foto se ve casi limpia */
.line-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .05) 55%, rgba(0, 0, 0, .3));
}

.line-card__tag {
    position: absolute;
    z-index: 2;
    top: 16px; left: 16px;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.line-card__tag--soon {
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(6px);
}

.line-card__body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.line-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.6px;
}
.line-card__text {
    color: var(--gray-700);
    font-size: .92rem;
    margin-top: 8px;
    flex: 1;
}

/* Boton solido de la tarjeta */
.line-card__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(41, 171, 226, .32);
    transition: background .18s ease, box-shadow .18s ease;
}
.line-card:hover .line-card__link {
    background: var(--brand-dark);
    box-shadow: 0 8px 22px rgba(41, 171, 226, .42);
}
.line-card__link i { transition: transform .18s ease; }
.line-card:hover .line-card__link i { transform: translateX(4px); }

/* ---------- Categorias (tarjeta con pill central) ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Tarjeta de categoria: foto a sangre, velo oscuro y el nombre encima. */
.cat-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-2);
    box-shadow: var(--shadow-sm);
    transition: transform .24s ease, box-shadow .24s ease;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.cat-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.cat-tile:hover img { transform: scale(1.07); }

/* Velo: mas suave arriba, mas denso abajo, para que el pill respire */
.cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .46) 45%, rgba(0, 0, 0, .68));
    transition: background .24s ease;
}
.cat-tile:hover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .36) 45%, rgba(0, 0, 0, .6));
}

.cat-tile__pill {
    position: relative;
    z-index: 2;
    max-width: 82%;
    background: var(--brand);
    color: var(--white);
    padding: 11px 24px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: background .2s ease, transform .2s ease;
}
.cat-tile:hover .cat-tile__pill { background: var(--brand-dark); transform: scale(1.04); }

/* Contador de referencias: negro solido, texto blanco */
.cat-tile__count {
    position: absolute;
    z-index: 2;
    top: 14px; right: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .6px;
}

/* Tarjetas sin foto cargada: fondo de marca con icono, nunca un hueco */
.cat-tile--sinfoto {
    background: linear-gradient(145deg, #1d1d1d, #2c2c2c);
}
.cat-tile__icono {
    position: absolute;
    z-index: 1;
    font-size: 4.6rem;
    color: rgba(41, 171, 226, .3);
}

/* Variante Digital: en preparacion */
.cat-tile--soon { cursor: default; }
.cat-tile--soon .cat-tile__pill {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(6px);
}
.cat-tile--soon:hover .cat-tile__pill { background: rgba(255, 255, 255, .22); }
.cat-tile__soon {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 13px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- Menu de linea en "Nuestros Productos" ---------- */
.cat-switch {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    margin: 0 auto 34px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    /* centrado dentro del contenedor de la seccion */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.cat-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.cat-switch__btn i { font-size: 1rem; }
.cat-switch__btn:hover { color: var(--ink); background: var(--gray-100); }
.cat-switch__btn.is-active {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 5px 16px rgba(41, 171, 226, .34);
}
.cat-switch__btn.is-active:hover { background: var(--brand-dark); color: var(--white); }

/* ---------- Selector de linea: Empaques / Digital ---------- */
.linea-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.linea-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 18px 22px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.linea-tab:hover { border-color: var(--brand); transform: translateY(-2px); }

.linea-tab > i {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: background .18s ease, color .18s ease;
}

.linea-tab__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.linea-tab__text strong {
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: -.2px;
}
.linea-tab__text small { font-size: .8rem; color: var(--gray-500); }

.linea-tab__badge {
    position: absolute;
    top: 10px; right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.linea-tab.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 -3px 0 var(--brand);
}
.linea-tab.is-active > i { background: var(--brand); color: var(--white); }
.linea-tab.is-active .linea-tab__badge { background: var(--brand); color: var(--white); }

.linea-panel[hidden] { display: none; }

/* ---------- Categorias con descripcion (productos.html) ---------- */
.catcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.catcard {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.catcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }

.catcard__media {
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.catcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }

.catcard__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.catcard__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.catcard__text { color: var(--gray-700); font-size: .9rem; margin-top: 8px; flex: 1; }
.catcard__meta {
    margin-top: 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
}

/* =======================================================
   LISTADO DE PRODUCTOS
   ======================================================= */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.shop-count { color: var(--brand); font-size: .88rem; font-weight: 600; }

.shop-controls { display: flex; gap: 12px; flex-wrap: wrap; }

.shop-select,
.shop-search {
    appearance: none;
    padding: 11px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-900);
    font-size: .88rem;
    font-family: inherit;
    min-width: 190px;
}
.shop-select:focus,
.shop-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }

.shop-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 22px;
}
.shop-aside__title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}
.shop-filter {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: .88rem;
    transition: background .16s ease, color .16s ease;
}
.shop-filter:hover { background: var(--gray-100); color: var(--ink); }
.shop-filter.is-active { background: var(--brand); color: var(--white); font-weight: 600; }
.shop-filter span { float: right; opacity: .7; font-size: .8rem; }

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

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gray-100);
    display: block;
    overflow: hidden;
}
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__zoom {
    position: absolute;
    top: 10px; right: 10px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity .18s ease, background .18s ease, color .18s ease;
}
.product-card:hover .product-card__zoom { opacity: 1; }
.product-card__zoom:hover { background: var(--brand); color: var(--white); }

.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
}
.product-card__name {
    font-size: .98rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 6px;
    line-height: 1.3;
}
.product-card__dims { color: var(--gray-500); font-size: .8rem; margin-top: 6px; flex: 1; }
.product-card__actions { display: flex; gap: 8px; margin-top: 14px; }

.btn-add {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--brand);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .18s ease;
}
.btn-add:hover { background: var(--brand-dark); }

.btn-view {
    width: 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .18s ease, color .18s ease;
}
.btn-view:hover { border-color: var(--brand); color: var(--brand); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-500); }
.empty-state i { font-size: 2.6rem; color: var(--gray-300); display: block; margin-bottom: 14px; }

.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.skeleton {
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--gray-100) 25%, #e9ebee 37%, var(--gray-100) 63%);
    background-size: 400% 100%;
    animation: sk 1.3s ease infinite;
    height: 320px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =======================================================
   DETALLE DE PRODUCTO
   ======================================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .85rem;
    color: var(--brand);
    margin-bottom: 14px;
}
.breadcrumb span { color: var(--gray-500); }

.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.detail-gallery__main {
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.detail-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }

.detail-gallery__zoom {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.detail-gallery__zoom:hover { background: var(--brand); color: var(--white); }

.detail-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-thumb {
    width: 84px; height: 84px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: var(--gray-100);
    overflow: hidden;
    padding: 0;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.detail-thumb.is-active { border-color: var(--brand); }

.detail-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.6px;
}
.detail-rule { width: 90px; height: 3px; background: var(--brand); margin: 14px 0 20px; }
.detail-text { color: var(--gray-700); font-size: .96rem; }

.detail-specs { list-style: none; margin: 24px 0; border-top: 1px solid var(--gray-300); }
.detail-specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--gray-300);
    font-size: .9rem;
}
.detail-specs strong { color: var(--ink); font-weight: 600; }
.detail-specs span { color: var(--gray-700); }

.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.qty-label { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-700); }

.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    overflow: hidden;
}
.qty-input button {
    width: 40px; height: 42px;
    color: var(--gray-700);
    font-size: 1rem;
    transition: background .16s ease, color .16s ease;
}
.qty-input button:hover { background: var(--brand); color: var(--white); }
.qty-input input {
    width: 76px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: .95rem;
    font-family: inherit;
    color: var(--ink);
}
.qty-input input:focus { outline: none; }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-note {
    margin-top: 24px;
    padding: 16px 18px;
    background: var(--brand-soft);
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--gray-700);
}

/* =======================================================
   CARRITO
   ======================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

.cart-list { display: flex; flex-direction: column; gap: 14px; }

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 14px;
}
.cart-item__img {
    width: 92px; height: 92px;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item__cat { font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.cart-item__name { font-size: 1rem; font-weight: 700; color: var(--ink); }
.cart-item__dims { color: var(--gray-500); font-size: .82rem; }
.cart-item__side { display: flex; align-items: center; gap: 14px; }
.cart-item__remove { color: var(--gray-500); font-size: 1.1rem; transition: color .16s ease; }
.cart-item__remove:hover { color: #dc3545; }

.cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--gray-50);
}
.cart-summary h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 16px; }
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray-300);
}
.cart-summary__row strong { color: var(--ink); }
.cart-summary__note { font-size: .82rem; color: var(--gray-500); margin: 16px 0 20px; }

.form-field { margin-bottom: 14px; }
.form-field label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--ink);
    background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 84px; }

/* El select nativo ignora padding y alto en varios navegadores, asi que se
   quita su apariencia y se dibuja la flecha como imagen de fondo. */
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Espacio a la derecha para que el texto no se meta debajo de la flecha */
    padding-right: 38px;
    cursor: pointer;
    line-height: 1.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%23707880'><path d='M8 11.2 3.4 6.6a.8.8 0 0 1 1.2-1.1L8 8.9l3.4-3.4a.8.8 0 0 1 1.2 1.1z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* =======================================================
   MARCAS / EQUIPO
   ======================================================= */
/* Carrusel continuo de marcas: el track se duplica por JS y se desplaza
   exactamente el ancho de la primera copia, asi el loop no tiene salto. */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: marquee var(--marquee-duration, 30s) linear infinite;
    will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

.marquee .brand-chip { flex: 0 0 auto; width: 190px; }

.brands-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
}
.brand-chip {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .5px;
    filter: grayscale(1);
    opacity: .72;
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.brand-chip:hover { opacity: 1; filter: none; transform: translateY(-3px); }
.brand-chip img { max-height: 56px; width: auto; object-fit: contain; }
/* Logos anchos: se limitan al ancho del chip para no desbordar el carrusel */
.brand-chip--logo img { max-width: 100%; }
/* Con logo, el nombre queda oculto pero presente como respaldo accesible.
   Si la imagen falla, el JS quita brand-chip--logo y el nombre reaparece. */
.brand-chip--logo .brand-chip__nombre { display: none; }

.team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink-2); }
.team-photo img { width: 100%; height: auto; }
.team-photo__ph { display: none; }
.team-photo--empty .team-photo__ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 16 / 10;
    color: rgba(255, 255, 255, .45);
    font-size: .8rem;
}
.team-photo--empty .team-photo__ph i { font-size: 2.4rem; color: var(--brand); }
.team-copy .section-title { text-align: left; }
.team-copy .detail-rule { margin-left: 0; }
.team-copy p { color: var(--gray-700); font-size: .95rem; margin-bottom: 22px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.feature {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature i {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--gray-700); }

/* =======================================================
   CONTACTO
   ======================================================= */
.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.contacto-datos { display: flex; flex-direction: column; gap: 14px; }

.contacto-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.contacto-item:not(.contacto-item--static):hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.contacto-item__icon {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background .18s ease, color .18s ease;
}
.contacto-item:not(.contacto-item--static):hover .contacto-item__icon {
    background: var(--brand);
    color: var(--white);
}

.contacto-item__text { min-width: 0; }
.contacto-item__text strong {
    display: block;
    font-size: .96rem;
    color: var(--ink);
}
.contacto-item__text small {
    display: block;
    font-size: .84rem;
    color: var(--gray-700);
    margin-top: 3px;
    line-height: 1.5;
}

.contacto-item__arrow {
    margin-left: auto;
    color: var(--gray-300);
    transition: color .18s ease, transform .18s ease;
}
.contacto-item:hover .contacto-item__arrow { color: var(--brand); transform: translateX(3px); }

.contacto-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 30px;
}
.contacto-form__title {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 20px;
}
.contacto-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contacto-form__nota {
    font-size: .78rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 14px;
}

@media (max-width: 992px) {
    .contacto-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .contacto-form { padding: 22px; }
    .contacto-form__row { grid-template-columns: 1fr; }
}

/* =======================================================
   GALERIA (imagenes y videos administrables)
   ======================================================= */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* La primera pieza ocupa dos columnas para dar jerarquia editorial */
.galeria-grid .galeria-item--destacado { grid-column: span 2; }

.galeria-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.galeria-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.galeria-item__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--gray-100);
    overflow: hidden;
}
.galeria-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.galeria-item:hover .galeria-item__media img { transform: scale(1.05); }

.galeria-item__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .72));
}

.galeria-item__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(41, 171, 226, .94);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
    transition: transform .2s ease, background .2s ease;
}
.galeria-item:hover .galeria-item__play { transform: translate(-50%, -50%) scale(1.08); }

.galeria-item__tipo {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .74);
    color: var(--white);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.galeria-item__tipo i { color: var(--brand); }

.galeria-item__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 20px 22px;
    color: var(--white);
}
.galeria-item__titulo { font-size: 1.05rem; font-weight: 700; letter-spacing: -.2px; }
.galeria-item__texto {
    font-size: .84rem;
    color: rgba(255, 255, 255, .82);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Visor de video */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.video-modal.is-open { display: flex; }
.video-modal__frame {
    position: relative;
    width: min(1000px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-modal__frame iframe,
.video-modal__frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
    position: absolute;
    top: 22px; right: 26px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .galeria-grid { grid-template-columns: 1fr; }
    .galeria-grid .galeria-item--destacado { grid-column: span 1; }
    .video-modal { padding: 16px; }
}

/* =======================================================
   CTA + FOOTER
   ======================================================= */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cta-bar__eyebrow {
    color: var(--brand);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}
.cta-bar__title { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.5px; }
.cta-bar__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 40px 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 26px;
    padding: 28px 0;
}
.footer-col h4 {
    color: var(--white);
    font-size: .88rem;
    margin-bottom: 12px;
    letter-spacing: .3px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .68);
    transition: color .16s ease;
}
.footer-col a:hover { color: var(--brand); }
.footer-col a i { color: var(--brand); font-size: .7rem; }

.social-row { display: flex; gap: 12px; }
.social-row a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-row a:hover { background: var(--brand); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: var(--brand); }

/* Cinta de modo vista previa */
.preview-ribbon {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: #f0a63a;
    color: #3d2a05;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =======================================================
   FLOTANTES / MODAL / TOAST
   ======================================================= */
/* Boton flotante de WhatsApp: solo el icono */
.wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 800;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .42);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .52);
}
.wa-float i { font-size: 1.8rem; line-height: 1; }

.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.zoom-modal.is-open { display: flex; }
.zoom-modal img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.zoom-modal__close {
    position: absolute;
    top: 22px; right: 26px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
}

.toast-stack {
    position: fixed;
    bottom: 96px; right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    font-size: .88rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn .25s ease;
    max-width: 320px;
}
.toast i { color: var(--brand); font-size: 1.1rem; }
.toast--error i { color: #ff6b6b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Aviso proximamente */
.soon-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 54px 34px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}
.soon-box i.soon-icon {
    font-size: 3rem;
    color: var(--brand);
    display: block;
    margin-bottom: 18px;
}
.soon-box h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
.soon-box p { color: var(--gray-700); margin-bottom: 24px; }

.soon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: left; margin-bottom: 28px; }
.soon-list div {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    padding: 16px;
    font-size: .88rem;
    color: var(--gray-700);
}
.soon-list strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 992px) {
    .shop-layout,
    .cart-layout,
    .detail-layout,
    .team-layout,
    .line-grid { grid-template-columns: 1fr; }

    .shop-aside { position: static; }
    .cart-summary { position: static; }
    .team-copy .section-title { text-align: center; }
    .team-copy .detail-rule { margin: 14px auto 20px; }
}

@media (max-width: 1100px) {
    /* Header apretado: el boton de login queda solo con icono */
    .login-button { padding: 8px; border-radius: 50%; }
    .login-button span { display: none; }
}

@media (max-width: 768px) {
    .nav-main { display: none; }
    .nav-toggle { display: block; }
    /* En movil el acceso vive en el menu desplegable */
    .login-button { display: none; }
    .header-actions .btn--primary { padding: 10px 16px; font-size: .7rem; }
    .header-inner { grid-template-columns: auto 1fr auto; }
    .header-logo { justify-self: center; }
    /* En movil el header queda mas apretado: se reduce un poco el logo */
    .header-logo img { height: 46px; }
    .hero-bg { grid-template-columns: 1fr; }
    .hero-bg span:not(:first-child) { display: none; }
    .section { padding: 52px 0; }

    /* Menu de linea a ancho completo, sin desbordar */
    .cat-switch {
        display: flex;
        width: 100%;
        left: 0;
        transform: none;
        margin-bottom: 26px;
    }
    .cat-switch__btn { flex: 1; justify-content: center; padding: 11px 12px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .cat-tile__pill { font-size: .66rem; padding: 9px 16px; letter-spacing: .8px; }
    .cat-tile__count { top: 10px; right: 10px; font-size: .6rem; }

    /* Selector de linea en columna, con textos compactos */
    .linea-switch { grid-template-columns: 1fr; gap: 10px; }
    .linea-tab { padding: 14px 16px; gap: 12px; }
    .linea-tab > i { width: 40px; height: 40px; font-size: 1.15rem; }
    .linea-tab__text small { font-size: .74rem; }
    .linea-tab__badge { position: static; margin-left: auto; flex: 0 0 auto; }
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item__img { width: 72px; height: 72px; }
    .cart-item__side { grid-column: 1 / -1; justify-content: space-between; }
    .wa-float span.wa-text { display: none; }
}

/* =======================================================
   DESCUENTOS (badge del catalogo, detalle y carrito)
   El porcentaje se administra desde el panel:
   Catalogo > editar producto > "Producto en descuento".
   ======================================================= */
.product-card__off {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #ef4444;
    color: var(--white);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(239, 68, 68, .38);
    pointer-events: none;
}
.product-card__off i { font-size: .72rem; }

/* Borde de acento para que la referencia en oferta destaque en la grilla */
.product-card--off { border-color: rgba(239, 68, 68, .4); }
.product-card--off:hover { border-color: #ef4444; }

/* Aviso en la tarjeta de categoria de la landing */
.cat-tile__off {
    position: absolute;
    bottom: 12px; left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: var(--white);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* Sello en la pagina de detalle del producto */
.detail-off {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* Linea de descuento en el carrito */
.cart-item__off {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .4px;
}

/* El titulo de la seccion de ofertas lleva icono inline */
#ofertas .section-title i { color: #ef4444; margin-right: 8px; }

@media (max-width: 640px) {
    .product-card__off { top: 8px; left: 8px; font-size: .6rem; padding: 5px 9px; }
    .cat-tile__off { bottom: 10px; left: 10px; font-size: .55rem; }
}

/* =======================================================
   PRECIOS EN TARJETAS Y DETALLE
   ======================================================= */
.product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
    font-size: .95rem;
    color: var(--ink);
}

.product-card__price-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-500);
    font-weight: 700;
}

.product-card__price strong { font-size: 1.1rem; font-weight: 800; }
.product-card__price-unit { font-size: .74rem; color: var(--gray-500); }

.product-card__price-old {
    font-size: .82rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-card__price--sin {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-500);
}

/* Detalle de producto */
.detail-price {
    margin: 22px 0 18px;
    padding: 16px 18px;
    background: var(--gray-100, #f6f7f9);
    border-radius: var(--radius, 12px);
    border-left: 4px solid var(--brand);
}

.detail-price__main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-price__unit { font-size: 1.75rem; font-weight: 800; color: var(--ink); }
.detail-price__per  { font-size: .82rem; color: var(--gray-500); }

.detail-price__old {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.detail-price__total {
    margin-top: 6px;
    font-size: .95rem;
    color: var(--gray-600, #555);
}
.detail-price__total strong { color: var(--brand); font-size: 1.05rem; }

.detail-price__escala {
    margin-top: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-price__sin {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-600, #555);
}

/* =======================================================
   CARRITO: PRECIOS Y ACCIONES
   ======================================================= */
.cart-item__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cart-item__price-old {
    font-size: .8rem;
    color: var(--gray-500);
    text-decoration: line-through;
}
.cart-item__price-unit  { font-size: .84rem; color: var(--gray-500); }
.cart-item__price-total { font-size: 1.05rem; font-weight: 800; color: var(--ink); }

.cart-item__price--sin {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-500);
}

.cart-summary__row--total {
    border-top: 1px solid var(--gray-300);
    margin-top: 6px;
    padding-top: 12px;
}
.cart-summary__row--total strong { font-size: 1.25rem; color: var(--brand); }

.cart-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

/* =======================================================
   MODAL: GENERAR COTIZACION
   ======================================================= */
.cot-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}
.cot-modal.is-open { display: flex; align-items: flex-start; justify-content: center; }

.cot-modal__box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    margin: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.cot-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-200, #eee);
}

.cot-modal__header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
}
.cot-modal__header i { color: var(--brand); }

.cot-modal__close {
    background: none;
    border: none;
    font-size: 1.05rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
}
.cot-modal__close:hover { background: var(--gray-100, #f4f4f4); color: var(--ink); }

.cot-modal__body { padding: 22px; }

.cot-modal__intro {
    font-size: .9rem;
    color: var(--gray-600, #555);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cot-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Selector persona natural / empresa */
.cot-tipo-persona { display: flex; gap: 10px; }

.cot-tipo-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border: 2px solid var(--gray-300, #e2e4e8);
    border-radius: 10px;
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    color: var(--gray-600, #555);
    cursor: pointer;
    transition: all .18s ease;
}
.cot-tipo-opt:hover { border-color: var(--brand); color: var(--brand); }
.cot-tipo-opt.is-active {
    border-color: var(--brand);
    background: rgba(41, 171, 226, .08);
    color: var(--brand);
    font-weight: 700;
}

.cot-modal__resumen {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--gray-100, #f6f7f9);
    border-radius: 10px;
}

.cot-modal__resumen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .88rem;
    color: var(--gray-600, #555);
}
.cot-modal__resumen-row strong { font-size: 1.1rem; color: var(--brand); }

.cot-modal__error {
    margin-bottom: 14px;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #b91c1c;
    font-size: .85rem;
    font-weight: 600;
}

/* Confirmacion */
.cot-modal__ok { padding: 34px 26px; text-align: center; }

.cot-modal__ok > i {
    font-size: 3.2rem;
    color: #16a34a;
    display: block;
    margin-bottom: 14px;
}

.cot-modal__ok h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }

.cot-modal__ok p {
    font-size: .92rem;
    color: var(--gray-600, #555);
    line-height: 1.65;
    margin-bottom: 8px;
}

.cot-modal__ok-mail { font-size: .84rem !important; color: var(--gray-500) !important; }

.cot-modal__ok-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 560px) {
    .cot-form-row { grid-template-columns: 1fr; }
    .cot-tipo-persona { flex-direction: column; }
}
