/* Gift card y vale de regalo — /gift-card-vale-de-regalo-gratis/ */
:root {
  --gc-page-bg: #0c0a09;
  --gc-panel: #171412;
  --gc-border: #3b332d;
  --gc-accent: #fcd34d;
}

html { overflow-x: clip; scroll-behavior: smooth; }
body.gc-page { margin: 0; overflow-x: clip; background: var(--gc-page-bg); color: #fafaf9; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.gc-page *, .gc-page *::before, .gc-page *::after { box-sizing: border-box; }
.gc-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.gc-page [hidden] { display: none !important; }

/* Hero */
.gc-hero { padding: 112px 0 68px; background: radial-gradient(circle at 85% 15%, rgba(252, 211, 77, .12), transparent 32%), #0c0a09; border-bottom: 1px solid #29231f; }
.gc-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.gc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: #d6d3d1; font-size: .86rem; margin-bottom: 26px; }
.gc-breadcrumb a { color: var(--gc-accent); text-decoration: underline; text-underline-offset: 3px; }
.gc-eyebrow, .gc-kicker { color: var(--gc-accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gc-hero h1 { margin: 12px 0 20px; max-width: 760px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; color: #fff; }
.gc-hero h1 span { color: var(--gc-accent); }
.gc-lead { max-width: 680px; margin: 0 0 24px; color: #e7e5e4; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; }
.gc-hero__proof { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gc-hero__proof span { padding: 8px 11px; border: 1px solid #51463d; border-radius: 999px; background: #171412; color: #f5f5f4; font-size: .82rem; font-weight: 700; }
.gc-hero__image { margin: 0; border: 1px solid #4a4038; border-radius: 24px; overflow: hidden; background: #171412; box-shadow: 0 28px 70px rgba(0,0,0,.38); }
.gc-hero__image img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 720; object-fit: cover; }
.gc-hero__image figcaption { padding: 11px 16px; color: #d6d3d1; font-size: .8rem; line-height: 1.5; }

.gc-answer { background: #fffbeb; color: #451a03; border-block: 1px solid #fde68a; }
.gc-answer p { margin: 0; padding: 18px 0; line-height: 1.65; }
.gc-tool-section, .gc-content-section { padding: 78px 0; }
.gc-content-section--soft { background: #151210; border-block: 1px solid #2f2925; }
.gc-section-heading { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.gc-section-heading h2, .gc-copy h2, .gc-final-cta h2 { margin: 8px 0 12px; color: #fff; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.035em; }
.gc-section-heading p:last-child, .gc-copy p, .gc-copy li, .gc-final-cta p { color: #d6d3d1; line-height: 1.75; }
.gc-section-heading a, .gc-copy a, .gc-final-cta p a, .gc-tips a, .gc-note-center a { color: var(--gc-accent); text-decoration: underline; text-underline-offset: 3px; }
.gc-note-center { margin: 22px auto 0; max-width: 760px; color: #d6d3d1; text-align: center; line-height: 1.7; }

/* Editor */
.gc-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.gc-editor, .gc-preview-panel { min-width: 0; border: 1px solid var(--gc-border); border-radius: 22px; background: var(--gc-panel); }
.gc-editor { padding: 24px; }
.gc-editor fieldset { min-width: 0; margin: 0; padding: 0 0 26px; border: 0; }
.gc-editor fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--gc-border); }
.gc-editor legend { padding: 0; color: #fff; font-size: 1.15rem; font-weight: 800; }
.gc-fields { display: grid; gap: 16px; margin-top: 16px; }
.gc-fields--two { grid-template-columns: 1fr 1fr; }
.gc-fields--three { grid-template-columns: 1fr 1fr auto; align-items: start; }
.gc-wide { grid-column: 1 / -1; }
.gc-editor label { display: grid; gap: 7px; min-width: 0; color: #f5f5f4; font-size: .85rem; font-weight: 700; }
.gc-editor small, .gc-hint { color: #d6d3d1; font-weight: 500; font-size: .78rem; line-height: 1.5; }
.gc-hint { margin: 14px 0 8px; }
.gc-editor input:not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), .gc-editor textarea, .gc-editor select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #62564d; border-radius: 10px; background: #fff; color: #1c1917; font: inherit; font-weight: 500; }
.gc-editor textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.gc-editor input::placeholder, .gc-editor textarea::placeholder { color: #6b6460; }
.gc-editor input[type="file"] { width: 100%; max-width: 100%; color: #f5f5f4; font: inherit; font-size: .8rem; font-weight: 500; }
.gc-editor input:focus-visible, .gc-editor textarea:focus-visible, .gc-editor select:focus-visible, .gc-btn:focus-visible, .gc-chip:focus-visible, .gc-link-btn:focus-visible, .gc-related a:focus-visible, .gc-faq summary:focus-visible { outline: 3px solid var(--gc-accent); outline-offset: 2px; }
.gc-file-label { display: grid; gap: 7px; margin-top: 16px; padding: 14px; border: 1px dashed #74675d; border-radius: 12px; background: #211d1a; }
.gc-file-label .gc-link-btn { justify-self: start; }
.gc-color-field { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid #62564d; border-radius: 10px; background: #fff; color: #292524; }
.gc-color-field input { width: 52px; height: 32px; padding: 0; border: 0; background: transparent; }
.gc-editor .gc-radio { display: flex; align-items: center; gap: 9px; min-height: 40px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.gc-radio input, .gc-code-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gc-accent); flex: none; }
.gc-radio-group { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; }
.gc-radio-group--cards { display: grid; gap: 8px; margin-top: 0; }
.gc-radio-group--cards .gc-radio { padding: 8px 12px; border: 1px solid #4b423b; border-radius: 10px; background: #211d1a; }
.gc-radio-group--cards .gc-radio:has(input:checked) { border-color: var(--gc-accent); background: #2a2417; }
.gc-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.gc-count { display: block; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chip { min-height: 40px; padding: 8px 13px; border: 1px solid #74675d; border-radius: 999px; background: #332d28; color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.gc-chip:hover { border-color: var(--gc-accent); }
.gc-chip[aria-pressed="true"] { background: #fcd34d; border-color: #fcd34d; color: #3b2a04; }
.gc-chip[aria-pressed="true"]::before { content: "✓ "; }
.gc-cond-label { margin-top: 14px; }
.gc-field-btn { padding-top: 26px; }
.gc-link-btn { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: #fca5a5; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gc-qr-status { margin: 10px 0 0; color: #d6d3d1; font-size: .8rem; line-height: 1.5; }

/* Códigos */
.gc-codes-box { margin-top: 16px; padding: 14px; border: 1px solid #4b423b; border-radius: 14px; background: #1c1816; }
.gc-codes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.gc-codes-head strong { color: #fff; font-size: .92rem; }
.gc-codes-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-codes { display: grid; gap: 6px; max-height: 320px; margin: 12px 0 0; padding: 0; overflow: auto; list-style: none; }
.gc-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid #3b332d; border-radius: 10px; background: #231f1c; }
.gc-code-row--used { opacity: .78; }
.gc-code-row--used .gc-code { text-decoration: line-through; }
.gc-code { min-width: 0; color: #fef3c7; font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace; font-size: .95rem; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
.gc-editor .gc-code-check { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.gc-warning { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #f59e0b; border-radius: 0 10px 10px 0; background: #2a2010; color: #fde68a; font-size: .8rem; line-height: 1.55; }

/* Botones */
.gc-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-size: .9rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.gc-btn:hover { transform: translateY(-1px); }
.gc-btn--primary { background: var(--gc-accent); color: #3b2a04; border-color: var(--gc-accent); }
.gc-btn--secondary { background: #292524; color: #fff; border-color: #786b61; }
.gc-btn--quiet { background: transparent; color: #e7e5e4; border-color: #51463d; }
.gc-btn--small { min-height: 40px; padding: 8px 12px; font-size: .8rem; background: #292524; color: #fff; border-color: #786b61; }
.gc-btn--tiny { min-height: 36px; padding: 6px 10px; font-size: .76rem; background: #292524; color: #fff; border-color: #786b61; }
.gc-btn--danger { color: #fecaca; border-color: #7f1d1d; }
.gc-btn--publish { background: #10b981; color: #052e1f; border-color: #10b981; }
.gc-btn--publish:hover { background: #34d399; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.gc-bridge { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid #1f7a5c; border-radius: 14px; background: #0f1f19; }
.gc-bridge p { margin: 0; color: #d6d3d1; font-size: .84rem; line-height: 1.6; }
.gc-bridge strong { color: #fff; }
.gc-bridge .gc-btn { justify-self: start; }
.gc-privacy { color: #d6d3d1; font-size: .78rem; line-height: 1.6; }
.gc-status { min-height: 1.4em; color: var(--gc-accent); font-size: .84rem; font-weight: 700; line-height: 1.5; }
.gc-status--error { color: #fca5a5; }

/* Vista previa */
.gc-preview-panel { position: sticky; top: 88px; padding: 14px; overflow: hidden; }
.gc-preview-bar { display: flex; justify-content: space-between; gap: 8px; padding: 2px 2px 12px; color: #e7e5e4; font-size: .8rem; font-weight: 800; }
.gc-output { display: flex; justify-content: center; border-radius: 12px; background: #e7e5e4; padding: 14px; }
#gc-canvas { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.22); background: #fff; }
#gc-canvas.gc-canvas--v { width: min(100%, 340px); }
.gc-preview-note { margin: 10px 2px 0; color: #d6d3d1; font-size: .78rem; line-height: 1.5; }
.gc-print { display: none; }

/* Hoja A4 (solo impresión) */
.gc-sheet { position: relative; width: 210mm; height: 297mm; overflow: hidden; background: #fff; }
.gc-sheet__card { position: absolute; display: block; }
.gc-mark { position: absolute; display: block; background: #000; }
.gc-mark--v { width: .2mm; margin-left: -.1mm; }
.gc-mark--h { height: .2mm; margin-top: -.1mm; }

/* Contenido */
.gc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gc-steps article, .gc-tips article { padding: 22px; border: 1px solid #403832; border-radius: 16px; background: #1d1917; }
.gc-steps span { color: var(--gc-accent); font-size: .75rem; font-weight: 900; }
.gc-steps h3, .gc-tips h3 { margin: 12px 0 7px; color: #fff; font-size: 1.03rem; }
.gc-tips h3 { margin-top: 0; }
.gc-steps p, .gc-tips p { margin: 0; color: #d6d3d1; font-size: .88rem; line-height: 1.65; }
.gc-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gc-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.gc-copy ul, .gc-copy ol { padding-left: 1.2em; }
.gc-copy li { margin-bottom: 8px; }
.gc-copy li strong, .gc-copy p strong { color: #fff; }
.gc-legal { padding: 12px 14px; border-left: 3px solid #a8a29e; border-radius: 0 10px 10px 0; background: #1d1917; font-size: .85rem; }
.gc-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: center; }
.gc-comparison > div { display: grid; gap: 12px; padding: 22px; border: 1px solid #4b423b; border-radius: 16px; background: #171412; }
.gc-comparison strong { color: #fff; font-size: 1.05rem; }
.gc-comparison span { position: relative; padding-left: 18px; color: #d6d3d1; font-size: .86rem; line-height: 1.5; }
.gc-comparison span::before { content: "✓"; position: absolute; left: 0; color: var(--gc-accent); font-weight: 900; }
.gc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gc-related a { display: grid; gap: 8px; padding: 22px; border: 1px solid #4b423b; border-radius: 16px; background: #1d1917; color: #fff; text-decoration: none; transition: border-color .18s ease; }
.gc-related a:hover { border-color: var(--gc-accent); }
.gc-related strong { color: var(--gc-accent); font-size: 1rem; }
.gc-related span { color: #d6d3d1; font-size: .88rem; line-height: 1.6; }
.gc-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.gc-faq details { padding: 16px 18px; border: 1px solid #4b423b; border-radius: 12px; background: #211d1a; }
.gc-faq summary { color: #fff; font-weight: 800; cursor: pointer; }
.gc-faq p { color: #d6d3d1; line-height: 1.65; }
.gc-final-cta { padding: 44px; border: 1px solid #665a50; border-radius: 24px; background: linear-gradient(135deg, #211d1a, #151210); text-align: center; }
.gc-final-cta > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gc-page .footer { background: #0a0a0a; color: #f5f5f4; }
.gc-page .footer h3 { color: #fff; }
.gc-page .footer a, .gc-page .footer p { color: #a8a29e; }

@media (max-width: 980px) {
  .gc-hero__grid, .gc-workspace, .gc-copy-grid { grid-template-columns: 1fr; }
  .gc-hero__image { max-width: 760px; }
  .gc-preview-panel { position: static; order: -1; }
  .gc-steps, .gc-tips, .gc-related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .gc-container { width: min(100% - 24px, 1180px); }
  .gc-hero { padding: 92px 0 48px; }
  .gc-hero h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .gc-tool-section, .gc-content-section { padding: 54px 0; }
  .gc-editor { padding: 16px; }
  .gc-fields--two, .gc-fields--three, .gc-option-grid, .gc-faq, .gc-comparison, .gc-steps, .gc-tips, .gc-related { grid-template-columns: 1fr; }
  .gc-field-btn { padding-top: 0; }
  .gc-field-btn .gc-btn, .gc-actions .gc-btn, .gc-bridge .gc-btn { width: 100%; justify-self: stretch; }
  .gc-output { padding: 8px; }
  .gc-final-cta { padding: 28px 18px; }
}

/* Impresión: solo las hojas A4 con los vales, sin márgenes del navegador */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body.gc-page { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.gc-page > :not(main), .gc-page main > :not(.gc-tool-section), .gc-tool-section > .gc-container { display: none !important; }
  .gc-tool-section { padding: 0 !important; background: #fff !important; }
  .gc-print { display: block !important; }
  .gc-sheet { height: 296mm; break-after: page; page-break-after: always; }
  .gc-sheet:last-child { break-after: auto; page-break-after: auto; }
  .gc-sheet__card, .gc-mark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
