:root {
    /*
     * Ajustes rápidos de apariencia pública:
     * - --header-logo-width / --header-logo-height controlan el logo del topbar.
     * - --accent y --accent-2 controlan botones y acentos generales.
     */
    --header-logo-width: clamp(150px, 26vw, 360px);
    --header-logo-height: 86px;
    --header-height: 126px;
    --bg: #08111f;
    --bg-soft: #0e1a2c;
    --panel: #ffffff;
    --panel-soft: #f6f8fb;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #0f172a;
    --accent: #16a3b8;
    --accent-2: #e11d48;
    --success: #059669;
    --warning: #f59e0b;
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 26px 80px rgba(2, 6, 23, 0.22);
    --max: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f8fafc;
    background:
        radial-gradient(circle at 15% 0%, rgba(225, 29, 72, 0.16), transparent 32rem),
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.13), transparent 34rem),
        var(--bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: var(--header-height);
    padding: 18px clamp(22px, 4vw, 64px);
    background: rgba(8, 17, 31, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 1 1 50%;
    gap: 18px;
    min-width: 0;
    max-width: 50%;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: var(--header-logo-width);
    height: var(--header-logo-height);
    padding: 8px;
    overflow: hidden;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #111827, #334155);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo span {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.brand-text {
    min-width: 0;
}

.brand-text strong,
.brand-text small {
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text strong {
    font-size: 1.02rem;
    font-weight: 900;
}

.brand-text small {
    color: #a8b5c8;
    font-size: 0.8rem;
}

.top-nav {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 18px;
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 800;
}

.top-nav a {
    opacity: 0.9;
}

.top-nav a:hover {
    opacity: 1;
    color: white;
}

.store-hero {
    position: relative;
    min-height: 620px;
    isolation: isolate;
    overflow: hidden;
    background-color: #091426;
    background-position: center;
    background-size: cover;
}

.store-hero.no-banner {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.75)),
        radial-gradient(circle at 78% 10%, rgba(20, 184, 166, 0.18), transparent 32rem);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 17, 31, 0.92) 0%, rgba(8, 17, 31, 0.76) 44%, rgba(8, 17, 31, 0.48) 100%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.18), rgba(8, 17, 31, 0.82));
}

.store-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(32px, 5vw, 86px);
    width: min(var(--max), calc(100% - 44px));
    min-height: 620px;
    margin: 0 auto;
    padding: 86px 0 120px;
}

.hero-copy {
    max-width: 800px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 13px;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(4rem, 8.8vw, 8.8rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 680px;
    margin: 28px 0 0;
    color: #dbe7f7;
    font-size: clamp(1.05rem, 1.5vw, 1.34rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
}

.btn.ghost {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
}

.btn.ghost.light {
    color: #0f172a;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.btn.disabled {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.22);
    cursor: not-allowed;
}

.hero-business-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    width: min(100%, 560px);
    margin-left: auto;
    padding: 28px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-logo {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 900;
    background: white;
    border-radius: 26px;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-business-card strong,
.hero-business-card span {
    display: block;
}

.hero-business-card strong {
    margin-bottom: 8px;
    font-size: 1.18rem;
    line-height: 1.2;
}

.card-kicker {
    margin-bottom: 8px;
    color: #67e8f9 !important;
    font-size: 0.74rem !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-business-card span {
    color: #dbe7f7;
    font-size: 0.95rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: min(var(--max), calc(100% - 44px));
    margin: -72px auto 56px;
    position: relative;
    z-index: 3;
}

.stats-row > div {
    padding: 28px;
    color: var(--text);
    background: white;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.18);
}

.stats-row strong,
.stats-row span {
    display: block;
}

.stats-row strong {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.stats-row span {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.section-wrap,
.contact-section,
.product-page {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto 54px;
}

.section-wrap,
.contact-section {
    padding: clamp(24px, 3vw, 42px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.15);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading .section-kicker {
    color: #0f766e;
    background: #e6fffb;
    border-color: #b6f2ea;
}

.section-heading h2,
.contact-section h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.section-heading p,
.contact-section p {
    color: #475569;
}

.search-box {
    display: flex;
    gap: 10px;
    width: min(100%, 520px);
}

.search-box input {
    flex: 1;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid #dbe3ee;
    border-radius: 15px;
    font: inherit;
}

.search-box button {
    min-height: 52px;
    padding: 0 20px;
    color: white;
    font-weight: 900;
    background: #0f172a;
    border: 0;
    border-radius: 15px;
}

.chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    margin-bottom: 22px;
}

.chips a {
    flex: 0 0 auto;
    padding: 12px 16px;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.chips span {
    color: #0f766e;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card,
.promo-card,
.store-card {
    color: var(--text);
    background: white;
    border: 1px solid #e5edf7;
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 470px;
}

.product-card .image-wrap {
    height: 235px;
    background: #f3f7fb;
}

.product-card .image-wrap img,
.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.product-card h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.22;
}

.product-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.price {
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 900;
}

.stock {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 999px;
}

.stock.ok {
    color: #047857;
    background: #dcfce7;
}

.stock.off {
    color: #991b1b;
    background: #fee2e2;
}

.promo-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.promo-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.promo-card {
    display: grid;
    grid-template-rows: 190px auto auto auto;
    gap: 10px;
    padding: 14px;
}

.promo-card img {
    background: #f8fafc;
    border-radius: 18px;
}

.promo-card span {
    color: var(--accent-2);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.promo-card strong {
    color: var(--text);
    line-height: 1.24;
}

.promo-card em {
    color: #0f766e;
    font-style: normal;
    font-weight: 900;
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text);
}

.product-page {
    padding-top: 44px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: #dbeafe;
    font-weight: 900;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: start;
}

.gallery,
.product-info {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.gallery {
    padding: 18px;
}

.main-product-image {
    width: 100%;
    height: 540px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 24px;
}

.thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
}

.thumbs button {
    width: 84px;
    height: 84px;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: clamp(26px, 4vw, 46px);
    color: var(--text);
}

.product-info h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.brand-line,
.product-description {
    color: #475569;
}

.product-buy-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.price.big {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.landing-hero {
    padding: clamp(72px, 10vw, 160px) clamp(22px, 5vw, 76px) 80px;
    background:
        radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.12), transparent 28rem),
        linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(8, 47, 73, 0.76));
}

.landing-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

.landing-hero p {
    max-width: 720px;
    color: #dbe7f7;
    font-size: 1.2rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.store-card-logo {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 22px;
}

.store-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    width: min(var(--max), calc(100% - 44px));
    margin: 40px auto 0;
    padding: 28px 0 40px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.empty-state {
    padding: 28px;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
}

@media (max-width: 1100px) {
    .store-hero-inner,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero-business-card {
        margin: 0;
    }

    .product-grid,
    .promo-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --header-logo-width: min(62vw, 260px);
        --header-logo-height: 76px;
        --header-height: auto;
    }

    .site-header,
    .top-nav,
    .contact-section,
    .section-heading.split,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        max-width: 100%;
    }

    .top-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .store-hero,
    .store-hero-inner {
        min-height: auto;
    }

    .store-hero-inner {
        padding: 72px 0 110px;
    }

    .hero-business-card {
        grid-template-columns: 80px 1fr;
        padding: 20px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .stats-row,
    .product-grid,
    .promo-rail,
    .store-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
        width: 100%;
    }

    .main-product-image {
        height: 360px;
    }
}
