/* ==========================================================================
   SISTEMA DE DISEÑO Y ESTILOS PRINCIPALES - ETIQUETAS ADR
   ========================================================================== */

/* Variables CSS */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-glow: rgba(15, 23, 42, 0.08);
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.2);
    --accent-yellow: #eab308;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 90%; /* Escala toda la tipografía y paddings rem un 10% */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1180px; /* Más compacto, reduciendo un 10% */
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 880px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

/* ==========================================================================
   COMPONENTES DE BOTONES Y CHIPS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-light);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background-color: rgba(15, 23, 42, 0.02);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   NAVBAR Y CABECERA
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.logo-highlight {
    color: var(--accent);
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background-color: var(--bg-main);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.cart-btn:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 80px 0 100px 0;
    background-color: var(--primary);
    color: #ffffff;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    color: var(--accent);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Gráficos de Etiquetas Flotantes en Hero */
.hero-image-wrapper {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-display {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-label {
    position: absolute;
    width: 180px;
    height: 180px;
    transition: var(--transition);
}

.floating-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
    transition: var(--transition);
}

.floating-label:hover {
    z-index: 10 !important;
}

.floating-label:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 25px 45px rgba(0,0,0,0.5));
}

.label-3 {
    top: 10%;
    left: 20%;
    transform: rotate(-12deg);
    z-index: 3;
}

.label-8 {
    top: 40%;
    right: 15%;
    transform: rotate(8deg);
    z-index: 2;
}

.label-9 {
    bottom: 5%;
    left: 10%;
    transform: rotate(-5deg);
    z-index: 1;
}

/* Representaciones de Etiquetas en CSS para Maquetación */
.adr-plate-preview {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 4px solid #000;
    position: relative;
}

.class-3-preview {
    background-color: #ef4444; /* Rojo inflamable */
    color: white;
}

.class-3-preview::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C12 2 6 7.5 6 12C6 15.3137 8.68629 18 12 18C15.3137 18 18 15.3137 18 12C18 7.5 12 2 12 2ZM12 16C10.3431 16 9 14.6569 9 13C9 10.5 12 8.5 12 8.5C12 8.5 15 10.5 15 13C15 14.6569 13.6569 16 12 16Z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.class-3-preview::after {
    content: '3';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.class-8-preview {
    background: linear-gradient(135deg, #ffffff 50%, #0f172a 50%);
    color: black;
}

.class-8-preview::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14H6v-2h4v2zm4-4H6v-2h8v2zm4-4H6V7h12v2z'/%3E%3C/svg%3E") no-repeat center/contain;
    filter: invert(0);
}

.class-8-preview::after {
    content: '8';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.class-9-preview {
    background: #ffffff;
    background-image: linear-gradient(90deg, #000 50%, transparent 50%);
    background-size: 20px 100%;
}

.class-9-preview::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: white;
    border-top: 3px solid #000;
}

.class-9-preview::after {
    content: '9';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: black;
    z-index: 2;
}

/* ==========================================================================
   SECCIÓN DE CATÁLOGO
   ========================================================================== */
.catalog-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Controles de Catálogo (Búsqueda y Filtros) */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 16px 24px 16px 54px;
    background-color: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 20px;
    height: 20px;
}

.clear-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
}

.clear-search-btn:hover {
    color: var(--primary);
}

/* Filtros con scroll horizontal en móvil */
.filters-scroll {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 8px;
    width: 100%;
}

.filters-scroll::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
}

.filters-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
    margin: 0;
    padding: 4px 24px;
}

@media (min-width: 1200px) {
    .filters-container {
        justify-content: center;
        margin: 0 auto;
        padding: 4px 0;
    }
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjeta de Producto */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.product-image-container {
    height: 180px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
}

.product-image-container svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
    transition: var(--transition);
}

.product-card:hover .product-image-container svg {
    transform: scale(1.05);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.product-class-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-orange { background-color: rgba(249, 115, 22, 0.1); color: var(--accent); }
.badge-blue { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.badge-green { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.badge-red { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-purple { background-color: rgba(168, 85, 247, 0.1); color: #a855f7; }
.badge-yellow { background-color: rgba(234, 179, 8, 0.1); color: #ca8a04; }
.badge-dark { background-color: var(--primary-glow); color: var(--primary); }

.product-price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Sin Resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   MODAL CONFIGURADOR DE PRODUCTO
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background-color: var(--bg-card);
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

/* Configurador - Lado Visual */
.config-visual {
    background-color: var(--bg-main);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.config-plate-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    transition: var(--transition);
}

.config-plate-shadow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.config-plate-shadow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12));
}

.config-visual-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: rgba(15, 23, 42, 0.04);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Configurador - Lado Controles */
.config-details {
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
}

.config-class {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.config-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.config-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.config-divider {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin: 24px 0;
}

.config-section {
    margin-bottom: 24px;
}

.config-section-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Chips de Selección */
.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.options-group.flex-col {
    flex-direction: column;
    gap: 8px;
}

.chip-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chip-option:hover {
    border-color: var(--border-hover);
    color: var(--primary);
}

.chip-option.active {
    border-color: var(--accent);
    background-color: rgba(249, 115, 22, 0.02);
    color: var(--accent);
}

/* Detalle del material en chip */
.material-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.material-name {
    font-weight: 600;
    color: var(--primary);
}

.chip-option.active .material-name {
    color: var(--accent);
}

.material-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.material-price-modifier {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cantidad */
.qty-and-discount {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--primary);
}

.qty-selector input {
    width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--success-light);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* Leyenda Descuentos */
.volume-legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vol-step {
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
}

.vol-step:last-child {
    border-right: none;
}

.vol-step span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.vol-step.active-step {
    background-color: var(--primary-glow);
    color: var(--primary);
}

/* Resumen del Configurador */
.config-summary {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row strong {
    color: var(--primary);
}

.summary-row.font-lg {
    font-size: 1.15rem;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

.summary-row.font-lg .color-primary {
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 800;
}

.text-muted.sm {
    font-size: 0.75rem;
}

/* Modales Pequeños (Alertas) */
.modal-sm {
    max-width: 440px !important;
}

.modal-alert .modal-container {
    padding: 40px;
    text-align: center;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-icon {
    width: 36px;
    height: 36px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.success-order-ref {
    background-color: var(--bg-main);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   CARRITO LATERAL (SIDEBAR)
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    visibility: hidden;
    transition: visibility 0.4s;
}

.cart-sidebar.active {
    visibility: visible;
}

.cart-sidebar-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-sidebar.active .cart-sidebar-backdrop {
    opacity: 1;
}

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.active .cart-sidebar-content {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-close-btn:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta Item Carrito */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image svg {
    max-width: 100%;
    max-height: 100%;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 8px 0;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.cart-item-qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-item-qty-btn:hover {
    color: var(--primary);
}

.cart-item-qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-delete {
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-delete:hover {
    color: #ef4444;
}

/* Carrito Vacío */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    flex-grow: 1;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Pie del Carrito */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-main);
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.total-divider {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin: 8px 0;
}

.total-row-final {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.total-row-final span:last-child {
    color: var(--accent);
    font-size: 1.3rem;
}

.shipping-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.shipping-notice i {
    color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   FORMULARIO DE CHECKOUT
   ========================================================================== */
.checkout-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.checkout-form {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title i {
    color: var(--accent);
}

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

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.privacy-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.privacy-checkbox input {
    margin-top: 5px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.privacy-checkbox label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Tarjeta Resumen Factura Checkout */
.checkout-summary-card {
    background-color: var(--bg-main);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.checkout-summary-card .cart-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.checkout-summary-card .cart-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.checkout-totals .total-row strong {
    color: var(--primary);
}

.checkout-totals .total-row-final strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.checkout-guarantees {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guarantee-item i {
    color: var(--success);
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SECCIÓN DE NORMATIVA Y FAQ
   ========================================================================== */
.info-section {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.info-badge {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rules-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rules-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    top: -2px;
}

.rules-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.rules-list ul {
    list-style: none;
    margin-top: 8px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rules-list ul li {
    font-size: 0.85rem;
}

/* Acordeón FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.faq-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-main);
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0 0 0;
    border-top: 4px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo-title {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.trust-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.trust-badge {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-links ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-list i {
    color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTACIONES MÓVILES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-badge {
        margin: 0 auto 24px auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        height: 350px;
        margin-top: 40px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .config-visual {
        padding: 40px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .config-details {
        padding: 30px 24px;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
}

/* ==========================================================================
   MICRO-ANIMACIONES Y EFECTOS
   ========================================================================== */

/* Rotación para iconos de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Efectos de levitación flotante en el Hero */
@keyframes float1 {
    0% { transform: rotate(-12deg) translateY(0px); }
    50% { transform: rotate(-10deg) translateY(-12px); }
    100% { transform: rotate(-12deg) translateY(0px); }
}

@keyframes float2 {
    0% { transform: rotate(8deg) translateY(0px); }
    50% { transform: rotate(6deg) translateY(-16px); }
    100% { transform: rotate(8deg) translateY(0px); }
}

@keyframes float3 {
    0% { transform: rotate(-5deg) translateY(0px); }
    50% { transform: rotate(-7deg) translateY(-10px); }
    100% { transform: rotate(-5deg) translateY(0px); }
}

.label-3 {
    animation: float1 6s ease-in-out infinite;
}

.label-8 {
    animation: float2 7s ease-in-out infinite;
}

.label-9 {
    animation: float3 5s ease-in-out infinite;
}

/* ==========================================================================
   ESTILOS DE PÁGINAS MULTIPÁGINA (DETALLE, FAQ, CONTACTO)
   ========================================================================== */

/* Breadcrumbs (Ruta de navegación) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs i {
    width: 14px;
    height: 14px;
    color: var(--text-light);
}

/* Detalle de Producto */
.product-detail-section {
    padding: 50px 0 100px 0;
    background-color: var(--bg-main);
}

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

.product-detail-visual-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 110px;
}

.product-detail-plate-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    transition: var(--transition);
}

.product-detail-plate-wrapper svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.product-detail-plate-wrapper:hover {
    transform: scale(1.03);
}

.product-detail-config-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 48px;
    box-shadow: var(--shadow-sm);
}

.config-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.product-detail-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Páginas de Información y Cotización */
.info-section-page,
.checkout-section-page {
    padding: 60px 0 100px 0;
    background-color: var(--bg-main);
}

.checkout-section-page .checkout-grid {
    margin-top: 0;
}

/* Responsividad para Detalle de Producto */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-detail-visual-card {
        position: static;
        padding: 40px;
    }
    
    .product-detail-plate-wrapper {
        max-width: 260px;
        height: 260px;
        margin-bottom: 24px;
    }
    
    .product-detail-config-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .product-detail-config-card {
        padding: 30px 20px;
    }
}

/* Estilos de las imágenes reales de etiquetas */
.product-label-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
    transition: var(--transition);
}

.product-card:hover .product-label-img {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

.product-detail-img-file {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: var(--transition);
}

.product-detail-img-file:hover {
    transform: scale(1.03);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Estilo del precio unitario en cabecera de producto */
.product-detail-header-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.product-detail-header-price .price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.product-detail-header-price .price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-heading);
}

@media (max-width: 480px) {
    .product-detail-header-price .price-val {
        font-size: 1.4rem;
    }
}

/* Estilos de precios originales tachados y alerta de ahorro */
.price-original-crossed {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

#header-original-unit-price.price-original-crossed {
    font-size: 1.15rem;
    margin-right: 4px;
}

#summary-original-unit-price.price-original-crossed {
    font-size: 0.85rem;
    margin-right: 6px;
}

#summary-original-total-price.price-original-crossed {
    font-size: 1.1rem;
    margin-right: 8px;
}

.savings-alert-row {
    display: flex;
    background-color: var(--success-light);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: var(--shadow-sm);
    animation: pulseSavingsGlow 2.5s infinite;
}

@keyframes pulseSavingsGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.15); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Estilos de métodos de pago en Pasarela de Pago */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.payment-method-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-card);
    user-select: none;
}

.payment-method-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-main);
}

.payment-method-card.active {
    border-color: var(--accent);
    background-color: var(--primary-glow);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.payment-method-card i {
    width: 24px;
    height: 24px;
}

.payment-method-card span {
    font-size: 0.85rem;
    font-weight: 700;
}

.payment-details-panel {
    background-color: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeInSlideUp 0.3s ease-out;
}

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

/* Custom Select Dropdown styles */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background-color: var(--bg-card);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--border-hover);
}

.custom-select-trigger.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-select-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
    padding: 6px;
}

.custom-select-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.custom-select-option:hover {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.custom-select-option.active {
    background-color: var(--primary-glow);
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   OPTIMIZACIONES CRO Y CANAL COMERCIAL HUMANO
   ========================================================================== */

/* 1. Widget de WhatsApp Flotante */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.whatsapp-trigger {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: var(--transition);
    user-select: none;
}

.whatsapp-trigger:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.whatsapp-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.whatsapp-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-panel-header {
    background-color: #0c1a12; /* Verde oscuro premium */
    color: #ffffff;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.whatsapp-panel-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #25d366;
    margin-bottom: 6px;
}

.whatsapp-panel-header p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.whatsapp-panel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-card);
}

.whatsapp-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.whatsapp-agent:hover {
    border-color: #25d366;
    background-color: var(--primary-glow);
    transform: translateY(-2px);
}

.whatsapp-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(37, 211, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-agent-info {
    flex-grow: 1;
}

.whatsapp-agent-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.whatsapp-agent-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 2. Sellos de Garantía */
.technical-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.guarantee-badge-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.guarantee-badge-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.guarantee-badge-card i {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.guarantee-badge-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.guarantee-badge-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* 3. Packs de cantidad rápida */
.quick-packs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.quick-pack-btn {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    user-select: none;
}

.quick-pack-btn:hover {
    border-color: var(--primary);
    background-color: var(--bg-main);
}

.quick-pack-btn.active {
    border-color: var(--accent);
    background-color: var(--primary-glow);
    color: var(--accent);
}

.quick-pack-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.quick-pack-btn.active .quick-pack-title {
    color: var(--accent);
}

.quick-pack-discount {
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--success-light);
    color: var(--success);
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

/* 4. Productos Recomendados / Venta Cruzada */
.cross-sell-section {
    margin-top: 48px;
    border-top: 1.5px solid var(--border);
    padding-top: 32px;
}

.cross-sell-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cross-sell-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.cross-sell-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.cross-sell-image {
    width: 60px;
    height: 60px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cross-sell-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cross-sell-info {
    flex-grow: 1;
    min-width: 0;
}

.cross-sell-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cross-sell-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
}

.cross-sell-add-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--bg-main);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cross-sell-add-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.cross-sell-add-btn.added {
    background-color: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

@media (max-width: 768px) {
    .cross-sell-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}








