:root {
    --bg: #f7f0e4;
    --bg-soft: #fbf7ef;
    --surface: rgba(255, 250, 243, 0.78);
    --surface-strong: rgba(255, 252, 247, 0.92);
    --surface-dark: #16231d;
    --text: #1d261f;
    --text-soft: rgba(29, 38, 31, 0.72);
    --line: rgba(57, 66, 57, 0.12);
    --green: #1e6a43;
    --green-deep: #123d2d;
    --red: #b64035;
    --gold: #c69a52;
    /* Theming configurable desde el backend (header.php lo sobreescribe si el tenant lo definió). */
    --btn-bg: var(--red);        /* color principal de los botones (CTA) */
    --btn-bg-2: #d56b52;         /* segundo stop del gradiente del botón */
    --header-bg: rgba(251, 247, 239, 0.97);
    --header-text: var(--text-soft);   /* color de los links del menú */
    --footer-bg: linear-gradient(180deg, rgba(22, 35, 29, 0.98), rgba(13, 22, 18, 1));
    --footer-text: rgba(255, 248, 240, 0.86);
    --shadow: 0 22px 60px rgba(43, 35, 26, 0.12);
    --shadow-soft: 0 18px 44px rgba(28, 27, 20, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1180px;
    /* Tipografía: header.php sobreescribe --font-sans si el tenant eligió una en Identidad de marca. */
    --font-sans: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Manrope', sans-serif;
    /* Header: posición y tamaño del logo — header.php los sobreescribe según Identidad de marca. */
    --header-position: sticky;
    --header-logo-w: min(140px, 22vw);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(198, 154, 82, 0.2), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(30, 106, 67, 0.16), transparent 28%),
        linear-gradient(180deg, #f8f2e7 0%, #f7f0e4 28%, #f3eadb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.has-install-banner {
    padding-bottom: 92px;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    z-index: -2;
    border-radius: 999px;
    filter: blur(28px);
    pointer-events: none;
}

body::before {
    top: 88px;
    left: -140px;
    width: 320px;
    height: 320px;
    background: rgba(182, 64, 53, 0.12);
}

body::after {
    right: -120px;
    bottom: 120px;
    width: 280px;
    height: 280px;
    background: rgba(30, 106, 67, 0.12);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.install-banner[hidden] {
    display: none !important;
}

.install-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(57, 66, 57, 0.1);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 18px 34px rgba(28, 27, 20, 0.12);
    backdrop-filter: blur(14px);
}

.install-banner-copy {
    display: grid;
    gap: 4px;
}

.install-banner-title {
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.install-banner-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-banner-button {
    min-height: 40px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    box-shadow: 0 12px 22px rgba(18, 61, 45, 0.18);
}

.install-banner-dismiss {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(57, 66, 57, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--green-deep);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.site-header {
    position: var(--header-position);
    top: 0;
    z-index: 20;
    padding: 7px 0;
    backdrop-filter: blur(14px);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(57, 66, 57, 0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.site-header .brand img {
    width: var(--header-logo-w);
    min-width: 80px;
}

.site-header .brand-copy-top {
    font-size: clamp(0.44rem, 0.85vw, 0.82rem);
}
.site-header .brand-copy-bottom {
    font-size: clamp(0.34rem, 0.55vw, 0.58rem);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.brand img {
    width: min(140px, 22vw);
    min-width: 90px;
    height: auto;
}

.brand-copy {
    display: grid;
    gap: 0;
    align-self: flex-end;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-copy-top,
.brand-copy-bottom {
    font-weight: 500;
}

.brand-copy-top {
    color: #ef2f2f;
    font-size: clamp(0.44rem, 0.85vw, 0.82rem);
    letter-spacing: 0.16em;
}

.brand-copy-bottom {
    color: var(--green);
    font-size: clamp(0.34rem, 0.55vw, 0.58rem);
    letter-spacing: 0.2em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--header-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(30, 106, 67, 0.08);
    color: var(--green-deep);
    transform: translateY(-1px);
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fdf8f1;
    box-shadow: 0 14px 28px rgba(18, 61, 45, 0.18);
}

.main-nav-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 11px !important;
    line-height: 0;
}
.main-nav-home svg { display: block; }
.main-nav-home-label { display: none; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 251, 245, 0.84);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--green-deep);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 252, 247, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-section .section-label,
.selector-card .section-label,
.location-card .section-label,
.branch-card .section-label,
.branch-map-header .section-label,
.section-heading .section-label,
.cross-card .section-label {
    background: rgba(30, 106, 67, 0.08);
    border-color: rgba(30, 106, 67, 0.14);
    color: var(--green);
}

.selector-card .section-label {
    background: linear-gradient(180deg, var(--green), var(--green-deep));
    border-color: rgba(18, 61, 45, 0.28);
    color: #fffdf8;
    box-shadow: 0 10px 22px rgba(18, 61, 45, 0.12);
}

.hero {
    padding: 8px 0 0;
}

.hero-slider {
    position: relative;
    min-height: clamp(420px, 58vh, 560px);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-media,
.branch-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
}

.hero-slide.is-active .hero-slide-media {
    animation: heroZoom 5.8s ease forwards;
}

.hero-content,
.branch-hero-content {
    position: relative;
    z-index: 1;
    min-height: clamp(420px, 58vh, 560px);
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 58px;
}

.hero-content--with-visual {
    justify-content: space-between;
    gap: 32px;
}

.hero-visual {
    flex-shrink: 0;
    width: clamp(120px, 16vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
    max-height: 200px;
}

.hero-copy {
    width: min(100%, 560px);
    color: #fff7ef;
}

.hero-copy h1,
.hero-copy h2,
.story-copy h2,
.section-heading h2,
.selector-card h2,
.location-card h3,
.branch-hero-content h1,
.branch-card h2,
.cross-card h2,
.footer-links-block h2,
.footer-locations-block h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 16ch;
    font-size: clamp(1.72rem, 3.6vw, 2.9rem);
    margin-top: 12px;
}

.hero-copy h2 {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.2;
    margin-top: 10px;
    color: rgba(255, 247, 239, 0.88);
}

.hero-copy p,
.branch-hero-content p {
    max-width: 52ch;
    margin: 12px 0 0;
    color: rgba(255, 247, 239, 0.82);
    font-size: 14px;
    line-height: 1.58;
}

.hero-actions,
.selector-actions,
.branch-actions,
.branch-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--btn-bg), var(--btn-bg-2));
    color: #fff8f0;
    box-shadow: 0 18px 34px rgba(182, 64, 53, 0.24);
}

.button-secondary {
    border-color: rgba(255, 248, 240, 0.28);
    background: rgba(255, 250, 243, 0.12);
    color: #fff8f0;
    backdrop-filter: blur(10px);
}

.button-secondary-dark {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    box-shadow: 0 16px 28px rgba(18, 61, 45, 0.2);
}

.button-outline {
    border-color: rgba(30, 106, 67, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--green-deep);
}

.button-whatsapp {
    gap: 10px;
    background: linear-gradient(180deg, #dfe8d9, #cfddc8);
    border-color: rgba(30, 106, 67, 0.16);
    color: var(--green-deep);
    box-shadow: 0 12px 22px rgba(30, 106, 67, 0.1);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
    background: linear-gradient(180deg, #d5e2d0, #c6d8bf);
    box-shadow: 0 14px 24px rgba(30, 106, 67, 0.14);
}

.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.hero-progress {
    position: absolute;
    right: 28px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 54px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.25);
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #fff6ee, #d3ab6d);
}

.selector-section,
.story-section,
.locations-section,
.branch-products-section,
.branch-content,
.branch-map-section,
.branch-cross-links {
    padding: 25px 0;
}

.selector-section {
    position: relative;
    z-index: 3;
    margin-top: -10px;
    padding-top: 0;
    padding-bottom: 25px;
}

.selector-grid,
.locations-grid,
.branch-grid,
.branch-products-grid,
.branch-cross-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

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

.branch-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selector-card,
.story-panel,
.location-card,
.branch-card,
.branch-products-shell,
.cross-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(57, 66, 57, 0.1);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 249, 241, 0.86));
    box-shadow: var(--shadow-soft);
}

.selector-card {
    backdrop-filter: blur(14px);
}

.selector-card::before,
.story-panel::before,
.location-card::before,
.branch-card::before,
.branch-products-shell::before,
.cross-card::before {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    background: url('../images/pasta-pattern.svg') no-repeat center/contain;
    opacity: 0.1;
    pointer-events: none;
}

.selector-card h2,
.location-card h3,
.branch-card h2,
.cross-card h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: var(--green-deep);
}

.selector-card p,
.location-card p,
.story-copy p,
.branch-card p,
.branch-products-head p,
.cross-card p,
.footer-brand-block p {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.76;
}

.selector-wa-fab {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,211,102,0.35);
    flex-shrink: 0;
    z-index: 1;
}

.selector-wa-fab svg {
    width: 18px;
    height: 18px;
}

.selector-address {
    width: 100%;
}

.selector-address-line {
    display: inline;
}

.selector-address-locality {
    display: inline;
}

.selector-address-line::after {
    content: ' · ';
}

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

.selector-actions .button {
    width: 100%;
    min-height: 46px;
}

.selector-actions .button-primary {
    background: linear-gradient(180deg, #d4664f, #cb5642);
    box-shadow: 0 14px 24px rgba(203, 86, 66, 0.18);
}

.selector-actions .button-whatsapp {
    justify-content: center;
}

.branch-products-head h2,
.product-card h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.branch-products-head h2 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--green-deep);
}

.branch-products-grid {
    margin-top: 18px;
}

.product-placeholder-card {
    min-height: 150px;
    border-radius: 22px;
    border: 1px dashed rgba(30, 106, 67, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(249, 243, 233, 0.34));
}

.product-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 236, 0.86));
    box-shadow: 0 16px 36px rgba(43, 35, 26, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: auto -54px -70px auto;
    width: 150px;
    height: 150px;
    background: url('../images/pasta-pattern.svg') no-repeat center/contain;
    opacity: 0.08;
    pointer-events: none;
}

.product-card-tag {
    display: inline-flex;
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 106, 67, 0.08);
    border: 1px solid rgba(30, 106, 67, 0.14);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 1.62rem;
    color: var(--green-deep);
}

.product-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.68;
}

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

.product-card-note {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(182, 64, 53, 0.1);
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 30px;
    align-items: start;
}

.story-copy h2,
.section-heading h2 {
    margin-top: 20px;
    font-size: clamp(2.4rem, 4.2vw, 3.7rem);
    color: var(--green-deep);
}

.branch-map-header h2 {
    margin-top: 12px;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    color: var(--green-deep);
}

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

.story-highlight-item {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    background: rgba(30, 106, 67, 0.06);
    border: 1px solid rgba(30, 106, 67, 0.1);
    text-align: center;
}

.story-highlight-item strong {
    display: block;
    color: var(--red);
    font-size: 2rem;
    font-weight: 800;
}

.story-highlight-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-quote {
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(182, 64, 53, 0.9), rgba(198, 154, 82, 0.84));
    color: #fff7ef;
    box-shadow: 0 18px 42px rgba(182, 64, 53, 0.18);
}

.story-quote p {
    margin: 0;
    color: inherit;
}

.story-map {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(43, 35, 26, 0.12);
    line-height: 0;
}
.story-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading p {
    width: min(100%, 70ch);
    margin: 18px auto 0;
    color: var(--text-soft);
    line-height: 1.76;
}

.location-card-head {
    margin-bottom: 22px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.contact-item span {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-item strong,
.contact-item strong a {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.map-shell {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(57, 66, 57, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 34px rgba(43, 35, 26, 0.08);
}

.map-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(57, 66, 57, 0.08);
}

.map-link {
    font-size: 14px;
    font-weight: 800;
    color: var(--green);
}

.map-link-secondary {
    color: var(--red);
}

.map-link-cta {
    display: inline-block;
    background: var(--green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 99px;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.18s;
}
.map-link-cta:hover {
    background: var(--green-dark, #1a4a2e);
}

.map-shell iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.map-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(57, 66, 57, 0.08);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 245, 236, 0.92));
}

.map-rating-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.map-rating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe8a3, #ffd766);
    color: #8d5c00;
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(213, 154, 47, 0.22);
}

.map-rating-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.map-rating-score-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.map-rating-badge strong {
    color: var(--green-deep);
    font-size: 1.65rem;
    font-weight: 800;
}

.map-rating-score-row span {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.map-rating-category,
.map-rating-status {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.map-rating-category {
    color: var(--green-deep);
    font-weight: 700;
}

.map-status-open {
    color: #1f9d55;
    font-weight: 800;
}

.map-status-separator {
    display: inline-block;
    margin: 0 6px;
    color: rgba(29, 38, 31, 0.28);
}

.map-status-detail {
    color: var(--text-soft);
}

.map-rating-link {
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    align-self: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(182, 64, 53, 0.08);
}

.site-footer {
    padding-top: 26px;
    border-top: 1px solid rgba(57, 66, 57, 0.08);
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 1fr 1.3fr;
    gap: 28px 52px;
    align-items: start;
    padding-bottom: 34px;
}

.footer-logo {
    width: min(210px, 70%);
    max-height: 58px;
    height: auto;
    object-fit: contain;
    opacity: 0.96;
}

.footer-brand-block,
.footer-links-block,
.footer-locations-block {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-brand-block p {
    margin: 0;
    max-width: 34ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 248, 240, 0.72);
}

.footer-links-block h2,
.footer-locations-block h2 {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 244, 230, 0.5);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 9px 28px;
}

.footer-nav a,
.footer-location-item a,
.footer-location-item span,
.footer-location-item strong {
    color: rgba(255, 248, 240, 0.74);
    font-size: 14px;
    text-decoration: none;
}

.footer-nav a {
    transition: color .15s ease;
}
.footer-nav a:hover {
    color: #fff;
}

.footer-location-item {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
}
.footer-location-item strong {
    color: #fff4e6;
    font-size: 14px;
}
.footer-location-item a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 248, 240, 0.16);
    color: var(--footer-text);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.footer-social-link svg { flex-shrink: 0; }
.footer-social-link:hover {
    background: rgba(255, 248, 240, 0.12);
    border-color: rgba(255, 248, 240, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 36px;
    }
    .footer-brand-block {
        grid-column: 1 / -1;
    }
}
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }
    .footer-social-link span {
        display: none;
    }
    .footer-social-link {
        padding: 9px;
    }
}

.footer-copy {
    border-top: 1px solid rgba(255, 248, 240, 0.1);
}

.footer-copy-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 22px;
    color: rgba(255, 248, 240, 0.56);
    font-size: 13px;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 248, 240, 0.76);
    font-weight: 700;
}

.footer-credit-logo {
    width: auto;
    height: 15px;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 4px 7px;
    border-radius: 5px;
}

/* ─── Secciones de contenido: Servicios, Noticias, Opiniones, Galería ─────── */
.content-section {
    padding: 44px 0;
}
.content-section .section-heading {
    text-align: center;
    margin-bottom: 26px;
    display: grid;
    gap: 10px;
    justify-items: center;
}
.content-section .section-heading h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.9rem, 4vw, 3rem);
}
.content-section .section-cta {
    text-align: center;
    margin-top: 26px;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.service-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--green);
    padding: 20px;
    display: grid;
    gap: 10px;
    align-content: start;
    box-shadow: var(--shadow-soft);
}
.service-chip {
    justify-self: start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 106, 67, 0.1);
    color: var(--green-deep);
}
.service-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.service-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}
.service-more {
    justify-self: start;
    margin-top: 4px;
    font-weight: 800;
    font-size: 13px;
    color: var(--btn-bg);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.service-card--img { padding-top: 0; overflow: hidden; }
.service-card--img > :not(.service-card-img) { margin-left: 20px; margin-right: 20px; }
.service-card--img > .service-more { margin-bottom: 20px; }
.service-card-img {
    display: block;
    height: 160px;
    margin: 0 -1px;
    background-size: cover;
    background-position: center;
}
.services-toolbar {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin-bottom: 22px;
}
.services-toolbar input[type="search"] {
    flex: 1;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    background: var(--surface-strong);
}
a.gallery-chip { text-decoration: none; display: inline-flex; align-items: center; }

/* Catálogos / Archivos para la web */
.webfiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.webfile-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.webfile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.webfile-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.webfile-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.webfile-ext {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: #fff;
}
.webfile-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.webfile-body strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.webfile-desc {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.webfile-meta {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}
.webfile-detail { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin-top: 18px; }
.webfile-detail-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
}
.webfile-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.webfile-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 640px) {
    .webfile-detail { grid-template-columns: 1fr; }
    .webfile-detail-cover { max-width: 220px; }
}

/* Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.news-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-dark);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.82) 100%);
}
.news-card--noimg::after { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.news-card-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 16px;
    color: #fff;
    display: grid;
    gap: 6px;
}
.news-card-date {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.news-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.news-card-more {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Opiniones / testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.testimonial-card {
    margin: 0;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}
.testimonial-stars {
    color: #d8d2c4;
    font-size: 15px;
    letter-spacing: 2px;
}
.testimonial-stars .on { color: var(--gold); }
.testimonial-card blockquote {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
}
.testimonial-card figcaption img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card figcaption strong { color: var(--text); }

/* Galería */
.gallery-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}
.gallery-chip {
    font: inherit;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gallery-chip span {
    font-size: 11px;
    color: var(--text-soft);
    background: var(--bg);
    border-radius: 999px;
    padding: 1px 7px;
}
.gallery-chip.is-active {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    border-color: transparent;
}
.gallery-chip.is-active span { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.15); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transition: opacity 0.2s ease;
}
.gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-dark);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 10, 12, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lv-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lv-lightbox button {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
}
.lv-lightbox .lv-lb-close { top: 18px; right: 18px; }
.lv-lightbox .lv-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lv-lightbox .lv-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .content-section { padding: 34px 0; }
}

.branch-header {
    padding: 26px 0 8px;
}

.branch-header-inner {
    display: block;
}

.branch-header-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 2.7vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--green-deep);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 247, 239, 0.84);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.branch-back-link {
    color: var(--green-deep);
}

.branch-hero-content h1 {
    margin-top: 20px;
    font-size: clamp(3.5rem, 8vw, 6.2rem);
    color: #fff8f0;
}

.branch-map-wrapper {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 249, 241, 0.88));
    border: 1px solid rgba(57, 66, 57, 0.08);
    box-shadow: var(--shadow-soft);
}

.cross-card {
    display: grid;
    align-content: start;
}

.cross-card .button {
    margin-top: 22px;
    justify-self: start;
}

.branch-mini-links a {
    color: var(--red);
    font-weight: 800;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 980px) {
    .brand {
        gap: 10px;
    }

    .brand img {
        width: min(215px, 40vw);
    }

    .brand-copy-top {
        font-size: clamp(0.56rem, 1vw, 0.82rem);
        letter-spacing: 0.12em;
    }

    .brand-copy-bottom {
        font-size: clamp(0.4rem, 0.64vw, 0.62rem);
        letter-spacing: 0.13em;
    }

    .selector-grid,
    .locations-grid,
    .branch-grid,
    .branch-products-grid,
    .story-grid,
    .footer-grid,
    .branch-cross-grid {
        grid-template-columns: 1fr;
    }

    .footer-copy-row {
        flex-direction: column;
    }
}

@media (max-width: 840px) {
    .header-row {
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        align-items: center;
        order: 1;
    }

    .brand img {
        width: min(160px, 38vw);
    }

    .header-shop-actions {
        order: 2;
        flex-shrink: 0;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        order: 3;
        align-self: center;
        margin-left: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        display: grid;
        padding: 18px;
        border-radius: var(--radius-lg);
        background: rgba(255, 252, 247, 0.96);
        border: 1px solid rgba(57, 66, 57, 0.08);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .nav-cta {
        text-align: center;
    }

    /* En el menú desplegable móvil, el ítem de inicio muestra su texto y se alinea a la izquierda como los demás. */
    .main-nav-home {
        justify-content: flex-start;
        padding: 9px 13px !important;
        line-height: 1.2;
    }
    .main-nav-home-label {
        display: inline;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .brand-copy-bottom {
        font-size: 0.54rem;
        letter-spacing: 0.16em;
    }

    .hero-content,
    .branch-hero-content {
        min-height: clamp(300px, 42vh, 380px);
        padding-top: 34px;
        padding-bottom: 62px;
    }

    .hero-copy h1 {
        font-size: clamp(1.58rem, 3.4vw, 2.28rem);
        max-width: 11ch;
    }

    .selector-section {
        margin-top: 0;
        padding-top: 18px;
    }

    .hero-progress {
        left: 16px;
        right: 16px;
        bottom: 20px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 10px 0;
    }

    body.has-install-banner {
        padding-bottom: 112px;
    }

    .install-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .install-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .install-banner-button {
        min-height: 38px;
        padding: 0 14px;
    }

    .header-row {
        gap: 10px;
    }

    .brand {
        align-items: flex-end;
        max-width: calc(100% - 56px);
    }

    .brand img {
        width: min(136px, 38vw);
    }

    .brand-copy {
        gap: 2px;
        align-self: flex-end;
        padding-top: 0;
        padding-bottom: 3px;
    }

    .brand-copy-top {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .brand-copy-bottom {
        font-size: 0.38rem;
        letter-spacing: 0.08em;
    }

    .hero-slider {
        min-height: 292px;
    }

    .hero-visual {
        display: none;
    }

    .branch-header {
        padding-top: 18px;
    }

    .branch-header-inner {
        padding: 0;
    }

    .branch-header-title {
        font-size: 1.46rem;
    }

    .hero-content,
    .branch-hero-content {
        min-height: 292px;
        padding-top: 24px;
        padding-bottom: 58px;
    }

    .hero-copy p,
    .branch-hero-content p,
    .selector-card p,
    .location-card p,
    .story-copy p,
    .branch-card p,
    .cross-card p {
        font-size: 15px;
    }

    .selector-card,
    .story-panel,
    .location-card,
    .branch-card,
    .branch-products-shell,
    .branch-map-wrapper,
    .cross-card {
        padding: 22px;
        border-radius: 22px;
    }

    .product-card {
        padding: 20px;
        border-radius: 20px;
    }

    .product-placeholder-card {
        min-height: 110px;
        border-radius: 18px;
    }

    .product-card h3 {
        font-size: 1.34rem;
    }

    .product-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .selector-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .selector-card {
        padding: 14px;
        border-radius: 18px;
    }

    .selector-card .section-label {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .selector-card h2 {
        margin-top: 10px;
        font-size: 1.02rem;
        line-height: 1.04;
    }

    .selector-card p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .selector-address {
        /* inline — no override needed */
    }

    .selector-wa-fab {
        display: flex;
    }

    .selector-actions .button-whatsapp {
        display: none;
    }

    .selector-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .selector-actions .button {
        min-height: 34px;
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: 0.03em;
        box-shadow: none;
    }

    .selector-actions .button-icon {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .selector-actions .button-whatsapp {
        justify-content: center;
    }

    .selector-actions .button-whatsapp span {
        display: inline;
    }

    .selector-section {
        margin-top: 0;
        padding-top: 12px;
        padding-bottom: 42px;
    }

    .hero-copy h1 {
        font-size: 1.42rem;
        max-width: 10ch;
    }

    .hero-copy h2 {
        font-size: 0.8rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

    .story-highlight-grid {
        grid-template-columns: 1fr;
    }

    .contact-item,
    .map-topbar,
    .map-rating-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-rating-badge {
        width: 100%;
    }

    .map-rating-link {
        white-space: normal;
    }

    .contact-item strong,
    .contact-item strong a {
        text-align: left;
    }

    .button,
    .button-link {
        width: 100%;
    }

    .hero-actions .button,
    .hero-actions .button-link {
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    .selector-actions .button,
    .selector-actions .button-link {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ════════════════════════════════════════════════
   CATÁLOGO / PRODUCTOS
   ════════════════════════════════════════════════ */

.catalog-hero {
    padding: 72px 0 40px;
    text-align: center;
}

.catalog-hero-inner h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 8px 0 12px;
}

.catalog-hero-inner p {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

.catalog-location-picker {
    padding-bottom: 36px;
}

.catalog-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.catalog-picker-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.catalog-picker-btn:hover {
    border-color: var(--green);
    background: var(--surface-strong);
}

.catalog-picker-btn.is-active {
    border-color: var(--green);
    background: var(--surface-strong);
    box-shadow: 0 0 0 3px rgba(30, 106, 67, 0.15);
}

.catalog-picker-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.catalog-picker-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.catalog-picker-address {
    font-size: 0.88rem;
    color: var(--text-soft);
}

/* Toolbar */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
}

.catalog-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.catalog-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.catalog-toolbar-count {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.catalog-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-search-wrap {
    position: relative;
}

.catalog-search {
    width: 220px;
    padding: 9px 36px 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.catalog-search:focus {
    border-color: var(--green);
}

.catalog-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}

.catalog-categories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    overflow: visible;
}

.catalog-promos {
    margin-bottom: 16px;
}

.catalog-promos-head {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.catalog-promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.catalog-promo-card {
    border: 1px solid rgba(29, 78, 216, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #f7fbf8 100%);
    padding: 12px 14px;
}

.catalog-promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.catalog-promo-chip {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 8px;
}

.catalog-promo-chip.is-pack {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
}

.catalog-promo-chip.is-coupon {
    background: rgba(22, 101, 52, 0.14);
    color: #166534;
}

.catalog-promo-discount {
    color: #14532d;
    font-size: 0.92rem;
}

.catalog-promo-name {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text);
}

.catalog-promo-meta {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.catalog-promo-code {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #334155;
}

.catalog-promo-code span {
    font-weight: 800;
    color: #0f172a;
}

.catalog-promo-items {
    margin: 8px 0 0;
    padding-left: 0;
    color: #374151;
    font-size: 0.78rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-promo-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-promo-item-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-promo-item-thumb {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-promo-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-promo-item-thumb-empty {
    color: #607081;
    font-weight: 700;
    font-size: 0.72rem;
}

.catalog-promo-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-promo-item-qty {
    color: #6b7280;
    font-weight: 700;
    flex-shrink: 0;
}

.catalog-promo-add-btn {
    margin-top: 8px;
    border: 1px solid rgba(20, 83, 45, 0.25);
    background: #ffffff;
    color: #14532d;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.catalog-promo-add-btn:hover {
    background: #14532d;
    color: #fff;
}

.catalog-promo-add-btn:disabled {
    opacity: .65;
    cursor: default;
}

/* ── Modal de feedback de pack/promo ── */
#promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.promo-modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    overflow: hidden;
    animation: pmFadeIn .18s ease;
}

@keyframes pmFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.promo-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    color: #111;
}

.promo-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 2px;
}

.promo-modal-body {
    padding: 14px 18px;
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.6;
}

.promo-modal-foot {
    padding: 10px 18px 16px;
    display: flex;
    justify-content: flex-end;
}

.promo-modal-ok {
    background: #14532d;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.promo-modal-ok:hover { background: #166534; }

.catalog-cat-toggle,
.catalog-cat-backdrop,
.catalog-cat-panel-header {
    display: none;
}

.catalog-cat-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.catalog-cat-panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.catalog-cat-group {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.catalog-cat-btn {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 auto;
    white-space: nowrap;
}

.catalog-cat-parent-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-cat-label {
    display: inline-block;
}

.catalog-cat-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1;
}

.catalog-cat-parent-btn.is-active .catalog-cat-caret,
.catalog-cat-parent-btn:hover .catalog-cat-caret {
    background: rgba(255, 255, 255, 0.22);
}

.catalog-subcategories {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 100%;
    max-width: min(360px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 245, 0.98);
    box-shadow: 0 18px 40px rgba(44, 62, 45, 0.14);
    backdrop-filter: blur(10px);
}

.catalog-subcat-btn {
    background: var(--bg-soft);
    border-style: dashed;
}

.catalog-categories-wrap > .catalog-cat-btn {
    align-self: flex-start;
}

.catalog-cat-btn:hover,
.catalog-cat-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

/* Products grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.catalog-category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    overflow: hidden;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    color: inherit;
    font-family: inherit;
    /* Columna: foto arriba con alto fijo y texto abajo. Sin esto, un <button> centra su contenido y las tarjetas con
       títulos más cortos mostraban la foto desalineada respecto de las vecinas. */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.catalog-category-card:hover {
    border-color: rgba(30, 106, 67, 0.4);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.catalog-category-media {
    /* Las fotos de categoría suelen ser fotos de producto sobre fondo blanco y de proporciones muy distintas
       (cajas fuertes altas, bandejas anchas...). Con `cover` se recortaban; con `contain` se ven enteras,
       centradas y con aire alrededor. Se ajusta por tienda con las variables --catalog-cat-img-fit / --catalog-cat-img-bg. */
    aspect-ratio: 4 / 3;
    background: var(--catalog-cat-img-bg, #fff);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    flex: none;
    width: 100%;
}

.catalog-category-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--catalog-cat-img-fit, contain);
    object-position: center;
    display: block;
}

.catalog-category-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, rgba(30, 106, 67, 0.14), rgba(18, 58, 37, 0.08));
}

.catalog-category-media-empty span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--green);
}

.catalog-category-body {
    padding: 14px 14px 16px;
    flex: 1 1 auto;
}

.catalog-category-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.catalog-category-parent {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.catalog-category-count {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--green-deep);
    font-weight: 700;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    color: inherit;
}

.catalog-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.catalog-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}

.catalog-card-img img {
    width: 100%;
    height: 100%;
    /* "contain" (no "cover"): hay fotos sacadas muy de cerca o con relación de aspecto rara --
       con "cover" recortaba y quedaba la imagen gigante, mostrando solo una esquina del producto. */
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s;
}

.catalog-card:hover .catalog-card-img img {
    transform: scale(1.04);
}

.catalog-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.catalog-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.catalog-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(30, 106, 67, 0.1);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-card-name {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

/* En la tarjeta del listado el precio va más chico que en la ficha del producto (que sigue
   usando .price-now a su tamaño normal, ver includes/catalog.php / productos/detalle.php). */
.catalog-card .price-now { font-size: 17px; }
.catalog-card .price-transfer { font-size: 12px; }
.catalog-card .price-inst { font-size: 11.5px; }

.catalog-card-summary {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-colors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0;
}

.catalog-card-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 0 1px var(--surface-strong);
    flex: 0 0 auto;
}

.catalog-card-color-more {
    font-size: 0.72rem;
    color: var(--text-soft);
    font-weight: 600;
}

.catalog-card-options-preview {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin: 4px 0 0;
    line-height: 1.35;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}

.catalog-page-btn {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-page-btn:hover,
.catalog-page-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

/* States */
.catalog-loading {
    text-align: center;
    padding: 48px 0;
    color: var(--text-soft);
}

.catalog-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: catalogSpin 0.7s linear infinite;
}

@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}

.catalog-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--text-soft);
}

.catalog-choose {
    text-align: center;
    padding: 56px 0;
    color: var(--text-soft);
}

.catalog-choose-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.catalog-section {
    padding-bottom: 56px;
}

/* ════════════════════════════════════════════════
   DETALLE DE PRODUCTO
   ════════════════════════════════════════════════ */

.detail-section {
    padding: 48px 0 72px;
}

.detail-back {
    margin-bottom: 24px;
}

.detail-back-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green);
    transition: opacity 0.2s;
}

.detail-back-link:hover {
    opacity: 0.75;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1;
    /* En pantallas anchas la columna de la izquierda puede medir 800-900px, y como es cuadrada
       (aspect-ratio: 1) la imagen quedaba igual de alta -- empujaba las miniaturas abajo del todo,
       fuera de la pantalla. Con un tope de alto ya no pasa, sin perder el recorte cuadrado en
       pantallas angostas (ahí el tope no llega a aplicar). */
    max-height: 520px;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    /* "cover" recortaba/agrandaba las fotos que no son cuadradas (quedaban con zoom y partes
       cortadas) -- "contain" muestra la foto completa dentro del cuadro, igual que en las
       tarjetas del listado. */
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
}

.detail-gallery-main a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    position: relative;
}

.detail-gallery-main a::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / 18px no-repeat;
    pointer-events: none;
}

.detail-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 1rem;
}

.detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}
.detail-gallery-thumbs[hidden] {
    display: none;
}

.detail-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s;
}

.detail-thumb.is-active {
    border-color: var(--green);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-name {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.detail-sku,
.detail-unit {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0;
}

.detail-description h2,
.detail-attributes h2,
.detail-documents h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.detail-description p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.detail-attr-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.detail-attr-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.detail-attr-row dt {
    font-weight: 600;
    min-width: 120px;
    font-size: 0.88rem;
}

.detail-attr-row dd {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.detail-documents {
    margin-top: 40px;
}

.detail-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-doc-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.85rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.detail-doc-card:hover {
    border-color: var(--green);
}

.detail-doc-icon {
    font-size: 1.2rem;
}

/* Detail responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .catalog-categories-wrap {
        display: block;
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .catalog-cat-toggle {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 16px;
        border: 1px solid rgba(28, 74, 52, 0.12);
        border-radius: 18px;
        background: rgba(255, 251, 245, 0.88);
        color: var(--text);
        box-shadow: 0 10px 28px rgba(44, 62, 45, 0.08);
        backdrop-filter: blur(10px);
    }

    .catalog-cat-toggle-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .catalog-cat-toggle-value {
        flex: 1 1 auto;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
    }

    .catalog-cat-toggle-icon {
        font-size: 0.95rem;
        color: var(--green);
    }

    .catalog-cat-backdrop {
        display: none;
    }

    .catalog-cat-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 24;
        display: none;
        flex-direction: column;
        gap: 14px;
        max-height: min(60vh, 460px);
        padding: 18px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(247, 242, 233, 0.98) 100%);
        border: 1px solid rgba(28, 74, 52, 0.12);
        box-shadow: 0 22px 40px rgba(22, 37, 29, 0.16);
        overflow-y: auto;
    }

    .catalog-cat-panel.is-open {
        display: flex;
    }

    .catalog-cat-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .catalog-cat-panel-copy {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .catalog-cat-panel-copy strong {
        font-size: 1.05rem;
        color: var(--text);
    }

    .catalog-cat-panel-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .catalog-cat-panel-close {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(28, 74, 52, 0.08);
        color: var(--text);
        font-size: 1.4rem;
        line-height: 1;
    }

    .catalog-cat-panel-body {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .catalog-cat-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .catalog-cat-parent-btn,
    .catalog-categories-wrap > .catalog-cat-btn {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-subcategories {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        min-width: auto;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .catalog-search {
        width: 100%;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-promos-grid {
        grid-template-columns: 1fr;
    }

    .catalog-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

body.catalog-panel-open {
    overflow: auto;
}

/* Branch products enhancements */
.branch-products-more {
    text-align: center;
    padding-top: 28px;
}

.branch-products-cta {
    text-align: center;
    padding-top: 20px;
}

.branch-product-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.branch-product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 6px 0;
}

.branch-product-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0 0 6px;
    line-height: 1.45;
}

.branch-product-card small {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-style: italic;
}

.branch-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Home products section */
.home-products-section {
    padding: 56px 0 40px;
}

.home-products-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 520px;
    margin: 8px auto 0;
}

.home-products-sede {
    margin-top: 32px;
}

.home-products-sede-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-products-sede-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--green-deep);
}

.home-products-sede-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.home-product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-product-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.home-product-card-media {
    aspect-ratio: 4 / 2.6;
    overflow: hidden;
    background: var(--bg-soft);
}

.home-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.home-product-card:hover .home-product-card-media img {
    transform: scale(1.04);
}

.home-product-card-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.home-product-card .catalog-card-tag,
.home-product-card h4,
.home-product-card p,
.home-product-card small {
    margin-left: 20px;
    margin-right: 20px;
}

.home-product-card .catalog-card-tag {
    margin-top: 18px;
}

.home-product-card small {
    margin-bottom: 18px;
}

.home-product-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 2px 20px;
}

.home-product-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0 20px;
    line-height: 1.45;
}

.home-product-card small {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-style: normal;
    margin-top: 2px;
}

.button-sm {
    font-size: 0.82rem;
    padding: 6px 14px;
    min-height: auto;
}

.home-products-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   SHOP — E-commerce
   ═══════════════════════════════════════════════════════════════ */

/* ─── Utilidades ────────────────────────────────────────────────── */
.d-none { display: none !important; }
.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;
}
.text-muted { color: var(--text-soft); }
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Layout general de páginas del shop ────────────────────────── */
.shop-section {
    padding: 48px 0 80px;
    min-height: 60vh;
}
.shop-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 32px;
    letter-spacing: -0.02em;
}

/* ─── Botones del shop ───────────────────────────────────────────── */
.btn-shop-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--btn-bg), var(--btn-bg-2));
    color: #fff8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(182, 64, 53, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    text-decoration: none;
}
.btn-shop-primary:hover,
.btn-shop-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(182, 64, 53, 0.28);
}
.btn-shop-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-shop-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid rgba(29, 38, 31, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.btn-shop-secondary:hover,
.btn-shop-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(29, 38, 31, 0.32);
}

.btn-shop-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.btn-shop-ghost:hover { color: var(--text); background: var(--line); }
.btn-shop-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Formularios genéricos (auth + checkout) ────────────────────── */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(30, 106, 67, 0.1);
}
.form-field.form-field--half { max-width: 200px; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── Alertas ────────────────────────────────────────────────────── */
.auth-alert,
.checkout-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}
.auth-alert-error,
.checkout-alert-error {
    background: rgba(182, 64, 53, 0.1);
    border: 1px solid rgba(182, 64, 53, 0.25);
    color: #8b2318;
}
.auth-alert-success {
    background: rgba(30, 106, 67, 0.1);
    border: 1px solid rgba(30, 106, 67, 0.25);
    color: var(--green-deep);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH — Login / Registro
   ═══════════════════════════════════════════════════════════════ */
.shop-auth-shell {
    max-width: 460px;
    margin-inline: auto;
}
.shop-auth-box {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--line);
    gap: 0;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.auth-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--green);
}

.auth-google { text-align: center; }
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 4px 16px rgba(66,133,244,0.15); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-soft);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form .btn-shop-primary { width: 100%; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   CARRITO
   ═══════════════════════════════════════════════════════════════ */
.shop-cart-shell { max-width: 880px; margin-inline: auto; }

.cart-loading { text-align: center; padding: 60px 0; color: var(--text-soft); }

.cart-empty {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-soft);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Items */
.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: box-shadow 0.2s;
}
.cart-item:hover { box-shadow: var(--shadow-soft); }

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item-img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--line);
}
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-sku { font-size: 12px; color: var(--text-soft); }
.cart-item-price { font-size: 13px; color: var(--text-soft); }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: 999px;
    padding: 4px 6px;
}
.qty-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.qty-btn:hover { background: var(--bg); }
.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    min-width: 80px;
    text-align: right;
}
.cart-item-remove {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-item-remove:hover { background: rgba(182,64,53,0.1); color: var(--red); }

/* Summary */
.cart-summary {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.cart-summary-row strong { font-size: 20px; font-weight: 800; }
.cart-summary-note { font-size: 12px; color: var(--text-soft); margin: -8px 0 0; }
.cart-summary .btn-shop-primary { width: 100%; }
.cart-summary .btn-shop-ghost { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════ */
.shop-checkout-shell { max-width: 1020px; margin-inline: auto; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.checkout-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}
.checkout-fieldset legend {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    padding: 0;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.checkout-fieldset .form-field + .form-field,
.checkout-fieldset .form-row-2 + .form-field { margin-top: 12px; }

/* En filas de 2 columnas no aplicar margen vertical entre columnas */
.checkout-fieldset .form-row-2 .form-field + .form-field {
    margin-top: 0;
}

/* Opciones de entrega */
.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.delivery-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    font-weight: 600;
}
.delivery-option:has(input:checked),
.payment-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(30, 106, 67, 0.06);
}
.delivery-option input,
.payment-option input { accent-color: var(--green); }
.payment-option-inner { display: flex; align-items: center; gap: 10px; }

/* Resumen en checkout */
.checkout-summary-col {
    position: sticky;
    top: 100px;
}
.checkout-summary-box {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.checkout-summary-box h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text);
}
.summary-items { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    gap: 12px;
}
.summary-item-name { color: var(--text); line-height: 1.4; }
.summary-item-name em { color: var(--text-soft); font-style: normal; }
.summary-item-price { font-weight: 700; white-space: nowrap; }
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1.5px solid var(--line);
    font-size: 16px;
    font-weight: 800;
}
.checkout-login-note {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 16px;
    text-align: center;
}
.checkout-login-note a { color: var(--green); text-decoration: underline; }
.btn-checkout-submit { width: 100%; margin-top: 8px; }

/* Aviso radio de entrega */
.cart-delivery-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(30, 106, 67, 0.07);
    border: 1px solid rgba(30, 106, 67, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--green-deep);
    margin-bottom: 14px;
    line-height: 1.4;
}
.cart-delivery-notice svg { flex-shrink: 0; margin-top: 1px; }

/* Indicador de cobertura en tiempo real */
.delivery-range-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.4;
    border: 1px solid transparent;
}
.delivery-range-checking {
    background: rgba(100, 100, 100, 0.07);
    border-color: rgba(100, 100, 100, 0.18);
    color: var(--text-soft);
}
.delivery-range-ok {
    background: rgba(30, 106, 67, 0.08);
    border-color: rgba(30, 106, 67, 0.25);
    color: var(--green-deep);
}
.delivery-range-out {
    background: rgba(200, 40, 40, 0.06);
    border-color: rgba(200, 40, 40, 0.22);
    color: #b91c1c;
}
.delivery-range-unknown {
    background: rgba(160, 100, 0, 0.06);
    border-color: rgba(160, 100, 0, 0.22);
    color: #92400e;
}
.delivery-range-indicator svg { flex-shrink: 0; }
.range-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: range-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes range-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   PEDIDO CONFIRMADO
   ═══════════════════════════════════════════════════════════════ */
.shop-confirmed-shell {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.confirmed-loading { padding: 80px 0; }
.confirmed-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(30,106,67,0.22);
    margin-bottom: 20px;
}
.shop-confirmed-shell h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 10px;
}
#confirmed-subtitle {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 32px;
}
.confirmed-card {
    width: 100%;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.confirmed-item { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.confirmed-item em { color: var(--text-soft); font-style: normal; }
.confirmed-divider { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.confirmed-total { display: flex; justify-content: space-between; font-size: 16px; gap: 12px; }
.confirmed-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); gap: 12px; }
.confirmed-bank {
    width: 100%;
    background: rgba(30,106,67,0.07);
    border: 1.5px solid rgba(30,106,67,0.2);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
    text-align: left;
}
.confirmed-bank h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.confirmed-bank-note { font-size: 13px; color: var(--text-soft); margin-top: 12px; }
.confirmed-cash {
    width: 100%;
    background: rgba(198,154,82,0.1);
    border: 1.5px solid rgba(198,154,82,0.3);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text);
}
.confirmed-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   MIS PEDIDOS
   ═══════════════════════════════════════════════════════════════ */
.shop-orders-shell { max-width: 800px; margin-inline: auto; }

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.orders-header .shop-page-title { margin-bottom: 0; }
.orders-user-info { font-size: 14px; color: var(--text-soft); }
.orders-user-info a { color: var(--green); text-decoration: underline; }

.orders-loading,
.orders-empty { padding: 60px 0; text-align: center; color: var(--text-soft); }
.orders-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-soft); }

.order-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    flex-wrap: wrap;
}
.order-card-number { font-weight: 800; font-size: 14px; }
.order-card-date { font-size: 13px; color: var(--text-soft); margin-right: auto; }

.order-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-status-pending    { background: rgba(198,154,82,0.15); color: #7a5e28; }
.order-status-confirmed,
.order-status-processing { background: rgba(30,106,67,0.12);  color: var(--green-deep); }
.order-status-shipped    { background: rgba(30,106,67,0.2);   color: var(--green-deep); }
.order-status-delivered  { background: rgba(30,106,67,0.28);  color: var(--green-deep); }
.order-status-cancelled  { background: rgba(182,64,53,0.12);  color: #8b2318; }
.order-pay-pending       { background: rgba(198,154,82,0.12); color: #7a5e28; }
.order-pay-paid          { background: rgba(30,106,67,0.12);  color: var(--green-deep); }
.order-pay-failed        { background: rgba(182,64,53,0.12);  color: #8b2318; }
.order-pay-refunded      { background: rgba(100,100,200,0.12);color: #3333aa; }

.order-card-items { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.order-card-item { display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }

.order-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    background: var(--bg-soft);
}
.order-total { font-size: 15px; font-weight: 800; margin-right: auto; }
.order-pay-method { color: var(--text-soft); }
.order-card-link { color: var(--green); font-weight: 700; white-space: nowrap; }
.order-card-link:hover { text-decoration: underline; }

.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════════
   DETALLE DE PRODUCTO — Selector de variantes
   ═══════════════════════════════════════════════════════════════ */
.detail-variants {
    margin: 0;
}
.detail-variant-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin: 0 0 8px;
}
/* Vacío hasta que el visitante elige una combinación válida -- sin esto reservaba 8px de margen
   de todos modos (línea en blanco antes de elegir color/modelo). */
.detail-variant-price:empty {
    margin: 0;
}
.detail-variant-msg {
    color: #c0392b;
    font-size: .85rem;
    margin: 6px 0 0;
}
.detail-variant-msg:empty {
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   DETALLE DE PRODUCTO — Botón agregar al carrito
   ═══════════════════════════════════════════════════════════════ */
.detail-cart-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.detail-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(30,106,67,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
    width: 100%;
    max-width: 340px;
}
.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(30,106,67,0.28);
}
.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-add-to-cart.is-added {
    background: linear-gradient(135deg, #2e8b5f, var(--green-deep));
}
.btn-view-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    text-decoration: underline;
    transition: color 0.2s;
}
.btn-view-cart:hover { color: var(--green-deep); }

/* ═══════════════════════════════════════════════════════════════
   Responsive — Shop
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .shop-auth-box {
        padding: 28px 20px;
    }
    .cart-content {
        grid-template-columns: 1fr;
    }
    .cart-item {
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: auto auto;
    }
    .cart-item-media { grid-row: 1 / 3; }
    .cart-item-subtotal { grid-column: 3; grid-row: 1; }
    .cart-item-remove { grid-column: 3; grid-row: 2; }
    .cart-item-qty { grid-column: 2; grid-row: 2; }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary-col { position: static; }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .checkout-fieldset .form-row-2 .form-field + .form-field {
        margin-top: 12px;
    }
    .confirmed-actions {
        flex-direction: column;
        width: 100%;
    }
    .confirmed-actions a,
    .confirmed-actions button {
        width: 100%;
    }
    .order-card-header { gap: 8px; }
    .order-total { margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — Íconos de carrito y cuenta
   ═══════════════════════════════════════════════════════════════ */
.header-shop-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.header-cart-btn,
.header-account-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
/* El botón de carrito es solo icono, sin padding extra */
.header-cart-btn {
    width: 42px;
    padding: 0;
}
.header-cart-btn:hover,
.header-account-btn:hover,
.header-cart-btn:focus-visible,
.header-account-btn:focus-visible {
    background: rgba(255,255,255,0.82);
    transform: translateY(-1px);
}
.header-account-btn.is-logged-in {
    background: rgba(30, 106, 67, 0.12);
    border-color: rgba(30, 106, 67, 0.28);
    color: var(--green-deep);
}

.header-account-name {
    font-size: 13px;
    font-weight: 700;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

.frontend-testing-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(191, 59, 38, 0.45);
    background: rgba(191, 59, 38, 0.12);
    color: #a23524;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .frontend-testing-badge {
        height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CATALOG CARD — Footer con precio y botón de carrito
   ═══════════════════════════════════════════════════════════════ */

/* La card ya no es un <a> sino un <div>; el link es .catalog-card-link */
.catalog-card {
    display: flex;
    flex-direction: column;
    cursor: default;
}
.catalog-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.catalog-card-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.catalog-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.catalog-card-price {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-top: 8px;
    white-space: nowrap;
}

.catalog-card-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(30, 106, 67, 0.25);
    background: rgba(30, 106, 67, 0.07);
    color: var(--green-deep);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
    white-space: nowrap;
}
.catalog-card-cart-btn:hover:not(:disabled) {
    background: rgba(30, 106, 67, 0.14);
    border-color: rgba(30, 106, 67, 0.44);
    transform: translateY(-1px);
}
.catalog-card-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.catalog-card-cart-btn.is-added {
    background: rgba(30, 106, 67, 0.18);
    border-color: var(--green);
    color: var(--green-deep);
}

/* Card con producto ya en el carrito */
.catalog-card.is-in-cart {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}
.catalog-card-img {
    position: relative;
    overflow: hidden;
}
/* Badge eliminado — el mini-carrito ya es suficiente indicador */
.catalog-card {
    position: relative;
}

/* Botón cuando el producto ya está en carrito */
.catalog-card-cart-btn.is-in-cart-mod {
    background: rgba(30, 106, 67, 0.1);
    border-color: var(--green);
    color: var(--green-deep);
    font-weight: 700;
}
/* El botón siempre centrado */
.catalog-card-footer .catalog-card-cart-btn {
    margin-left: 0;
    justify-content: center;
}
/* Botón suelto en el footer (No disponible / Sin precio / Ver opciones): con aire a los costados,
   no pegado de borde a borde de la card. */
.catalog-card-footer > .catalog-card-cart-btn {
    margin: 10px 12px 12px;
    box-sizing: border-box;
    text-decoration: none;
}
/* Agregar: ocupa el ancho disponible pero respeta el margen de la fila */
.catalog-card-add-row {
    box-sizing: border-box;
}
.catalog-card-add-row .catalog-card-cart-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.catalog-card-status-note {
    width: 100%;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.68);
}

/* Fila cantidad + botón agregar */
.catalog-card-add-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px 12px;
}

/* Mini-carrito en la card (variantes ya agregadas) */
.catalog-card-variants {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 4px;
    border-bottom: 1px solid var(--line);
}
.catalog-card-variants:empty {
    display: none;
    padding: 0;
    border: none;
}
.catalog-card-variant-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.catalog-card-variant-row:last-child {
    border-bottom: none;
}
.catalog-card-variant-label {
    flex: 1;
    font-size: 0.75rem;
    color: #333;
    min-width: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-card-variant-label em {
    display: block;
    font-style: normal;
    font-size: 0.69rem;
    color: #2d6a4f;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-card-variant-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(30, 106, 67, 0.3);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.catalog-card-variant-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--green-deep);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
}
.catalog-card-variant-btn:hover {
    background: rgba(30, 106, 67, 0.1);
}
.catalog-card-variant-qty {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    min-width: 18px;
    text-align: center;
    padding: 0 2px;
}
.catalog-card-variant-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.12s, background 0.12s;
    padding: 0;
    font-family: inherit;
}
.catalog-card-variant-remove:hover {
    color: #c00;
    background: rgba(200,0,0,.08);
}

/* Stepper de cantidad */
.catalog-card-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(30, 106, 67, 0.25);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.catalog-card-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green-deep);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.catalog-card-qty-btn:hover {
    background: rgba(30, 106, 67, 0.1);
}
.catalog-card-qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 0;
    -moz-appearance: textfield;
}
.catalog-card-qty-input::-webkit-outer-spin-button,
.catalog-card-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Barra de mensajes superior */
.announce-bar { position: relative; min-height: 38px; overflow: hidden; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.announce-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.announce-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.announce-item a { text-decoration: none; }
.announce-item a:hover { text-decoration: underline; }


/* Tarjetas del home clickeables (link estirado a la ficha del producto) */
.home-product-card { position: relative; }
.home-product-card-link { position: absolute; inset: 0; z-index: 1; }


/* Categorías del home */
.home-cats-section { padding: 36px 0 8px; }
.home-cats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(var(--hc-w, 220px), 1fr)); }
.home-cats-grid--s { --hc-w: 140px; gap: 12px; }
.home-cats-grid--m { --hc-w: 220px; }
.home-cats-grid--l { --hc-w: 320px; gap: 20px; }
.home-cat-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s, border-color .2s; }
.home-cat-card:hover { border-color: rgba(30, 106, 67, .4); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.home-cat-media { aspect-ratio: 4 / 3; background: var(--catalog-cat-img-bg, #fff); display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.home-cat-media img { width: 100%; height: 100%; object-fit: var(--catalog-cat-img-fit, contain); display: block; }
.home-cat-media--empty { background: linear-gradient(135deg, rgba(30, 106, 67, .14), rgba(18, 58, 37, .08)); padding: 0; }
.home-cat-media--empty span { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .8); font-weight: 800; font-size: 20px; }
.home-cat-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-align: center; }
.home-cat-name { font-size: 15px; }
.home-cat-count { color: var(--text-soft); font-size: 12px; }
.home-cats-grid--text .home-cat-card { align-items: center; justify-content: center; min-height: 64px; }
.home-cats-grid--text .home-cat-body { padding: 16px 18px; }
.home-cats-grid--s .home-cat-name { font-size: 13px; }
.home-cats-grid--l .home-cat-name { font-size: 17px; }


/* Precios y etiquetas de la tarjeta de producto */
.price-block { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.price-off { color: #15803d; font-weight: 700; font-size: 12px; }
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-now { font-size: 22px; line-height: 1.1; }
.price-was { color: #8a8a8a; font-size: 13px; }
.price-from { font-size: 12px; color: var(--text-soft); }
.price-transfer { font-size: 13px; }
.price-transfer strong { font-weight: 800; }
.price-inst { color: #15803d; font-size: 12.5px; }
.catalog-card-img, .home-product-card-media { position: relative; }
.card-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; line-height: 1.2; }
.card-badge--ship { background: #16a34a; }


/* Favoritos */
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #444; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s, color .15s; }
.fav-btn svg { fill: none; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-on { color: #e11d48; }
.fav-btn.is-on svg { fill: currentColor; }
.detail-fav { position: relative; display: inline-block; width: 40px; height: 36px; vertical-align: middle; margin-left: 8px; }
.detail-fav .fav-btn { top: 0; right: auto; left: 0; box-shadow: none; border: 1px solid var(--line); }
.header-fav-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: inherit; text-decoration: none; }
.favs-empty { text-align: center; padding: 48px 16px; color: var(--text-soft); }
.favs-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fav-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); overflow: hidden; display: flex; flex-direction: column; }
.fav-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.fav-card-img { aspect-ratio: 4 / 3; background: var(--bg-soft); position: relative; overflow: hidden; }
.fav-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-card-body { padding: 12px 14px 16px; }
.fav-card-name { font-size: 15px; margin: 0 0 4px; }


/* Estrellas y opiniones */
.stars-row { display: flex; align-items: center; gap: 5px; font-size: 13px; margin: 4px 0 2px; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars-off { color: #d1d5db; }
.stars-num { font-weight: 700; }
.stars-count { color: var(--text-soft); font-size: 12.5px; }
.detail-reviews { margin: 26px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-reviews h2 { font-size: 18px; margin: 0 0 8px; }
.rv-summary { margin-bottom: 12px; font-size: 15px; }
.rv-note { color: var(--text-soft); font-size: 14px; }
.rv-form { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; background: var(--surface-strong); display: flex; flex-direction: column; gap: 10px; }
.rv-pick { display: flex; gap: 4px; }
.rv-star { border: 0; background: none; font-size: 28px; color: #d1d5db; cursor: pointer; padding: 0 2px; line-height: 1; }
.rv-star.is-on { color: #f59e0b; }
.rv-text { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; }
.rv-msg { margin: 0; font-size: 13px; color: var(--text-soft); }
.rv-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-item p { margin: 6px 0 0; font-size: 14px; }


/* Título de la sección de productos del home: más chico y sin etiqueta */
.home-products-section .section-heading h2 { margin-top: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Tarjeta del home: orden, márgenes y descripción corta */
.home-product-card { gap: 6px; }
.home-product-card .catalog-card-tag { align-self: flex-start; }
.home-product-card h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-product-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }
.home-product-card .stars-row { margin: 0 20px; }
.home-product-card .price-block { margin: auto 20px 18px; padding-top: 6px; }
.home-product-card small { margin-top: auto; }
.home-product-card-media { background: #fff; }
.home-product-card-media img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.home-product-card:hover .home-product-card-media img { transform: scale(1.02); }

/* Mismo look que la tarjeta del listado (título más chico sin negrita, precio más chico,
   puntos de color de las variantes) para que los destacados del home no desentonen. */
.home-product-card h4 { font-size: 0.85rem; font-weight: 400; }
.home-product-card .price-now { font-size: 17px; }
.home-product-card .price-transfer { font-size: 12px; }
.home-product-card .price-inst { font-size: 11.5px; }
.home-product-card .catalog-card-colors { margin: 2px 20px 0; }


/* Descuento por cantidad (mayorista) */
.tiers-box { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); margin: 12px 0; overflow: hidden; }
.tier-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tier-row small { color: var(--text-soft); }
.tier-row strong { font-size: 17px; white-space: nowrap; }
.tier-row.is-on { background: rgba(22, 163, 74, .09); box-shadow: inset 3px 0 0 #16a34a; }
.tier-off { font-style: normal; background: #16a34a; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 800; margin-left: 4px; }
.tier-total { padding: 10px 14px; font-size: 14px; background: rgba(0,0,0,.025); }
.tier-total strong { color: #15803d; font-size: 17px; }


/* Categorías del home: título igual al de productos y tarjetas siempre cuadradas */
.home-cats-section .section-heading h2 { margin-top: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.home-cats-grid--image .home-cat-card { aspect-ratio: 1 / 1; }
.home-cats-grid--image .home-cat-media { aspect-ratio: auto; flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
.home-cats-grid--image .home-cat-media img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.home-cats-grid--image .home-cat-body { flex: none; min-height: 52px; display: flex; align-items: center; justify-content: center; }


/* Favoritos y cuenta en el header: mismo estilo claro que el carrito, legibles sobre cualquier color de header */
.header-fav-btn { width: 42px; padding: 0; color: var(--text); }
.header-fav-btn svg { display: block; }
.header-account-btn.is-logged-in { background: rgba(255,255,255,0.55); border-color: var(--line); color: var(--text); }
.header-account-btn.is-logged-in:hover { background: rgba(255,255,255,0.82); }


/* Buscador de productos del home */
.home-search-section { padding: 26px 0 0; }
.home-search-form { position: relative; max-width: 720px; margin: 0 auto; display: flex; }
.home-search-form input[type="search"] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--surface-strong, #fff); font: inherit; font-size: 15px; outline: none; }
.home-search-form input[type="search"]:focus { border-color: rgba(0,0,0,.35); }
.home-search-form > button[type="submit"] { width: 60px; border: 1px solid var(--line); border-radius: 0 999px 999px 0; background: var(--btn-bg, #1f2937); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.home-search-suggest { position: absolute; top: 58px; left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.14); overflow: hidden; }
.home-search-suggest[hidden] { display: none; }
.hs-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.hs-item:hover { background: rgba(0,0,0,.04); }
.hs-img { flex: none; width: 46px; height: 46px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.hs-img img { width: 100%; height: 100%; object-fit: contain; }
.hs-name { flex: 1; font-size: 14px; font-weight: 600; }
.hs-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.hs-empty { padding: 14px; color: var(--text-soft); font-size: 14px; }
.hs-all { display: block; width: 100%; padding: 11px; border: 0; background: #f6f6f6; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Buscador del home: ancho completo del contenedor, más bajo y con el mismo aire arriba y abajo */
.home-search-section { padding: 24px 0 0; }
.home-search-form { max-width: none; width: 100%; }
.home-search-form input[type="search"] { height: 44px; font-size: 14px; padding: 0 18px; }
.home-search-form > button[type="submit"] { width: 54px; }
.home-search-suggest { top: 50px; }
.home-search-section + .home-products-section,
.home-search-section + .home-cats-section { padding-top: 22px; }

/* Mismo aire arriba (slider → buscador) y abajo (buscador → título) */
.home-search-section { padding-top: 30px; }
.home-search-section + .home-products-section,
.home-search-section + .home-cats-section { padding-top: 0; }
.home-search-section + .home-products-section .section-heading h2,
.home-search-section + .home-cats-section .section-heading h2 { margin-top: -6px; }

/* Ajuste final del aire bajo el buscador (el título tiene ~6px de interlineado propio) */
.home-search-section + .home-products-section,
.home-search-section + .home-cats-section { padding-top: 24px; }
.home-search-section + .home-products-section .section-heading h2,
.home-search-section + .home-cats-section .section-heading h2 { margin-top: 0; }

/* Todos los títulos de sección con el mismo tamaño (el de Productos / Categorías) */
.section-heading h2,
.content-section .section-heading h2,
.home-products-section .section-heading h2,
.home-cats-section .section-heading h2,
.story-copy h2,
.locations-section .section-heading h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    letter-spacing: -0.02em;
}
.section-heading h2 { margin-top: 0; }


/* Página de contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface-strong, #fff); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(0,0,0,.18); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-opt { font-weight: 400; color: var(--text-soft); }
.contact-form .button { align-self: flex-start; }
.contact-msg { margin: 0; min-height: 20px; font-size: 14px; }
.contact-msg.is-ok { color: #15803d; font-weight: 700; }
.contact-msg.is-error { color: #b91c1c; font-weight: 700; }
.contact-side { background: var(--surface-strong, #fff); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.contact-side h3 { margin: 0 0 10px; font-size: 16px; }
.contact-side ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.contact-address { font-size: 14px; color: var(--text-soft); margin: 10px 0 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .contact-row { grid-template-columns: 1fr; } }


/* Videos del producto */
.detail-videos { margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-videos h2 { font-size: 18px; margin: 0 0 10px; }
.detail-video { margin: 0 0 16px; }
.detail-video iframe, .detail-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); background: #000; display: block; }
.detail-video figcaption { margin-top: 6px; font-size: 13px; color: var(--text-soft); }

/* Descripción enriquecida (tablas, citas, etc.) */
.detail-description-rich table { border-collapse: collapse; width: 100%; margin: 10px 0; display: block; overflow-x: auto; }
.detail-description-rich td, .detail-description-rich th { border: 1px solid var(--line); padding: 6px 10px; }
.detail-description-rich th { background: rgba(0,0,0,.04); text-align: left; }
.detail-description-rich blockquote { border-left: 4px solid var(--line); margin: 10px 0; padding: 2px 14px; color: var(--text-soft); }
.detail-description-rich hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

.card-badge--reserved { background: #f59e0b; }
.detail-reserved { margin-bottom: 8px; }
.detail-reserved small { color: var(--text-soft); }
