/* ==========================================================================
   CAMISETAS NEREIDA - CLUB DE BUCEO PREMIUM
   Rediseño E-commerce Showcase con Fondo Marino Inmersivo, Guía de Tallas & Responsive
   ========================================================================== */

/* --- Variables Globales y Reset --- */
:root {
    --bg-main: #060a12;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-solid: #0f172a;
    --bg-input: rgba(11, 18, 33, 0.78);
    
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-focus: #06b6d4;
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --shadow-soft: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(180deg, rgba(6, 10, 18, 0.82) 0%, rgba(4, 7, 14, 0.94) 100%),
        url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

/* --- Header Limpio --- */
.clean-header {
    padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 1.25rem;
    text-align: center;
    background: transparent;
    position: relative;
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.page-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

/* --- Banner de Fecha Límite (20 de Octubre) --- */
.deadline-banner {
    max-width: 1200px;
    width: 92%;
    margin: 0.5rem auto 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.45);
}

.deadline-text {
    color: #f1f5f9;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* --- Main Showcase Grid --- */
.main-container {
    max-width: 1200px;
    width: 92%;
    margin: 1.5rem auto 3.5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start; /* Flujo natural orgánico: cada columna mide lo necesario sin huecos vacíos */
}

/* --- Columna Izquierda: Galería de Fotos --- */
.product-gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.15rem; /* Espaciado uniforme y orgánico */
    position: sticky;
    top: 1.5rem; /* Acompaña elegantemente la vista al desplazarse por el formulario */
    transition: box-shadow 0.3s ease;
}

.main-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 4 / 3;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.main-img-wrapper:hover .main-product-img {
    transform: scale(1.02);
}

.img-badge-overlay {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(6, 10, 18, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Miniaturas Galería */
.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumb-btn {
    flex: 1;
    background: rgba(11, 18, 33, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    transition: all 0.25s ease;
}

.thumb-btn img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.thumb-btn span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.thumb-btn:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.thumb-btn.active {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.thumb-btn.active span {
    color: var(--accent-cyan);
}

/* Ficha Técnica con Iconos Circulares y Títulos en Negrita */
.product-specs {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.spec-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.spec-content {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.spec-content strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.spec-content span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.12rem;
}

/* Destacado Especial del Precio */
.spec-price-highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
    margin-top: 0.25rem;
    transition: all 0.25s ease;
}

.spec-price-highlight:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.28);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(20, 184, 166, 0.14) 100%);
}

.spec-price-highlight .price-icon {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--accent-cyan);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.price-amount-highlight {
    color: var(--accent-cyan);
    font-size: 1.15rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
    margin-left: 0.25rem;
}

.price-subtext {
    font-size: 0.8rem !important;
    color: #cbd5e1 !important;
    margin-top: 0.1rem;
}

/* Botón Guía de Tallas */
.size-guide-trigger-box {
    margin-top: 1.25rem;
}

.btn-size-guide-pill {
    width: 100%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--accent-cyan);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.btn-size-guide-pill:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
    transform: translateY(-1px);
}

/* Nota de Garantía del Club */
.product-guarantee-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(6, 182, 212, 0.06);
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.product-guarantee-note i {
    color: var(--accent-cyan);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* --- Columna Derecha: Tarjeta de Formulario --- */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.form-section {
    margin-bottom: 1.75rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.section-header h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
}

.link-size-guide {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.link-size-guide:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    padding-left: 2.3rem;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
    margin: 1.75rem 0;
}

/* Floating Label Inputs */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 1.25rem 1rem 0.45rem 1rem;
    min-height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 0.88rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
    top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

/* --- Carrito Dinámico --- */
.cart-rows-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 2.2fr 2fr 1.1fr 44px;
    align-items: center;
    gap: 0.85rem;
    background: rgba(11, 18, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    animation: fadeInRow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: border-color 0.2s ease;
}

.cart-row:hover {
    border-color: rgba(6, 182, 212, 0.35);
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-label-sm {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 44px;
}

.btn-qty-minus,
.btn-qty-plus {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 38px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.input-cantidad {
    width: 44px;
    text-align: center;
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    min-height: auto;
}

.select-talla {
    padding: 0.5rem 0.75rem;
    height: 44px;
    min-height: 44px;
    cursor: pointer;
}

.select-talla optgroup {
    background: var(--bg-card-solid);
    color: var(--accent-cyan);
    font-weight: 700;
}

.select-talla option {
    background: var(--bg-card-solid);
    color: var(--text-primary);
}

.row-subtotal {
    text-align: right;
    font-weight: 700;
    color: var(--accent-teal);
    font-size: 1.05rem;
}

.btn-remove-row {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-row:hover:not(:disabled) {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-remove-row:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
}

.add-row-wrapper {
    display: flex;
    justify-content: flex-start;
}

.btn-secondary {
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* --- Métodos de Pago (Transferencia Bancaria & Tarjeta Stripe) --- */
.payment-section {
    position: relative;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option-card {
    background: rgba(11, 18, 33, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.payment-option-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(11, 18, 33, 0.95);
    transform: translateY(-2px);
}

.payment-option-card.active {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.payment-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.payment-option-card.active .payment-radio-indicator {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.payment-option-card.active .payment-radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.payment-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-price-pill {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pill-transfer {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-card {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.payment-card-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-left: 2rem;
    line-height: 1.4;
}

/* Caja de Detalles para Transferencia Bancaria */
.transfer-info-box {
    margin-top: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInTransfer 0.3s ease;
}

@keyframes fadeInTransfer {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.transfer-box-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.transfer-box-head i {
    font-size: 1.35rem;
    color: var(--accent-cyan);
    margin-top: 0.15rem;
}

.transfer-box-head strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.transfer-box-head p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    margin: 0;
}

.transfer-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transfer-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.field-value-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(6, 10, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.field-static-value {
    background: rgba(6, 10, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.iban-text, .concept-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    word-break: break-all;
    letter-spacing: 0.5px;
}

.btn-copy-action {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-action:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: var(--accent-cyan);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-copy-action.copied {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
}

.field-help-text {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Banner de Fecha Límite dentro de las Cajas de Pago (Transferencia & Tarjeta) */
.deadline-banner-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(6, 182, 212, 0.14) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.deadline-banner-card .deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.38rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
    flex-shrink: 0;
}

.deadline-banner-card .deadline-text {
    color: #f1f5f9;
    font-size: 0.86rem;
    margin: 0;
    line-height: 1.35;
    font-weight: 500;
}

/* Caja Desplegable para Pago con Tarjeta */
.card-info-box {
    margin-top: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: fadeInCardInfo 0.3s ease;
}

@keyframes fadeInCardInfo {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-security-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

.card-security-badge i {
    font-size: 1.35rem;
    color: var(--accent-cyan);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.card-security-badge strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.card-security-badge p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.35;
}

/* --- Resumen y Checkout --- */
.checkout-summary {
    background: rgba(11, 18, 33, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-item.total-item {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.total-price-display {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-primary {
    width: 100%;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 1.1rem 1.5rem;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.5);
    filter: brightness(1.1);
}

.secure-checkout-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* --- Footer & Candado Discreto --- */
.footer {
    margin-top: auto;
    padding: 2.25rem 2rem;
    background: rgba(4, 7, 14, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.lock-icon-btn {
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    opacity: 0.25;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.65rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lock-icon-btn:hover {
    opacity: 0.95;
    color: var(--accent-cyan);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

/* --- Modales Generales --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    overflow: hidden; /* Evita que el modal entero genere scroll horizontal */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    transition: color 0.2s;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin: 0 auto 0.85rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal-actions-single {
    margin-top: 1.25rem;
}

.btn-cancel {
    width: 40%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.error-message {
    margin-top: 0.85rem;
    padding: 0.6rem 0.85rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Estilos Perfeccionados para Modal de Guía de Tallas (Sin Scroll y Perfectamente Ajustado) --- */
.size-modal-card {
    max-width: 900px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.size-modal-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: center; /* Centrado vertical para que la camiseta y tablas queden alineadas */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Caja de la camiseta: Ajustada exactamente al espacio disponible, centrada y sin desbordes */
.esquema-container {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 220px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.esquema-img {
    width: 100%;
    height: 100%;
    max-height: 195px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tables-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.size-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    background: rgba(11, 18, 33, 0.8);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.size-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.size-tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Indicador de deslizamiento para pantallas móviles */
.mobile-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.65rem;
    font-weight: 600;
    text-align: center;
}

/* Contenedor de la tabla: Sin scroll horizontal ni vertical */
.size-table-container {
    width: 100%;
    overflow: hidden; /* Cero barras de scroll */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    background: rgba(11, 18, 33, 0.5);
}

.size-guide-table {
    width: 100%;
    table-layout: fixed; /* Distribución exacta fija para que todo encaje sin desbordar */
    border-collapse: collapse;
    text-align: center;
}

.table-fixed-cols tr {
    height: 38px; /* Altura idéntica por fila para adultos y niños */
}

.table-fixed-cols th,
.table-fixed-cols td {
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.table-fixed-cols th {
    background: #0b1220;
    color: var(--accent-cyan);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.table-fixed-cols .col-title {
    text-align: left;
    background: rgba(11, 18, 33, 0.75);
    color: var(--accent-teal);
    font-weight: 700;
    width: 95px;
    padding-left: 0.75rem;
    font-size: 0.78rem;
}

/* En la tabla de adultos: 8 columnas de talla */
.size-guide-table:not(.table-ninos) th:not(.col-title),
.size-guide-table:not(.table-ninos) td:not(.col-title) {
    width: calc((100% - 95px) / 8);
}

/* En la tabla de niños: 5 columnas de talla repartidas equitativamente */
.table-ninos th:not(.col-title),
.table-ninos td:not(.col-title) {
    width: calc((100% - 95px) / 5);
}

.size-legend {
    background: rgba(11, 18, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
}

.legend-note {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}

/* --- Panel de Administración (Pantalla Completa) --- */
.admin-dashboard {
    min-height: 100vh;
    background: #060a12;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #0b1220;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
}

.admin-brand h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.badge-admin {
    font-size: 0.7rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.55rem 1.1rem;
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
}

.admin-container {
    padding: clamp(1rem, 3vw, 2rem);
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); }
.stat-value { font-size: 1.45rem; font-weight: 800; }

/* Tabla de Administración */
.table-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table-header-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header-bar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.table-header-bar p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.search-box { position: relative; width: 100%; max-width: 280px; }
.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    background: rgba(11, 18, 33, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem 0.55rem 2.2rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    width: 100%;
}

.search-box input:focus { border-color: var(--accent-cyan); }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.modern-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 680px; }

.modern-table th {
    background: #0b1220;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modern-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.modern-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.user-cell { display: flex; align-items: center; gap: 0.75rem; }

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.order-tag {
    display: inline-block;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.3rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Media Queries --- */
@media (max-width: 960px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-gallery-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .size-modal-body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .esquema-container {
        width: 100%;
        max-width: 210px;
        height: 180px;
        min-height: auto;
        margin: 0 auto;
        padding: 0.85rem;
    }
    .mobile-swipe-hint {
        display: flex;
    }
    /* En móvil: tabla desplazable suavemente con el dedo, sin cortes ni solapamientos */
    .size-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        background: rgba(11, 18, 33, 0.85);
        border: 1px solid var(--border-color);
        scrollbar-width: thin;
        scrollbar-color: rgba(6, 182, 212, 0.4) transparent;
    }
    .size-table-container::-webkit-scrollbar {
        height: 4px;
    }
    .size-table-container::-webkit-scrollbar-thumb {
        background: rgba(6, 182, 212, 0.4);
        border-radius: 4px;
    }
    .size-guide-table {
        width: max-content !important;
        min-width: 540px !important; /* Espacio holgado para las 8 tallas */
        table-layout: auto !important;
    }
    .table-ninos {
        min-width: 400px !important;
    }
    .table-fixed-cols tr {
        height: 42px !important;
    }
    .table-fixed-cols th,
    .table-fixed-cols td {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.86rem !important;
        white-space: nowrap !important;
        min-width: 52px !important;
        text-align: center !important;
    }
    /* Primera columna ANCHO/LARGO fijada a la izquierda al deslizar */
    .table-fixed-cols .col-title {
        position: sticky !important;
        left: 0 !important;
        z-index: 10 !important;
        background: #0b1220 !important;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.7);
        min-width: 95px !important;
        width: 95px !important;
        text-align: left !important;
        font-weight: 700;
        border-right: 1px solid rgba(6, 182, 212, 0.3);
    }
    .size-tab-btn {
        font-size: 0.82rem;
        padding: 0.6rem 0.45rem;
    }
}

@media (max-width: 600px) {
    .main-container {
        width: 95%;
        margin-top: 0.75rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "talla talla"
            "qty subtotal"
            "action action";
        gap: 0.75rem;
        padding: 1rem;
    }
    .select-group { grid-area: talla; }
    .qty-group { grid-area: qty; }
    .row-subtotal { grid-area: subtotal; align-self: center; text-align: right; }
    .action-group { grid-area: action; text-align: right; }
    .btn-remove-row { width: 100%; }

    .gallery-thumbs {
        flex-direction: row;
    }
    .thumb-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    .size-modal-card {
        padding: 1.25rem 1rem;
    }

    .deadline-banner,
    .deadline-banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
    }

    .card-security-badge {
        flex-direction: column;
        gap: 0.5rem;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .field-value-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .btn-copy-action {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }
}

