/* ========================================================== */
/* AURUM STUDIO — HOJA DE ESTILOS PRINCIPAL                   */
/* ========================================================== */

/* ---------------------------------------------------------- */
/* VARIABLES CSS — POR DEFECTO TEMA CLARO (LIGHT)             */
/* ---------------------------------------------------------- */
:root {
    --bg-body: #f8fafc;
    --surface-1: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: #e2e8f0;
    --border-subtle: #e2e8f0;
    --border-highlight: #cbd5e1;
    --gold-primary: #b8952b;
    --gold-hover: #9c7c1f;
    --gold-glow: rgba(184, 149, 43, 0.18);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --header-bg: rgba(255, 255, 255, 0.92);
    --modal-bg: #ffffff;
    --modal-backdrop: rgba(15, 23, 42, 0.6);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------- */
/* VARIABLES CSS — TEMA OSCURO (DARK)                         */
/* ---------------------------------------------------------- */
[data-theme="dark"] {
    --bg-body: #0a0c0f;
    --surface-1: #12151b;
    --surface-2: #181d26;
    --surface-3: #222936;
    --border-subtle: #262d3d;
    --border-highlight: #3b465e;
    --gold-primary: #d4af37;
    --gold-hover: #b8952b;
    --gold-glow: rgba(212, 175, 55, 0.22);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --header-bg: rgba(10, 12, 15, 0.88);
    --modal-bg: #13171f;
    --modal-backdrop: rgba(3, 5, 8, 0.85);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------------------------------------------------------- */
/* TOP ANNOUNCEMENT BAR                                       */
/* ---------------------------------------------------------- */
.announcement-bar {
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    padding: 9px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

[data-theme="dark"] .announcement-bar {
    background: linear-gradient(90deg, #11141a 0%, #1e1910 50%, #11141a 100%);
    color: #e2e8f0;
}

.announcement-bar strong {
    color: var(--gold-primary);
}

/* ---------------------------------------------------------- */
/* HEADER & NAVEGACIÓN                                        */
/* ---------------------------------------------------------- */
header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.brand-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--gold-primary);
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--gold-primary);
    border: 1px solid var(--border-subtle);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-perks {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-perk {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-perk svg {
    color: var(--gold-primary);
}

/* Selector de Tema */
.theme-toggle-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.theme-icon {
    width: 16px;
    height: 16px;
}

/* ---------------------------------------------------------- */
/* CONTENEDOR Y LAYOUT PRODUCTO                               */
/* ---------------------------------------------------------- */
.container {
    max-width: 1240px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: start;
}

/* Galería */
.gallery-container {
    position: sticky;
    top: 105px;
    display: flex;
    gap: 16px;
}

.thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
}

.thumb-btn {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-subtle);
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn:hover, .thumb-btn.active {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

.main-display {
    flex: 1;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 600px;
    position: relative;
    box-shadow: var(--card-shadow);
}

.main-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-display:hover img {
    transform: scale(1.04);
}

.tag-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--surface-1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Información de Producto */
.product-info h1 {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.stars {
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.review-count {
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.price-wrapper {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.current-price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-pill {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.28);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.tax-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.short-pitch {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Variantes */
.variant-block {
    margin-bottom: 24px;
}

.variant-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.size-guide-link {
    color: var(--gold-primary);
    text-decoration: none;
    cursor: pointer;
    text-transform: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
    color: var(--text-primary);
}

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

.color-chip.active {
    border-color: var(--gold-primary);
    background: rgba(184, 149, 43, 0.1);
    color: var(--gold-primary);
    font-weight: 600;
    box-shadow: 0 0 14px var(--gold-glow);
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.size-chips {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.size-chip {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    padding: 12px 4px;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    user-select: none;
    color: var(--text-primary);
}

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

.size-chip.active {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: #ffffff;
}

[data-theme="dark"] .size-chip.active {
    color: #000000;
}

/* Botones de compra */
.buy-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    width: 125px;
    height: 56px;
    flex-shrink: 0;
}

.qty-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-display {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.cta-checkout-btn {
    flex: 1;
    height: 56px;
    background: var(--gold-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px var(--gold-glow);
}

[data-theme="dark"] .cta-checkout-btn {
    color: #0b0d11;
}

.cta-checkout-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(184, 149, 43, 0.35);
}

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

/* Badges de Confianza */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    margin-top: 16px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
}

.trust-item svg {
    color: var(--gold-primary);
    width: 22px;
    height: 22px;
}

.trust-item span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Acordeones */
.accordion-section {
    margin-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

.acc-item {
    border-bottom: 1px solid var(--border-subtle);
}

.acc-header {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.acc-header:hover {
    color: var(--gold-primary);
}

.acc-body {
    padding-bottom: 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}

.acc-body.open {
    display: block;
}

/* Reseñas */
.reviews-section {
    margin-top: 90px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 60px;
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.review-card .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gold-primary);
    border: 1px solid var(--border-subtle);
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.verified-badge {
    font-size: 0.72rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------- */
/* MODAL POPUP DE CHECKOUT IN-SITE                           */
/* ---------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-backdrop);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-backdrop.active {
    display: flex;
}

.checkout-modal {
    background: var(--modal-bg);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .checkout-modal {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--modal-bg);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 0;           /* Elimina la caja de altura de línea tipográfica */
    padding: 0;               /* Quita el padding por defecto del botón */
    padding-bottom: 2px;      /* Compensa la métrica de la tipografía para centrado óptico milimétrico */
    transition: var(--transition);
    flex-shrink: 0;
}

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

.modal-body {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 32px;
}

.checkout-form h4, .order-summary-box h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-primary);
    margin-bottom: 14px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.input-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.input-group input {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Resumen en Checkout */
.order-summary-box {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-item-card {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.summary-thumb {
    width: 64px;
    height: 74px;
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-info {
    flex: 1;
    min-width: 0;
}

.summary-info h5 {
    font-size: 0.92rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-tags {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.summary-price {
    font-weight: 700;
    color: var(--gold-primary);
}

/* Cupón de descuento */
.coupon-wrapper {
    margin-bottom: 18px;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
}

.coupon-input-row input {
    flex: 1;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    min-width: 0;
}

.coupon-btn {
    background: var(--surface-3);
    border: 1px solid var(--border-highlight);
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.coupon-btn:hover {
    background: var(--gold-primary);
    color: #fff;
}

[data-theme="dark"] .coupon-btn:hover {
    color: #000;
}

.coupon-status {
    font-size: 0.78rem;
    margin-top: 6px;
    display: none;
}

.coupon-status.applied {
    color: var(--success);
    display: block;
}

.coupon-status.invalid {
    color: var(--danger);
    display: block;
}

/* Desglose */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.breakdown-row.highlight {
    color: var(--success);
}

.breakdown-row.total-row {
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-row.total-row span:last-child {
    color: var(--gold-primary);
    font-size: 1.35rem;
}

/* Métodos de Pago Modal */
.modal-payment-section {
    margin-top: 24px;
}

.payment-methods-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.p-tab {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.p-tab.active {
    border-color: var(--gold-primary);
    background: rgba(184, 149, 43, 0.12);
    color: var(--gold-primary);
}

.p-panel {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.submit-order-btn {
    width: 100%;
    background: var(--gold-primary);
    color: #ffffff;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
}

[data-theme="dark"] .submit-order-btn {
    color: #0b0d11;
}

.submit-order-btn:hover {
    background: var(--gold-hover);
}

.submit-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-alert {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 14px;
    display: none;
}

.checkout-alert.success {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid var(--success);
    color: #10b981;
    display: block;
}

.checkout-alert.error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid var(--danger);
    color: #ef4444;
    display: block;
}

/* 3D-Secure Embedded Iframe Modal */
.tds-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.tds-box {
    background: #fff;
    border-radius: 12px;
    width: 440px;
    max-width: 100%;
    padding: 24px 20px;
    color: #111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.tds-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #111;
}

.tds-box p {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 20px;
}

.tds-otp-input {
    width: 180px;
    max-width: 100%;
    padding: 10px;
    font-size: 1.3rem;
    letter-spacing: 6px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 18px;
    outline: none;
}

.tds-confirm-btn {
    background: #00438c;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
}

/* Guía de Tallas */
.size-modal-box {
    background: var(--modal-bg);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.size-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.size-table {
    width: 100%;
    min-width: 380px;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.88rem;
}

.size-table th, .size-table td {
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    text-align: center;
    color: var(--text-primary);
}

.size-table th {
    background: var(--surface-2);
    color: var(--gold-primary);
}

/* ---------------------------------------------------------- */
/* MEDIA QUERIES RESPONSIVE                                   */
/* ---------------------------------------------------------- */
@media (max-width: 980px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .gallery-container {
        position: static;
        flex-direction: column-reverse;
    }
    .thumbs-col {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .main-display {
        height: 420px;
    }
    .modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    header {
        padding: 14px 20px;
    }
    .header-perks {
        display: none;
    }
}

/* Móviles (< 768px) */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.72rem;
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .brand-logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .container {
        margin: 20px auto 50px;
        padding: 0 16px;
    }
    .main-display {
        height: 350px;
    }
    .product-info h1 {
        font-size: 1.85rem;
    }
    .price-wrapper {
        padding: 14px 16px;
    }
    .current-price {
        font-size: 1.75rem;
    }
    .original-price {
        font-size: 1.1rem;
    }
    .size-chips {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .buy-actions {
        flex-direction: column;
        gap: 12px;
    }
    .qty-stepper {
        width: 100%;
        height: 50px;
    }
    .cta-checkout-btn {
        height: 54px;
        font-size: 1rem;
        padding: 20px;
    }

    /* Modal Bottom Sheet */
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .checkout-modal {
        max-width: 100%;
        width: 100%;
        height: 94vh;
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px 16px 36px;
        gap: 20px;
        display: flex;
        flex-direction: column-reverse;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-methods-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .p-tab {
        padding: 12px;
        font-size: 0.88rem;
    }

    .p-panel {
        padding: 14px 12px;
    }

    .coupon-input-row {
        flex-direction: column;
    }

    .coupon-btn {
        height: 44px;
        width: 100%;
    }

    .order-summary-box {
        padding: 16px;
    }
}

/* Móviles muy pequeños (< 420px) */
@media (max-width: 420px) {
    .main-display {
        height: 300px;
    }
    .product-info h1 {
        font-size: 1.6rem;
    }
    .color-chips {
        flex-direction: column;
    }
    .color-chip {
        width: 100%;
    }
}

/* ---------------------------------------------------------- */
/* FOOTER                                                     */
/* ---------------------------------------------------------- */
.site-footer {
    background-color: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 24px 28px;
    margin-top: 80px;
    transition: var(--transition);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-heading {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 24px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--gold-primary);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom {
    max-width: 1240px;
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 36px 16px 24px;
        margin-top: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}