/* =========================================================================
   Polígono Thor — Gift Cards v1.0.0
   style.css — Portal público
   Diseño oscuro premium con acentos dorados — poligonothor.com
   ========================================================================= */

/* ── Variables globales ─────────────────────────────────────────────────── */
#thgc-wrap {
    --bg:         #0A0A0A;
    --surface:    #131313;
    --surface2:   #1B1B1B;
    --surface3:   #232323;
    --border:     rgba(255,255,255,0.08);
    --border2:    rgba(255,255,255,0.14);
    --gold:       #D4A017;
    --gold-dim:   rgba(212,160,23,0.12);
    --gold-glow:  rgba(212,160,23,0.30);
    --gold-text:  #F5C842;
    --text:       #F0F0F0;
    --muted:      #888888;
    --muted2:     #555555;
    --success:    #10B981;
    --danger:     #EF4444;
    --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 4px 24px rgba(0,0,0,0.5);
    --trans:      0.2s ease;
}

/* ── Reset scoped ───────────────────────────────────────────────────────── */
#thgc-wrap *, #thgc-wrap *::before, #thgc-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Contenedor raíz ────────────────────────────────────────────────────── */
#thgc-wrap {
    font-family: var(--font);
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 48px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Neutralizar padding/margin que Elementor inyecta al contenedor */
.elementor-widget-shortcode #thgc-wrap,
.elementor-widget-text-editor #thgc-wrap {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
}
.elementor-section.elementor-section-full_width #thgc-wrap {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-lg);
}

/* ── Toast de error global ──────────────────────────────────────────────── */
.thgc-error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: #1a0a0a;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(239,68,68,0.3);
}
.thgc-error-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.thgc-hero {
    padding: 48px 40px 36px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212,160,23,0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.thgc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.013) 0, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.013) 0, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 9px);
    pointer-events: none;
}

.thgc-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    position: relative;
}

.thgc-hero-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 12px;
    position: relative;
}

.thgc-hero-sub {
    font-size: 15px;
    color: var(--muted);
    max-width: 480px;
    width: 100%;
    margin: 0 auto 20px;
    line-height: 1.5;
    position: relative;
    text-align: center;
}

.thgc-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--success);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    position: relative;
}

.thgc-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: thgc-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes thgc-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* ── PROGRESS BAR ───────────────────────────────────────────────────────── */
.thgc-progress {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.thgc-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.thgc-prog-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: all var(--trans);
    background: var(--surface2);
}

.thgc-prog-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.5px;
    transition: color var(--trans);
}

.thgc-prog-step.active .thgc-prog-num {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    background: var(--gold-dim);
}
.thgc-prog-step.active .thgc-prog-label { color: var(--gold-text); }

.thgc-prog-step.done .thgc-prog-num {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 900;
}
.thgc-prog-step.done .thgc-prog-num::after { content: '✓'; font-size: 14px; }
.thgc-prog-step.done .thgc-prog-num > * { display: none; }
.thgc-prog-step.done .thgc-prog-label { color: var(--gold); }

.thgc-prog-line {
    flex: 1;
    height: 2px;
    background: var(--border2);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.4s;
}
.thgc-prog-line.done { background: var(--gold); }

/* ── PANELS ─────────────────────────────────────────────────────────────── */
.thgc-panel { padding: 28px 32px; }
.thgc-panel--hidden { display: none !important; }

.thgc-panel-header {
    margin-bottom: 28px;
}
.thgc-panel-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.thgc-panel-header p {
    font-size: 14px;
    color: var(--muted);
}

.thgc-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ── SECTION LABELS ─────────────────────────────────────────────────────── */
.thgc-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.thgc-section-label--combos {
    margin-top: 36px;
    margin-bottom: 20px;
    color: var(--gold);
}

/* Espacio extra arriba del grid para que los badges no tapen el label */
.thgc-combos-grid {
    padding-top: 10px;
}

.thgc-form-section { margin-bottom: 28px; }

/* ── MONTOS GRID ────────────────────────────────────────────────────────── */
.thgc-montos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.thgc-monto-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--trans), background var(--trans), transform var(--trans), box-shadow var(--trans);
    position: relative;
    user-select: none;
    outline: none;
}
.thgc-monto-card:hover {
    border-color: rgba(212,160,23,0.5);
    background: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.thgc-monto-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.thgc-monto-card:focus-visible { box-shadow: 0 0 0 3px var(--gold-glow); }

.thgc-monto-valor {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.thgc-monto-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.thgc-monto-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
}
.thgc-monto-card.selected .thgc-monto-check { display: block; }

/* ── CUSTOM AMOUNT ──────────────────────────────────────────────────────── */
.thgc-custom-amount-wrap {
    background: var(--surface);
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
}
.thgc-label-sm {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.thgc-input-prefix-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    overflow: hidden;
}
.thgc-input-prefix {
    padding: 10px 14px;
    background: var(--surface3);
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
    border-right: 1px solid var(--border2);
}
.thgc-input-number {
    border: none !important;
    background: transparent !important;
    flex: 1;
    padding: 10px 14px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}
.thgc-input-number:focus { outline: none; }
.thgc-hint-sm {
    display: block;
    font-size: 11px;
    color: var(--muted2);
    margin-top: 8px;
}

/* ── COMBOS GRID ────────────────────────────────────────────────────────── */
.thgc-combos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.thgc-combo-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--trans), background var(--trans), transform var(--trans), box-shadow var(--trans);
    user-select: none;
    outline: none;
}
.thgc-combo-card:hover {
    border-color: rgba(212,160,23,0.5);
    background: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.thgc-combo-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.thgc-combo-badge {
    position: absolute;
    top: -9px;
    left: 14px;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.thgc-combo-nombre {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    margin-top: 6px;
}
.thgc-combo-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.4;
}
.thgc-combo-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.thgc-combo-precio {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-text);
}
.thgc-combo-original {
    font-size: 13px;
    color: var(--muted2);
    text-decoration: line-through;
}
.thgc-combo-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.thgc-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.thgc-chip--qty {
    background: rgba(255,255,255,0.06);
    color: var(--muted);
    border: 1px solid var(--border);
}
.thgc-chip--save {
    background: rgba(16,185,129,0.12);
    color: var(--success);
    border: 1px solid rgba(16,185,129,0.2);
}
.thgc-combo-check {
    display: none;
    margin-top: 10px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}
.thgc-combo-card.selected .thgc-combo-check { display: block; }

/* ── DISEÑOS GRID ───────────────────────────────────────────────────────── */
.thgc-disenos-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.thgc-diseno-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color var(--trans);
    outline: none;
}
.thgc-diseno-opt:hover,
.thgc-diseno-opt:focus-visible { border-color: rgba(212,160,23,0.4); }
.thgc-diseno-opt.selected { border-color: var(--gold); }

.thgc-diseno-thumb {
    width: 72px;
    height: 46px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--trans), box-shadow var(--trans);
}
.thgc-diseno-opt.selected .thgc-diseno-thumb {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.thgc-diseno-label {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
}
.thgc-diseno-opt.selected .thgc-diseno-label { color: var(--gold); }

/* ── CARD LIVE PREVIEW ──────────────────────────────────────────────────── */
.thgc-preview-container {
    margin-bottom: 28px;
}
.thgc-preview-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.thgc-card-live {
    border-radius: 14px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.thgc-card-live--full {
    min-height: 190px;
    padding: 36px;
}

/* Diseños de tarjeta */
.thgc-card-live[data-diseno="dorado"] {
    background: linear-gradient(135deg, #1a1200 0%, #3d2b00 100%);
    border: 1px solid #D4A017;
}
.thgc-card-live[data-diseno="noche"] {
    background: linear-gradient(135deg, #080808 0%, #1a1a1a 100%);
    border: 1px solid #C0C0C0;
}
.thgc-card-live[data-diseno="rojo"] {
    background: linear-gradient(135deg, #1a0004 0%, #3d0010 100%);
    border: 1px solid #FF4B6E;
}
.thgc-card-live[data-diseno="verde"] {
    background: linear-gradient(135deg, #001a08 0%, #003318 100%);
    border: 1px solid #4CAF50;
}
.thgc-card-live[data-diseno="violeta"] {
    background: linear-gradient(135deg, #0d0018 0%, #1e0040 100%);
    border: 1px solid #9C27B0;
}

/* Colores de acento según diseño */
.thgc-card-live[data-diseno="dorado"]  .thgc-live-monto,
.thgc-card-live[data-diseno="dorado"]  .thgc-live-brand,
.thgc-card-live[data-diseno="dorado"]  .thgc-live-code-label { color: #D4A017; }

.thgc-card-live[data-diseno="noche"]   .thgc-live-monto,
.thgc-card-live[data-diseno="noche"]   .thgc-live-brand,
.thgc-card-live[data-diseno="noche"]   .thgc-live-code-label { color: #C0C0C0; }

.thgc-card-live[data-diseno="rojo"]    .thgc-live-monto,
.thgc-card-live[data-diseno="rojo"]    .thgc-live-brand,
.thgc-card-live[data-diseno="rojo"]    .thgc-live-code-label { color: #FF4B6E; }

.thgc-card-live[data-diseno="verde"]   .thgc-live-monto,
.thgc-card-live[data-diseno="verde"]   .thgc-live-brand,
.thgc-card-live[data-diseno="verde"]   .thgc-live-code-label { color: #4CAF50; }

.thgc-card-live[data-diseno="violeta"] .thgc-live-monto,
.thgc-card-live[data-diseno="violeta"] .thgc-live-brand,
.thgc-card-live[data-diseno="violeta"] .thgc-live-code-label { color: #CE93D8; }

/* Patrón guilloché */
.thgc-live-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 10px);
}

.thgc-live-brand {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
}
.thgc-live-monto {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.thgc-live-monto--lg { font-size: 40px; }
.thgc-live-personas {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thgc-live-sep { color: rgba(255,255,255,0.3); }
.thgc-live-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 18px;
}
.thgc-live-code-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
}
.thgc-live-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
}

/* ── FORMULARIOS ────────────────────────────────────────────────────────── */
.thgc-form-row { display: grid; gap: 16px; }
.thgc-form-row--2 { grid-template-columns: 1fr 1fr; }
.thgc-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.thgc-form-group { display: flex; flex-direction: column; gap: 6px; }

.thgc-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.thgc-required { color: var(--gold); font-size: 13px; }

.thgc-input {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    transition: border-color var(--trans), box-shadow var(--trans);
    width: 100%;
    font-family: var(--font);
}
.thgc-input:focus {
    outline: none;
    border-color: rgba(212,160,23,0.5);
    box-shadow: 0 0 0 3px var(--gold-dim);
}
.thgc-input::placeholder { color: var(--muted2); }

.thgc-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.thgc-field-hint {
    font-size: 11px;
    color: var(--muted2);
}

.thgc-msg-counter {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 400;
}

/* ── ENTREGA OPTIONS ────────────────────────────────────────────────────── */
.thgc-entrega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.thgc-entrega-opt {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--trans);
    outline: none;
}
.thgc-entrega-opt:hover {
    border-color: rgba(212,160,23,0.4);
    background: var(--gold-dim);
}
.thgc-entrega-opt.active {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.thgc-entrega-icono { font-size: 24px; margin-bottom: 8px; }
.thgc-entrega-titulo { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.thgc-entrega-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* ── FECHA DE ENVÍO ─────────────────────────────────────────────────────── */
.thgc-fecha-opts {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}
.thgc-radio-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}
.thgc-radio-opt input[type="radio"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}
.thgc-fecha-picker {
    color-scheme: dark;
}

/* ── PAGO OPTIONS ───────────────────────────────────────────────────────── */
.thgc-pago-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.thgc-pago-opt {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--trans);
    outline: none;
}
.thgc-pago-opt:hover {
    border-color: rgba(212,160,23,0.4);
    background: var(--gold-dim);
}
.thgc-pago-opt.active {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.thgc-pago-icono { font-size: 20px; }
.thgc-pago-label { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── TÉRMINOS ───────────────────────────────────────────────────────────── */
.thgc-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.thgc-checkbox-wrap input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.thgc-link { color: var(--gold); text-decoration: none; }
.thgc-link:hover { text-decoration: underline; }

/* ── RESUMEN BOX ────────────────────────────────────────────────────────── */
.thgc-resumen-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}
.thgc-resumen-titulo {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.thgc-resumen-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.thgc-resumen-fila:last-child { border-bottom: none; }
.thgc-resumen-fila--ahorro { color: var(--success); }
.thgc-resumen-ahorro-val { color: var(--success); font-weight: 700; }
.thgc-resumen-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    padding-top: 12px !important;
}

/* ── BOTONES ────────────────────────────────────────────────────────────── */
.thgc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--trans);
    font-family: var(--font);
    text-decoration: none;
}
.thgc-btn-next {
    background: var(--gold);
    color: #000;
    min-width: 160px;
    justify-content: center;
}
.thgc-btn-next:hover {
    background: var(--gold-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--gold-glow);
}
.thgc-btn-back {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
}
.thgc-btn-back:hover {
    background: var(--surface2);
    color: var(--text);
}
.thgc-btn-comprar {
    background: var(--gold);
    color: #000;
    padding: 16px 36px;
    font-size: 16px;
    min-width: 220px;
    justify-content: center;
}
.thgc-btn-comprar:hover {
    background: var(--gold-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--gold-glow);
}
.thgc-btn-comprar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.thgc-btn-secondary {
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border2);
}
.thgc-btn-secondary:hover { color: var(--text); background: var(--surface3); }
.thgc-btn-arrow { font-size: 16px; }

/* Spinner */
.thgc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: thgc-spin 0.7s linear infinite;
}
@keyframes thgc-spin { to { transform: rotate(360deg); } }

/* ── CONFIRMACIÓN ───────────────────────────────────────────────────────── */
.thgc-confirmacion {
    text-align: center;
    padding: 20px 0 32px;
}
.thgc-conf-check {
    margin-bottom: 20px;
}
.thgc-checkmark {
    width: 60px;
    height: 60px;
}
.thgc-checkmark-circle {
    stroke: var(--success);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    animation: thgc-stroke 0.6s cubic-bezier(0.65,0,0.45,1) 0.2s forwards;
}
.thgc-checkmark-check {
    stroke: var(--success);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: thgc-stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.7s forwards;
}
@keyframes thgc-stroke {
    100% { stroke-dashoffset: 0; }
}
.thgc-conf-titulo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.thgc-conf-msg {
    font-size: 15px;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 20px;
    line-height: 1.5;
}
.thgc-conf-precio-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold-dim);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: var(--radius);
    padding: 12px 28px;
}
.thgc-conf-precio-label { font-size: 13px; color: var(--muted); }
.thgc-conf-precio { font-size: 24px; font-weight: 900; color: var(--gold-text); }

/* ── INSTRUCCIONES DE PAGO ──────────────────────────────────────────────── */
.thgc-instrucciones-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
}
.thgc-instr-titulo {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-text);
    margin-bottom: 16px;
}
.thgc-instr-lista {
    padding-left: 20px;
}
.thgc-instr-lista li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 4px;
}
.thgc-instr-lista li strong { color: var(--text); }

/* ── GARANTÍAS ──────────────────────────────────────────────────────────── */
.thgc-garantia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.thgc-garantia-item {
    text-align: center;
    padding: 20px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.thgc-garantia-icono { font-size: 28px; margin-bottom: 8px; }
.thgc-garantia-txt { font-size: 12px; color: var(--muted); line-height: 1.4; }

.thgc-conf-acciones {
    text-align: center;
}

/* ── AVISO WOOCOMMERCE ──────────────────────────────────────────────────── */
.thgc-wc-pago-aviso {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(16,185,129,0.07);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 4px;
}
.thgc-wc-pago-icono { font-size: 28px; flex-shrink: 0; }
.thgc-wc-pago-aviso strong { color: var(--success); display: block; margin-bottom: 4px; font-size: 14px; }
.thgc-wc-pago-aviso p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }

/* ── BALANCE & CANJE ────────────────────────────────────────────────────── */
.thgc-tool-wrap {
    padding: 32px;
}
.thgc-tool-hero {
    text-align: center;
    margin-bottom: 28px;
}
.thgc-tool-hero h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.thgc-tool-hero p { font-size: 14px; color: var(--muted); }

.thgc-code-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.thgc-code-input-wrap .thgc-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.thgc-balance-card {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.thgc-bal-codigo {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-text);
    margin-bottom: 16px;
}
.thgc-bal-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.thgc-bal-row:last-child { border-bottom: none; }
.thgc-bal-saldo { font-weight: 800; color: var(--success); font-size: 18px; }

.thgc-alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}
.thgc-alert--success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--success);
}
.thgc-alert--error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    color: var(--danger);
}

.thgc-badge {
    font-weight: 700;
    font-size: 13px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .thgc-hero      { padding: 32px 20px 24px; }
    .thgc-panel     { padding: 20px 18px; }
    .thgc-progress  { padding: 14px 18px; }

    .thgc-hero-title { font-size: 28px; }

    .thgc-form-row--2,
    .thgc-form-row--3 { grid-template-columns: 1fr; }

    .thgc-entrega-grid  { grid-template-columns: 1fr; }
    .thgc-garantia-grid { grid-template-columns: 1fr; }
    .thgc-montos-grid   { grid-template-columns: repeat(2, 1fr); }
    .thgc-combos-grid   { grid-template-columns: 1fr; }
    .thgc-pago-grid     { flex-direction: column; }

    .thgc-prog-label { display: none; }
    .thgc-prog-step  { min-width: 40px; }

    .thgc-panel-footer { flex-direction: column; }
    .thgc-btn { width: 100%; justify-content: center; }
    .thgc-code-input-wrap { flex-direction: column; }
}

@media (max-width: 480px) {
    .thgc-montos-grid { grid-template-columns: repeat(2, 1fr); }
    .thgc-disenos-grid { gap: 8px; }
    .thgc-diseno-thumb { width: 60px; height: 38px; }
}
