/* Reset and Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fcf9f2;
    --primary-yellow: #fde047;
    /* Yellow matches the screenshots */
    --primary-yellow-hover: #facc15;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #eaeaea;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background-color: var(--primary-yellow);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 101;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left svg {
    width: 16px;
    height: 16px;
}

.top-bar-right {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
}

/* ==================== HEADER ==================== */
.site-header {
    background-color: #ffffff;
    padding: 12px 0;
    /* Made thinner */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 34px;
    /* Height of the top-bar approx */
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 12px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.header-nav ul {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.header-nav a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a:hover {
    color: var(--primary-yellow);
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a.highlight-red {
    color: #ef4444;
}

/* SALE: mantiene rojo siempre, sin linea amarilla */
.header-nav a.nav-sale {
    color: #ef4444;
}

.header-nav a.nav-sale:hover {
    color: #dc2626;
}

.header-nav a.nav-sale::after {
    background: #ef4444;
}

.header-nav a.btn-nav-yellow {
    background-color: #fefce8;
    color: #ca8a04;
    padding: 6px 16px;
    border-radius: 20px;
}

/* Sin linea animada en el boton de cita */
.header-nav a.btn-nav-yellow::after {
    display: none;
}

.header-nav a.btn-nav-yellow:hover {
    background-color: #fef08a;
    color: #ca8a04;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-bag {
    color: var(--text-dark);
    cursor: pointer;
}

/* ==================== HAMBURGER BTN ==================== */
.hamburger-btn {
    display: none;
    /* oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dark);
    line-height: 1;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu-inner {
    padding: 60px 28px 40px;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--primary-yellow);
}

.mobile-nav-sale {
    color: #ef4444;
}

.mobile-nav-sale:hover {
    color: #dc2626;
}

.mobile-nav-cita {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color 0.2s;
}

.mobile-nav-cita:hover {
    background-color: var(--primary-yellow-hover);
}

/* Overlay oscuro */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== RESPONSIVE HEADER ==================== */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================== BRANDS MARQUEE ==================== */
.brands-marquee {
    background-color: #fefce8;
    padding: 12px 0;
    overflow-x: hidden;
    /* oculta lo que sale de la pantalla */
    white-space: nowrap;
    border-bottom: 1px solid #fef08a;
}

/* Track: flex row, todos los grupos uno al lado del otro */
.marquee-track {
    display: flex;
    width: max-content;
    /* se expande al ancho real del contenido */
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Cada grupo ocupa la mitad del track */
.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.marquee-link:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.marquee-link:hover .marquee-dot {
    background-color: var(--text-dark);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* La animación mueve el track exactamente -50% (= el ancho de 1 grupo).
   Cuando vuelve al 0%, la copia B (que estaba justo detrás) ocupa el lugar
   de A, sin ningún salto visible. */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    background-color: #fefce8;
    color: #ca8a04;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-title .highlight-yellow {
    color: var(--primary-yellow);
    font-style: italic;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-subtitle .highlight-yellow-solid {
    color: #ca8a04;
    font-weight: 500;
}

.highlight-orange {
    color: #f97316;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-gray);
}

.btn-outline-blue {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.btn-outline-blue:hover {
    background-color: #f0f9ff;
}

/* Botón Esclera SG - borde cyan */
.btn-outline-eye {
    border: 1.5px solid #06b6d4;
    color: #0891b2;
    background: transparent;
}

.btn-outline-eye:hover {
    background-color: #ecfeff;
    border-color: #0891b2;
}

.hero-features {
    display: flex;
    gap: 24px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
}

.feature-icon-check {
    background-color: var(--primary-yellow);
}

.feature-icon-shield {
    background-color: #e0f2fe;
    color: #0284c7;
}

.feature-icon-shield svg {
    color: #0284c7;
}

.feature-icon-star {
    background-color: #fefce8;
    color: #ca8a04;
}

.feature-icon-star svg {
    color: #ca8a04;
}

.hero-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Ícono expand arriba a la derecha de la imagen */
.hero-expand-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.hero-expand-icon:hover {
    background: rgba(255, 255, 255, 1);
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.hero-floating-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
    min-width: 240px;
}

/* Adjust floating badge overlap so it sits partially out */
.hero-image-container {
    position: relative;
    padding: 0 0 15px 15px;
}

.floating-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-text h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.floating-text p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ==================== CATEGORIES ==================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    color: #ca8a04;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 12px;
}

.categories-section {
    padding: 80px 0;
    background-color: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.category-name {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: auto;
    margin-bottom: 20px;
}

/* ==================== SERVICES ==================== */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.service-icon-wrap {
    width: 50px;
    height: 50px;
    background-color: #fefce8;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: #ca8a04;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.service-tagline {
    font-size: 0.85rem;
    color: #ca8a04;
    margin-bottom: 20px;
    font-weight: 500;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-list li svg {
    color: #10b981;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== LOCATION ==================== */
.location-section {
    padding: 80px 0;
    background-color: #fefce8;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.location-box {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.location-box iframe,
.location-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #fcf9f2;
    /* Matched the cream background from screenshot */
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* Adjusted column widths to match screenshot */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    /* Adjust border to be softer */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    transition: all 0.2s;
    background-color: transparent;
}

.social-link:hover {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 svg {
    color: var(--primary-yellow);
    width: 16px;
    height: 16px;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-left: 24px;
    line-height: 1.5;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-col ul li a:hover {
    color: var(--text-dark);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.contact-item svg {
    color: #ca8a04;
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-bottom-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-dark);
}

/* ==================== WHATSAPP BUBBLE ==================== */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
}

.whatsapp-bubble svg {
    width: 34px;
    height: 34px;
}

/* ==================== TENDENCIAS SECTION ==================== */
.trending-section {
    padding: 80px 0;
    background-color: #fff;
}

.align-left-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 40px;
}

.align-left-header .section-label {
    margin: 0;
}

.align-left-header .section-title {
    margin: 8px 0 0 0;
    font-size: 2.2rem;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.view-all-link:hover {
    color: #e6a800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: #FAFAFA;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

/* Badge generico (para index y catalogo) */
.product-badge {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: white;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    font-family: var(--font-sans);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px;
}

/* ==================== PROMO BANNER ==================== */
.promo-section {
    padding: 40px 0 80px;
    background-color: #fdfaf6;
}

.promo-banner {
    display: grid;
    grid-template-columns: 1fr 380px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.promo-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff8e8;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 20px;
}

.promo-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.promo-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 90%;
}

.promo-quote {
    font-style: italic;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.promo-card {
    background-color: #fffdf5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px dashed #f0e6d2;
}

.promo-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.promo-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.promo-code-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.promo-discount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.promo-code {
    background-color: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.promo-code span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.promo-code strong {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.promo-actions {
    margin-top: 18px;
}

.promo-more-btn {
    border-color: #eadcb9;
    background: #fff;
    color: var(--text-dark);
}

.promo-more-btn:hover {
    background: #fff8e8;
    border-color: #e7cf92;
}

.offers-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
    padding: 20px;
}

.offers-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.offers-modal {
    width: min(880px, 100%);
    max-height: 90dvh;
    background: #fff;
    border: 1px solid #ece6db;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.offers-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0ece3;
}

.offers-modal-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.55rem;
}

.offers-modal-close {
    border: 1px solid #ede6d6;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fffdf8;
    color: #6b7280;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.offers-modal-body {
    padding: 18px 22px 22px;
    overflow-y: auto;
    max-height: calc(90dvh - 78px);
}

.offers-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.offers-modal-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid #efe8d8;
    border-radius: 12px;
    background: #fffdf8;
    padding: 14px;
}

.offers-modal-discount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    padding-top: 2px;
}

.offers-modal-info h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.offers-modal-info p {
    margin: 0 0 8px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.offers-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.offers-modal-code,
.offers-modal-date {
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 5px 10px;
}

.offers-modal-code {
    background: #fff;
    border: 1px solid #e8e5dd;
    color: #374151;
}

.offers-modal-date {
    background: #fff8e8;
    color: #9a6e00;
}

/* ==================== ALLIANCES ==================== */
.alliances-section {
    padding: 80px 0;
    background-color: #f8f6fc;
}

.section-label-pill {
    background-color: #f0eafb;
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.alliance-card {
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 350px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
    overflow: hidden;
}

.alliance-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.alliance-status {
    background-color: #f5f3ff;
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.alliance-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.alliance-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-purple {
    background-color: #a855f7;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-purple:hover {
    background-color: #9333ea;
}

.alliance-discount {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.discount-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.discount-value {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.discount-type {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.discount-footer {
    font-size: 0.85rem;
    opacity: 0.85;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 0 100px;
    background-color: #fff;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.highlight-yellow {
    color: var(--primary-color);
    font-style: italic;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ==================== CATALOG PAGE STYLES ==================== */
.catalog-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-sans);
}

.catalog-header-main {
    margin-bottom: 30px;
}

.breadcrumbs {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.catalog-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.catalog-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1;
}

.catalog-count {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

.catalog-view-toggles {
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background-color: var(--primary-yellow);
    color: #000;
}

/* Catalog Top Categories */
.catalog-top-categories {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.catalog-top-categories::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.25s ease;
}

/* Línea animada con pseudo-elemento */
.cat-pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-pill:hover,
.cat-pill.active-cat {
    color: var(--primary-yellow);
}

.cat-pill:hover::after,
.cat-pill.active-cat::after {
    width: 100%;
}

.cat-sale {
    color: #ef4444;
}

.cat-sale:hover,
.cat-sale.active-cat {
    color: #ef4444;
}

.cat-sale::after {
    background: #ef4444;
}

/* Layout Split */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Estilos Generales */
.catalog-sidebar {
    background: transparent;
}

.filter-section {
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.filter-title {
    display: block;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 16px;
}

/* Sidebar search rules updated */

/* Checkboxes / Radios Customizados Amarillos Circulares */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.custom-radio-label input {
    display: none;
    /* Hide default */
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.custom-radio-label:hover .custom-radio {
    border-color: var(--primary-yellow);
}

.custom-radio-label input:checked+.custom-radio {
    border-color: var(--primary-yellow);
}

.custom-radio-label input:checked+.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
}

/* Radio especial para ofertas en rojo */
.text-red {
    color: #ef4444;
}

/* Slider de Rango (Diseño básico compatible) */
.price-range-wrapper {
    padding: 0 4px;
}

.custom-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    margin-bottom: 12px;
}

/* Relleno amarillo imaginario y thumb */
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-yellow);
    cursor: pointer;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Acordeones Custom (Similares a las imágenes) */
.filter-accordion {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.filter-accordion:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.accordion-body {
    display: none;
    padding-top: 16px;
    padding-bottom: 4px;
}

/* Grid de Productos Catálogo (similar al del index pero reajustable) */
.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trending-section .products-grid.catalog-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.catalog-products-grid .product-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* transition: transform 0.2s, box-shadow 0.2s; */
}

/* Contenedor de la Imagen y Hover */
.catalog-products-grid .product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Cuadrado perfecto como en el diseño */
    position: relative;
    background-color: #f9fafb;
    overflow: hidden;
}

.catalog-products-grid .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover de la tarjeta */
.catalog-products-grid .product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

/* Overlay Hover (Fondo semi-oscuro) */
.catalog-products-grid .product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.catalog-products-grid .product-card:hover .product-hover-overlay {
    opacity: 1;
}

/* Botón Agregar al Carrito (Hover) */
.btn-add-cart-hover {
    background-color: var(--primary-yellow);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.catalog-products-grid .product-card:hover .btn-add-cart-hover {
    transform: translateY(0);
}

.btn-add-cart-hover svg {
    width: 18px;
    height: 18px;
}

.btn-add-cart-hover:hover {
    filter: brightness(0.95);
}

/* Contenedor de badges: absoluto sobre la imagen */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 6;
    align-items: flex-start;
    pointer-events: none;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.badge-nuevo {
    background-color: var(--primary-yellow);
    color: #000;
}

.badge-oferta {
    background-color: #ef4444;
    color: #fff;
}

/* Contenido de la Tarjeta (Textos) */
.catalog-products-grid .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-brand {
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin: 0;
}

.product-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.product-price {
    color: var(--primary-yellow);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 4px 0 0 0;
    filter: brightness(0.9);
    /* Un amarillo ligerísimamente más oscuro para contrastar fondo blanco */
}

/* Precio tachado si está en oferta */
.product-price-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 8px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 1.1rem;
    background: #fdfdfd;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {

    .brands-grid,
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trending-section .products-grid.catalog-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-top-categories {
        white-space: nowrap;
        overflow-x: auto;
    }

    .promo-banner {
        grid-template-columns: 1fr;
    }

    .promo-card {
        border-left: none;
        border-top: 2px dashed #f0e6d2;
    }

    .offers-modal {
        width: min(760px, 100%);
    }

    .alliance-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        /* Add mobile menu logic separately if needed */
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-section .products-grid.catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-title {
        font-size: 2rem;
    }

    .offers-modal-header {
        padding: 14px 16px;
    }

    .offers-modal-header h3 {
        font-size: 1.3rem;
    }

    .offers-modal-body {
        padding: 14px 16px 18px;
    }

    .offers-modal-item {
        grid-template-columns: 1fr;
    }

    .offers-modal-discount {
        font-size: 1.7rem;
    }

    .align-left-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-section .products-grid.catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail-section {
    padding: 30px 0 80px 0;
    background-color: var(--bg-color);
}

.breadcrumb {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary-yellow-hover);
}

.breadcrumb .separator {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: var(--text-dark);
}

.back-link {
    margin-bottom: 40px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.back-link a:hover {
    color: var(--text-dark);
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.product-detail-image-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* For scrollbar space */
    scrollbar-width: thin;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-item:hover {
    border-color: var(--primary-yellow);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.product-brand-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.product-detail-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 24px;
}

.product-detail-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.product-characteristics {
    margin-bottom: 32px;
}

.product-characteristics h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.product-characteristics ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-characteristics li {
    font-size: 0.95rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-characteristics li svg {
    width: 18px;
    height: 18px;
    color: #eab308;
    flex-shrink: 0;
}

.product-attributes-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    background-color: #fff;
}

.attribute-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attribute-label {
    font-size: 0.70rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attribute-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.product-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.action-row {
    display: flex;
    gap: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0 16px;
    height: 48px;
    min-width: 110px;
    justify-content: space-between;
    background: #fff;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.qty-btn:hover {
    color: var(--text-dark);
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex-grow: 1;
    height: 48px;
    font-size: 0.95rem;
}

.btn-wishlist {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-wishlist:hover {
    border-color: #f43f5e;
    color: #f43f5e;
}

.btn-whatsapp-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #22c55e;
    color: #fff;
    height: 48px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-whatsapp-full:hover {
    background-color: #16a34a;
    color: #fff;
}

.product-stock-status {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-title {
        font-size: 2.2rem;
    }

    .product-actions-wrapper {
        max-width: 100%;
    }
}

/* --- Catalog filters: pills + accordion + range --- */
.filter-accordion {
    border-bottom: 1px solid #d7d7d7;
    padding: 18px 0;
}

.filter-accordion .accordion-header {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #374151;
    cursor: pointer;
    padding: 0;
}

.filter-accordion .accordion-header svg {
    color: #7b7367;
    transition: transform 0.2s ease;
}

.filter-accordion.is-open .accordion-header svg {
    transform: rotate(180deg);
}

.filter-accordion .accordion-body {
    display: none;
    padding-top: 12px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}

.tag-pill input[type="checkbox"],
.tag-pill input[type="radio"] {
    display: none;
}

.tag-pill span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #d8dbe1;
    border-radius: 999px;
    background: #fefefe;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.tag-pill:hover span {
    border-color: #c8ccd4;
    transform: translateY(-1px);
}

.tag-pill input:checked+span {
    background: #fde047;
    border-color: #e8cd2b;
    color: #1f2937;
    font-weight: 600;
}

.price-range-wrapper {
    padding: 2px 0 0;
}

.custom-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: #e6e7eb;
    outline: none;
    margin: 6px 0 12px;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f4;
    border: 2px solid #f2d400;
    cursor: pointer;
}

.custom-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f4;
    border: 2px solid #f2d400;
    cursor: pointer;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: #667085;
    font-size: 1rem;
}

.filters-clear-wrap {
    margin-top: 24px;
}

.filters-clear-btn {
    display: block;
    text-align: center;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    padding: 12px 16px;
    color: #333;
    font-size: 1.05rem;
    background: #faf9f7;
}

.filters-clear-btn:hover {
    background: #f2f1ee;
}

/* ==================== CART UX ==================== */
.cart-bag-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fde047;
    color: #1f2937;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bag-bump {
    animation: bagBump 0.35s ease;
}

.badge-pop {
    animation: badgePop 0.35s ease;
}

.cart-fly-dot {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fde047;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1200;
    transition: transform 0.55s cubic-bezier(0.2, 0.72, 0.2, 1), opacity 0.55s ease;
    transform: translate(0, 0) scale(1);
    pointer-events: none;
}

.cart-toast {
    position: fixed;
    right: 22px;
    top: 22px;
    z-index: 1300;
    background: #22c55e;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bagBump {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ==================== CART PAGE ==================== */
.cart-page-section {
    padding: 40px 0 80px;
}

.cart-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.cart-page-title {
    font-family: var(--font-serif);
    font-size: 2.45rem;
    line-height: 1.05;
    margin: 0 0 8px;
}

.cart-page-count {
    color: #7a6a58;
    margin: 0;
    font-size: 1rem;
}

.cart-clear-top {
    border: 0;
    background: transparent;
    color: #7a6a58;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: start;
}

.cart-item-row {
    border: 1px solid #ded7cf;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: 60px 1fr 110px;
    gap: 10px;
    margin-bottom: 8px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-item-brand {
    margin: 0 0 1px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: #9b8a79;
    text-transform: uppercase;
}

.cart-item-name {
    color: #17223a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-qty-wrap {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d0c7;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    color: #594d42;
    cursor: pointer;
}

.cart-item-qty-wrap input {
    width: 28px;
    border: 0;
    text-align: center;
    font-size: 0.8rem;
    outline: none;
    color: #2a3344;
    -moz-appearance: textfield;
}

.cart-item-qty-wrap input::-webkit-outer-spin-button,
.cart-item-qty-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-right {
    text-align: right;
}

.cart-item-remove {
    border: 0;
    background: transparent;
    color: #847363;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    margin-bottom: 10px;
}

.cart-item-price {
    color: #e2bc00;
    font-size: 1rem;
    font-weight: 700;
}

.cart-item-unit {
    color: #7b6d5f;
    font-size: 0.72rem;
}

.cart-summary-card {
    border: 1px solid #ded7cf;
    border-radius: 18px;
    background: #fff;
    padding: 18px 20px;
}

.cart-summary-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 0 0 16px;
}

.cart-discount-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #6e6052;
}

.cart-discount-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
}

.cart-discount-row input {
    border: 1px solid #ddd4ca;
    border-radius: 10px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
}

.cart-discount-row button {
    border: 1px solid #ddd4ca;
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    font-size: 0.88rem;
    cursor: pointer;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #ece6de;
    color: #6c5c4c;
    font-size: 0.88rem;
}

.cart-summary-line.total {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

.cart-summary-line.total strong {
    color: #e2bc00;
    font-size: 1.35rem;
}

.cart-whatsapp-btn {
    margin-top: 10px;
    width: 100%;
    height: 44px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-continue-btn {
    margin-top: 8px;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #f0d44a;
    color: #d8b600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: #fff;
}

.cart-summary-help {
    margin: 12px 4px 0;
    color: #6f6356;
    font-size: 0.78rem;
    line-height: 1.3;
}

.cart-discount-feedback {
    margin: 8px 0 2px;
    font-size: 0.9rem;
    color: #6b7280;
}

.cart-discount-feedback.success {
    color: #16a34a;
}

.cart-discount-feedback.error {
    color: #dc2626;
}

.cart-empty {
    border: 1px dashed #d8cdc0;
    border-radius: 16px;
    padding: 28px;
    background: #fff;
}

.cart-empty h3 {
    margin: 0 0 8px;
}

.cart-empty p {
    margin: 0 0 16px;
    color: #6f6255;
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-page-title {
        font-size: 2.2rem;
    }

    .cart-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-row {
        grid-template-columns: 82px 1fr;
        padding: 14px;
    }

    .cart-item-image {
        width: 82px;
        height: 82px;
    }

    .cart-item-right {
        grid-column: span 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-remove {
        margin-bottom: 0;
    }

    .cart-summary-card {
        padding: 20px;
        border-radius: 20px;
    }
}

/* ==================== ESCLERA SG PAGE ==================== */
.esclera-page {
    background-color: var(--bg-color);
    /* The cream background */
}

/* Hero Section */
.esclera-hero {
    background: radial-gradient(circle at 100% 100%, #1e293b, #0f172a 70%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.esclera-hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
}

.esclera-hero-content {
    position: relative;
    z-index: 2;
}

.esclera-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.esclera-hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    margin-bottom: 16px;
}

.esclera-hero-subtitle {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.esclera-hero-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.esclera-hero-text strong {
    color: white;
}

.esclera-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Shared esclera sections */
.esclera-section {
    padding: 80px 0;
}

.esclera-light-bg {
    background-color: #fdfbf7;
}

.esclera-dark-bg {
    background-color: #0f172a;
    color: white;
}

/* Split layout */
.esclera-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .esclera-split {
        grid-template-columns: 1fr;
    }
}

.esclera-split-text {
    max-width: 500px;
}

.esclera-split-text .section-title {
    margin-bottom: 24px;
}

.esclera-desc-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.esclera-desc-text strong {
    color: var(--text-dark);
}

.esclera-feature-card {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary-yellow);
}

.efc-icon {
    width: 40px;
    height: 40px;
    background-color: #fefce8;
    color: #ca8a04;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.efc-content h4 {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.efc-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.esclera-split-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.esclera-dark-box {
    background-color: #1e293b;
    border-radius: 24px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.esclera-dark-box svg {
    width: 120px;
    height: 120px;
    color: var(--primary-yellow);
    margin-bottom: 24px;
}

.esclera-dark-box p {
    color: #94a3b8;
    font-style: italic;
    font-size: 1.1rem;
}

.esclera-floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: #0f172a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #1e293b;
    max-width: 340px;
}

.esclera-floating-card .efc-icon {
    background-color: transparent;
    color: var(--primary-yellow);
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.esclera-floating-card .efc-content h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.esclera-floating-card .efc-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Material Premium Grid */
.esclera-dark-bg .section-title {
    color: white;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-top: 10px;
}

.esclera-dark-bg .section-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
}

.text-gray-light {
    color: #94a3b8;
}

.esclera-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .esclera-grid-3 {
        grid-template-columns: 1fr;
    }
}

.esclera-material-card {
    background-color: #1e293b;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
}

.esclera-material-card:hover {
    transform: translateY(-5px);
}

.esclera-material-card .emc-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
}

.esclera-material-card .emc-icon svg {
    width: 28px;
    height: 28px;
}

.esclera-material-card h4 {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.esclera-material-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.text-yellow {
    color: var(--primary-yellow);
}

/* Diseño Inteligente (Table Card) */
.esclera-table-card {
    background-color: #0f172a;
    border-radius: 16px;
    padding: 32px;
}

.esclera-table-card h3 {
    color: white;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.esclera-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #1e293b;
}

.esclera-table-row:last-child {
    border-bottom: none;
}

.esclera-table-row span:first-child {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.esclera-pill {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Especificaciones Grid */
.esclera-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .esclera-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .esclera-grid-4 {
        grid-template-columns: 1fr;
    }
}

.esclera-spec-card {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 30px 24px;
    transition: transform 0.3s;
}

.esclera-spec-card:hover {
    transform: translateY(-5px);
}

.esclera-spec-card h4 {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.esclera-spec-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Indicaciones Checks */
.text-yellow-important {
    color: var(--primary-yellow) !important;
}

.esclera-grid-2-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 40px auto 0 auto;
}

@media (max-width: 768px) {
    .esclera-grid-2-checks {
        grid-template-columns: 1fr;
    }
}

.esclera-check-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.esclera-check-card svg {
    color: var(--primary-yellow);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.esclera-check-card span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA & Manufacturer */
.esclera-cta-section {
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
}

/* glow effect */
.esclera-cta-section::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 20%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.esclera-manufacturer {
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
    margin-bottom: 60px;
    text-align: center;
}

.esclera-manufacturer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.esclera-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #16a34a;
    color: white;
    transform: translateY(-2px);
}

/* ==================== AGENDAR CITA PAGE ==================== */
.agendar-page {
    background-color: var(--bg-color);
    min-height: 80vh;
}

/* Hero */
.agendar-hero {
    background-color: var(--bg-color);
    padding: 60px 20px 40px;
    text-align: center;
}

.agendar-badge {
    display: inline-block;
    color: var(--primary-yellow);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.agendar-hero-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 800;
}

.agendar-hero-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Section */
.agendar-form-section {
    padding: 0 0 80px;
}

/* Alerts */
.agendar-alert {
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.agendar-alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.agendar-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form Card */
.agendar-form-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f1f1;
    max-width: 820px;
    margin: 0 auto 40px auto;
}

/* Form Grid */
.agendar-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .agendar-form-grid {
        grid-template-columns: 1fr;
    }

    .agendar-hero-title {
        font-size: 2rem;
    }
}

.agendar-field-full {
    grid-column: 1 / -1;
}

/* Field */
.agendar-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.agendar-field .req {
    color: var(--primary-yellow);
}

.agendar-field .optional {
    color: var(--text-gray);
    font-weight: 400;
}

.agendar-field input[type="text"],
.agendar-field input[type="email"],
.agendar-field input[type="date"],
.agendar-field textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: var(--font-sans);
    background-color: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.agendar-field input:focus,
.agendar-field textarea:focus,
.agendar-field select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.agendar-field textarea {
    resize: vertical;
}

/* Input with Icon */
.agendar-input-icon {
    position: relative;
}

.agendar-input-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-gray);
    pointer-events: none;
}

.agendar-input-icon input[type="date"] {
    padding-left: 40px;
}

/* Select Wrapper */
.agendar-select-wrapper {
    position: relative;
}

.agendar-select-wrapper select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: var(--font-sans);
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-gray);
    pointer-events: none;
}

/* Buttons */
.agendar-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-agendar {
    flex: 1;
    min-width: 200px;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

/* Info Cards */
.agendar-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .agendar-info-grid {
        grid-template-columns: 1fr;
    }
}

.agendar-info-card {
    background-color: white;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.aic-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.aic-icon svg {
    width: 22px;
    height: 22px;
}

.agendar-info-card h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.agendar-info-card p {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== SEARCH DROPDOWN ==================== */
.search-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-search {
    width: 24px;
    height: 24px;
}

.header-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid var(--primary-yellow);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header-search-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-input {
    flex: 1;
    padding: 14px 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
    background-color: var(--bg-color);
}

.header-search-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.2);
}

.header-search-submit {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-sans);
}

.header-search-submit:hover {
    background-color: var(--primary-yellow-hover);
}


/* ==================== CATALOG SIDEBAR SEARCH ==================== */
.search-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.search-input-inner {
    position: relative;
    width: 100%;
}

.search-icon-sidebar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 5;
}

.input-sidebar-search {
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    outline: none !important;
    background-color: #f9fafb !important;
    transition: all 0.2s !important;
    display: block !important;
}

.input-sidebar-search:focus {
    border-color: var(--primary-yellow) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.1) !important;
}

.btn-search-sidebar {
    background-color: var(--primary-yellow) !important;
    color: var(--text-dark) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.85rem !important;
    width: 100% !important;
}

.btn-search-sidebar:hover {
    background-color: var(--primary-yellow-hover) !important;
    transform: translateY(-1px) !important;
}

/* ==================== CATALOG LIST VIEW ==================== */
.catalog-products-grid.is-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

.catalog-products-grid.is-list .product-card {
    flex-direction: row !important;
    height: auto !important;
    min-height: 200px !important;
    align-items: stretch !important;
}

.catalog-products-grid.is-list .product-img-wrap {
    width: 250px !important;
    height: auto !important;
    flex-shrink: 0 !important;
    aspect-ratio: auto !important;
}

.catalog-products-grid.is-list .product-info {
    padding: 30px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
}

.catalog-products-grid.is-list .product-title {
    font-size: 1.6rem !important;
    margin-bottom: 12px !important;
}

.catalog-products-grid.is-list .product-price {
    font-size: 1.4rem !important;
}

.catalog-products-grid.is-list .product-hover-overlay {
    background: rgba(0, 0, 0, 0.05) !important;
}

.catalog-view-toggles .view-btn.active {
    background-color: var(--primary-yellow) !important;
    color: var(--text-dark) !important;
    border-color: var(--primary-yellow) !important;
}

/* ==================== FINAL POLISH FIXES ==================== */
.catalog-title {
    font-size: 2.2rem !important;
}

.search-sidebar-container {
    padding: 2px 0;
}

.search-input-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.search-icon-sidebar {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--text-gray) !important;
    z-index: 10 !important;
    margin: 0 !important;
}

.input-sidebar-search {
    width: 100% !important;
    height: 46px !important;
    padding: 0 15px 0 45px !important;
    border: 1px solid #ddd !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    background-color: #fff !important;
}

.btn-search-sidebar {
    height: 46px !important;
    margin-top: 5px !important;
    background-color: var(--primary-yellow) !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 30px !important;
    transition: all 0.3s !important;
}

/* ==================== MOBILE ADAPTABILITY (CATALOG) ==================== */
@media (max-width: 768px) {
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .catalog-title {
        font-size: 1.8rem !important;
    }

    /* List view on mobile: Stack vertical to avoid overflow */
    .catalog-products-grid.is-list {
        gap: 16px !important;
    }

    .catalog-products-grid.is-list .product-card {
        flex-direction: column !important;
        height: auto !important;
        align-items: stretch !important;
    }

    .catalog-products-grid.is-list .product-img-wrap {
        width: 100% !important;
        height: 200px !important;
    }

    .catalog-products-grid.is-list .product-info {
        padding: 15px !important;
    }

    .catalog-products-grid.is-list .product-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Keep 2 columns but make them smaller */
        gap: 8px !important;
    }

    .catalog-products-grid .product-info {
        padding: 10px !important;
    }

    .catalog-products-grid .product-title {
        font-size: 0.95rem !important;
    }

    .catalog-products-grid .product-price {
        font-size: 1rem !important;
    }
}