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

:root {
    --bg: #f6f8f6;
    --surface: #ffffff;
    --surface-soft: #edf3ef;
    --ink: #16231f;
    --heading: #101c18;
    --muted: #51625b;
    --line: #d8e0db;
    --primary: #0f766e;
    --primary-dark: #0a4f49;
    --accent: #b45309;
    --accent-soft: #fff7ed;
    --offer-bg: #fff3d6;
    --offer-text: #8a3b12;
    --offer-line: #f2c86d;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --shadow: 0 18px 44px rgba(23, 35, 31, .09);
    --radius: 8px;
    --max: 1180px;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    letter-spacing: 0;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(15, 118, 110, .28);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted-text {
    color: var(--muted);
    line-height: 1.7;
}

.main-content {
    min-height: calc(100vh - 76px);
}

/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 76px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 12px max(24px, calc((100vw - var(--max)) / 2));
}

.header-logo {
    display: grid;
    gap: 1px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
    min-width: 0;
}

.header-logo span {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}

.search-bar {
    width: min(100%, 420px);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 14px;
    transition: border-color .18s ease, background .18s ease;
}

.search-bar:focus-within {
    background: var(--surface);
    border-color: rgba(15, 118, 110, .42);
}

.search-bar button {
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
}

.search-bar input {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
    font-size: .92rem;
}

.search-bar input::placeholder {
    color: #7b8782;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-nav a,
.account-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0 12px;
    transition: color .18s ease, background .18s ease;
}

.header-nav a:hover,
.header-nav a.is-active,
.account-link:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

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

.account-chip {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-radius: var(--radius);
    padding: 9px 10px;
    font-size: .84rem;
    font-weight: 700;
}

.security-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(22, 101, 52, .18);
    font-size: .76rem;
    font-weight: 900;
    padding: 0 10px;
}

.cart-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 1.12rem;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 21px;
    height: 21px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 2px solid #fff;
    font-size: .68rem;
    font-weight: 800;
}

/* Shared */

.section-kicker,
.hero-tag {
    display: inline-flex;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.btn,
.hero-btn,
.hero-link,
.clear-search,
.empty-cart-btn {
    min-height: 46px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 0 16px;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover,
.hero-btn:hover,
.hero-link:hover,
.clear-search:hover,
.empty-cart-btn:hover {
    transform: translateY(-1px);
}

.btn {
    width: 100%;
    background: var(--ink);
    color: #fff;
}

.btn-primary,
.hero-btn {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.hero-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
}

.btn-secondary,
.btn-outline,
.hero-link,
.clear-search {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover,
.btn-outline:hover,
.hero-link:hover,
.clear-search:hover {
    border-color: rgba(15, 118, 110, .42);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background: #1fa463;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #168553;
    box-shadow: 0 12px 24px rgba(31, 164, 99, .18);
}

.btn-full {
    width: 100%;
}

/* Hero and catalog */

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 58px 24px 32px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-content {
    width: min(100%, 820px);
}

.hero h1,
.about-hero h1,
.product-data h1,
.cart-header h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--heading);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
    font-size: 3.75rem;
    margin-bottom: 18px;
}

.hero p {
    margin-left: auto;
    margin-right: auto;
    max-width: 660px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

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

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
}

.trust-row span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    padding: 0 12px;
}

.trust-row strong {
    color: var(--primary-dark);
    font-size: .75rem;
    font-weight: 900;
}

.offers-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 24px 54px;
}

.offers-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.offers-header h2 {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.offers-header p {
    max-width: 640px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 8px;
}

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

.catalog-section {
    padding: 20px 24px 70px;
}

.catalog-header,
.products-container,
.product-page,
.cart-container,
.related-section,
.about-section,
.services-section,
.vision-card {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.catalog-header h2,
.section-title h2,
.about-text h2,
.vision-card h2 {
    font-family: var(--font-heading);
    font-size: 2.45rem;
    color: var(--heading);
    font-weight: 900;
    line-height: 1.08;
}

.catalog-header p,
.section-title p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 8px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card,
.related-card,
.service-card,
.cart-row,
.cart-summary,
.empty-cart {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(23, 35, 31, .05);
}

.product-card,
.related-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface-soft);
    color: inherit;
    text-decoration: none;
}

.product-image-wrapper img,
.product-card img,
.related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    transition: transform .24s ease;
}

.product-card:hover .product-image-wrapper img,
.related-card:hover .product-image-wrapper img {
    transform: scale(1.025);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.sold-out-badge,
.offer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    padding: 0 11px;
}

.sold-out-badge {
    background: var(--ink);
    color: #fff;
}

.offer-badge {
    background: var(--offer-bg);
    color: var(--offer-text);
    border: 1px solid var(--offer-line);
}

.product-info,
.related-info {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.tag {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
}

.tag-offer {
    background: var(--offer-bg);
    color: var(--offer-text);
    border: 1px solid var(--offer-line);
}

.product-card.is-offer,
.offer-card {
    border-color: rgba(180, 83, 9, .28);
}

.product-info h3,
.related-info h3,
.service-card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
}

.description {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
    margin-top: 10px;
    margin-bottom: 16px;
}

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

.stock-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    padding: 0 11px;
}

.stock-status.disponible {
    background: var(--success-bg);
    color: var(--success-text);
}

.stock-status.no_disponible,
.stock-status.agotado,
.stock-status.no-disponible {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.price,
.product-price {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-buttons,
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-buttons .btn-whatsapp,
.product-actions .btn-whatsapp {
    grid-column: 1 / -1;
}

.catalog-empty {
    grid-column: 1 / -1;
}

.offers-empty {
    grid-column: 1 / -1;
}

/* Product page */

.product-page {
    padding: 34px 24px 78px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 18px;
}

.product-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    gap: 42px;
    align-items: center;
    margin-bottom: 70px;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 680px;
    object-fit: cover;
}

.product-data h1 {
    font-size: 3.5rem;
    margin: 14px 0 16px;
}

.detail-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.product-description {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.guest-purchase-note {
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
    padding: 12px 14px;
    margin-bottom: 18px;
}

/* Cart */

.cart-page {
    padding: 44px 24px 78px;
}

.cart-header {
    margin-bottom: 28px;
}

.cart-header h1 {
    font-size: 3.35rem;
}

.cart-header p {
    max-width: 720px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.75;
    margin-top: 8px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr);
    gap: 20px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    transition: opacity .2s ease;
}

.cart-item-img {
    width: 92px;
    height: 92px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--surface-soft);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.cart-item-price {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 6px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
}

.qty-val {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
}

.cart-item-sub {
    min-width: 96px;
    text-align: right;
    font-weight: 900;
}

.cart-remove {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--danger-bg);
    color: var(--danger-text);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
    padding: 0 12px;
}

.cart-summary {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.summary-line,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.summary-line {
    color: var(--muted);
}

.summary-total {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.summary-note {
    margin-top: 4px;
}

/* Related and empty states */

.related-section {
    margin-top: 72px;
}

.section-title {
    margin-bottom: 22px;
}

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

.related-info .price {
    margin: 14px 0 16px;
}

.empty-cart {
    padding: 62px 24px;
    text-align: center;
}

.empty-cart h1,
.empty-cart h2 {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    line-height: 1.08;
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--muted);
    line-height: 1.7;
}

.empty-cart-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 1.45rem;
}

.empty-cart-btn {
    width: auto;
    margin-top: 24px;
    background: var(--primary);
    color: #fff;
}

/* About */

.about-page {
    background: var(--bg);
}

.about-hero {
    padding: 70px 24px 44px;
}

.about-hero-content {
    max-width: var(--max);
    margin: 0 auto;
}

.about-hero h1 {
    max-width: 760px;
    font-size: 4rem;
    margin-bottom: 18px;
}

.about-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.8;
}

.about-section,
.services-section {
    padding: 38px 24px 72px;
}

.proof-section,
.security-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 24px 72px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 18px;
}

.about-text p,
.service-card p,
.vision-card p {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.8;
}

.about-text p + p {
    margin-top: 14px;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    padding: 24px;
}

.service-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 900;
}

.service-card h3 {
    margin-bottom: 10px;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.proof-summary,
.testimonial-card,
.security-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(23, 35, 31, .05);
}

.proof-summary,
.testimonial-card {
    padding: 22px;
}

.proof-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--ink);
    color: #fff;
}

.rating-stars {
    color: #f2b84b;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.proof-summary strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 2.25rem;
    font-weight: 900;
}

.proof-summary p {
    color: #e2ece7;
    line-height: 1.7;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.testimonial-card p {
    color: var(--ink);
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.75;
}

.testimonial-card span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.security-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.security-mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(22, 101, 52, .2);
    font-size: 1rem;
    font-weight: 900;
}

.security-copy h2 {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 10px;
}

.security-copy p,
.security-list {
    color: var(--muted);
    line-height: 1.75;
}

.security-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    font-size: .92rem;
    font-weight: 700;
}

.vision-section {
    background: var(--ink);
    color: #fff;
    padding: 62px 24px;
}

.vision-card {
    text-align: center;
}

.vision-card .section-kicker {
    color: #8bd9cc;
}

.vision-card h2 {
    max-width: 720px;
    margin: 0 auto 16px;
    color: #ffffff;
}

.vision-card p {
    max-width: 740px;
    margin: 0 auto;
    color: #e2ece7;
}

/* Toast */

#space-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 999;
    max-width: min(420px, calc(100vw - 32px));
    transform: translate(-50%, 14px);
    opacity: 0;
    pointer-events: none;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(23, 35, 31, .22);
    font-size: .92rem;
    padding: 13px 16px;
    transition: opacity .2s ease, transform .2s ease;
}

#space-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Auth */

body.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        linear-gradient(180deg, rgba(237, 243, 239, .82), rgba(246, 248, 245, 1)),
        var(--bg);
}

.auth-shell {
    width: min(100%, 460px);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 26px;
}

.auth-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
}

.auth-brand strong {
    display: block;
    font-size: 1rem;
}

.auth-brand span:last-child {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.auth-card h1 {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    line-height: 1.05;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-form .field {
    display: grid;
    gap: 8px;
}

.auth-form label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink);
    outline: 0;
    padding: 0 13px;
}

.auth-form input:focus {
    border-color: rgba(15, 118, 110, .5);
    background: var(--surface);
}

.auth-form input::placeholder {
    color: #8a958f;
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-alt {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
    text-align: center;
    margin: 18px 0 12px;
}

.auth-hint,
.hint {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}

.alert,
.alert-error,
.alert-ok {
    border-radius: var(--radius);
    font-size: .9rem;
    line-height: 1.55;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.alert,
.alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(153, 27, 27, .18);
    color: var(--danger-text);
}

.alert-ok {
    background: var(--success-bg);
    border: 1px solid rgba(22, 101, 52, .18);
    color: var(--success-text);
}

.strength-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width .2s ease, background .2s ease;
}

.code-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.code-inputs input {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 900;
    padding: 0;
}

.email-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: .86rem;
    font-weight: 800;
    padding: 7px 12px;
    margin: 0 0 20px;
}

.dev-box {
    background: #fff8e8;
    border: 1px solid #f2d492;
    border-radius: var(--radius);
    color: #7a4f05;
    padding: 14px;
    margin-bottom: 16px;
}

.dev-label {
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dev-code {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-top: 4px;
}

.dev-note {
    color: #8b6a21;
    font-size: .78rem;
    line-height: 1.5;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.link,
.link-resend {
    color: var(--primary-dark);
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
}

.timer {
    color: var(--muted);
    font-size: .86rem;
}

.timer span {
    color: var(--ink);
    font-weight: 900;
}

/* Responsive */

@media (max-width: 1060px) {
    header {
        grid-template-columns: auto 1fr auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .products-container,
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .cart-row {
        grid-template-columns: 86px minmax(0, 1fr) auto;
    }

    .cart-qty,
    .cart-item-sub,
    .cart-remove {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .cart-item-sub {
        text-align: left;
    }
}

@media (max-width: 900px) {
    header {
        grid-template-columns: 1fr auto;
        gap: 12px 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-center {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .search-bar {
        width: 100%;
    }

    .hero {
        padding-top: 42px;
    }

    .product-view,
    .about-grid,
    .cart-layout,
    .security-panel {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    header {
        align-items: center;
    }

    .header-logo span {
        font-size: 1rem;
    }

    .account-chip {
        display: none;
    }

    .account-link {
        min-height: 38px;
        padding: 0 9px;
        font-size: .82rem;
    }

    .cart-link {
        width: 40px;
        height: 40px;
    }

    .header-center {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-nav {
        justify-content: space-between;
        width: 100%;
        white-space: normal;
    }

    .header-nav a {
        flex: 1;
        min-width: 0;
        padding: 0 8px;
        text-align: center;
    }

    .hero,
    .offers-section,
    .catalog-section,
    .product-page,
    .cart-page,
    .about-hero,
    .about-section,
    .proof-section,
    .security-section,
    .services-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .hero h1,
    .about-hero h1 {
        font-size: 2.65rem;
    }

    .product-data h1,
    .cart-header h1 {
        font-size: 2.55rem;
    }

    .catalog-header,
    .offers-header,
    .product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-header h2,
    .offers-header h2,
    .section-title h2,
    .about-text h2,
    .security-copy h2,
    .vision-card h2 {
        font-size: 2.1rem;
    }

    .products-container,
    .offers-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-buttons,
    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-buttons .btn-whatsapp,
    .product-actions .btn-whatsapp {
        grid-column: auto;
    }

    .cart-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .cart-item-img {
        width: 76px;
        height: 76px;
    }

    .cart-qty,
    .cart-item-sub,
    .cart-remove {
        grid-column: 2;
    }

    .summary-line,
    .summary-total {
        align-items: flex-start;
    }

    .empty-cart {
        padding: 46px 18px;
    }
}

@media (max-width: 480px) {
    header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero h1,
    .about-hero h1 {
        font-size: 2.3rem;
    }

    .hero p,
    .about-hero p {
        font-size: .98rem;
    }

    .hero-actions,
    .hero-btn,
    .hero-link,
    .clear-search {
        width: 100%;
    }

    .trust-row,
    .trust-row span {
        width: 100%;
    }

    .trust-row span {
        justify-content: center;
    }

    .btn,
    .empty-cart-btn {
        width: 100%;
    }

    .security-chip {
        display: none;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }

    .code-inputs {
        gap: 6px;
    }

    .code-inputs input {
        height: 50px;
        font-size: 1.2rem;
    }
}
