/*
================================================================
  VARIABLES GLOBALES Y CONFIGURACIÓN (ROOT)
================================================================
*/
:root {
    /* Paleta Cromática */
    --black-deep: #0a0a0a;
    --black-btn: #111111;
    --gold-primary: #c5a059;
    --gold-light: #e2c275;
    --white: #ffffff;
    --gray-bg: #f5f5f7;
    --gray-border: #eaeaea;
    --text-dark: #111111;
    --text-muted: #6e6e73;

    /* Fuentes */
    --font-main: 'Montserrat', sans-serif;
    --font-accent: 'Cinzel', serif;

    /* Estructura y Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 70px;
}

/*
================================================================
  RESET Y ESTILOS BASE
================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* El elemento raíz adopta el color oscuro del footer para evitar el destello blanco en el rebote móvil */
html {
    background-color: var(--black-deep); /* O el color exacto que tenga tu footer, ej: #111 o #000 */
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Asegura que el contenido principal ocupe el espacio y empuje el footer hacia abajo */
main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-white {
    background-color: var(--white);
}

/*
================================================================
  NAVEGACIÓN (NAVBAR)
================================================================
*/
.header-main {
    background: var(--black-deep);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Estilos para el contenedor y enlace del logo */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
}

/* Estilos para la imagen del logo (Tamaño mayor destacado) */
.logo-img {
    height: calc(var(--header-height) - 4px); /* Aprovecha casi el 100% de la altura del header */
    max-height: 75px; /* Límite de seguridad visual */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* Botón Hamburguesa para Móvil (Oculto por defecto en escritorio) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Estado activo del botón hamburguesa (Animación X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--gold-primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--gold-primary);
}

/*
================================================================
  ADAPTABILIDAD RESPONSIVE DEL HEADER
================================================================
*/

/* Tablets y Móviles (hasta 992px) */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--black-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.4s ease-in-out;
        border-top: 1px solid rgba(197, 160, 89, 0.15);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

/* Móviles Pequeños (hasta 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: calc(var(--header-height) - 8px);
        max-height: 60px;
    }
}

/*
================================================================
  HERO COMPACTO B2B
================================================================
*/
.hero-compact {
    padding: 110px 0 35px 0;
    background: var(--black-deep);
}

.gold-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold-primary);
    margin-bottom: 0.8rem;
}

.premium-title {
    font-family: var(--font-accent);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
}

.premium-title span {
    color: var(--gold-primary);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 300;
}

/*
================================================================
  ADAPTABILIDAD RESPONSIVE (HERO)
================================================================
*/

/* Tablets (pantallas hasta 992px) */
@media (max-width: 992px) {
    .hero-compact {
        padding: 100px 0 30px 0;
    }
}

/* Móviles Grandes y Medium (pantallas hasta 768px) */
@media (max-width: 768px) {
    .hero-compact {
        padding: 90px 0 25px 0;
    }

    .gold-line {
        width: 32px;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* Móviles Pequeños (pantallas hasta 480px) */
@media (max-width: 480px) {
    .hero-compact {
        padding: 85px 0 20px 0;
    }

    .gold-line {
        width: 28px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/*
================================================================
  SECCIÓN CONDICIONES DE PRECIO (ESCALA MAYORISTA B2B)
================================================================
*/
.pricing-conditions {
    padding: 3rem 0;
    background-color: #f7f7f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pricing-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem auto;
}

.pricing-intro .premium-title {
    color: var(--text-dark, #111111);
}

/* Rejilla de Tarjetas */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white, #ffffff);
    border: 1px solid #e2e2e5;
    border-radius: 8px;
    padding: 1.8rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Tarjeta Destacada (Docena) */
.pricing-card.featured-tier {
    border: 2px solid var(--text-dark, #111111);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background-color: var(--text-dark, #111111);
    color: var(--white, #ffffff);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Header de la tarjeta */
.pricing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.badge-tier {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tier-icon {
    font-size: 1.35rem;
    color: var(--text-dark);
}

/* Cuerpo de la tarjeta */
.tier-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.tier-price-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.3rem;
}

.tier-divider {
    height: 1px;
    background-color: #eeeeee;
    margin: 1rem 0;
}

/* Lista de Beneficios */
.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tier-features li {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.35;
}

.tier-features li i {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.tier-features li strong {
    color: var(--text-dark);
}

/* Layout en 2 Columnas Manteniéndose en Móvil */
@media (max-width: 768px) {
    .pricing-grid {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
    }

    .pricing-card {
        padding: 1.2rem 0.9rem;
    }

    .tier-title {
        font-size: 0.95rem;
    }

    .tier-price-label {
        font-size: 0.75rem;
    }

    .tier-features li {
        font-size: 0.72rem;
    }

    .featured-badge {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
        top: -10px;
        right: 8px;
    }
}

/*
================================================================
  CALZALUX - SECCIÓN DE CATÁLOGO Y TARJETAS SIMÉTRICAS
================================================================
*/

.products-section {
    padding: 4rem 0 6rem 0;
}

/* Header de la Sección con Estilo Editorial */
.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    position: relative;
}

.catalog-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f4f4f6;
    color: var(--black-deep);
    border: 1px solid var(--gray-border);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.catalog-tag-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
}

.premium-title-main {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.premium-title-main span {
    color: var(--gold-primary);
    font-style: italic;
    font-family: serif;
}

/*
================================================================
  GRID DE TARJETAS
================================================================
*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.8rem;
    align-items: stretch;
    touch-action: pan-y pinch-zoom;
    transition: opacity 0.25s ease;
}

/*
================================================================
  TARJETAS PREMIUM (SIN MARCO EXTERIOR Y SIMÉTRICAS)
================================================================
*/
.product-card-frameless {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Contenedor de la Foto */
.product-img-frameless {
    position: relative;
    width: 100%;
    height: 340px;
    background-color: #f8f8f9;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    box-sizing: border-box;
}

.product-img-frameless img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-frameless:hover .product-img-frameless img {
    transform: scale(1.05);
}

/* Badge Flotante para Estado de Inventario */
.stock-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

/* Información de la Tarjeta */
.product-info-frameless {
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.model-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.model-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*
================================================================
  BLOQUE DE PRECIO DESTACADO
================================================================
*/
.card-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gold-primary);
}

.card-price-refined {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    width: 100%;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.price-tax-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.product-price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.price-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    font-weight: 600;
}

/*
================================================================
  DISEÑO CENTRADO DE TALLAS E INVENTARIO
================================================================
*/
.size-inventory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
    min-height: 42px;
}

.size-stock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f7f7f9;
    border: 1px solid var(--gray-border);
    padding: 0.4rem 0.1rem;
    width: 38px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition);
}

.size-stock-item:hover {
    border-color: var(--gold-primary);
    background-color: #ffffff;
}

.size-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stock-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-top: 0.25rem;
    line-height: 1;
}

.size-stock-item.out-of-stock {
    background-color: #fafafa;
    border-color: #eee;
    opacity: 0.5;
}

.size-stock-item.out-of-stock .size-label,
.size-stock-item.out-of-stock .stock-count {
    color: #a0a0a0;
}

/*
================================================================
  FILA DE ACCIONES Y BOTONES CENTRADOS/SIMÉTRICOS
================================================================
*/
.card-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Estilo base simétrico e idéntico para ambos botones */
.btn-add-list,
.btn-quote-frameless {
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Botón Agregar a Lista */
.btn-add-list {
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--gray-border);
}

.btn-add-list:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: #fafafa;
}

/* Estado del botón cuando el elemento está en la lista */
.btn-add-list.added {
    background-color: #fff0f0;
    color: #d9534f;
    border-color: #f5c6cb;
}

.btn-add-list.added:hover {
    background-color: #d9534f;
    color: #ffffff;
    border-color: #d9534f;
}

/* Botón Cotizar */
.btn-quote-frameless {
    background: var(--black-btn);
    color: var(--white);
    border: 1px solid var(--black-btn);
}

.btn-quote-frameless i {
    font-size: 0.95rem;
}

.btn-quote-frameless:hover {
    background: var(--gold-primary);
    color: var(--black-deep);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

/*
================================================================
  PAGINACIÓN NUMERADA DESPLAZABLE EN MÓVIL
================================================================
*/
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
    width: 100%;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.3rem 0;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.page-numbers::-webkit-scrollbar {
    display: none;
}

.page-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--gray-border);
    background-color: #ffffff;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: #fafafa;
}

.page-btn.active {
    background-color: var(--black-btn);
    color: var(--white);
    border-color: var(--black-btn);
    cursor: default;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f4f4f6;
    border-color: var(--gray-border);
}

/*
================================================================
  ADAPTABILIDAD RESPONSIVE (TABLETS Y MÓVILES)
================================================================
*/

/* Tablets (hasta 992px) */
@media (max-width: 992px) {
    .products-section {
        padding: 3.5rem 0 4.5rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem 1.2rem;
    }

    .product-img-frameless {
        height: 280px;
    }
}

/* Móviles Grandes y Medium (hasta 768px) */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.8rem;
    }

    .product-img-frameless {
        height: 230px;
        border-radius: 14px;
        padding: 0.5rem;
    }

    .model-code {
        font-size: 1.05rem;
    }

    .model-desc {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        min-height: 2.2em;
    }

    .card-price-box {
        padding: 8px 10px;
        margin-bottom: 0.8rem;
    }

    .product-price-tag {
        font-size: 1.1rem;
    }

    .price-amount {
        font-size: 1.1rem;
    }

    .price-subtitle {
        font-size: 0.65rem;
    }

    .size-inventory-grid {
        gap: 0.2rem;
        margin-bottom: 0.9rem;
        min-height: 36px;
    }

    .size-stock-item {
        width: 32px;
        padding: 0.3rem 0.1rem;
        border-radius: 6px;
    }

    .size-label {
        font-size: 0.7rem;
    }

    .stock-count {
        font-size: 0.62rem;
        margin-top: 0.2rem;
    }

    /* Cambio a disposición vertical para móviles */
    .card-actions-row {
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }

    .card-actions-row .btn-add-list,
    .card-actions-row .btn-quote-frameless {
        flex: initial;
        width: 100%;
        height: 38px;
        font-size: 0.75rem;
        padding: 0 0.5rem;
        border-radius: 10px;
    }

    .pagination-container {
        gap: 0.4rem;
        margin-top: 2.5rem;
    }

    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
        border-radius: 8px;
    }
}

/* Móviles Pequeños (hasta 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 0.5rem;
    }

    .product-img-frameless {
        height: 180px;
    }

    .stock-status-badge {
        font-size: 0.58rem;
        padding: 0.25rem 0.55rem;
        top: 8px;
        right: 8px;
    }

    .card-price-box {
        padding: 6px 8px;
        margin-bottom: 0.7rem;
    }

    .product-price-tag {
        font-size: 1rem;
    }

    .price-amount {
        font-size: 1rem;
    }

    .price-subtitle {
        font-size: 0.6rem;
    }

    .card-actions-row {
        gap: 0.35rem;
    }

    .card-actions-row .btn-add-list,
    .card-actions-row .btn-quote-frameless {
        height: 36px;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    .page-btn {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }
}

/* ================================================================
   BOTÓN FLOTANTE Y MODAL DE LISTA (CALZALUX)
   ================================================================ */

/* --- Botón Flotante Estado Normal --- */
.floating-quote-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #111111;
    color: #ffffff;
    border: 1px solid #d4af37;
    padding: 0 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    height: 48px;
    width: auto;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.floating-quote-btn:hover {
    background-color: #d4af37;
    color: #111111;
}

.floating-quote-btn .btn-text {
    display: inline-block;
    white-space: nowrap;
    opacity: 1;
    max-width: 100px;
    transition: all 0.3s ease;
}

/* Badge Contador en Estado Normal */
.quote-badge {
    background-color: #d4af37;
    color: #111111;
    font-weight: 700;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.floating-quote-btn:hover .quote-badge {
    background-color: #111111;
    color: #ffffff;
}

/* --- Botón Flotante Estado Colapsado (Footer) --- */
.floating-quote-btn.collapsed {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    justify-content: center;
}

.floating-quote-btn.collapsed .btn-text {
    max-width: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Badge estilizado como Notificación cuando el botón es un círculo */
.floating-quote-btn.collapsed .quote-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    border: 2px solid #111111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* ================================================================
   ESTILOS DEL MODAL DE LISTA DE COTIZACIÓN
   ================================================================ */

/* Fondo oscuro / Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

/* Clase activa agregada con JS para abrir */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenedor principal del Modal */
.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Encabezado */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.15rem;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-close-modal:hover {
    color: #111827;
}

/* Cuerpo con Lista de Productos */
.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    max-height: 320px;
    padding-right: 4px;
}

/* Fila de cada item individual generado por JS */
.quote-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
}

.quote-item-sku {
    font-size: 0.92rem;
    color: #1f2937;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-remove-item:hover {
    background: #fee2e2;
}

.empty-list-msg {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 2rem 0;
    margin: 0;
}

/* Pie de Modal y Botones de Acción */
.modal-footer {
    display: flex;
    gap: 0.8rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.btn-clear-list {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-list:hover {
    background: #f3f4f6;
    color: #111827;
}

.btn-send-whatsapp {
    flex-grow: 1;
    background-color: #25d366;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-send-whatsapp:hover {
    background-color: #20ba5a;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
    .floating-quote-btn {
        bottom: 20px;
        right: 15px;
    }
    
    .modal-content {
        width: 92%;
        padding: 1.2rem;
    }
}



/*
================================================================
  SECCIÓN PROCESO DE PEDIDO (COMPACTO ESTILO REFERENCIA)
================================================================
*/
.steps-section {
    padding: 2.5rem 0;
    background-color: #f7f7f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.steps-intro {
    text-align: center;
}

.catalog-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.steps-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.2rem;
}

/* Layout Horizontal para los 3 pasos */
.steps-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
}

.step-icon-wrap {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.15rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.step-icon-wrap i {
    font-size: 1.25rem;
    line-height: 1;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.step-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.step-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Divisores verticales sutiles */
.step-divider {
    width: 1px;
    height: 45px;
    background-color: #e2e2e5;
    flex-shrink: 0;
}

/* Responsivo para Móvil */
@media (max-width: 768px) {
    .steps-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .step-divider {
        width: 100%;
        height: 1px;
    }
}

/*
================================================================
  CALZALUX - SECCIÓN DE PIE DE PÁGINA (FOOTER)
================================================================
*/

.main-footer {
    background-color: var(--black-deep);
    color: var(--white);
    padding: 4.5rem 0 2.5rem 0;
    margin-top: auto;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Columna 1: Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 0.6rem;
    object-fit: contain;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Columna 2: Redes Sociales */
.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.social-links-grid {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-btn:hover {
    background-color: var(--gold-primary);
    color: var(--black-deep);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

/* Divisor */
.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.8rem 0;
}

/* Firma e Información Inferior Centrada */
.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 0.5rem;
}

.copyright-text {
    margin: 0;
}

.developer-credit {
    margin: 0;
}

.dev-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dev-link i {
    font-size: 0.95rem;
}

.dev-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/*
================================================================
  ADAPTABILIDAD RESPONSIVE (FOOTER MÓVIL)
================================================================
*/
@media (max-width: 768px) {
    .main-footer {
        padding: 3.5rem 0 2rem 0;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand,
    .footer-socials {
        align-items: center;
    }

    .footer-logo {
        max-height: 60px;
    }

    .footer-bottom-row {
        gap: 0.6rem;
    }
}