:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bg3: #1a1a26;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99,102,241,0.3);
    --green: #22c55e;
    --amber: #f59e0b;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --red: #ef4444;
    --text: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --amazon: #ff9900;
    --card-bg: rgba(255,255,255,0.03);
    --card-hover: rgba(255,255,255,0.06);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--primary-light); }
.logo a { display: block; line-height: 0; text-decoration: none; }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}
nav a:hover { color: var(--text); }

nav a[href="#tecnologia"]:hover {
    color: #a5b4fc;
    text-shadow: 0 0 16px rgba(99,102,241,0.7), 0 0 30px rgba(99,102,241,0.35);
}
nav a[href="#salud"]:hover {
    color: #4ade80;
    text-shadow: 0 0 16px rgba(34,197,94,0.7), 0 0 30px rgba(34,197,94,0.35);
}
nav a[href="#hogar"]:hover {
    color: #fbbf24;
    text-shadow: 0 0 16px rgba(245,158,11,0.7), 0 0 30px rgba(245,158,11,0.35);
}
nav a[href="#mascotas"]:hover {
    color: #f472b6;
    text-shadow: 0 0 16px rgba(236,72,153,0.7), 0 0 30px rgba(236,72,153,0.35);
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    padding: 0.38rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.nav-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: dotPulse 2.2s ease-in-out infinite;
}
.nav-badge:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.07);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── HERO ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    top: -100px; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Stage: 5 columnas en fila */
.hero-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    padding: 2rem 1.5% 1.5rem;
    position: relative;
    z-index: 1;
}

.offer-col {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    flex-shrink: 0;
}

.offer-col--single {
    justify-content: center;
}

/* Acerca las pegatinas interiores al centro */
.hero-stage > *:nth-child(2) { margin-left: 1.8rem; }
.hero-stage > *:nth-child(4) { margin-right: 1.8rem; }

.hero-inner {
    flex: 1;
    max-width: 660px;
    min-width: 0;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1rem;
    background: var(--primary-glow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(99,102,241,0.3);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 0 30px var(--primary-glow);
}
.btn-hero:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99,102,241,0.5);
}

/* ── BÚSQUEDA ── */
.search-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 1.8rem auto 0;
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.5;
    line-height: 1;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 2.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
}

.search-input::placeholder { color: var(--text-3); }

.search-input:focus {
    border-color: var(--primary);
    background: rgba(99,102,241,0.07);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.search-input::-webkit-search-cancel-button { display: none; }

.search-info {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 0.55rem;
    min-height: 1.1em;
    text-align: center;
}

/* ── CARTELES DE OFERTA ── */

.offer-card {
    width: 120px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(12,12,20,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.offer-card__label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    margin-bottom: 0.2rem;
    padding: 0 0.5rem;
    text-align: center;
}

/* franja de color superior */
.offer-card__accent {
    width: 100%;
    height: 5px;
    margin-bottom: 0.9rem;
}

.offer-card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.55rem;
    filter: drop-shadow(0 0 6px currentColor);
}

.offer-card__title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.2px;
    padding: 0 0.5rem;
}

.offer-card__sub {
    font-size: 0.62rem;
    color: var(--text-3);
    font-weight: 500;
    margin-top: 0.3rem;
    text-align: center;
    padding: 0 0.5rem;
}

/* colores individuales */
.offer-card--purple {
    box-shadow: 0 8px 28px rgba(99,102,241,0.25), inset 0 0 0 1px rgba(99,102,241,0.2);
    transform: rotate(-4deg);
}
.offer-card--purple:hover  { transform: rotate(-4deg) scale(1.07); }
.offer-card--purple .offer-card__accent { background: linear-gradient(90deg, #6366f1, #818cf8); }
.offer-card--purple .offer-card__icon  { color: #a5b4fc; }

.offer-card--amber {
    box-shadow: 0 8px 28px rgba(245,158,11,0.2), inset 0 0 0 1px rgba(245,158,11,0.2);
    transform: rotate(3deg);
}
.offer-card--amber:hover  { transform: rotate(3deg) scale(1.07); }
.offer-card--amber .offer-card__accent { background: linear-gradient(90deg, #d97706, #fbbf24); }
.offer-card--amber .offer-card__icon  { color: #fbbf24; }

.offer-card--cyan {
    box-shadow: 0 8px 28px rgba(6,182,212,0.2), inset 0 0 0 1px rgba(6,182,212,0.2);
    transform: rotate(4deg);
}
.offer-card--cyan:hover  { transform: rotate(4deg) scale(1.07); }
.offer-card--cyan .offer-card__accent { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.offer-card--cyan .offer-card__icon  { color: #22d3ee; }

.offer-card--green {
    box-shadow: 0 8px 28px rgba(34,197,94,0.2), inset 0 0 0 1px rgba(34,197,94,0.2);
    transform: rotate(-3deg);
}
.offer-card--green:hover  { transform: rotate(-3deg) scale(1.07); }
.offer-card--green .offer-card__accent { background: linear-gradient(90deg, #16a34a, #4ade80); }
.offer-card--green .offer-card__icon  { color: #4ade80; }

/* Tira destacados (encima del carrusel, dentro del hero) */
.featured-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 1.8rem 3% 0;
}

/* Pegatinas nuevas — gold y coral */
.offer-card--gold {
    box-shadow: 0 8px 28px rgba(234,179,8,0.25), inset 0 0 0 1px rgba(234,179,8,0.22);
    transform: rotate(2deg);
}
.offer-card--gold:hover  { transform: rotate(2deg) scale(1.07); box-shadow: 0 12px 36px rgba(234,179,8,0.4), inset 0 0 0 1px rgba(234,179,8,0.35); }
.offer-card--gold .offer-card__accent { background: linear-gradient(90deg, #b45309, #fbbf24); }
.offer-card--gold .offer-card__icon  { color: #fde047; filter: drop-shadow(0 0 8px rgba(234,179,8,0.7)); }
.offer-card--gold .offer-card__title { color: #fde047; font-size: 0.68rem; }
.offer-card--gold .offer-card__label { color: rgba(253,224,71,0.6); }

.offer-card--coral {
    box-shadow: 0 8px 28px rgba(249,115,22,0.25), inset 0 0 0 1px rgba(249,115,22,0.22);
    transform: rotate(-2deg);
}
.offer-card--coral:hover  { transform: rotate(-2deg) scale(1.07); box-shadow: 0 12px 36px rgba(249,115,22,0.4), inset 0 0 0 1px rgba(249,115,22,0.35); }
.offer-card--coral .offer-card__accent { background: linear-gradient(90deg, #c2410c, #fb923c); }
.offer-card--coral .offer-card__icon  { color: #fdba74; filter: drop-shadow(0 0 8px rgba(249,115,22,0.7)); }
.offer-card--coral .offer-card__title { color: #fdba74; font-size: 0.68rem; }
.offer-card--coral .offer-card__label { color: rgba(253,186,116,0.6); }

/* Badge NUEVO en tarjeta */
.p-new-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #ec4899);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(99,102,241,0.5);
}

/* ── SECCIONES ── */
.category-section {
    padding: 5rem 5%;
    position: relative;
}

/* Línea separadora brillante en el borde superior */
.category-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(99,102,241,0.5) 25%,
        rgba(148,163,184,0.35) 50%,
        rgba(99,102,241,0.5) 75%,
        transparent 100%);
}

/* Glow radial difuso en la parte superior */
.category-section::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 400px;
    background: radial-gradient(ellipse at top, rgba(99,102,241,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Fondo alternado para sensación de capas */
#salud    { background: var(--bg2); }
#mascotas { background: var(--bg2); }

/* Cabecera de sección */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.section-icon { font-size: 2rem; }

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 0.9rem;
    color: var(--text-3);
    margin-top: 0.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

/* ── TARJETA ── */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
    transform: translateY(-4px);
}

/* Imagen */
.p-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.p-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.product-card:hover .p-image { transform: scale(1.04); }

.p-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10,10,15,0.8) 100%);
}

.p-savings {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.p-prime {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #00a8e0;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* Cuerpo */
.p-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }

.p-badge-top {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.p-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.p-subtitle {
    font-size: 0.85rem;
    color: var(--text-2);
    margin-top: 0.2rem;
    font-weight: 400;
}

/* Estrellas + precio */
.p-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p-stars { display: flex; align-items: center; gap: 0.4rem; }

.stars-visual { color: var(--amber); font-size: 0.9rem; letter-spacing: 1px; }

.p-reviews { font-size: 0.78rem; color: var(--text-3); }

.p-price-wrap { text-align: right; }

.p-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.p-price-original {
    font-size: 0.8rem;
    color: var(--text-3);
    text-decoration: line-through;
    display: block;
}

/* Hook */
.p-hook {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding: 0.6rem 0.8rem;
    background: rgba(99,102,241,0.07);
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

/* Specs */
.p-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.spec-pill {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

/* Por qué comprarlo */
.p-why {
    background: rgba(34,197,94,0.05);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.p-why-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.p-why ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }

.p-why li {
    font-size: 0.85rem;
    color: var(--text-2);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.p-why li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Botón Amazon */
.btn-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--amazon);
    color: #000;
    text-decoration: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-top: auto;
}

.btn-amazon:hover {
    background: #ffad33;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,153,0,0.3);
}

/* Análisis desplegable */
.p-toggle-wrap { margin-top: 0.25rem; }

.toggle-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-3);
    padding: 0.6rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.toggle-btn:hover { border-color: var(--border-hover); color: var(--text-2); }

.p-details { display: none; flex-direction: column; gap: 1.2rem; padding-top: 1rem; }

.p-details.expanded {
    display: flex;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.detail-block h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.review-item {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-2);
    padding: 0.6rem 0.8rem;
    background: var(--bg3);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    border-left: 2px solid var(--primary);
}

.detail-block p { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

.verdict-block {
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}

.verdict-block h4 { color: var(--primary-light); }
.verdict-block p { color: var(--text); font-weight: 600; }

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1.1rem; right: 1.2rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    color: var(--text-2);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,0.13); color: var(--text); }

.modal-icon { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1; text-align: center; }
.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}
.modal-body { display: flex; flex-direction: column; gap: 0.9rem; }

.modal-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.modal-item:hover { border-color: var(--border-hover); }
.modal-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.modal-item-text { flex: 1; }
.modal-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1px;
}
.modal-item-desc {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.55;
}
.modal-accent { height: 3px; border-radius: 3px; margin-bottom: 1.5rem; }

/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 2.5rem 5%;
    margin-top: 4rem;
}

.footer-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.8rem; }
.footer-logo span { color: var(--primary-light); }

.footer-legal { font-size: 0.8rem; color: var(--text-3); line-height: 1.7; }

.footer-links { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-2); }
.footer-links span { color: var(--border); font-size: 0.75rem; }

/* ── CARRUSEL ── */
.carousel-section {
    padding: 0.5rem 0 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
}

.carousel-section::before,
.carousel-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.carousel-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}
.carousel-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.carousel-track-wrapper { overflow: hidden; }

.carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scrollLeft 50s linear infinite;
}

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

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

.carousel-item {
    flex-shrink: 0;
    width: 175px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.carousel-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99,102,241,0.2);
}

.carousel-img {
    width: 100%;
    height: 115px;
    background-size: cover;
    background-position: center;
}

.carousel-info {
    padding: 0.6rem 0.75rem 0.75rem;
}

.carousel-stars {
    font-size: 0.65rem;
    color: var(--amber);
    margin-bottom: 0.25rem;
}

.carousel-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.carousel-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--amazon);
}

/* ══════════════════════════════════════
   CAJAS ILUMINADAS — color por categoría
   ══════════════════════════════════════ */

/* ── TECNOLOGÍA · índigo ── */
#grid-tech .product-card {
    border-color: rgba(99,102,241,0.22);
    box-shadow: 0 0 18px rgba(99,102,241,0.1), inset 0 0 25px rgba(99,102,241,0.03);
}
#grid-tech .product-card:hover {
    border-color: rgba(99,102,241,0.6);
    box-shadow:
        0 0 35px rgba(99,102,241,0.28),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(99,102,241,0.06);
    transform: translateY(-5px);
}
#grid-tech .p-image-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(5,4,28,0.9) 100%);
}
#grid-tech .p-hook {
    border-left-color: var(--primary);
    background: rgba(99,102,241,0.09);
}
#grid-tech .p-why {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.18);
}
#grid-tech .p-why-title { color: var(--primary-light); }
#grid-tech .p-why li::before { color: var(--primary-light); }

/* ── SALUD · verde ── */
#grid-health .product-card {
    border-color: rgba(34,197,94,0.22);
    box-shadow: 0 0 18px rgba(34,197,94,0.1), inset 0 0 25px rgba(34,197,94,0.03);
}
#grid-health .product-card:hover {
    border-color: rgba(34,197,94,0.6);
    box-shadow:
        0 0 35px rgba(34,197,94,0.25),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(34,197,94,0.06);
    transform: translateY(-5px);
}
#grid-health .p-image-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(2,18,8,0.9) 100%);
}
#grid-health .p-hook {
    border-left-color: var(--green);
    background: rgba(34,197,94,0.08);
}
#grid-health .p-why {
    background: rgba(34,197,94,0.06);
    border-color: rgba(34,197,94,0.18);
}

/* ── HOGAR · ámbar ── */
#grid-home .product-card {
    border-color: rgba(245,158,11,0.22);
    box-shadow: 0 0 18px rgba(245,158,11,0.1), inset 0 0 25px rgba(245,158,11,0.03);
}
#grid-home .product-card:hover {
    border-color: rgba(245,158,11,0.6);
    box-shadow:
        0 0 35px rgba(245,158,11,0.25),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(245,158,11,0.06);
    transform: translateY(-5px);
}
#grid-home .p-image-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(20,10,2,0.9) 100%);
}
#grid-home .p-hook {
    border-left-color: var(--amber);
    background: rgba(245,158,11,0.08);
}
#grid-home .p-why {
    background: rgba(245,158,11,0.06);
    border-color: rgba(245,158,11,0.18);
}
#grid-home .p-why-title { color: #fbbf24; }
#grid-home .p-why li::before { color: #fbbf24; }

/* ── MASCOTAS · rosa ── */
#grid-pets .product-card {
    border-color: rgba(236,72,153,0.22);
    box-shadow: 0 0 18px rgba(236,72,153,0.1), inset 0 0 25px rgba(236,72,153,0.03);
}
#grid-pets .product-card:hover {
    border-color: rgba(236,72,153,0.6);
    box-shadow:
        0 0 35px rgba(236,72,153,0.25),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(236,72,153,0.06);
    transform: translateY(-5px);
}
#grid-pets .p-image-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(20,2,12,0.9) 100%);
}
#grid-pets .p-hook {
    border-left-color: var(--pink);
    background: rgba(236,72,153,0.08);
}
#grid-pets .p-why {
    background: rgba(236,72,153,0.06);
    border-color: rgba(236,72,153,0.18);
}
#grid-pets .p-why-title { color: #f472b6; }
#grid-pets .p-why li::before { color: #f472b6; }

/* Trust strip: oculto por defecto, solo visible en móvil */
.trust-strip-mobile { display: none; }

/* ── RESPONSIVE ── */

/* Tablet ancha: ocultar columnas de pegatinas, 2 columnas de grid */
@media (max-width: 1100px) {
    .offer-col    { display: none; }
    .hero-stage   { padding: 1.5rem 4% 0; }
    .hero-inner   { max-width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MÓVIL ── */
@media (max-width: 768px) {

    /* — Navbar — */
    .navbar {
        padding: 0.6rem 4%;
        flex-wrap: wrap;
        gap: 0.3rem 0;
        align-items: center;
    }
    .logo { flex: 1; }
    .nav-badge {
        display: flex;
        font-size: 0.68rem;
        padding: 0.25rem 0.65rem;
        gap: 0.35rem;
    }
    nav {
        width: 100%;
        order: 3;
        margin-top: 0.25rem;
    }
    nav ul {
        display: flex;
        gap: 0.3rem;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 3px;
    }
    nav ul::-webkit-scrollbar { display: none; }
    nav ul li { flex-shrink: 0; }
    nav a {
        display: block;
        padding: 0.3rem 0.65rem;
        font-size: 0.78rem;
        white-space: nowrap;
        border-radius: 8px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }
    nav a:hover { background: rgba(255,255,255,0.08); }

    /* — Hero — */
    .hero-stage   { padding: 1.4rem 4% 0; }
    .hero-inner   { max-width: 100%; }
    .hero-tag     { font-size: 0.7rem; margin-bottom: 0.7rem; }
    .hero h1      { font-size: 1.75rem; letter-spacing: -0.5px; margin-bottom: 0.7rem; }
    .hero p       { font-size: 0.88rem; margin-bottom: 1.1rem; }
    .btn-hero     { padding: 0.75rem 1.8rem; font-size: 0.9rem; }
    .search-wrap  { max-width: 100%; margin-top: 1.1rem; }

    /* — Trust strip móvil — */
    .trust-strip-mobile {
        display: flex;
        overflow-x: auto;
        gap: 0.7rem;
        padding: 1.1rem 4% 0.5rem;
        scrollbar-width: none;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .trust-strip-mobile::-webkit-scrollbar { display: none; }
    .trust-strip-mobile .offer-card {
        width: 96px;
        flex-shrink: 0;
        transform: none !important; /* sin rotación en móvil */
        touch-action: manipulation;
    }
    .trust-strip-mobile .offer-card__icon { font-size: 1.6rem; }
    .trust-strip-mobile .offer-card__title { font-size: 0.67rem; }
    .trust-strip-mobile .offer-card__sub   { font-size: 0.58rem; }

    /* — Carrusel — */
    .carousel-section { padding: 0.3rem 0 0.5rem; }
    .carousel-item    { width: 135px; }
    .carousel-img     { height: 90px; }

    /* — Secciones — */
    .category-section  { padding: 2rem 4%; }
    .section-header    { padding: 0.75rem 0.9rem; border-radius: 12px; gap: 0.75rem; }
    .section-header h2 { font-size: 1.2rem; }
    .section-icon      { font-size: 1.5rem; }
    .section-sub       { font-size: 0.82rem; }

    /* — Grid: 1 columna — */
    .product-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* — Tarjeta — */
    .p-image-wrap { height: 195px; }
    .p-body       { padding: 1rem; gap: 0.8rem; }
    .p-title      { font-size: 1rem; }
    .p-subtitle   { font-size: 0.82rem; }
    .p-price      { font-size: 1.25rem; }
    .p-hook       { font-size: 0.85rem; padding: 0.5rem 0.7rem; }
    .spec-pill    { font-size: 0.68rem; padding: 0.2rem 0.55rem; }
    .p-why        { padding: 0.75rem 0.85rem; }
    .p-why li     { font-size: 0.82rem; }
    .btn-amazon   { padding: 0.75rem; font-size: 0.9rem; }
    .toggle-btn   { font-size: 0.78rem; }

    /* — Modal — */
    .modal-box   { padding: 1.8rem 1.3rem 1.3rem; border-radius: 18px; }
    .modal-title { font-size: 1.15rem; margin-bottom: 1.2rem; }
    .modal-item  { padding: 0.7rem 0.85rem; gap: 0.7rem; }
    .modal-item-title { font-size: 0.8rem; }
    .modal-item-desc  { font-size: 0.76rem; }

    /* — Footer — */
    footer       { padding: 1.8rem 4%; margin-top: 2rem; }
    .footer-logo { font-size: 1.1rem; }
    .footer-legal { font-size: 0.75rem; }
}

/* ── MÓVIL PEQUEÑO ── */
@media (max-width: 390px) {
    .hero h1    { font-size: 1.5rem; }
    .hero p     { font-size: 0.83rem; }
    .btn-hero   { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
    .carousel-item { width: 118px; }
    .trust-strip-mobile .offer-card { width: 88px; }
}
