/* Página «Tarjeta regalo»: cabecera granate, secciones, pasos, consulta de saldo y condiciones. Todo bajo .ts-w .ts-rg. Cortes 960 / 600.
   El formulario de compra, el resumen y los botones están en bonos.css. */
.ts-w .ts-rg { font-family: var(--ts-fuente); color: var(--ts-granate); line-height: 1.55; }
.ts-w .ts-rg :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.ts-w .ts-rg :where(ul, ol) { list-style: none; }
.ts-w .ts-rg a { text-decoration: none; }
.ts-w .ts-rg :focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 3px; border-radius: 8px; }
.ts-w .ts-rg .ts-rg-in { max-width: var(--ts-ancho); margin: 0 auto; padding: 0 40px; }

/* cabecera */
.ts-w .ts-rg .ts-rg-hero { position: relative; overflow: hidden; background: var(--ts-granate); color: #fff; padding: 56px 0 72px; }
.ts-w .ts-rg .ts-rg-hero .ts-rg-in { position: relative; z-index: 1; }
.ts-w .ts-rg .ts-rg-hero .ts-rg-in > :not(.ts-rg-migas) { max-width: 52%; }
.ts-w .ts-rg .ts-rg-hero-foto { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: var(--ts-granate-osc) center / cover no-repeat; }
.ts-w .ts-rg .ts-rg-hero-foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ts-granate) 0, rgba(91, 17, 23, .6) 18%, rgba(91, 17, 23, 0) 55%); }
.ts-w .ts-rg .ts-rg-hero :focus-visible { outline-color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-migas { font-size: 13.5px; margin-bottom: 36px; color: var(--ts-crema); }
.ts-w .ts-rg .ts-rg-migas a { display: inline-block; padding: 14px 8px; margin: -14px -8px; color: inherit; text-decoration: underline; text-underline-offset: 3px; } /* zona táctil de 44 px sin mover nada */
.ts-w .ts-rg .ts-rg-hero h1 { max-width: 16ch; font-size: 54px; line-height: 1.04; font-weight: 800; letter-spacing: -1.6px; color: #fff; text-wrap: balance; }
.ts-w .ts-rg .ts-rg-hero h1 em { font-style: normal; color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-hero p { margin-top: 20px; font-size: 18px; color: var(--ts-crema); }
.ts-w .ts-rg .ts-rg-pronto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15.5px !important; }
.ts-w .ts-rg .ts-rg-pronto span { display: inline-block; border: 1.5px solid var(--ts-amarillo); border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 13px; color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ts-w .ts-rg .ts-rg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 14px/1.2 var(--ts-fuente); padding: 14px 26px; border-radius: 999px; transition: background .15s, color .15s; }
.ts-w .ts-rg .ts-rg-btn:hover { background: #fff; color: var(--ts-granate); }
.ts-w .ts-rg .ts-rg-btn.ts-rg-btn-fantasma { background: transparent; color: var(--ts-amarillo); box-shadow: inset 0 0 0 1.5px var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-btn.ts-rg-btn-fantasma:hover { background: rgba(255, 255, 255, .14); color: var(--ts-amarillo); }

/* secciones */
.ts-w .ts-rg .ts-rg-sec { padding: 72px 0; background: #fff; scroll-margin-top: 16px; }
.ts-w .ts-rg .ts-rg-sec-claro { background: var(--ts-crema-claro); }
.ts-w .ts-rg .ts-rg-sec h2 { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.8px; color: var(--ts-granate); margin-bottom: 32px; }
.ts-w .ts-rg .ts-rg-sec h2 + .ts-rg-lead { margin-top: -16px; margin-bottom: 36px; max-width: 64ch; font-size: 17px; color: #3a1318; }
.ts-w .ts-rg .ts-rg-ic { display: block; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* dos tipos (solo la versión provisional) */
.ts-w .ts-rg .ts-rg-tipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ts-w .ts-rg .ts-rg-tipo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border-radius: 26px; background: var(--ts-crema); }
.ts-w .ts-rg .ts-rg-tipo:first-child { background: var(--ts-granate); color: #fff; }
.ts-w .ts-rg .ts-rg-tipo:first-child .ts-rg-ic, .ts-w .ts-rg .ts-rg-tipo:first-child .ts-rg-mas { color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-tipo:first-child :focus-visible { outline-color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rg-tipo h3 { color: inherit; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.ts-w .ts-rg .ts-rg-tipo p { font-size: 16px; max-width: 36ch; }
.ts-w .ts-rg .ts-rg-tipo:first-child p { color: var(--ts-crema); }
.ts-w .ts-rg .ts-rg-mas { margin-top: auto; padding-top: 10px; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; color: var(--ts-granate); text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 5px; }

/* cómo funciona */
.ts-w .ts-rg .ts-rg-pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.ts-w .ts-rg .ts-rg-pasos.ts-rg-pasos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-w .ts-rg .ts-rg-pasos li { display: flex; flex-direction: column; gap: 8px; }
.ts-w .ts-rg .ts-rg-pasos h3 { color: inherit; margin-top: 6px; font-size: 20px; line-height: 1.2; font-weight: 800; }
.ts-w .ts-rg .ts-rg-pasos p { font-size: 15.5px; color: #3a1318; }
.ts-w .ts-rg .ts-rg-pasos:not(.ts-rg-pasos-3) li { position: relative; padding: 26px 24px 24px; border-radius: 22px; background: var(--ts-crema-claro); border: 1.5px solid var(--ts-linea); }
.ts-w .ts-rg .ts-rg-pasos:not(.ts-rg-pasos-3) li::before { counter-increment: paso; content: counter(paso); position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ts-granate); color: var(--ts-amarillo); font-size: 14px; font-weight: 800; line-height: 1; }

/* consulta de saldo */
.ts-w .ts-rg .ts-rgs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ts-w .ts-rg .ts-rgs-tx h2 { margin-bottom: 14px; }
.ts-w .ts-rg .ts-rgs-tx p { font-size: 17px; color: #3a1318; max-width: 44ch; }
.ts-w .ts-rg .ts-rgs-form { position: relative; padding: 30px; border-radius: 26px; background: #fff; border: 1.5px solid var(--ts-linea); }
.ts-w .ts-rg .ts-rgs-campo > label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ts-granate); }
.ts-w .ts-rg .ts-rgs-fila { display: flex; gap: 12px; flex-wrap: wrap; }
.ts-w .ts-rg .ts-rgs-fila input[type="text"] { flex: 1 1 240px; min-width: 0; min-height: 52px; border: 1.5px solid #cbb78a; border-radius: 999px; padding: 12px 22px; font: 700 17px/1.3 var(--ts-fuente); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-granate); background: #fff; appearance: none; margin: 0; box-shadow: none; }
.ts-w .ts-rg .ts-rgs-fila input[type="text"]::placeholder { color: #8c7378; font-weight: 600; letter-spacing: .08em; opacity: 1; }
.ts-w .ts-rg .ts-rgs-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-w .ts-rg .ts-rgs-res { margin-top: 16px; }
.ts-w .ts-rg .ts-rgs-res:empty { display: none; }
.ts-w .ts-rg .ts-rgs-res p { padding: 16px 20px; border-radius: 16px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ts-w .ts-rg .ts-rgs-res .ts-rgs-ok { background: var(--ts-granate); color: var(--ts-crema); }
.ts-w .ts-rg .ts-rgs-res .ts-rgs-ok span { display: block; margin-top: 4px; font-weight: 500; font-size: 14.5px; color: var(--ts-crema); }
.ts-w .ts-rg .ts-rgs-res .ts-rgs-ok strong { color: var(--ts-amarillo); }
.ts-w .ts-rg .ts-rgs-res .ts-rgs-no { background: var(--ts-crema-claro); border: 1.5px solid var(--ts-granate); border-left-width: 6px; color: var(--ts-granate); }

/* condiciones */
.ts-w .ts-rg .ts-rgc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.ts-w .ts-rg .ts-rgc-tx h2 { margin-bottom: 18px; }
.ts-w .ts-rg .ts-rgc-borrador { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; font-size: 14px; color: var(--ts-suave); }
.ts-w .ts-rg .ts-rgc-borrador span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--ts-granate); color: var(--ts-amarillo); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ts-w .ts-rg .ts-rgc-lista { display: grid; gap: 12px; }
.ts-w .ts-rg .ts-rgc-lista li { position: relative; padding-left: 28px; font-size: 16px; color: #3a1318; }
.ts-w .ts-rg .ts-rgc-lista li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--ts-granate); box-shadow: 0 0 0 3px var(--ts-amarillo); }
.ts-w .ts-rg .ts-rgc-det { margin-top: 22px; border-top: 1.5px solid var(--ts-linea); padding-top: 16px; }
.ts-w .ts-rg .ts-rgc-det summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--ts-granate); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ts-w .ts-rg .ts-rgc-det p { margin-top: 10px; font-size: 15px; color: #3a1318; max-width: 70ch; }
/* Enlace a las condiciones completas de la tarjeta regalo (página legal propia): junto al botón de compra y en «Condiciones». */
.ts-w .ts-rg .ts-rgc-mas { margin: 18px 0 0; font-size: 15px; }
.ts-w .ts-rg .ts-rgc-mas a, .ts-w .ts-rg .ts-rgf-nota a { color: var(--ts-granate); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ts-w .ts-rg .ts-rgc-mas a { display: inline-flex; align-items: center; min-height: 44px; }
.ts-w .ts-rg .ts-rgc-contacto { padding: 30px; border-radius: 26px; background: var(--ts-granate); color: var(--ts-crema); display: grid; gap: 8px; }
.ts-w .ts-rg .ts-rgc-contacto h3 { color: var(--ts-amarillo); font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.ts-w .ts-rg .ts-rgc-contacto p { font-size: 15.5px; }
.ts-w .ts-rg .ts-rgc-lin { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 800; color: var(--ts-amarillo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; word-break: break-word; }
.ts-w .ts-rg .ts-rgc-contacto :focus-visible { outline-color: var(--ts-amarillo); }

@media (max-width: 960px) {
	.ts-w .ts-rg .ts-rg-hero .ts-rg-in > :not(.ts-rg-migas) { max-width: none; }
	.ts-w .ts-rg .ts-rg-hero-foto { position: relative; width: 100%; height: 220px; }
	.ts-w .ts-rg .ts-rg-hero-foto::before { background: linear-gradient(0deg, var(--ts-granate), rgba(91, 17, 23, 0) 55%); }
	.ts-w .ts-rg .ts-rg-hero { padding-top: 0; }
	.ts-w .ts-rg .ts-rg-migas { padding-top: 28px; }
	.ts-w .ts-rg .ts-rg-in { padding: 0 32px; }
	.ts-w .ts-rg .ts-rg-hero { padding: 0 0 56px; }
	.ts-w .ts-rg .ts-rg-hero h1 { font-size: 40px; letter-spacing: -1.2px; }
	.ts-w .ts-rg .ts-rg-sec { padding: 56px 0; }
	.ts-w .ts-rg .ts-rg-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-w .ts-rg .ts-rg-pasos.ts-rg-pasos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ts-w .ts-rg .ts-rgs, .ts-w .ts-rg .ts-rgc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
	.ts-w .ts-rg .ts-rg-in { padding: 0 20px; }
	.ts-w .ts-rg .ts-rg-migas { margin-bottom: 26px; }
	.ts-w .ts-rg .ts-rg-hero h1 { font-size: 33px; }
	.ts-w .ts-rg .ts-rg-hero p { font-size: 16.5px; }
	.ts-w .ts-rg .ts-rg-botones .ts-rg-btn { flex: 1 1 100%; text-align: center; }
	.ts-w .ts-rg .ts-rg-sec h2 { font-size: 27px; margin-bottom: 24px; }
	.ts-w .ts-rg .ts-rg-sec h2 + .ts-rg-lead { margin-top: -10px; margin-bottom: 26px; font-size: 16px; }
	.ts-w .ts-rg .ts-rg-tipos, .ts-w .ts-rg .ts-rg-pasos, .ts-w .ts-rg .ts-rg-pasos.ts-rg-pasos-3 { grid-template-columns: minmax(0, 1fr); }
	.ts-w .ts-rg .ts-rg-tipo { padding: 26px 22px; }
	.ts-w .ts-rg .ts-rgs-form { padding: 22px 18px; border-radius: 22px; }
	.ts-w .ts-rg .ts-rgs-fila { flex-direction: column; }
	.ts-w .ts-rg .ts-rgs-fila input[type="text"], .ts-w .ts-rg .ts-rgs-fila .ts-rgs-btn { flex: 0 0 auto; width: 100%; }
	.ts-w .ts-rg .ts-rgc-contacto { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-rg .ts-rg-btn { transition: none; }
}
