/* ========================================
   FIGMA MAKE - Dejando Huella
   Estilos del diseño Figma Make
   ======================================== */

/* Fondo global - zona hero+features blanca, resto oscuro */
body.figma-inicio {
    background-color: var(--dh-black);
    color: var(--dh-white);
}

/* Páginas de catálogo/categoría: fondo blanco */
body.pagina-catalogo {
    background-color: #fff;
    color: #111;
}

/* Página de detalle de producto: fondo blanco */
body.pagina-detalle {
    background-color: #fff;
    color: #111;
}

/* Página de perfil de usuario: fondo blanco forzado */
body.pagina-perfil {
    background-color: #fff !important;
    color: #111 !important;
}

/* Página de ayuda: fondo blanco */
body.pagina-ayuda {
    background-color: #fff;
    color: #111;
}

/* Wrapper hero + features: max 1920px, a ras */
.hero-feature-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    background: var(--dh-black);
    position: relative;
}

.footer-principal.footer-figma {
    padding: 0;
    margin-top: 0;
}

/* ========================================
   HERO SLIDER - Estilo Figma Make (imagen 2)
   Contenido en parte inferior izquierda
   ======================================== */
.hero-slider-figma {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 480px;
    max-height: 720px;
    overflow: hidden;
    background: var(--dh-black);
}

.hero-slider-figma .hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider-figma .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 1;
}

.hero-slider-figma .hero-slide.activo {
    opacity: 1;
    z-index: 10;
}

.hero-slider-figma .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay suave solo en esquina izquierda para legibilidad */
.hero-slider-figma .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.1) 45%, transparent 65%);
    pointer-events: none;
}

.hero-slider-figma .hero-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Contenido compacto en esquina inferior izquierda */
.hero-slider-figma .hero-content {
    position: absolute;
    bottom: 2%;
    left: 0;
    z-index: 15;
    padding-left: clamp(70px, 10vw, 90px);
    text-align: left;
}

.hero-slider-figma .hero-content-inner {
    max-width: 20rem;
}

.hero-slider-figma .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-slider-figma .hero-eyebrow-line {
    width: 20px;
    height: 1px;
    background-color: var(--dh-gold);
}

.hero-slider-figma .hero-eyebrow-text {
    color: var(--dh-gold);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-slider-figma .hero-title {
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: pre-line;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-slider-figma .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 18rem;
    margin-bottom: 16px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-slider-figma .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-slider-figma .hero-btn-primary,
.hero-slider-figma .hero-btn-secondary {
    text-decoration: none;
    display: inline-block;
}

.hero-slider-figma .hero-btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    color: var(--dh-black);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-slider-figma .hero-btn-primary:hover {
    transform: scale(1.05);
}

.hero-slider-figma .hero-btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-slider-figma .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-slider-figma .hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: var(--dh-gold);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s;
}

.hero-slider-figma .hero-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-figma .hero-nav-prev {
    left: 16px;
}

.hero-slider-figma .hero-nav-next {
    right: 16px;
}

.hero-slider-figma .hero-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-slider-figma .hero-indicator {
    width: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-slider-figma .hero-indicator.activo {
    width: 32px;
    background: var(--dh-gold);
}

.hero-slider-figma .hero-counter {
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    z-index: 20;
}

.hero-slider-figma .hero-counter span {
    color: var(--dh-gold);
}

/* ========================================
   FEATURE BANNER - Integrado a ras del hero, fondo negro
   ======================================== */
.feature-banner-figma {
    background: var(--dh-black);
    border-top: 1px solid #1f1f1f;
    padding: 0;
    min-height: 100px;
}

@media (min-width: 768px) {
    .feature-banner-figma {
        min-height: 120px;
    }
}

.feature-banner-figma .contenedor {
    padding: 28px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-banner-figma .feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
}

@media (min-width: 768px) {
    .feature-banner-figma .feature-grid {
        gap: 24px;
    }
}

.feature-banner-figma .feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.feature-banner-figma .feature-item>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-banner-figma .feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
}

.feature-banner-figma .feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--dh-gold);
}

.feature-banner-figma .feature-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-banner-figma .feature-desc {
    color: #888;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ========================================
   PRODUCT GRID - Fondo blanco
   ======================================== */
.product-grid-figma {
    background: #fff;
    padding: 96px 24px;
}

.product-grid-figma .product-grid-header {
    text-align: center;
    margin-bottom: 56px;
}

.product-grid-figma .product-grid-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.product-grid-figma .product-grid-eyebrow-line {
    width: 64px;
    height: 1px;
    background: var(--dh-gold);
}

.product-grid-figma .product-grid-eyebrow-text {
    color: var(--dh-gold);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.product-grid-figma .product-grid-title {
    color: #000;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.product-grid-figma .product-grid-title span {
    color: var(--dh-gold);
}

.product-grid-figma .product-grid-subtitle {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 36rem;
    margin: 0 auto;
}

.product-grid-figma .product-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.product-grid-figma .product-filter-btn {
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.product-grid-figma .product-filter-btn.activo,
.product-grid-figma .product-filter-btn:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    color: var(--dh-black);
    border-color: transparent;
    font-weight: 700;
}

.product-grid-figma .product-grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .product-grid-figma .product-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid-figma .product-grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Catálogo: mismo grid y estructura que página principal (product-card-figma) */
.product-grid-figma.catalogo-productos-figma {
    padding-top: 32px;
}

.product-grid-figma.catalogo-productos-figma .product-grid-cards {
    max-width: 1280px;
    margin: 0 auto;
}

.product-card-figma {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.product-card-figma:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.6);
}

.product-card-figma::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, var(--dh-gold), var(--dh-gold-light));
    transition: width 0.5s;
}

.product-card-figma:hover::after {
    width: 100%;
}

.product-card-figma a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card-figma .product-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-card-figma .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.product-card-figma:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-figma .product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.product-card-figma:hover .product-card-overlay {
    opacity: 1;
}

.product-card-figma .product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card-figma .product-card-badge.badge-gold {
    background: linear-gradient(135deg, #b8860b, #c9a227);
    color: var(--dh-black);
}

.product-card-figma .product-card-badge.badge-new {
    background: #1a1a2e;
    color: #c9a227;
}

.product-card-figma .product-card-badge.badge-sale {
    background: #8B0000;
    color: #fff;
}

.product-card-figma .product-card-discount {
    top: 12px;
    left: auto;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-card-figma .product-card-info {
    padding: 16px;
}

.product-card-figma .product-card-brand {
    color: #b8860b;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-decoration: underline;
}

.product-card-figma .product-card-name {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.product-card-figma .product-card-price-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.product-card-figma .product-card-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 14px;
    background: rgba(201, 168, 39, 0.15);
    border: 1px solid #c9a227;
    border-radius: 4px;
}

.product-card-figma .product-card-price {
    color: #b8860b;
    font-size: 1.375rem;
    font-weight: 700;
}

.product-card-figma .product-card-price-old {
    color: #666;
    font-size: 0.85rem;
    text-decoration: line-through;
}

.product-card-figma .product-card-add {
    padding: 8px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    background: transparent;
    color: #b8860b;
    border: 1px solid #b8860b;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card-figma:hover .product-card-add {
    background: linear-gradient(135deg, #b8860b, #c9a227);
    color: var(--dh-black);
}

.product-card-figma .product-card-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
    color: #666;
    border-color: #999;
}

.product-grid-figma .product-grid-load-more {
    text-align: center;
    margin-top: 56px;
}

.product-grid-figma .btn-load-more {
    padding: 16px 48px;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    background: transparent;
    color: var(--dh-gold);
    border: 1px solid var(--dh-gold);
    cursor: pointer;
    transition: all 0.3s;
}

.product-grid-figma .btn-load-more:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    color: var(--dh-black);
    transform: scale(1.05);
}

/* ========================================
   FOOTER FIGMA
   ======================================== */
.footer-figma {
    background: #080808;
    border-top: 1px solid #1a1a1a;
}

.footer-figma-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.footer-figma-main .footer-figma-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-figma-main .footer-figma-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-figma-main .footer-figma-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-figma-brand .footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-figma-brand .footer-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-figma-brand .footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-figma-brand .footer-logo-circle svg {
    width: 20px;
    height: 20px;
    color: var(--dh-black);
}

.footer-figma-brand .footer-brand-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dh-gold);
}

.footer-figma-brand .footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.footer-figma-brand .footer-desc {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 18rem;
    margin-bottom: 24px;
}

.footer-figma-brand .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-figma-brand .footer-contact-item svg {
    width: 14px;
    height: 14px;
    color: var(--dh-gold);
    flex-shrink: 0;
}

.footer-figma-brand .footer-contact-item span {
    color: #555;
    font-size: 0.8rem;
}

.footer-figma-brand .footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.footer-figma-brand .footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
    color: #555;
    transition: all 0.3s;
}

.footer-figma-brand .footer-social-link:hover {
    border-color: var(--dh-gold);
    color: var(--dh-gold);
}

.footer-figma-links h4 {
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-figma-links ul {
    list-style: none;
}

.footer-figma-links li {
    margin-bottom: 12px;
}

.footer-figma-links a {
    color: #555;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-figma-links a:hover {
    color: var(--dh-gold);
}

.footer-figma-bottom {
    padding: 20px 24px;
    border-top: 1px solid #1a1a1a;
}

.footer-figma-bottom .footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 640px) {
    .footer-figma-bottom .footer-bottom-inner {
        flex-direction: row;
    }
}

.footer-figma-bottom .footer-copyright-text {
    color: #3a3a3a;
    font-size: 0.75rem;
}

.footer-figma-bottom .footer-legal {
    display: flex;
    gap: 20px;
}

.footer-figma-bottom .footer-legal a {
    color: #3a3a3a;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-figma-bottom .footer-legal a:hover {
    color: var(--dh-gold);
}

/* Header Figma - logo arriba a la izquierda (tono dorado como footer) */
.header-figma-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-figma-logo .header-logo-circle {
    width: 77px;
    height: 77px;
    min-width: 77px;
    min-height: 77px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.header-figma-logo .logo-imagen-header {
    width: 99.5%;
    height: 99.5%;
    object-fit: contain;
    display: block !important;
}

.header-figma-logo .logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-figma-logo .logo-small {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dh-gold);
}

.header-figma-logo .logo-main {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

/* Espacio entre logo y nav para dar cabida a la búsqueda */
.header-principal.figma-header .navegacion {
    margin-left: 32px;
    flex: 1;
    justify-content: space-between;
    min-width: 0;
}

/* Grupo de enlaces (Inicio, Calzado, etc.) */
.header-principal.figma-header .nav-links-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Grupo derecho (búsqueda, carrito, usuario) - se adapta al ancho del nombre */
.header-principal.figma-header .nav-right-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    margin-left: 48px;
}

/* Ancho mínimo del dropdown de usuario para nombres cortos */
.header-principal.figma-header .nav-right-group .nav-dropdown .nav-link {
    min-width: 100px;
    display: inline-flex;
    justify-content: center;
}

.header-figma-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-figma-actions .nav-action-btn {
    padding: 8px;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.header-figma-actions .nav-action-btn:hover {
    color: var(--dh-gold);
}

.header-figma-actions .carrito-btn {
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-figma-actions .carrito-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dh-gold);
    color: var(--dh-black);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Barra de búsqueda expandible (diseño geométrico perfecto) ── */
.header-search-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 0.5rem; /* Separación con el carrito */
}

.header-search-expand {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); /* Fondo oscuro original */
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: width 240ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search-expand:focus-within {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: min(40vw, 220px); /* Ligeramente más grande para que quepa "Buscar productos..." */
    border-color: rgba(212, 175, 55, 0.5); /* Borde dorado al enfoque */
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.8); /* Fondo se oscurece para el focus */
}

.header-search-expand input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 4px; /* Espacio para escribir alineado con la lupa */
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    font-size: 0.9rem;
    color: #fff;
}

.header-search-expand input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.header-search-expand:not(:focus-within) input[type="search"]::placeholder {
    opacity: 0; /* Oculta el placeholder cuando el círculo está cerrado */
}

/* El botón con la lupa */
.header-search-expand .header-search-btn {
    flex-shrink: 0;
    padding: 0;
    width: 40px; /* Igual al ancho colapsado */
    height: 40px; /* Igual al alto colapsado */
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-expand .header-search-btn svg {
    width: 18px;
    height: 18px;
}

.header-search-expand .header-search-btn:hover {
    color: var(--dh-gold);
}

@media (prefers-reduced-motion: reduce) {
    .header-search-expand, .header-search-expand .header-search-btn {
        transition: none;
    }
}

/* Header borde Figma */
.header-principal.figma-header {
    border-bottom: 1px solid #1f1f1f;
}

/* ========================================
   DROPDOWNS - Estilo botones rápidos Figma
   (igual que enlaces rápidos: fondo blanco, texto gris, borde, dorado hover)
   ======================================== */
.header-principal.figma-header .nav-dropdown .dropdown-content {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 220px;
}

.header-principal.figma-header .nav-dropdown .dropdown-content::before {
    background: #fff !important;
    border-left: 1px solid #e5e5e5 !important;
    border-top: 1px solid #e5e5e5 !important;
}

.header-principal.figma-header .nav-dropdown .dropdown-content a {
    display: block;
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555 !important;
    background: transparent !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.header-principal.figma-header .nav-dropdown .dropdown-content a:last-child {
    margin-bottom: 0;
}

.header-principal.figma-header .nav-dropdown .dropdown-content a:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light)) !important;
    color: var(--dh-black) !important;
    border-color: transparent;
    font-weight: 700;
    padding-left: 20px;
}

.header-principal.figma-header .nav-dropdown .dropdown-content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 10px 0;
}

.header-principal.figma-header .nav-dropdown .dropdown-content .logout-link-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555 !important;
    background: transparent !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.header-principal.figma-header .nav-dropdown .dropdown-content .logout-link-button:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light)) !important;
    color: var(--dh-black) !important;
    border-color: transparent;
    font-weight: 700;
}

/* Dropdown móvil - mantener estilo Figma */
@media (max-width: 900px) {
    .header-principal.figma-header .nav-dropdown .dropdown-content {
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px;
        margin: 8px 0 8px 12px;
        padding: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .header-principal.figma-header .nav-dropdown .dropdown-content::before {
        display: none;
    }

    .header-principal.figma-header .nav-dropdown .dropdown-content a {
        padding: 8px 16px;
        font-size: 0.75rem;
        border-bottom: none;
    }

    .header-principal.figma-header .nav-dropdown .dropdown-content a:last-child {
        margin-bottom: 0;
    }

    /* Búsqueda en drawer: mantener en flujo (no overlay) */
    .header-search-wrapper {
        width: 100%;
    }

    .header-search-expand:focus-within {
        position: static;
        transform: none;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   RESPONSIVE - FIGMA INICIO
   ======================================== */
@media (max-width: 768px) {
    .hero-slider-figma {
        height: 50vh;
        min-height: 360px;
        max-height: 450px;
    }

    .hero-slider-figma .hero-content {
        padding: 30px 16px 15px 12px; /* Reducido para bajar el bloque ~25% y alejar de la flecha */
    }

    .hero-slider-figma .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .hero-slider-figma .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-slider-figma .hero-ctas {
        flex-direction: row; /* Botones lado a lado — ahorran espacio vertical */
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-slider-figma .hero-btn-primary,
    .hero-slider-figma .hero-btn-secondary {
        width: auto;        /* Se adaptan a su propio texto, sin estirarse */
        text-align: center;
        padding: 9px 16px;  /* Más compactos para caber lado a lado */
        font-size: 0.7rem;
    }

    .hero-slider-figma .hero-nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero-slider-figma .hero-nav-prev {
        left: 8px;
    }

    .hero-slider-figma .hero-nav-next {
        right: 8px;
    }

    .hero-slider-figma .hero-indicators {
        bottom: 24px;
    }

    .hero-slider-figma .hero-counter {
        bottom: 24px;
        right: 16px;
        font-size: 0.75rem;
    }

    .product-grid-figma {
        padding: 48px 16px;
    }

    .product-grid-figma .product-grid-header {
        margin-bottom: 32px;
    }

    .product-grid-figma .product-grid-title {
        font-size: 1.5rem;
    }

    .product-grid-figma .product-filter-pills {
        margin-bottom: 24px;
    }

    .product-grid-figma .product-filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .product-card-figma .product-card-image {
        height: 220px;
    }

    .product-grid-figma .product-grid-load-more {
        margin-top: 32px;
    }

    .product-grid-figma .btn-load-more {
        padding: 12px 32px;
        font-size: 0.8rem;
    }

    .footer-figma-main {
        padding: 40px 16px;
    }

    .header-figma-logo .logo-main {
        font-size: 0.9rem;
    }

    .header-figma-logo .logo-small {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-figma {
        height: 45vh;
        min-height: 280px;
        max-height: 360px;
    }

    .hero-slider-figma .hero-content {
        padding: 10px 10px 5px 12px; /* Reducción extrema de relleno vertical */
        bottom: 5%; /* Bajándolo hacia el límite inferior del carrusel */
    }

    .hero-slider-figma .hero-content-inner {
        max-width: 14rem; /* Hacer la caja horizontalmente más corta */
    }

    .hero-slider-figma .hero-eyebrow-text {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .hero-slider-figma .hero-title {
        font-size: 0.9rem; /* 50% más pequeño */
        line-height: 1.1;
        margin-bottom: 6px;
    }

    .hero-slider-figma .hero-subtitle {
        font-size: 0.65rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .hero-slider-figma .hero-ctas {
        gap: 6px; /* Menor espacio entre los dos botones */
        align-items: flex-start; /* Evita que los botones se estiren (anula el 100% width implícito de flex column) */
    }

    .hero-slider-figma .hero-btn-primary,
    .hero-slider-figma .hero-btn-secondary {
        font-size: 0.6rem;
        padding: 5px 10px;
        height: auto;
        width: auto !important; /* Anula el width 100% definido en el breakpoint anterior */
        display: inline-block;
    }

    .product-grid-figma .product-grid-header {
        margin-bottom: 24px;
    }

    .product-grid-figma .product-grid-title {
        font-size: 1.3rem;
    }

    .product-card-figma .product-card-image {
        height: 200px;
    }

    /* Mantener logo visible en móvil (override mobile.css .logo>a>div) */
    .logo a.header-figma-logo .logo-text-wrap {
        display: flex !important;
    }

    .header-figma-logo .header-logo-circle {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
}

/* ========================================
   CARRITO - DISEÑO FIGMA
   ======================================== */
body.pagina-carrito .contenido-principal {
    background: #fff;
    padding: var(--space-xl, 32px) 0;
}

/* ========================================
   CHECKOUT - DISEÑO FIGMA
   ======================================== */
body.pagina-checkout .contenido-principal {
    background: #fff;
    padding: var(--space-xl) 0 var(--space-3xl);
}

body.pagina-checkout .checkout-contenedor {
    padding-bottom: var(--space-3xl);
}

.checkout-figma .checkout-main-title {
    font-family: 'Libre Bodoni', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--dh-black);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--dh-gold);
}

.checkout-figma .checkout-formulario h2,
.checkout-figma .checkout-figma-resumen-title {
    font-size: 1.5em;
    font-weight: 500;
    color: var(--dh-black);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--dh-gold);
}

.checkout-figma .checkout-resumen {
    background: var(--dh-white);
    border: 1px solid var(--dh-gray-100);
    border-radius: var(--radius-md);
}

.checkout-figma .checkout-pay-btn {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light));
    color: var(--dh-black);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: var(--space-lg);
}

.checkout-figma .checkout-pay-btn:hover {
    background: linear-gradient(135deg, var(--dh-gold-dark), var(--dh-gold));
    transform: translateY(-1px);
}

/* Resumen items con imagen */
.checkout-figma-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--dh-gray-100);
}

.checkout-figma-item:last-of-type {
    border-bottom: none;
}

.checkout-figma-item-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #f5f5f5;
}

.checkout-figma-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-figma-item-nombre {
    font-weight: 500;
    color: var(--dh-black);
    font-size: 0.95rem;
}

.checkout-figma-item-variantes {
    font-size: 0.8rem;
    color: var(--dh-gray-200);
}

.checkout-figma-item-cantidad {
    font-size: 0.85rem;
    color: var(--dh-gray-200);
}

.checkout-figma-item-precio {
    font-weight: 700;
    color: var(--dh-gold);
    font-size: 1rem;
}

.checkout-figma-total {
    font-size: 1.2em;
    color: var(--dh-gold);
}

@media (max-width: 768px) {
    .checkout-figma-item-img {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .checkout-figma-item-nombre {
        font-size: 0.9rem;
    }
}

.carrito-figma .carrito-figma-title {
    font-family: 'Libre Bodoni', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dh-gold);
}

.carrito-figma .carrito-figma-flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.carrito-figma .carrito-figma-flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.carrito-figma .carrito-figma-flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.carrito-figma .carrito-figma-vacio {
    text-align: center;
    padding: 80px 24px;
}

.carrito-figma .carrito-figma-vacio p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 24px;
}

/* Tabla desktop */
.carrito-figma .carrito-figma-tabla {
    margin: 24px 0;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.carrito-figma .carrito-figma-tabla thead th {
    background: var(--dh-black);
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 16px;
}

.carrito-figma .carrito-figma-tabla tbody td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.carrito-figma .carrito-figma-tabla tbody tr:hover {
    background: #fafafa;
}

.carrito-figma .carrito-producto {
    display: flex;
    align-items: center;
    gap: 14px;
}

.carrito-figma .carrito-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--radius-sm, 6px);
    background: #f5f5f5;
}

.carrito-figma .carrito-figma-marca,
.carrito-figma .carrito-figma-categoria {
    color: #b8860b;
    font-weight: 500;
    text-decoration: underline;
}

/* Precio en cuadro (desktop tabla) */
.carrito-figma .carrito-figma-precio-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px 12px;
    background: rgba(201, 168, 39, 0.12);
    border: 1px solid #c9a227;
    border-radius: 4px;
}

.carrito-figma .carrito-figma-precio-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 12px;
    background: rgba(201, 168, 39, 0.12);
    border: 1px solid #c9a227;
    border-radius: 4px;
}

.carrito-figma .carrito-figma-precio-anterior {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85rem;
}

.carrito-figma .carrito-figma-precio-actual {
    color: #b8860b;
    font-weight: 700;
    font-size: 1rem;
}

.carrito-figma .carrito-figma-badge-descuento {
    background: #8B0000;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.carrito-figma .input-cantidad,
.carrito-figma .carrito-figma-input-cantidad {
    width: 64px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.95rem;
}

.carrito-figma .carrito-figma-subtotal {
    color: #b8860b;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Botones */
.carrito-figma .carrito-figma-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Libre Bodoni', serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm, 6px);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.carrito-figma .carrito-figma-btn-primary {
    background: linear-gradient(135deg, #b8860b, #c9a227);
    color: #0a0a0a;
}

.carrito-figma .carrito-figma-btn-primary:hover {
    background: linear-gradient(135deg, #9a7209, #b8860b);
    transform: translateY(-1px);
}

.carrito-figma .carrito-figma-btn-secundario {
    background: #444;
    color: #fff;
}

.carrito-figma .carrito-figma-btn-secundario:hover {
    background: #333;
}

.carrito-figma .carrito-figma-btn-eliminar {
    background: #c41e3a;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.75rem;
}

.carrito-figma .carrito-figma-btn-eliminar:hover {
    background: #a01829;
}

.carrito-figma .carrito-figma-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer tabla (resumen) */
.carrito-figma .carrito-figma-tfoot tr td {
    padding: 12px 16px;
    border-bottom: none;
}

.carrito-figma .carrito-figma-tfoot-label,
.carrito-figma .carrito-figma-total-label {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.carrito-figma .carrito-figma-tfoot-valor {
    color: #b8860b;
    font-weight: 600;
}

.carrito-figma .carrito-figma-fila-ahorro .carrito-figma-ahorro-label,
.carrito-figma .carrito-figma-fila-ahorro .carrito-figma-ahorro-valor {
    color: #28a745;
    font-weight: 600;
}

.carrito-figma .carrito-figma-fila-total {
    border-top: 2px solid #b8860b;
}

.carrito-figma .carrito-figma-fila-total .carrito-figma-total-valor {
    color: #b8860b;
    font-size: 1.25rem;
}

/* Cards móvil */
.carrito-figma .carrito-figma-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md, 8px);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.carrito-figma .carrito-figma-card-marca {
    color: #b8860b;
    text-decoration: underline;
    font-weight: 500;
    margin: 4px 0;
}

.carrito-figma .carrito-figma-card-categoria {
    color: #666;
    font-size: 0.85rem;
}

.carrito-figma .carrito-figma-card-precio {
    margin: 16px 0;
}

.carrito-figma .carrito-figma-card-precio .carrito-figma-precio-box {
    display: inline-flex;
}

.carrito-figma .carrito-figma-card-total {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid #c9a227;
}

.carrito-figma .carrito-figma-card-total-inner {
    padding: 20px;
}

.carrito-figma .carrito-figma-card-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.carrito-figma .carrito-figma-card-ahorro {
    color: #28a745;
    font-weight: 600;
}

.carrito-figma .carrito-figma-card-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid #b8860b;
    font-weight: 700;
    font-size: 1.1rem;
}

.carrito-figma .carrito-figma-card-total-final .total-general-m {
    color: #b8860b;
    font-size: 1.5rem;
}

.carrito-figma .carrito-subtotal-mobile-value {
    color: #b8860b;
    font-weight: 700;
}

.carrito-figma .carrito-stock-note {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.carrito-figma .carrito-card-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.carrito-figma .carrito-card-acciones .carrito-figma-input-cantidad {
    width: 60px;
}

.carrito-figma .carrito-btn-eliminar-mobile {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .carrito-figma .carrito-figma-acciones {
        flex-direction: column;
    }

    .carrito-figma .carrito-figma-acciones .carrito-figma-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   DROPDOWN FIGMA - Estilo enlaces rápidos
   (clase específica para prioridad absoluta)
   ======================================== */
.dropdown-figma {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 220px;
}

.dropdown-figma::before {
    background: #fff !important;
    border-left: 1px solid #e5e5e5 !important;
    border-top: 1px solid #e5e5e5 !important;
}

.dropdown-figma a {
    display: block;
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555 !important;
    background: transparent !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-figma a:last-child {
    margin-bottom: 0;
}

.dropdown-figma a:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light)) !important;
    color: var(--dh-black) !important;
    border-color: transparent;
    font-weight: 700;
    padding-left: 20px;
}

.dropdown-figma hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 10px 0;
}

.dropdown-figma .logout-link-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555 !important;
    background: transparent !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.dropdown-figma .logout-link-button:hover {
    background: linear-gradient(135deg, var(--dh-gold), var(--dh-gold-light)) !important;
    color: var(--dh-black) !important;
    border-color: transparent;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dropdown-figma {
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px;
        margin: 8px 0 8px 12px;
        padding: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .dropdown-figma::before {
        display: none;
    }

    .dropdown-figma a {
        padding: 8px 16px;
        font-size: 0.75rem;
        border-bottom: none;
    }

    .dropdown-figma a:last-child {
        margin-bottom: 0;
    }
}

/* ========================================================
   FOOTER REORGANIZADO — Banda dorada + Grid 4 cols
   ======================================================== */

/* Banda ornamental superior */
.footer-gold-band {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px 0;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-gold-band-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184, 134, 11, 0.5), transparent);
}

.footer-gold-band-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: 50%;
    color: var(--dh-gold);
    flex-shrink: 0;
    overflow: hidden;
}

.footer-band-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Grid de 4 columnas profesional */
.footer-grid-pro {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 48px !important;
    align-items: start;
}

@media (max-width: 1023px) {
    .footer-grid-pro {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 639px) {
    .footer-grid-pro {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

/* Lista de contacto agrupada */
.footer-contact-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Indicador dorado al inicio de cada link de navegación */
.footer-figma-links a::before {
    content: '—';
    color: var(--dh-gold);
    font-size: 0.65rem;
    margin-right: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-figma-links a:hover::before {
    opacity: 1;
}