/* Theme: rincon — palette from rincondelaharina.com reference */
:root {
    --rincon-ink: #281f1a;
    --rincon-brown: #5e4a3d;
    --rincon-copper: #b7733f;
    --rincon-copper-dark: #95592f;
    --rincon-cream: #f3ede5;
    --rincon-paper: #fbf8f3;
    --rincon-line: #ded2c6;
    --rincon-logo-bg: #fef8f1;
    --rincon-footer-bg: #030505;
    --rincon-footer-text: #d9cec5;
    --rincon-footer-muted: #b7a79c;

    --theme-primary: var(--rincon-copper);
    --theme-secondary: var(--rincon-brown);
    --theme-accent: var(--rincon-copper-dark);
    --theme-background: var(--rincon-cream);
    --theme-surface: var(--rincon-paper);
    --theme-text: var(--rincon-brown);
    --theme-heading: var(--rincon-ink);
    --theme-font-title: Georgia, "Times New Roman", serif;
    --theme-font-body: Inter, "Lato", Arial, sans-serif;
    --theme-border-radius: 10px;
    --theme-page-bg-color: var(--theme-background);
    --theme-navbar-search-bg: #fef8f1;

    /* Catalog tokens — structure remains in core; only visual identity here */
    --catalog-page-bg: #f3ede5;
    --product-card-bg: #fbf8f3;
    --product-card-border: #ded2c6;
    --product-card-hover-border: #b7733f;
    --product-image-bg: #fef8f1;
    --product-title-color: #281f1a;
    --product-muted-color: #5e4a3d;
    --product-price-color: #281f1a;
    --product-button-bg: #b7733f;
    --product-button-hover-bg: #95592f;
    --product-button-text: #ffffff;
    --catalog-control-bg: #fbf8f3;
    --catalog-control-border: #ded2c6;
    --product-zoom-button-bg: rgba(254, 248, 241, 0.94);
    --product-zoom-button-color: #281f1a;
    --product-zoom-button-border: rgba(94, 74, 61, 0.16);
    --product-zoom-overlay-bg: rgba(3, 5, 5, 0.72);
    --product-zoom-surface-bg: #fbf8f3;
    --product-zoom-title-color: #281f1a;

    --gold: var(--theme-primary);
    --gold-light: #d4a574;
    --color-gold: var(--theme-accent);
    --color-primary: var(--theme-primary);
    --color-background: var(--rincon-cream);
    --color-surface: var(--theme-surface);
    --bg-body: var(--theme-background);
    --color-text: var(--theme-text);
    --color-heading: var(--theme-heading);
    --primary: var(--rincon-ink);
    --secondary: var(--theme-secondary);
    --color-border: var(--rincon-line);
    --font-title: var(--theme-font-title);
    --font-body: var(--theme-font-body);
    --border-radius-md: var(--theme-border-radius);
}

body.theme-layout {
    position: relative;
    min-height: 100vh;
    background-color: var(--theme-page-bg-color, var(--bg-body));
}

body.theme-layout[style*="--theme-bg-image"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: var(--theme-bg-image);
    background-repeat: var(--theme-bg-repeat, no-repeat);
    background-position: var(--theme-bg-position, center center);
    background-size: var(--theme-bg-size, cover);
    background-attachment: var(--theme-bg-attachment, scroll);
}

body.theme-layout[style*="--theme-bg-overlay"]::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--theme-bg-overlay);
}

.theme-page-shell {
    position: relative;
    z-index: 0;
    overflow-x: clip;
}

.theme-page-shell .theme-main-content {
    scroll-margin-top: 4.5rem;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.theme-site-navbar--rincon {
    background: #fef8f1;
    border-bottom: 1px solid var(--rincon-line);
    box-shadow: 0 4px 12px rgba(40, 31, 26, 0.03);
    min-height: 3.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.theme-site-navbar--rincon__brand {
    display: inline-flex;
    align-items: center;
    color: var(--rincon-ink);
    text-decoration: none;
    min-width: 0;
    margin-right: 0.5rem;
}

.theme-site-navbar--rincon__brand-text {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--rincon-ink);
    line-height: 1.15;
    white-space: nowrap;
}

.theme-site-navbar--rincon .navbar-search-container {
    min-width: 0;
}

.theme-site-navbar--rincon__search-group {
    border: 1px solid var(--rincon-line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--theme-navbar-search-bg, #fef8f1);
    box-shadow: none;
}

.theme-site-navbar--rincon__search-group .input-group-text {
    background: var(--theme-navbar-search-bg, #fef8f1);
    border: 0;
    color: var(--rincon-copper);
}

.theme-site-navbar--rincon__search-group .search-input {
    border: 0;
    background: var(--theme-navbar-search-bg, #fef8f1);
    color: var(--rincon-ink);
    font-family: var(--font-body);
}

.theme-site-navbar--rincon__search-group .search-input::placeholder {
    color: #9e8e82;
}

.theme-site-navbar--rincon__search-group .search-input:focus {
    box-shadow: none;
    outline: none;
}

.theme-site-navbar--rincon__search-group:focus-within {
    border-color: var(--rincon-copper);
    box-shadow: 0 0 0 3px rgba(183, 115, 63, 0.15);
}

.theme-site-navbar--rincon .btn-categories {
    border: 1px solid var(--rincon-copper);
    background: var(--rincon-copper);
    color: #fff;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-site-navbar--rincon .btn-categories:hover {
    background: var(--rincon-copper-dark);
    border-color: var(--rincon-copper-dark);
    color: #fff;
}

.theme-site-navbar--rincon .btn-categories:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 2px;
}

.theme-site-navbar--rincon .nav-icon-btn {
    color: var(--rincon-ink);
}

.theme-site-navbar--rincon .nav-icon-btn:hover {
    color: var(--rincon-copper);
}

.theme-site-navbar--rincon .nav-icon-btn:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 2px;
    border-radius: 6px;
}

.theme-site-navbar--rincon .badge-cart {
    background: var(--rincon-copper);
    color: #fff;
}

.theme-site-navbar--rincon .user-dropdown-menu {
    border-color: var(--rincon-line);
}

.theme-site-navbar--rincon .user-name {
    color: var(--rincon-brown);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.theme-site-footer--rincon {
    background: var(--rincon-footer-bg);
    color: var(--rincon-footer-text);
    padding: 60px 0 28px;
    border-top: 2px solid var(--rincon-copper);
}

.theme-site-footer--rincon__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 36px;
    align-items: stretch;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.theme-site-footer--rincon__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.theme-site-footer--rincon__col-header {
    margin-bottom: 4px;
}

.theme-site-footer--rincon__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--rincon-copper);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.theme-site-footer--rincon__map-title,
.theme-site-footer--rincon__social-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
    font-family: var(--font-title);
    line-height: 1.35;
}

.theme-site-footer--rincon__logo {
    width: min(250px, 100%);
    display: block;
    margin: 0 0 22px;
    background: var(--rincon-logo-bg, #fef8f1);
    padding: 18px 24px;
    border-radius: 2px;
}

.theme-site-footer--rincon__logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.theme-site-footer--rincon__fiscal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-site-footer--rincon__fiscal-list li {
    font-size: 0.88rem;
    color: var(--rincon-footer-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
}

.theme-site-footer--rincon__fiscal-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.theme-site-footer--rincon__fiscal-list a {
    color: var(--rincon-copper);
    text-decoration: none;
    transition: color 0.2s ease;
}

.theme-site-footer--rincon__fiscal-list a:hover {
    color: #ffffff;
}

.theme-site-footer--rincon__fiscal-list a:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 2px;
}

.theme-site-footer--rincon__map-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1d1714;
}

.theme-site-footer--rincon__map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.theme-site-footer--rincon__whatsapp-action {
    margin-top: 4px;
}

.theme-site-footer--rincon__whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.theme-site-footer--rincon__whatsapp-btn:hover {
    background: #20ba5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.theme-site-footer--rincon__whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.theme-site-footer--rincon__instagram-reel {
    margin-top: 14px;
    width: 100%;
}

.theme-site-footer--rincon__reel-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    background: #191412;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-site-footer--rincon__reel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 48, 108, 0.6);
    box-shadow: 0 14px 32px rgba(225, 48, 108, 0.3);
}

.theme-site-footer--rincon__reel-card:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 3px;
}

.theme-site-footer--rincon__reel-thumbnail {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.theme-site-footer--rincon__reel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
    filter: brightness(0.8);
}

.theme-site-footer--rincon__reel-card:hover .theme-site-footer--rincon__reel-bg {
    transform: scale(1.06);
    filter: brightness(0.92);
}

.theme-site-footer--rincon__reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
}

.theme-site-footer--rincon__reel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-site-footer--rincon__ig-avatar-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-site-footer--rincon__ig-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 1px solid #111;
}

.theme-site-footer--rincon__ig-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-site-footer--rincon__ig-username {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.theme-site-footer--rincon__ig-tag {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.theme-site-footer--rincon__reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.theme-site-footer--rincon__reel-card:hover .theme-site-footer--rincon__reel-play {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    transform: translate(-50%, -50%) scale(1.12);
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(225, 48, 108, 0.55);
}

.theme-site-footer--rincon__reel-caption-wrap {
    position: relative;
    z-index: 2;
}

.theme-site-footer--rincon__reel-caption {
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.theme-site-footer--rincon__reel-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: filter 0.2s ease;
}

.theme-site-footer--rincon__reel-card:hover .theme-site-footer--rincon__reel-action-bar {
    filter: brightness(1.1);
}

.theme-site-footer--rincon__reel-action-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-site-footer--rincon__reel-arrow {
    transition: transform 0.25s ease;
}

.theme-site-footer--rincon__reel-card:hover .theme-site-footer--rincon__reel-arrow {
    transform: translateX(4px);
}

.theme-site-footer--rincon__socials-secondary {
    margin-top: 10px;
}

.theme-site-footer--rincon__social-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--rincon-footer-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: fit-content;
}

.theme-site-footer--rincon__social-chip:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877f2;
    color: #ffffff;
}

.theme-site-footer--rincon__social-chip:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

.theme-site-footer--rincon__gestion-digital {
    margin-top: 16px;
    padding-top: 0;
    display: flex;
    justify-content: flex-end;
}

.theme-site-footer--rincon__gestion-digital a {
    display: inline-flex;
    line-height: 0;
}

.theme-site-footer--rincon__gestion-digital a:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 4px;
    border-radius: 4px;
}

.theme-site-footer--rincon__gestion-digital-logo {
    display: block;
    width: auto;
    max-width: min(180px, 100%);
    height: auto;
    opacity: 0.92;
    mix-blend-mode: lighten;
    transition: opacity 0.2s ease;
}

.theme-site-footer--rincon__gestion-digital a:hover .theme-site-footer--rincon__gestion-digital-logo {
    opacity: 1;
}

.theme-site-footer--rincon__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 26px;
    color: #7f726a;
    font-size: 0.75rem;
}

.theme-site-footer--rincon__legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.theme-site-footer--rincon__legal-links a {
    color: #7f726a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theme-site-footer--rincon__legal-links a:hover {
    color: #cbbdb4;
}

.theme-site-footer--rincon__legal-links a:focus-visible {
    outline: 2px solid var(--rincon-copper);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .theme-site-footer--rincon__grid {
        gap: 28px;
    }
}

@media (max-width: 980px) {
    .theme-site-footer--rincon__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .theme-site-navbar--rincon .navbar-search-container {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .theme-site-navbar--rincon__brand-text {
        font-size: 0.92rem;
    }

    .theme-site-footer--rincon {
        padding: 48px 0 24px;
    }
}

@media (max-width: 640px) {
    .theme-site-footer--rincon__logo {
        width: min(220px, 100%);
    }

    .theme-site-footer--rincon__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-site-footer--rincon__gestion-digital {
        justify-content: flex-start;
    }

    .theme-site-footer--rincon__gestion-digital-logo {
        max-width: min(160px, 100%);
    }
}

@media (max-width: 390px) {
    .theme-site-navbar--rincon__brand-text {
        font-size: 0.82rem;
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .theme-site-navbar--rincon .btn-categories {
        padding: 0.4rem 0.65rem;
        font-size: 0.72rem;
    }
}

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
    --theme-background: #1c1612;
    --theme-surface: #2a211c;
    --theme-text: #f0e6d8;
    --theme-heading: #fff8f0;
    --bg-body: var(--theme-background);
    --color-surface: var(--theme-surface);
    --color-text: var(--theme-text);
    --color-heading: var(--theme-heading);
    --primary: #f0e6d8;
    --color-border: #3d322a;
    --theme-page-bg-color: var(--theme-background);
}

[data-theme="dark"] .theme-site-navbar--rincon {
    background: rgba(28, 22, 18, 0.98);
    border-bottom-color: #3d322a;
}

[data-theme="dark"] .theme-site-navbar--rincon__search-group {
    background: #2a211c;
    border-color: #3d322a;
}

[data-theme="dark"] .theme-site-navbar--rincon__search-group .input-group-text,
[data-theme="dark"] .theme-site-navbar--rincon__search-group .search-input {
    background: #2a211c;
    color: var(--theme-text);
}

[data-theme="dark"] .theme-site-navbar--rincon .nav-icon-btn {
    color: var(--theme-heading);
}

[data-theme="dark"] .theme-site-footer--rincon {
    background: #140f0c;
}
