/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root, [data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --bg-card: #ffffff;
    --bg-dark: #0b1b2b;
    --bg-darker: #061321;
    --text: #0b1b2b;
    --text-soft: #4b5b6e;
    --text-muted: #7b8a9b;
    --border: #e6ecf2;
    --primary: #ff7a00;
    --primary-dark: #e66a00;
    --accent: #1f6feb;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(11,27,43,.06);
    --shadow: 0 12px 32px rgba(11,27,43,.10);
    --shadow-lg: 0 24px 60px rgba(11,27,43,.18);
    --container: 1200px;
}

[data-theme="dark"] {
    --bg: #0b1320;
    --bg-soft: #111c2e;
    --bg-card: #152236;
    --bg-dark: #061321;
    --bg-darker: #030a14;
    --text: #f1f5fb;
    --text-soft: #b6c2d3;
    --text-muted: #7b8a9b;
    --border: #243349;
    --shadow-sm: 0 4px 14px rgba(0,0,0,.3);
    --shadow: 0 12px 32px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .site-header { background: rgba(11,19,32,.85); }
[data-theme="dark"] .hero { background: linear-gradient(180deg, #111c2e 0%, #0b1320 100%); }
[data-theme="dark"] .logos-strip { background: var(--bg-card); }
[data-theme="dark"] .product, [data-theme="dark"] .cat-card,
[data-theme="dark"] .feature, [data-theme="dark"] .testi,
[data-theme="dark"] .blog-card, [data-theme="dark"] .compare-col,
[data-theme="dark"] .faq details, [data-theme="dark"] .floating-card,
[data-theme="dark"] .filter, [data-theme="dark"] .map-card { background: var(--bg-card); }
[data-theme="dark"] .product-img { background: linear-gradient(140deg, #1a2740, #243349); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea {
    background: var(--bg-card); color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .nav.is-open { background: var(--bg-card); }
[data-theme="dark"] .btn-ghost { color: var(--text); border-color: var(--border); }
[data-theme="dark"] .btn-ghost:hover { background: var(--bg-soft); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark {
    background: linear-gradient(140deg, var(--bg-dark) 0%, #102a44 100%);
    color: #e7eef6;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.eyebrow-light { color: #ffb16b; }

h1, h2, h3, h4 {
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 800;
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 18px; }
p { margin: 0 0 16px; color: var(--text-soft); }

.grad {
    background: linear-gradient(90deg, #ff7a00, #ffb16b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,122,0,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(140deg, #0b1b2b, #1a2f47);
    display: grid;
    place-items: center;
}
.brand-light .brand-text strong, .brand-light .brand-text small { color: #fff; }

.nav { display: flex; gap: 28px; }
.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
}
.phone-link:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,122,0,.18), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(31,111,235,.15), transparent 50%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 80px;
}
.hero-copy .lead {
    font-size: 19px;
    color: var(--text-soft);
    max-width: 540px;
    margin: 16px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 28px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}
.hero-trust li span {
    display: inline-block;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(22,163,74,.15);
    color: var(--success);
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}

.hero-visual {
    position: relative;
    height: 480px;
    display: grid;
    place-items: center;
}
.device-cam {
    position: relative;
    width: 260px; height: 260px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 30px 50px rgba(11,27,43,.25));
}
.cam-body {
    width: 200px;
    height: 130px;
    background: linear-gradient(160deg, #1a2f47, #0b1b2b);
    border-radius: 24px;
    position: relative;
    display: grid;
    place-items: center;
}
.cam-body::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.06);
}
.cam-lens {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a6788 0%, #0b1b2b 60%, #000 100%);
    box-shadow: inset 0 0 0 6px #0b1b2b, inset 0 0 0 8px rgba(255,255,255,.06);
}
.cam-lens::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    margin: 12px 0 0 14px;
}
.cam-led {
    position: absolute;
    top: 14px; right: 18px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: blink 1.6s infinite;
}
.cam-base {
    width: 60px; height: 28px;
    background: linear-gradient(180deg, #1a2f47, #0b1b2b);
    border-radius: 0 0 14px 14px;
    margin-top: -2px;
}
.scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255,122,0,.4), transparent);
    height: 4px;
    top: 0;
    border-radius: 4px;
    filter: blur(2px);
    animation: scan 3s linear infinite;
    opacity: .6;
    pointer-events: none;
}
@keyframes blink {
    0%, 60% { opacity: 1; }
    61%, 100% { opacity: .25; }
}
@keyframes scan {
    0% { top: 0; }
    50% { top: 95%; }
    100% { top: 0; }
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    border: 1px solid var(--border);
    animation: float 5s ease-in-out infinite;
}
.floating-card strong { font-size: 14px; color: var(--text); }
.floating-card span { font-size: 12px; color: var(--text-muted); }
.card-1 { top: 40px; left: 0; animation-delay: 0s; }
.card-2 { bottom: 60px; right: -10px; animation-delay: 1.2s; }
.card-3 { bottom: 110px; left: 10px; animation-delay: 2.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logos-strip {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 28px 0;
}
.logos-strip p {
    margin: 0 0 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 56px;
    align-items: center;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    opacity: .8;
}

/* ---------- Categorías ---------- */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.cat-icon {
    font-size: 32px;
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    border-radius: 14px;
    margin-bottom: 16px;
}
.cat-card p { font-size: 14px; }
.cat-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Productos ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.filter {
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
}
.filter:hover { border-color: var(--text); color: var(--text); }
.filter.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }

.product-img {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(140deg, #f6f8fb, #e9eef5);
    display: grid;
    place-items: center;
    font-size: 64px;
}
.product-img::before {
    content: attr(data-emoji);
    filter: drop-shadow(0 8px 14px rgba(11,27,43,.12));
}
.badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.badge-blue { background: var(--accent); }
.badge-red { background: var(--danger); }

.product-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-body h3 { font-size: 16px; margin-bottom: 6px; }
.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
    flex: 1;
}
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 20px; font-weight: 800; color: var(--text); }
.price .old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.catalog-foot {
    text-align: center;
    margin: 40px 0 0;
    font-size: 15px;
}
.catalog-foot a { color: var(--primary); font-weight: 600; }

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    font-size: 30px;
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: rgba(255,122,0,.10);
    border-radius: 14px;
    margin-bottom: 16px;
}
.feature p { font-size: 14px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testi {
    margin: 0;
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.testi p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.testi footer { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.testi footer strong { color: var(--text); }
.stars { color: #f5b400; font-size: 16px; letter-spacing: 2px; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-stats {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.about-stats li { display: flex; flex-direction: column; line-height: 1.1; }
.about-stats strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.about-stats span { font-size: 13px; color: var(--text-muted); }

.about-visual {
    position: relative;
    height: 360px;
    background:
        linear-gradient(140deg, rgba(255,122,0,.06), transparent),
        radial-gradient(circle at 70% 30%, rgba(31,111,235,.10), transparent 60%),
        var(--bg-soft);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.map-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.map-pin { font-size: 32px; }
.map-card div { display: flex; flex-direction: column; line-height: 1.4; }
.map-card strong { font-size: 16px; }
.map-card span { font-size: 13px; color: var(--text-muted); }
.badge-pill {
    position: absolute;
    top: 24px; right: 24px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    font-weight: 400;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}
.contact-copy h2 { color: #fff; }
.contact-copy p { color: rgba(255,255,255,.78); font-size: 17px; }
.contact-list {
    list-style: none;
    padding: 0; margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: 15px;
}
.contact-list a { color: #fff; }
.contact-list a:hover { color: #ffb16b; }

.contact-form {
    background: #fff;
    color: var(--text);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.field input, .field select, .field textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,122,0,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 18px;
    font-size: 13px;
    color: var(--text-soft);
}
.checkbox input { margin-top: 3px; }
.checkbox a { color: var(--primary); }
.contact-form .btn { width: 100%; }
.form-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.form-note.success { background: rgba(22,163,74,.10); color: var(--success); }
.form-note.error { background: rgba(220,38,38,.10); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-darker);
    color: rgba(255,255,255,.7);
    padding: 64px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.site-footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 14px; transition: color .15s ease; }
.site-footer a:hover { color: var(--primary); }
.footer-tag { font-size: 14px; max-width: 320px; margin: 16px 0 0; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; color: inherit; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--text);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform .25s ease;
    pointer-events: none;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(37,211,102,.4);
    z-index: 90;
    transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.08); }

/* ---------- Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .section { padding: 72px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
    .hero-visual { height: 360px; }
    .categories, .features, .testimonials { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(3, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
    .nav { display: none; }
    .nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 18px 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    .nav-toggle { display: flex; }
    .phone-link { display: none; }
    h1 { font-size: 38px; }
    .products { grid-template-columns: repeat(2, 1fr); }
    .hero-trust { grid-template-columns: 1fr 1fr; }
    .row { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .categories, .features, .testimonials { grid-template-columns: 1fr; }
    .products { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-cta .btn { display: none; }
    .floating-card { transform: scale(.85); }
    .card-1 { left: -10px; }
    .card-2 { right: -20px; }
}

/* =========================================================
   Componentes nuevos
========================================================= */

/* ---------- Theme toggle + cart button ---------- */
.theme-toggle, .cart-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 16px;
    color: var(--text);
    transition: background .15s ease, border-color .15s ease;
    position: relative;
}
.theme-toggle:hover, .cart-btn:hover { background: var(--bg-soft); border-color: var(--text); }
.cart-btn { width: auto; padding: 0 14px 0 12px; gap: 6px; display: inline-flex; align-items: center; }
.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--text-muted);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: background .15s ease;
}
.cart-count.has-items { background: var(--primary); }

/* ---------- Drawer cart ---------- */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(11,27,43,.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.drawer-overlay.is-visible { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 201;
    display: flex;
    flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-head h3 { margin: 0; font-size: 20px; }
.drawer-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-soft);
    transition: background .15s ease;
}
.drawer-close:hover { background: var(--bg-soft); color: var(--text); }
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-empty {
    text-align: center;
    padding: 60px 0;
}
.cart-empty p { font-size: 16px; margin-bottom: 20px; }

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item-img {
    width: 70px; height: 70px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 32px;
}
.cart-item-img::before { content: attr(data-emoji); }
.cart-item-info strong { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { font-size: 12px; color: var(--text-muted); }
.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.cart-qty button {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: background .15s ease;
}
.cart-qty button:hover { background: var(--bg-soft); }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-remove { margin-left: 6px; }
.cart-item-total { font-size: 15px; font-weight: 700; }

.drawer-foot {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}
.cart-summary div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-soft);
}
.cart-summary div strong { color: var(--text); font-weight: 600; }
.cart-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px !important;
    font-size: 16px !important;
}
.cart-total span, .cart-total strong { font-size: 18px !important; color: var(--text) !important; font-weight: 700 !important; }
.cart-checkout { width: 100%; margin-top: 16px; }
.cart-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Cookie banner + modal ---------- */
.cookie-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 22px;
    z-index: 150;
    animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}
.cookie-text { flex: 1; }
.cookie-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 13px; color: var(--text-soft); }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(11,27,43,.7);
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.cookie-modal-card h2 { margin: 0 0 20px; }
.cookie-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.cookie-row strong { display: block; margin-bottom: 4px; }
.cookie-row span { font-size: 13px; color: var(--text-muted); }
.cookie-row input[type="checkbox"] {
    width: 22px; height: 22px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.cookie-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1; }
}

/* ---------- Lead magnet ---------- */
.lead-magnet {
    background: linear-gradient(140deg, #fff7ee, #fff);
    border: 1px solid #ffd9b3;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
[data-theme="dark"] .lead-magnet {
    background: linear-gradient(140deg, #1f2640, var(--bg-card));
    border-color: var(--border);
}
.lead-magnet h2 { margin-bottom: 8px; }
.lead-magnet-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.lead-magnet-form input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    margin-bottom: 12px;
}
.lead-magnet-form .btn { width: 100%; }
.lead-magnet-form .form-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.lead-magnet-form .form-hint a { color: var(--primary); }
@media (max-width: 720px) {
    .lead-magnet { grid-template-columns: 1fr; padding: 28px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 20px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Product detail page ---------- */
.product-detail { padding: 32px 0 64px; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.product-img-large {
    aspect-ratio: 1;
    background: linear-gradient(140deg, var(--bg-soft), #e9eef5);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-size: 160px;
    position: relative;
}
.product-img-large::before {
    content: attr(data-emoji);
    filter: drop-shadow(0 16px 28px rgba(11,27,43,.18));
}
[data-theme="dark"] .product-img-large { background: linear-gradient(140deg, #1a2740, #243349); }

.product-detail-info h1 { font-size: 36px; margin: 8px 0 14px; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rating-meta { font-size: 13px; color: var(--text-muted); }
.product-detail-desc { font-size: 17px; color: var(--text-soft); margin-bottom: 24px; }

.price-row {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.price-row .price { gap: 10px; }
.price-row .price strong { font-size: 32px; }
.price-row .savings {
    font-size: 13px;
    background: rgba(22,163,74,.15);
    color: var(--success);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px;
}
.stock { font-size: 14px; color: var(--success); font-weight: 600; }

.qty-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.qty-row label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg);
}
.qty-input button {
    width: 44px; height: 44px;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    transition: background .15s ease;
}
.qty-input button:hover { background: var(--bg-soft); }
.qty-input input {
    width: 48px;
    height: 44px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

.trust-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
    color: var(--text-soft);
}

.product-tabs { padding: 64px 0 0; }
.product-tabs h2 { font-size: 22px; margin: 32px 0 16px; }
.features-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.features-list li {
    background: var(--bg-soft);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-soft);
}
.features-list li::before { content: '✓ '; color: var(--success); font-weight: 700; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.specs-table th, .specs-table td { padding: 14px 18px; text-align: left; font-size: 14px; }
.specs-table th { background: var(--bg-soft); width: 40%; font-weight: 600; color: var(--text-soft); }
.specs-table tr:not(:last-child) th, .specs-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

@media (max-width: 720px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-img-large { font-size: 120px; }
    .product-detail-info h1 { font-size: 28px; }
    .trust-list { grid-template-columns: 1fr; }
}

/* ---------- Wizard ---------- */
.wizard-hero {
    padding: 60px 0 40px;
    background: linear-gradient(140deg, var(--bg-soft), var(--bg));
    text-align: center;
}
.wizard-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.wizard-hero p { font-size: 17px; max-width: 540px; margin: 0 auto; }

.wizard-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.wizard-progress {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}
.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ffb16b);
    border-radius: 999px;
    transition: width .3s ease;
}
.wizard-progress span {
    position: absolute;
    top: 14px;
    right: 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.wizard-step { display: none; padding-top: 16px; }
.wizard-step.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wizard-step h2 { font-size: 24px; margin-bottom: 20px; }

.wizard-options {
    display: grid;
    gap: 12px;
}
.wizard-opt {
    text-align: left;
    padding: 16px 22px;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all .15s ease;
}
.wizard-opt:hover {
    border-color: var(--primary);
    background: rgba(255,122,0,.04);
    transform: translateY(-2px);
}
.wizard-nav {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wizard-result h2 { font-size: 28px; }
.wizard-result .reason {
    background: rgba(255,122,0,.08);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text);
    margin-bottom: 24px;
}
.result-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
}
.result-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.result-card-head strong { font-size: 20px; }
.result-features {
    list-style: none;
    padding: 0; margin: 0 0 24px;
    display: grid;
    gap: 8px;
}
.result-features li { color: var(--text-soft); font-size: 14px; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wizard-extras { margin-top: 32px; }
.wizard-extras h3 { margin-bottom: 16px; }

.link-btn {
    background: transparent;
    color: var(--primary);
    text-decoration: underline;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 720px) {
    .wizard-card { padding: 24px; }
}

/* ---------- Comparator ---------- */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.compare-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.compare-col:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.compare-col.is-recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.compare-col .badge { position: static; display: inline-block; margin-bottom: 12px; }
.compare-col h2 { font-size: 22px; margin-bottom: 6px; }
.compare-for { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.compare-price {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.compare-price strong { font-size: 32px; font-weight: 800; display: block; }
.compare-price span { font-size: 13px; color: var(--text-muted); }
.compare-features {
    list-style: none;
    padding: 0; margin: 0 0 28px;
    display: grid;
    gap: 10px;
}
.compare-features li { font-size: 14px; padding: 6px 0; color: var(--text-soft); }
.compare-features li.has { color: var(--text); }
.compare-features li.no { color: var(--text-muted); opacity: .6; }
.compare-col .btn { width: 100%; }

.compare-cta {
    text-align: center;
    margin-top: 64px;
    padding: 48px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
}
.compare-cta h2 { margin-bottom: 8px; }
.compare-cta div { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 980px) {
    .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-cover {
    aspect-ratio: 16/9;
    display: grid;
    place-items: center;
    font-size: 80px;
    color: rgba(255,255,255,.85);
}
.blog-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.blog-card h2 { font-size: 22px; margin-bottom: 12px; line-height: 1.25; }
.blog-card h2 a { color: var(--text); transition: color .15s ease; }
.blog-card h2 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; flex: 1; }
.blog-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.newsletter-box {
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.newsletter-box h3 { color: #fff; margin-bottom: 8px; font-size: 24px; }
.newsletter-box p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
}
.form-hint {
    margin: 16px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}
.form-hint a { color: #ffb16b; }

@media (max-width: 720px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Article page ---------- */
.article-page { padding: 32px 0 80px; }
.article-content {
    max-width: 760px;
}
.article-content .breadcrumb { padding-top: 0; margin-bottom: 8px; }
.article-content h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 16px; line-height: 1.2; }
.article-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.article-content .lead { font-size: 19px; color: var(--text-soft); margin-bottom: 32px; }
.article-content h2 {
    font-size: 26px;
    margin: 48px 0 16px;
}
.article-content h3 { font-size: 19px; margin: 32px 0 12px; }
.article-content p, .article-content ul, .article-content ol {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0 0 16px;
}
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text); }
.article-content em { color: var(--text); }

.cta-box {
    background: linear-gradient(140deg, #fff7ee, #fff);
    border: 1px solid #ffd9b3;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 40px 0;
    text-align: center;
}
[data-theme="dark"] .cta-box {
    background: linear-gradient(140deg, #1f2640, var(--bg-card));
    border-color: var(--border);
}
.cta-box h3 { color: var(--text); margin-bottom: 10px; }
.cta-box p { margin-bottom: 18px; }

.article-foot {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}
.article-foot a { color: var(--primary); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 48px 0 80px; background: var(--bg); }
.legal-content { max-width: 820px; }
.legal-content h1 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 8px; }
.legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal-content h2 { font-size: 22px; margin: 36px 0 14px; }
.legal-content h3 { font-size: 17px; margin: 24px 0 10px; }
.legal-content p, .legal-content ul, .legal-content ol {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 14px;
}
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content strong { color: var(--text); }
.legal-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; }
.legal-table th { background: var(--bg-soft); font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.legal-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

/* ---------- Active nav state ---------- */
.nav a.active { color: var(--primary); }

/* ---------- Misc helpers ---------- */
.section-head { color: var(--text); }
.section-head h1, .section-head h2 { color: var(--text); }

/* Header CTA spacing on subpages */
@media (max-width: 720px) {
    .theme-toggle, .cart-btn { width: 36px; height: 36px; padding: 0; }
    .cart-btn { width: auto; padding: 0 10px; }
}

/* =========================================================
   Iteración 2: SVG products, search, sort, stock, reviews,
   404, gracias, instaladores, mejoras varias
========================================================= */

/* ---------- SVG en lugar de emoji en .product-img ---------- */
.product-img.product-img-svg::before { content: none; }
.product-img-svg { padding: 18px; position: relative; }
.product-img-svg svg {
    width: 100%; height: 100%;
    max-width: 180px; max-height: 180px;
    filter: drop-shadow(0 8px 14px rgba(11,27,43,.12));
    transition: transform .25s ease;
}
.product:hover .product-img-svg svg { transform: scale(1.04); }
.product-img-large.product-img-svg svg { max-width: 320px; max-height: 320px; }
.cart-item-img.product-img-svg { padding: 6px; }
.cart-item-img.product-img-svg svg { max-width: 56px; max-height: 56px; }
[data-theme="dark"] .product-img-svg svg { filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }

/* ---------- Header search button ---------- */
.header-search-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    transition: background .15s ease, border-color .15s ease;
}
.header-search-btn:hover { background: var(--bg-soft); border-color: var(--text); }

/* ---------- Sort + filters bar ---------- */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
}
.sort-control select {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}
.sort-control select:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 720px) {
    .filters-bar { flex-direction: column; align-items: stretch; }
    .sort-control { justify-content: space-between; }
}

/* ---------- Search page ---------- */
.search-form-big {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}
.search-form-big input {
    flex: 1;
    min-width: 240px;
    padding: 16px 22px;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
}
.search-form-big input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,122,0,.15);
}
.search-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}
.search-empty {
    text-align: center;
    padding: 64px 0;
}
.search-empty h2 { margin-bottom: 8px; }

/* ---------- Stock badges en product cards ---------- */
.stock-flag {
    position: absolute;
    bottom: auto;
    top: 12px; right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    z-index: 2;
}
.stock-flag-low {
    background: rgba(220,38,38,.12);
    color: var(--danger);
    border: 1px solid rgba(220,38,38,.3);
}
.product { position: relative; }

/* ---------- Stock indicator en product detail ---------- */
.stock { font-size: 14px; font-weight: 600; }
.stock-ok { color: var(--success); }
.stock-low { color: var(--danger); }
.stock-pre { color: var(--accent); }

/* ---------- Reviews ---------- */
.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.reviews-score {
    display: flex;
    align-items: center;
    gap: 14px;
}
.reviews-score strong { font-size: 36px; font-weight: 800; }
.reviews-score .stars { font-size: 22px; color: #f5b400; letter-spacing: 2px; }
.reviews-count { font-size: 14px; color: var(--text-muted); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.review-head strong { font-size: 14px; }
.review-head .stars { font-size: 13px; color: #f5b400; letter-spacing: 1px; }
.review p { font-size: 14px; margin: 0 0 8px; color: var(--text); }
.review-meta { font-size: 12px; color: var(--text-muted); }

@media (max-width: 980px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Error 404 page ---------- */
.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 60px 0;
}
.error-card {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.error-code {
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(140deg, var(--primary), #ffb16b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}
.error-card h1 { margin-bottom: 12px; }
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 28px 0 40px;
    flex-wrap: wrap;
}
.error-suggestions {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    margin-top: 32px;
}
.error-suggestions h3 { font-size: 15px; margin-bottom: 12px; }
.error-suggestions ul {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: 8px;
}
.error-suggestions a { color: var(--primary); font-weight: 600; }

/* ---------- Gracias page ---------- */
.thanks-page { padding: 60px 0 80px; }
.thanks-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    text-align: center;
}
.thanks-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pop .5s cubic-bezier(.4,0,.2,1);
}
@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
.thanks-card h1 { margin-bottom: 12px; }
.thanks-lead { font-size: 17px; max-width: 540px; margin: 0 auto 32px; }

.thanks-steps {
    text-align: left;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 auto 32px;
    max-width: 520px;
}
.thanks-steps h3 { font-size: 16px; margin-bottom: 12px; }
.thanks-steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}
.thanks-steps li { margin-bottom: 8px; }
.thanks-steps strong { color: var(--text); }

.thanks-contact {
    margin: 32px 0;
}
.thanks-contact p { margin-bottom: 16px; font-weight: 600; color: var(--text); }
.thanks-contact div { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.thanks-extras { text-align: left; }
.thanks-extras h3 { font-size: 15px; margin-bottom: 16px; }
.thanks-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.thanks-extra-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    color: var(--text);
}
.thanks-extra-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.thanks-extra-card strong { font-size: 14px; margin-bottom: 4px; }
.thanks-extra-card span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 720px) {
    .thanks-card { padding: 32px 24px; }
    .thanks-cards { grid-template-columns: 1fr; }
}

/* ---------- Pequeñas mejoras ---------- */
.nav a.active { color: var(--primary); font-weight: 600; }

/* Cart drawer cart-item con SVG */
.cart-item-img.product-img-svg { padding: 0; background: var(--bg-soft); }

/* ---------- WooCommerce checkout ---------- */
.kamara-checkout-shell {
    max-width: 1180px;
    margin: 0 auto;
}
.kamara-checkout-head {
    margin-bottom: 28px;
}
.kamara-checkout-head h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 8px 0 10px;
}
.kamara-checkout-head p,
.kamara-payment-note {
    color: var(--text-soft);
    max-width: 760px;
}
.kamara-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}
.kamara-checkout-grid {
    display: grid;
    gap: 20px;
}
.kamara-checkout-panel,
.kamara-order-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.kamara-order-panel {
    position: sticky;
    top: 96px;
}
.kamara-checkout-panel h3,
.kamara-order-panel h2 {
    font-size: 20px;
    margin-bottom: 18px;
}
.kamara-checkout .form-row {
    margin-bottom: 14px;
}
.kamara-checkout label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}
.kamara-checkout input.input-text,
.kamara-checkout textarea,
.kamara-checkout select,
.kamara-checkout .select2-container .select2-selection--single {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    padding: 10px 12px;
}
.kamara-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}
.kamara-checkout .woocommerce-checkout-review-order-table th,
.kamara-checkout .woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    text-align: left;
}
.kamara-checkout #payment {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.kamara-checkout #place_order {
    width: 100%;
    margin-top: 16px;
}
.kamara-payment-note {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
}

@media (max-width: 920px) {
    .kamara-checkout {
        grid-template-columns: 1fr;
    }
    .kamara-order-panel {
        position: static;
    }
}
