/* ============================================================
   SPORTXARMAS — Catálogo urbano
   Paleta: negro · rojo · blanco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800;900&family=Archivo+Black&display=swap');

:root {
    --rojo:        #D32027;
    --rojo-osc:    #A81219;
    --rojo-claro:  #FF3B44;
    --negro:       #0A0A0B;
    --carbon:      #16161A;
    --grafito:     #24242A;
    --humo:        #3A3A42;
    --gris:        #8B8B95;
    --gris-claro:  #E8E8EC;
    --blanco:      #FFFFFF;
    --bg:          #F4F4F6;
    --wa:          #25D366;
    --shadow:      0 2px 8px rgba(10,10,11,.08);
    --shadow-lg:   0 18px 40px rgba(10,10,11,.22);
}

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

body {
    font-family: 'Archivo', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--negro);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1340px; margin: 0 auto; padding: 0 22px; }

/* ══════════ HEADER ══════════ */
.header {
    background: var(--negro);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--rojo);
}
.header-inner {
    display: flex; align-items: center; gap: 22px;
    padding: 14px 0; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
    height: 52px; width: auto; object-fit: contain;
    filter: brightness(0) invert(1);
}
.logo.color img { filter: none; }

.search-wrap { flex: 1; min-width: 210px; position: relative; }
.search-input {
    width: 100%; padding: 12px 18px 12px 44px;
    border: 2px solid var(--grafito); border-radius: 0;
    background: var(--carbon); color: var(--blanco);
    font-family: 'Archivo', sans-serif;
    font-size: 14px; font-weight: 500; outline: none;
    transition: border-color .2s;
}
.search-input::placeholder { color: var(--gris); }
.search-input:focus { border-color: var(--rojo); }
.search-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--gris); font-size: 15px; pointer-events: none;
}

.header-links { display: flex; gap: 8px; align-items: center; }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--rojo); color: var(--blanco);
    padding: 12px 22px; border-radius: 0;
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px;
    white-space: nowrap; transition: background .18s, transform .18s;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-wa:hover { background: var(--rojo-claro); transform: translateY(-1px); }

.btn-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--grafito); color: var(--blanco);
    font-size: 16px; transition: background .2s;
    border: 1px solid transparent;
}
.btn-social:hover { background: var(--rojo); }

/* ══════════ HERO ══════════ */
.hero {
    background: var(--negro);
    position: relative; overflow: hidden;
    padding: 62px 0 58px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(115deg,
            transparent 0 78px,
            rgba(211,32,39,.055) 78px 82px);
}
.hero::after {
    content: ''; position: absolute;
    right: -140px; top: 50%; transform: translateY(-50%) rotate(-12deg);
    width: 520px; height: 200px;
    background: var(--rojo); opacity: .11;
}
.hero-inner { position: relative; z-index: 2; }

.hero-tag {
    display: inline-block; background: var(--rojo); color: var(--blanco);
    padding: 6px 16px; font-size: 11.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px;
}
.hero h1 {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-size: clamp(38px, 6.5vw, 76px);
    line-height: .95; color: var(--blanco);
    text-transform: uppercase; letter-spacing: -1.5px;
    margin-bottom: 16px;
}
.hero h1 em { color: var(--rojo); font-style: normal; }
.hero p {
    font-size: 16px; color: var(--gris-claro);
    max-width: 520px; margin-bottom: 26px; font-weight: 500;
}
.hero-badges { display: flex; gap: 0; flex-wrap: wrap; }
.hero-badge {
    background: var(--grafito); color: var(--blanco);
    padding: 10px 18px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    border-right: 2px solid var(--negro);
}
.hero-badge:first-child { background: var(--rojo); }

/* ══════════ FILTROS ══════════ */
.filtros {
    background: var(--blanco);
    border-bottom: 2px solid var(--gris-claro);
    padding: 15px 0; position: sticky; top: 81px; z-index: 90;
}
.filtros-inner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.chip-filtro {
    padding: 9px 17px; border: 2px solid var(--negro);
    background: var(--blanco); color: var(--negro);
    font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
    white-space: nowrap; transition: all .16s; cursor: pointer;
}
.chip-filtro:hover { background: var(--negro); color: var(--blanco); }
.chip-filtro.activo { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.chip-filtro small { opacity: .65; font-weight: 600; }

.grupo-label {
    font-size: 10.5px; font-weight: 900; color: var(--gris);
    text-transform: uppercase; letter-spacing: 1.4px;
    padding-left: 8px; border-left: 3px solid var(--rojo);
}

.select-orden {
    padding: 9px 15px; border: 2px solid var(--negro);
    background: var(--blanco); font-family: 'Archivo', sans-serif;
    font-size: 12.5px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .4px; outline: none; cursor: pointer;
}

/* ══════════ SECCIÓN ══════════ */
.seccion { padding: 44px 0; }
.seccion-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
    border-bottom: 3px solid var(--negro); padding-bottom: 14px;
}
.seccion-titulo {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(24px, 3.6vw, 38px);
    text-transform: uppercase; letter-spacing: -1px; line-height: 1;
}
.seccion-titulo span { color: var(--rojo); }
.seccion-sub {
    font-size: 13px; color: var(--gris); margin-top: 6px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
}

/* ══════════ GRID PRODUCTOS ══════════ */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.card-producto {
    background: var(--blanco);
    border: 2px solid var(--negro);
    overflow: hidden; position: relative;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.card-producto:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-producto::before {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 4px; background: var(--rojo);
    transform: scaleX(0); transform-origin: left;
    transition: transform .28s; z-index: 3;
}
.card-producto:hover::before { transform: scaleX(1); }

.card-img-wrap {
    position: relative; aspect-ratio: 1;
    background: var(--blanco); overflow: hidden;
    border-bottom: 2px solid var(--gris-claro);
}
.card-img {
    width: 100%; height: 100%; object-fit: contain; padding: 16px;
    transition: transform .35s;
}
.card-producto:hover .card-img { transform: scale(1.09) rotate(-2deg); }

.badge-descuento {
    position: absolute; top: 0; left: 0;
    background: var(--rojo); color: var(--blanco);
    padding: 8px 18px 8px 12px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 15px; letter-spacing: -.4px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    z-index: 2;
}
.badge-genero {
    position: absolute; top: 11px; right: 11px;
    background: var(--negro); color: var(--blanco);
    padding: 5px 11px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; z-index: 2;
}

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-marca {
    font-family: 'Archivo Black', sans-serif;
    font-size: 12px; color: var(--rojo);
    text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 5px;
}
.card-nombre {
    font-size: 14px; font-weight: 700; line-height: 1.3;
    margin-bottom: 12px; min-height: 37px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-transform: uppercase; letter-spacing: -.2px;
}

.card-tallas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.talla-mini {
    background: var(--gris-claro); color: var(--negro);
    padding: 4px 9px; font-size: 11px; font-weight: 800;
    letter-spacing: .3px;
}
.talla-mas { background: var(--negro); color: var(--blanco); }

.card-precios {
    margin-top: auto; margin-bottom: 13px;
    padding-top: 12px; border-top: 2px dashed var(--gris-claro);
}
.precio-antes {
    font-size: 12.5px; color: var(--gris); font-weight: 700;
    text-decoration: line-through; display: block;
    text-transform: uppercase; letter-spacing: .4px;
}
.precio-label {
    font-size: 10px; color: var(--gris); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px; display: block;
}
.precio-ahora {
    font-family: 'Archivo Black', sans-serif;
    font-size: 27px; color: var(--rojo); line-height: 1;
    letter-spacing: -1px;
}
.precio-normal {
    font-family: 'Archivo Black', sans-serif;
    font-size: 27px; color: var(--negro); line-height: 1;
    letter-spacing: -1px;
}

.btn-consultar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--negro); color: var(--blanco);
    padding: 13px; font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    transition: background .18s;
}
.btn-consultar:hover { background: var(--wa); }

/* ══════════ BANNER MAYORISTA ══════════ */
.banner-mayorista {
    background: var(--rojo); color: var(--blanco);
    padding: 30px 0; position: relative; overflow: hidden;
}
.banner-mayorista::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg,
        transparent 0 24px, rgba(0,0,0,.06) 24px 48px);
}
.mayorista-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 22px; flex-wrap: wrap; position: relative; z-index: 2;
}
.mayorista-txt { display: flex; align-items: center; gap: 18px; }
.mayorista-icon { font-size: 44px; line-height: 1; }
.mayorista-titulo {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(19px, 2.6vw, 27px);
    text-transform: uppercase; letter-spacing: -.5px; line-height: 1.05;
}
.mayorista-desc { font-size: 13.5px; opacity: .92; font-weight: 500; margin-top: 3px; }
.btn-mayorista {
    background: var(--negro); color: var(--blanco);
    padding: 15px 30px; font-size: 13.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    display: inline-flex; align-items: center; gap: 9px;
    transition: transform .18s; white-space: nowrap;
}
.btn-mayorista:hover { transform: translateY(-2px); }

/* ══════════ FICHA PRODUCTO ══════════ */
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 38px 0; }
.ficha-img {
    background: var(--blanco); border: 2px solid var(--negro);
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    padding: 34px; position: relative; overflow: hidden;
}
.ficha-img img { max-height: 100%; object-fit: contain; }

.ficha-marca {
    font-family: 'Archivo Black', sans-serif;
    font-size: 14px; color: var(--rojo);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.ficha-nombre {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(22px, 3.4vw, 34px);
    line-height: 1.05; text-transform: uppercase;
    letter-spacing: -1px; margin-bottom: 14px;
}
.ficha-codigo {
    display: inline-block; background: var(--negro); color: var(--blanco);
    padding: 5px 13px; font-family: monospace;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1px; margin-bottom: 22px;
}

.ficha-precios {
    background: var(--negro); color: var(--blanco);
    padding: 24px; margin-bottom: 26px; position: relative; overflow: hidden;
}
.ficha-precios::after {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 130px; height: 130px; background: var(--rojo);
    opacity: .16; transform: rotate(45deg);
}
.ficha-antes {
    font-size: 15px; color: var(--gris); text-decoration: line-through;
    font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
}
.ficha-ahora {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(38px, 6vw, 52px);
    color: var(--rojo); line-height: 1; letter-spacing: -2px;
    position: relative; z-index: 2;
}
.ficha-ahorro {
    display: inline-block; background: var(--rojo); color: var(--blanco);
    padding: 6px 15px; font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px; margin-top: 10px;
    position: relative; z-index: 2;
}

.ficha-seccion { margin-bottom: 26px; }
.ficha-label {
    font-size: 11.5px; font-weight: 900; color: var(--negro);
    text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 12px;
    padding-left: 10px; border-left: 4px solid var(--rojo);
}
.tallas-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.talla-btn {
    min-width: 60px; padding: 13px 16px;
    border: 2px solid var(--negro); background: var(--blanco);
    font-family: 'Archivo', sans-serif;
    font-size: 15px; font-weight: 800; cursor: pointer;
    text-align: center; transition: all .16s;
}
.talla-btn:hover { background: var(--negro); color: var(--blanco); }
.talla-btn.sel { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }

.especificaciones { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--gris-claro); }
.espec-item { background: var(--blanco); padding: 13px 15px; }
.espec-label {
    font-size: 10px; color: var(--gris); font-weight: 900;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.espec-valor { font-size: 14.5px; font-weight: 700; margin-top: 3px; text-transform: uppercase; }

.btn-wa-grande {
    display: flex; align-items: center; justify-content: center; gap: 11px;
    background: var(--wa); color: var(--blanco);
    padding: 19px; font-family: 'Archivo Black', sans-serif;
    font-size: 16px; text-transform: uppercase; letter-spacing: 1px;
    width: 100%; border: none; cursor: pointer;
    transition: transform .18s, background .18s;
}
.btn-wa-grande:hover { transform: translateY(-2px); background: #1FBE5A; }

/* ══════════ PAGINACIÓN ══════════ */
.paginacion { display: flex; gap: 6px; justify-content: center; padding: 34px 0; flex-wrap: wrap; }
.pag-btn {
    min-width: 44px; padding: 11px 16px;
    border: 2px solid var(--negro); background: var(--blanco);
    font-size: 14px; font-weight: 800; text-align: center; transition: all .16s;
}
.pag-btn:hover { background: var(--negro); color: var(--blanco); }
.pag-btn.activo { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }

/* ══════════ VACÍO ══════════ */
.vacio { text-align: center; padding: 80px 20px; }
.vacio-icon { font-size: 66px; margin-bottom: 16px; }
.vacio-txt {
    font-size: 17px; color: var(--gris); margin-bottom: 24px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
}

/* ══════════ FOOTER ══════════ */
.footer { background: var(--negro); color: var(--gris-claro); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer h4 {
    color: var(--blanco); font-family: 'Archivo Black', sans-serif;
    font-size: 14px; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 1.4px;
    padding-left: 10px; border-left: 4px solid var(--rojo);
}
.footer p, .footer li { font-size: 13.5px; line-height: 1.9; color: var(--gris); }
.footer ul { list-style: none; }
.footer a:hover { color: var(--rojo); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-bottom {
    border-top: 1px solid var(--grafito); padding-top: 20px;
    text-align: center; font-size: 12px; color: var(--humo);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

/* ══════════ WHATSAPP FLOTANTE ══════════ */
.wa-flotante {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 60px; height: 60px;
    background: var(--wa); color: var(--blanco);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 6px 22px rgba(37,211,102,.45);
    transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.1) rotate(-6deg); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
    .ficha { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .header-inner { gap: 12px; padding: 12px 0; }
    .logo img { height: 40px; }
    .search-wrap { order: 3; width: 100%; flex-basis: 100%; }
    .btn-wa span { display: none; }
    .btn-wa { padding: 11px 15px; }
    .filtros { top: 66px; }

    .hero { padding: 40px 0 36px; }
    .hero-badge { font-size: 10.5px; padding: 8px 13px; }

    .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 12px; }
    .card-nombre { font-size: 12px; min-height: 32px; }
    .precio-ahora, .precio-normal { font-size: 21px; }
    .btn-consultar { padding: 10px; font-size: 11px; }
    .badge-descuento { font-size: 12.5px; padding: 6px 14px 6px 9px; }

    .especificaciones { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .mayorista-inner { flex-direction: column; align-items: flex-start; }
    .mayorista-icon { font-size: 34px; }
}
/* ══════════════════════════════════════════════════════════
   LOGO 3D INTERACTIVO EN EL HERO
   ══════════════════════════════════════════════════════════ */

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: center;
}

.hero-texto { min-width: 0; }

/* ── Escena 3D ── */
.logo3d-escena {
    perspective: 1100px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    position: relative;
}
.logo3d-escena.agarrado { cursor: grabbing; }

/* Halo rojo detrás */
.logo3d-escena::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(211,32,39,.32) 0%,
        rgba(211,32,39,.10) 45%,
        transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    animation: pulso 4.5s ease-in-out infinite;
}
@keyframes pulso {
    0%, 100% { transform: scale(1);    opacity: .85; }
    50%      { transform: scale(1.12); opacity: 1; }
}

/* Anillo giratorio decorativo */
.logo3d-escena::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border: 2px dashed rgba(211,32,39,.25);
    border-radius: 50%;
    animation: girar 22s linear infinite;
    pointer-events: none;
}
@keyframes girar {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Capa que rota ── */
.logo3d-capa {
    transform-style: preserve-3d;
    position: relative;
    will-change: transform;
    pointer-events: none;
}

/* Capas apiladas para dar volumen real */
.logo3d-cara {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo3d-cara img {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Capa frontal (la nítida) */
.logo3d-front {
    position: relative;
    transform: translateZ(26px);
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.6));
}

/* Capas de profundidad — dan grosor al logo */
.logo3d-depth-1 { transform: translateZ(16px); filter: brightness(.72); opacity: .9; }
.logo3d-depth-2 { transform: translateZ(8px);  filter: brightness(.5);  opacity: .82; }
.logo3d-depth-3 { transform: translateZ(0);    filter: brightness(.3);  opacity: .75; }
.logo3d-depth-4 {
    transform: translateZ(-10px);
    filter: brightness(0) blur(2px);
    opacity: .55;
}

/* Brillo que barre el logo */
.logo3d-brillo {
    position: absolute;
    inset: -8%;
    transform: translateZ(30px);
    background: linear-gradient(115deg,
        transparent 32%,
        rgba(255,255,255,.30) 46%,
        rgba(255,255,255,.55) 50%,
        rgba(255,255,255,.30) 54%,
        transparent 68%);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: barrido 5.5s ease-in-out infinite;
}
@keyframes barrido {
    0%, 62%, 100% { opacity: 0; transform: translateZ(30px) translateX(-60%); }
    72%           { opacity: 1; }
    88%           { opacity: 0; transform: translateZ(30px) translateX(60%); }
}

/* Sombra proyectada en el "piso" */
.logo3d-sombra {
    position: absolute;
    bottom: 6px; left: 50%;
    width: 62%; height: 22px;
    transform: translateX(-50%) translateZ(-40px) rotateX(78deg);
    background: radial-gradient(ellipse, rgba(0,0,0,.6) 0%, transparent 72%);
    filter: blur(9px);
    pointer-events: none;
}

/* ── Hint "arrástrame" ── */
.logo3d-hint {
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    background: rgba(211,32,39,.92);
    color: #fff;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .4s;
    animation: latir 2.6s ease-in-out infinite;
    z-index: 5;
}
@keyframes latir {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-5px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr 360px; gap: 26px; }
    .logo3d-escena { min-height: 270px; }
    .logo3d-escena::before { width: 270px; height: 270px; }
    .logo3d-escena::after  { width: 240px; height: 240px; }
}

@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .logo3d-escena { min-height: 230px; order: -1; }
    .logo3d-capa { max-width: 300px; }
    .logo3d-escena::before { width: 230px; height: 230px; }
    .logo3d-escena::after  { width: 210px; height: 210px; }
}

@media (max-width: 480px) {
    .logo3d-escena { min-height: 195px; }
    .logo3d-capa { max-width: 245px; }
    .logo3d-hint { font-size: 10px; padding: 5px 12px; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .logo3d-escena::before,
    .logo3d-escena::after,
    .logo3d-brillo,
    .logo3d-hint { animation: none; }
}

/* ══ FIX LOGO 3D — posicionamiento correcto ══ */
.hero .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 440px;
    gap: 40px;
    align-items: center;
}

.logo3d-capa {
    width: 400px;
    height: 190px;
    position: relative;
}

/* Todas las capas ocupan el mismo espacio, apiladas */
.logo3d-capa .logo3d-cara,
.logo3d-capa .logo3d-front {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo3d-capa img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .hero .hero-inner { grid-template-columns: 1fr 340px; gap: 24px; }
    .logo3d-capa { width: 320px; height: 155px; }
}

@media (max-width: 820px) {
    .hero .hero-inner { grid-template-columns: 1fr !important; gap: 22px; }
    .logo3d-escena { order: -1; min-height: 200px; }
    .logo3d-capa { width: 290px; height: 140px; }
}

@media (max-width: 480px) {
    .logo3d-capa { width: 240px; height: 118px; }
    .logo3d-escena { min-height: 170px; }
}


/* ══ AJUSTE FINO LOGO 3D ══ */
.hero .hero-inner { grid-template-columns: 1fr 500px !important; }
.logo3d-escena    { justify-content: flex-end; padding-right: 10px; }
.logo3d-capa      { width: 470px !important; height: 225px !important; }
.logo3d-escena::before { width: 400px; height: 400px; }
.logo3d-escena::after  { width: 365px; height: 365px; }

@media (max-width: 1200px) {
    .hero .hero-inner { grid-template-columns: 1fr 400px !important; }
    .logo3d-capa      { width: 375px !important; height: 182px !important; }
    .logo3d-escena::before { width: 325px; height: 325px; }
    .logo3d-escena::after  { width: 298px; height: 298px; }
}

@media (max-width: 820px) {
    .hero .hero-inner { grid-template-columns: 1fr !important; }
    .logo3d-escena    { justify-content: center; padding-right: 0; }
    .logo3d-capa      { width: 320px !important; height: 155px !important; }
    .logo3d-escena::before { width: 275px; height: 275px; }
    .logo3d-escena::after  { width: 252px; height: 252px; }
}

@media (max-width: 480px) {
    .logo3d-capa { width: 262px !important; height: 128px !important; }
    .logo3d-escena::before { width: 225px; height: 225px; }
    .logo3d-escena::after  { width: 206px; height: 206px; }
}


/* ══ HEADER: BOTONES CON ICONO + TEXTO ══ */
.search-wrap { display: flex; align-items: stretch; gap: 0; }
.search-wrap .search-input { flex: 1; }

.btn-buscar {
    background: var(--negro); color: var(--blanco);
    border: 2px solid var(--negro); border-left: none;
    padding: 0 24px; font-family: 'Archivo', sans-serif;
    font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: background .18s; white-space: nowrap;
}
.btn-buscar:hover { background: var(--rojo); border-color: var(--rojo); }

/* Botón de red social con icono + texto */
.btn-red {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--grafito); color: var(--blanco);
    padding: 8px 15px 8px 11px;
    transition: background .18s, transform .18s;
    border: 1px solid rgba(255,255,255,.06);
}
.btn-red:hover { background: var(--rojo); transform: translateY(-1px); }
.btn-red img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.btn-red-txt { display: flex; flex-direction: column; line-height: 1.15; }
.btn-red-txt small {
    font-size: 9px; opacity: .72; font-weight: 700;
    text-transform: uppercase; letter-spacing: .7px;
}
.btn-red-txt strong {
    font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .4px;
}

.btn-wa-icon { width: 22px; height: 22px; object-fit: contain; }

@media (max-width: 1100px) {
    .btn-red-txt small { display: none; }
    .btn-red { padding: 9px 13px; }
}

@media (max-width: 900px) {
    .btn-red-txt { display: none; }
    .btn-red { padding: 9px; }
    .btn-red img { width: 24px; height: 24px; }
}

@media (max-width: 640px) {
    .btn-buscar { padding: 0 16px; font-size: 11px; }
    .btn-wa span { display: none; }
    .btn-wa { padding: 11px 14px; }
}


/* ══ FOOTER: REDES GRANDES ══ */
.footer-grid { grid-template-columns: 1fr 1.2fr !important; gap: 50px; align-items: start; }

.footer-redes h4 {
    font-size: 17px !important;
    line-height: 1.3;
    margin-bottom: 20px !important;
    padding-left: 13px;
    border-left: 5px solid var(--rojo);
}

.red-grande {
    display: flex; align-items: center; gap: 15px;
    background: var(--grafito);
    padding: 15px 20px; margin-bottom: 11px;
    transition: background .2s, transform .2s;
    border-left: 4px solid transparent;
}
.red-grande:hover { transform: translateX(5px); }
.red-wa:hover     { background: #128C7E; border-left-color: var(--wa); }
.red-canal:hover  { background: #075E54; border-left-color: var(--wa); }
.red-tiktok:hover { background: #000; border-left-color: var(--rojo); }

.red-grande img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.red-grande span { display: flex; flex-direction: column; line-height: 1.25; }
.red-grande small {
    font-size: 11px; color: var(--gris); font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
}
.red-grande strong {
    font-size: 17px; color: var(--blanco); font-weight: 800;
    letter-spacing: -.2px;
}
.red-grande:hover small,
.red-grande:hover strong { color: var(--blanco); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
}

@media (max-width: 480px) {
    .footer-redes h4 { font-size: 15px !important; }
    .red-grande { padding: 13px 15px; gap: 12px; }
    .red-grande img { width: 34px; height: 34px; }
    .red-grande strong { font-size: 15px; }
    .red-grande small { font-size: 10px; }
}


/* ══ ICONOS DE WHATSAPP EN BOTONES ══ */
.ico-wa-btn    { width: 18px; height: 18px; object-fit: contain; display: inline-block; vertical-align: middle; }
.ico-wa-grande { width: 26px; height: 26px; object-fit: contain; display: inline-block; vertical-align: middle; }

.btn-consultar,
.btn-mayorista,
.btn-wa-grande { display: flex; align-items: center; justify-content: center; gap: 9px; }

.wa-flotante img { width: 32px; height: 32px; object-fit: contain; }




/* ══ TICKER CRUZADO — estilo streetwear ══ */
.ticker-zona {
    position: relative;
    background: var(--negro);
    padding: 46px 0;
    overflow: hidden;
    border-top: 3px solid var(--rojo);
}

.ticker-banda {
    position: absolute;
    left: -8%;
    width: 116%;
    overflow: hidden;
    padding: 11px 0;
    white-space: nowrap;
}

.banda-a {
    top: 22px;
    background: var(--rojo);
    transform: rotate(-2.4deg);
    box-shadow: 0 5px 22px rgba(211,32,39,.42);
    z-index: 2;
}

.banda-b {
    bottom: 22px;
    background: var(--blanco);
    transform: rotate(2.4deg);
    box-shadow: 0 5px 22px rgba(0,0,0,.5);
    z-index: 1;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: desliza 26s linear infinite;
    will-change: transform;
}
.ticker-track.reverso { animation: desliza-rev 30s linear infinite; }

.ticker-zona:hover .ticker-track { animation-play-state: paused; }

@keyframes desliza {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes desliza-rev {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.ticker-item {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-size: clamp(20px, 3vw, 34px);
    text-transform: uppercase;
    letter-spacing: -.6px;
    line-height: 1;
    padding: 0 22px;
    white-space: nowrap;
}

/* Banda roja: texto blanco + contorno */
.banda-a .ticker-item { color: var(--blanco); }
.banda-a .ticker-item.outline {
    color: transparent;
    -webkit-text-stroke: 1.6px rgba(255,255,255,.85);
}

/* Banda blanca: texto negro + contorno rojo */
.banda-b .ticker-item { color: var(--negro); }
.banda-b .ticker-item.outline {
    color: transparent;
    -webkit-text-stroke: 1.6px var(--rojo);
}

/* Separador: rombo */
.ticker-sep {
    width: 13px; height: 13px;
    flex-shrink: 0;
    transform: rotate(45deg);
    display: inline-block;
}
.banda-a .ticker-sep { background: var(--negro); }
.banda-b .ticker-sep { background: var(--rojo); }

@media (max-width: 900px) {
    .ticker-zona { padding: 36px 0; }
    .banda-a { top: 16px; }
    .banda-b { bottom: 16px; }
    .ticker-item { font-size: clamp(17px, 4.4vw, 26px); padding: 0 15px; }
    .ticker-sep { width: 10px; height: 10px; }
}

@media (max-width: 560px) {
    .ticker-zona { padding: 30px 0; }
    .banda-a, .banda-b { padding: 8px 0; }
    .banda-a { top: 12px; transform: rotate(-3deg); }
    .banda-b { bottom: 12px; transform: rotate(3deg); }
    .ticker-item { font-size: 16px; padding: 0 12px; }
    .ticker-item.outline { -webkit-text-stroke-width: 1.1px; }
    .ticker-track { animation-duration: 18s; }
    .ticker-track.reverso { animation-duration: 21s; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track, .ticker-track.reverso { animation: none; }
}


/* ══ LOGO 3D V2 — más grande, más a la derecha, mejores efectos ══ */
.hero { padding: 52px 0 72px; }
.hero .hero-inner {
    grid-template-columns: 1fr 620px !important;
    gap: 20px !important;
    align-items: center;
}

.logo3d-escena {
    justify-content: flex-end !important;
    padding-right: 0 !important;
    margin-right: -70px;
    min-height: 400px !important;
}

.logo3d-capa {
    width: 580px !important;
    height: 280px !important;
}

/* Halo doble más intenso */
.logo3d-escena::before {
    width: 500px !important; height: 500px !important;
    background: radial-gradient(circle,
        rgba(211,32,39,.45) 0%,
        rgba(211,32,39,.18) 38%,
        rgba(211,32,39,.05) 58%,
        transparent 72%) !important;
    filter: blur(34px) !important;
    animation: pulso-fuerte 3.8s ease-in-out infinite !important;
}
@keyframes pulso-fuerte {
    0%, 100% { transform: scale(1);    opacity: .8; }
    50%      { transform: scale(1.16); opacity: 1; }
}

/* Anillo doble giratorio */
.logo3d-escena::after {
    width: 460px !important; height: 460px !important;
    border: 2px dashed rgba(211,32,39,.32) !important;
    animation: girar 26s linear infinite !important;
}

/* Segundo anillo interior en sentido contrario */
.logo3d-escena .anillo-2 {
    position: absolute;
    width: 360px; height: 360px;
    border: 1.5px solid rgba(255,255,255,.09);
    border-top-color: rgba(211,32,39,.55);
    border-radius: 50%;
    animation: girar-inv 14s linear infinite;
    pointer-events: none;
}
@keyframes girar-inv {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

/* Más capas de profundidad = logo más "grueso" */
.logo3d-front   { transform: translateZ(40px) !important; filter: drop-shadow(0 26px 48px rgba(0,0,0,.75)) !important; }
.logo3d-depth-1 { transform: translateZ(28px) !important; filter: brightness(.78) !important; }
.logo3d-depth-2 { transform: translateZ(18px) !important; filter: brightness(.55) !important; }
.logo3d-depth-3 { transform: translateZ(9px)  !important; filter: brightness(.34) !important; }
.logo3d-depth-4 { transform: translateZ(-4px) !important; filter: brightness(.14) blur(1.5px) !important; opacity: .7 !important; }

/* Resplandor rojo pegado al logo */
.logo3d-capa::before {
    content: '';
    position: absolute;
    inset: -6%;
    transform: translateZ(-16px);
    background: radial-gradient(ellipse at center,
        rgba(211,32,39,.55) 0%,
        rgba(211,32,39,.15) 42%,
        transparent 68%);
    filter: blur(26px);
    pointer-events: none;
    animation: respirar 3.2s ease-in-out infinite;
}
@keyframes respirar {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

/* Brillo más marcado y frecuente */
/* barrido-v2 desactivado — se usa el barrido original (más sutil) */
.logo3d-brillo { transform: translateZ(46px) !important; }

/* Sombra en el piso más realista */
.logo3d-sombra {
    width: 70% !important;
    height: 28px !important;
    transform: translateX(-50%) translateZ(-55px) rotateX(80deg) !important;
    background: radial-gradient(ellipse, rgba(0,0,0,.78) 0%, transparent 70%) !important;
    filter: blur(13px) !important;
    animation: sombra-late 3.8s ease-in-out infinite;
}
@keyframes sombra-late {
    0%, 100% { opacity: .85; width: 70%; }
    50%      { opacity: .55; width: 60%; }
}

/* Hint reposicionado */
.logo3d-hint { bottom: 4px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1400px) {
    .hero .hero-inner { grid-template-columns: 1fr 540px !important; }
    .logo3d-escena { margin-right: -45px; }
    .logo3d-capa   { width: 510px !important; height: 246px !important; }
    .logo3d-escena::before { width: 440px !important; height: 440px !important; }
    .logo3d-escena::after  { width: 405px !important; height: 405px !important; }
    .logo3d-escena .anillo-2 { width: 320px; height: 320px; }
}

@media (max-width: 1150px) {
    .hero .hero-inner { grid-template-columns: 1fr 420px !important; }
    .logo3d-escena { margin-right: -20px; min-height: 330px !important; }
    .logo3d-capa   { width: 400px !important; height: 194px !important; }
    .logo3d-escena::before { width: 350px !important; height: 350px !important; }
    .logo3d-escena::after  { width: 320px !important; height: 320px !important; }
    .logo3d-escena .anillo-2 { width: 255px; height: 255px; }
}

@media (max-width: 820px) {
    .hero .hero-inner { grid-template-columns: 1fr !important; gap: 20px !important; }
    .logo3d-escena {
        justify-content: center !important;
        margin-right: 0; order: -1; min-height: 260px !important;
    }
    .logo3d-capa   { width: 330px !important; height: 160px !important; }
    .logo3d-escena::before { width: 285px !important; height: 285px !important; }
    .logo3d-escena::after  { width: 262px !important; height: 262px !important; }
    .logo3d-escena .anillo-2 { width: 210px; height: 210px; }
}

@media (max-width: 480px) {
    .logo3d-escena { min-height: 210px !important; }
    .logo3d-capa   { width: 268px !important; height: 130px !important; }
    .logo3d-escena::before { width: 232px !important; height: 232px !important; }
    .logo3d-escena::after  { width: 213px !important; height: 213px !important; }
    .logo3d-escena .anillo-2 { width: 172px; height: 172px; }
}

@media (prefers-reduced-motion: reduce) {
    .logo3d-escena .anillo-2,
    .logo3d-capa::before,
    .logo3d-sombra { animation: none; }
}








