/*
Theme Name: Rompetochos
Theme URI: https://clientes-test.com/rompetochos
Author: Vesping
Description: Tema a medida para la tienda Rompetochos (anticristalizante AdBlue). Réplica del diseño de la ficha de producto de r9motorparts.com. WooCommerce + pasarela AndorPay.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rompetochos
Tags: e-commerce, one-column, custom-colors, dark
WC requires at least: 8.0
WC tested up to: 11.0
*/

/* ============================================================
   1. Tokens — medidos sobre r9motorparts.com
   ============================================================ */
:root {
	--rt-bg:         #000000;
	--rt-panel:      #111111;
	--rt-panel-2:    #161616;
	--rt-line:       #2a2a2a;
	--rt-line-soft:  #1f1f1f;
	--rt-ink:        #fafafa;
	--rt-ink-soft:   rgba(250, 250, 250, .75);
	--rt-ink-mute:   #8a8a8a;

	--rt-red:        #c0392b;   /* tabla, CTA rellenos */
	--rt-red-hover:  #d64535;
	--rt-red-hot:    #ff3d3d;   /* cuenta atrás */
	--rt-green:      #1ec943;   /* DTO, tarjeta elegida */
	--rt-amber:      #f9ad00;   /* badge "El más vendido", estrellas */

	--rt-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--rt-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--rt-wrap: 1300px;
	--rt-radius: 10px;
}

/* ============================================================
   2. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--rt-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--rt-ink-soft);
	background: var(--rt-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, .rt-h {
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.1;
	margin: 0 0 .4em;
	color: var(--rt-ink);
}

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

.rt-wrap { width: 100%; max-width: var(--rt-wrap); margin: 0 auto; padding: 0 24px; }
.rt-section { padding: 70px 0; }
.rt-center { text-align: center; }

.rt-eyebrow {
	font-family: var(--rt-body);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: 13px;
	font-weight: 400;
	color: var(--rt-ink-soft);
	margin: 0 0 10px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}

.rt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 17px;
	line-height: 1;
	padding: 17px 34px;
	border: 0;
	border-radius: 6px;
	background: var(--rt-red);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.rt-btn:hover { background: var(--rt-red-hover); text-decoration: none; color: #fff; }
.rt-btn:active { transform: translateY(1px); }
.rt-btn--block { width: 100%; }

/* Botón contorneado blanco — «COMPRAR AHORA» de la ficha */
.rt-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 8px;
	color: var(--rt-ink);
	font-size: 18px;
	padding: 18px 34px;
}
.rt-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ============================================================
   3. Barra superior de anuncios
   ============================================================ */
.rt-topbar {
	background: #000;
	color: #fff;
	font-size: 13px;
	border-bottom: 1px solid var(--rt-line-soft);
}
.rt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.rt-social { display: flex; gap: 15px; align-items: center; }
.rt-social a { display: flex; opacity: .9; }
.rt-social a:hover { opacity: 1; }
.rt-social svg { width: 17px; height: 17px; fill: currentColor; }

.rt-announce {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}
.rt-announce__arrow {
	background: none; border: 0; color: #fff; cursor: pointer;
	font-size: 15px; opacity: .7; padding: 2px 6px; line-height: 1;
}
.rt-announce__arrow:hover { opacity: 1; }
.rt-announce__track { position: relative; overflow: hidden; height: 20px; min-width: 260px; text-align: center; }
.rt-announce__item {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--rt-head);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-weight: 600;
	font-size: 13px;
	opacity: 0;
	transition: opacity .5s ease;
	white-space: nowrap;
}
.rt-announce__item.is-active { opacity: 1; }
.rt-announce__item svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

.rt-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* ============================================================
   4. Cabecera
   ============================================================ */
.rt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #000;
	border-bottom: 1px solid var(--rt-line-soft);
}
body.admin-bar .rt-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rt-header { top: 46px; } }

.rt-header__inner {
	display: flex;
	align-items: center;
	gap: 34px;
	min-height: 82px;
}
.rt-logo {
	font-family: var(--rt-head);
	font-weight: 700;
	font-size: 27px;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
	color: #fff;
}
.rt-logo:hover { text-decoration: none; }
.rt-logo span { color: var(--rt-red-hot); }
.rt-logo img { max-height: 48px; width: auto; }

.rt-nav { flex: 1; }
.rt-nav ul {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rt-nav a {
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 15px;
	color: var(--rt-ink);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.rt-nav a:hover { text-decoration: none; border-bottom-color: #fff; }

.rt-actions { display: flex; align-items: center; gap: 22px; }
.rt-actions a { display: flex; align-items: center; position: relative; color: #fff; }
.rt-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rt-cart-count {
	position: absolute;
	top: -7px; right: -9px;
	min-width: 17px; height: 17px;
	border-radius: 9px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.rt-burger { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: #fff; }
.rt-burger svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 980px) {
	.rt-burger { display: block; order: -1; }
	.rt-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #000;
		border-bottom: 1px solid var(--rt-line);
		display: none;
		padding: 12px 24px 20px;
	}
	.rt-nav.is-open { display: block; }
	.rt-nav ul { flex-direction: column; gap: 0; }
	.rt-nav li { border-bottom: 1px solid var(--rt-line-soft); }
	.rt-nav a { display: block; padding: 14px 0; border: 0; }
	.rt-logo { flex: 1; text-align: center; font-size: 23px; }
	.rt-header__inner { gap: 12px; min-height: 66px; }
}

/* ============================================================
   5. Ficha de producto — layout
   ============================================================ */
.rt-product {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 70px;
	padding: 54px 0 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.rt-product { grid-template-columns: 1fr; gap: 34px; padding-top: 26px; }
}

/* Galería */
.rt-gallery { position: sticky; top: 106px; }
@media (max-width: 900px) { .rt-gallery { position: static; } }

.rt-gallery__main {
	background: var(--rt-bg);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.rt-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.rt-gallery__slide { display: none; width: 100%; height: 100%; }
.rt-gallery__slide.is-active { display: block; }

.rt-gallery__thumbs {
	display: flex;
	gap: 14px;
	margin-top: 16px;
}
.rt-gallery__thumb {
	width: 106px;
	border: 1px solid var(--rt-line);
	border-radius: 4px;
	overflow: hidden;
	background: var(--rt-bg);
	padding: 0;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
}
.rt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt-gallery__thumb.is-active { border: 2px solid #fff; }
.rt-gallery__counter { display: none; }

/* Resumen */
.rt-summary__title {
	font-family: var(--rt-body);
	font-weight: 700;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	margin-bottom: 18px;
}
.rt-summary__excerpt { color: var(--rt-ink-soft); font-size: 17px; margin: 0 0 16px; }

.rt-stars { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.rt-stars__icons { display: inline-flex; gap: 2px; }
.rt-stars__icons svg { width: 17px; height: 17px; fill: var(--rt-amber); }
.rt-stars__icons svg.is-empty { fill: #4a4a4a; }
.rt-stars__count { font-size: 15px; color: var(--rt-ink); text-decoration: none; }
.rt-stars__count:hover { text-decoration: underline; }

/* Cantidad */
.rt-qty-row { margin-bottom: 24px; }
.rt-qty-label {
	font-family: var(--rt-body);
	font-size: 14px;
	color: var(--rt-ink);
	display: block;
	margin-bottom: 8px;
}
.rt-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 2px;
	overflow: hidden;
	background: transparent;
}
.rt-qty button {
	width: 46px; height: 48px;
	background: none;
	border: 0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
}
.rt-qty button:hover { background: rgba(255, 255, 255, .08); }
.rt-qty input {
	width: 52px; height: 48px;
	border: 0;
	background: transparent;
	color: #fff;
	text-align: center;
	font-size: 16px;
	font-family: var(--rt-body);
	-moz-appearance: textfield;
	appearance: textfield;
}
.rt-qty input::-webkit-outer-spin-button,
.rt-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   6. Selector de packs — tarjetas oscuras como el original
   ============================================================ */
.rt-offers { margin: 6px 0 24px; }
.rt-offers__title { display: none; }
.rt-offers__list { display: grid; gap: 18px; }

.rt-offer {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: var(--rt-radius);
	padding: 18px 20px;
	cursor: pointer;
	background: var(--rt-panel);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rt-offer:hover { border-color: #fff; }
.rt-offer.is-selected {
	border: 2px solid var(--rt-green);
	padding: 17px 19px;
}
.rt-offer.is-unavailable { opacity: .45; cursor: not-allowed; }
.rt-offer input { position: absolute; opacity: 0; pointer-events: none; }

.rt-offer__radio {
	width: 22px; height: 22px;
	border-radius: 50%;
	flex: 0 0 auto;
	position: relative;
	background: #fff;
}
.rt-offer.is-selected .rt-offer__radio {
	background: #fff;
	border: 2px solid var(--rt-green);
}
.rt-offer.is-selected .rt-offer__radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--rt-green);
}

.rt-offer__body { min-width: 0; }
.rt-offer__name {
	display: block;
	font-family: var(--rt-body);
	font-weight: 700;
	font-size: 17px;
	color: #fff;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}
.rt-offer__sub {
	display: inline-block;
	background: var(--rt-green);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 10px;
	margin-top: 6px;
}
.rt-offer__sub--plain {
	background: transparent;
	color: var(--rt-ink-mute);
	padding: 0;
	border-radius: 0;
	font-weight: 400;
	font-size: 14px;
}
.rt-offer__ship {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin-top: 7px;
}
.rt-offer__ship svg { display: none; }

.rt-offer__prices { text-align: right; white-space: nowrap; }
.rt-offer__price { display: block; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; }
.rt-offer__was {
	display: block;
	font-size: 14px;
	color: var(--rt-ink-mute);
	text-decoration: line-through;
}
.rt-offer__unit { display: none; }

.rt-offer__badge {
	position: absolute;
	top: -1px;
	right: 16px;
	background: var(--rt-amber);
	color: #fff;
	font-family: var(--rt-body);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	padding: 6px 14px 7px;
	border-radius: 0 0 8px 8px;
}

.rt-total-row { display: none; }

/* Cuenta atrás de envío */
.rt-cutoff {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 6px;
	font-size: 15px;
	color: #fff;
}
.rt-cutoff svg { width: 17px; height: 17px; stroke: var(--rt-red-hot); fill: none; stroke-width: 2; flex: 0 0 auto; }
.rt-cutoff strong { color: var(--rt-red-hot); font-weight: 700; }

/* Estado / errores del formulario */
.rt-form-msg {
	display: none;
	background: rgba(220, 38, 38, .12);
	border: 1px solid rgba(220, 38, 38, .5);
	color: #ff8a80;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 12px;
}
.rt-form-msg.is-visible { display: block; }

/* Sellos de confianza */
.rt-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 30px;
}
.rt-trust__item { text-align: center; }
.rt-trust__item svg {
	width: 30px; height: 30px;
	stroke: #f0f0f0;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin: 0 auto 8px;
	display: block;
}
.rt-trust__item span {
	font-family: var(--rt-body);
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}

/* ============================================================
   7. Cómo funciona — filas alternas texto/foto
   ============================================================ */
.rt-steps__intro {
	max-width: 760px;
	margin: 0 auto 10px;
	text-align: center;
	color: var(--rt-ink-soft);
	font-size: 17px;
}

.rt-steps__rows { margin-top: 40px; }
.rt-step-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
.rt-step-row__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 46px 40px;
}
.rt-step-row__label {
	font-family: var(--rt-body);
	text-transform: uppercase;
	letter-spacing: .3em;
	font-size: 13px;
	color: var(--rt-ink-mute);
	margin-bottom: 12px;
}
.rt-step-row__title {
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.15;
	color: var(--rt-ink);
	max-width: 420px;
}
.rt-step-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-step-row__media { min-height: 260px; }
@media (max-width: 760px) {
	.rt-step-row { grid-template-columns: 1fr; }
	.rt-step-row__text { padding: 34px 20px 26px; }
	.rt-step-row__media { min-height: 0; }
}

/* Variante sin fotos (mientras no estén subidas) */
.rt-steps__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	margin-top: 40px;
}
@media (max-width: 900px) { .rt-steps__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 520px) { .rt-steps__grid { grid-template-columns: 1fr; } }
.rt-step { text-align: center; }
.rt-step__num {
	width: 58px; height: 58px;
	border-radius: 50%;
	background: var(--rt-red);
	color: #fff;
	font-family: var(--rt-head);
	font-weight: 600;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}
.rt-step__label {
	font-family: var(--rt-body);
	text-transform: uppercase;
	letter-spacing: .25em;
	font-size: 12px;
	color: var(--rt-ink-mute);
	margin-bottom: 6px;
}
.rt-step__text {
	font-family: var(--rt-head);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.25;
	color: var(--rt-ink);
}

/* ============================================================
   8. Tabla comparativa — oscura, columna central roja
   ============================================================ */
.rt-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 1080px; margin: 0 auto; }
.rt-compare {
	width: 100%;
	min-width: 620px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--rt-panel-2);
	border-radius: var(--rt-radius);
	overflow: hidden;
}
.rt-compare th, .rt-compare td {
	padding: 20px 18px;
	text-align: center;
	border-bottom: 1px solid var(--rt-line);
	font-size: 16px;
	color: var(--rt-ink);
}
.rt-compare thead th {
	font-family: var(--rt-head);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .12em;
	background: var(--rt-panel-2);
	color: var(--rt-ink-mute);
	padding: 18px;
}
.rt-compare thead th.rt-compare__hero {
	background: var(--rt-red);
	color: #fff;
	font-size: 17px;
	letter-spacing: .08em;
}
.rt-compare__hero-note {
	display: inline-block;
	font-family: var(--rt-head);
	letter-spacing: .12em;
	font-size: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, .22);
	border-radius: 20px;
	padding: 5px 14px;
	margin-top: 8px;
}
.rt-compare tbody th {
	font-family: var(--rt-body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	font-size: 16px;
	background: transparent;
	text-align: center;
}
.rt-compare tbody tr:last-child th,
.rt-compare tbody tr:last-child td { border-bottom: 0; }
.rt-compare td.rt-col-hero { background: rgba(192, 57, 43, .07); }

/* Iconos circulares: check verde / aspa roja */
.rt-ico-yes, .rt-ico-no {
	display: inline-flex;
	width: 26px; height: 26px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
}
.rt-ico-yes { border: 1.6px solid var(--rt-green); }
.rt-ico-no  { border: 1.6px solid var(--rt-red-hot); }
.rt-ico-yes svg { width: 13px; height: 13px; stroke: var(--rt-green); fill: none; stroke-width: 2.4; }
.rt-ico-no  svg { width: 11px; height: 11px; stroke: var(--rt-red-hot); fill: none; stroke-width: 2.4; }
.rt-partial { color: var(--rt-ink-mute); font-size: 15px; }

.rt-compare-cta { text-align: center; margin-top: 44px; }
.rt-compare-cta .rt-btn svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.2; }

.rt-divider {
	border: 0;
	height: 1px;
	background: var(--rt-line-soft);
	max-width: 820px;
	margin: 0 auto;
}

/* ============================================================
   9. Vídeo
   ============================================================ */
.rt-video__head { max-width: 1080px; margin: 0 auto 26px; }
.rt-video__text {
	max-width: 820px;
	margin: 6px 0 0;
	font-size: 17px;
	color: var(--rt-ink-soft);
}
.rt-video__text strong { color: #fff; }
.rt-video__frame {
	max-width: 1080px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: var(--rt-panel);
	border-radius: var(--rt-radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 15px;
	text-align: center;
}
.rt-video__frame iframe,
.rt-video__frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

/* ============================================================
   10. Reseñas
   ============================================================ */
.rt-reviews__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.rt-reviews__bar h2 {
	font-family: var(--rt-body);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	font-size: 26px;
	margin: 0 0 6px;
}
.rt-reviews__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--rt-ink-soft); }
.rt-reviews__meta .rt-stars { margin: 0; }

.rt-reviews__empty {
	text-align: center;
	padding: 50px 20px;
	border: 1px dashed var(--rt-line);
	border-radius: var(--rt-radius);
	color: var(--rt-ink-mute);
	background: var(--rt-panel);
}
.rt-reviews__empty strong { color: var(--rt-ink); }

/* Listado de comentarios de WooCommerce en oscuro */
.rt-reviews__list .commentlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rt-reviews__list .comment_container {
	background: var(--rt-panel);
	border: 1px solid var(--rt-line-soft);
	border-radius: var(--rt-radius);
	padding: 20px 22px;
}
.rt-reviews__list .comment_container img.avatar { display: none; }
.rt-reviews__list .meta { color: var(--rt-ink-mute); font-size: 14px; }
.rt-reviews__list .woocommerce-review__author { color: #fff; font-weight: 700; }
.rt-reviews__list .star-rating { color: var(--rt-amber); }
.rt-reviews__list .description { color: var(--rt-ink-soft); }

/* ============================================================
   11. FAQ
   ============================================================ */
.rt-faq { max-width: 880px; margin: 0 auto; }
.rt-faq__item { border-bottom: 1px solid var(--rt-line-soft); }
.rt-faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	text-align: left;
	background: none;
	border: 0;
	padding: 22px 0;
	cursor: pointer;
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 17px;
	letter-spacing: .06em;
	color: var(--rt-ink);
}
.rt-faq__q:hover { color: #fff; }
.rt-faq__bullet {
	flex: 0 0 auto;
	width: 20px; height: 20px;
	display: inline-flex;
}
.rt-faq__bullet svg { width: 20px; height: 20px; stroke: var(--rt-ink-soft); fill: none; stroke-width: 1.8; }
.rt-faq__q > span:nth-child(2) { flex: 1; }
.rt-faq__icon {
	flex: 0 0 auto;
	width: 16px; height: 16px;
	position: relative;
	transition: transform .2s ease;
}
.rt-faq__icon::before,
.rt-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--rt-ink-soft);
	border-radius: 1px;
}
.rt-faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.rt-faq__icon::after { top: 0; left: 7px; width: 2px; height: 16px; transition: transform .2s ease; }
.rt-faq__item.is-open .rt-faq__icon::after { transform: rotate(90deg); }
.rt-faq__a {
	display: none;
	padding: 0 0 24px 36px;
	color: var(--rt-ink-soft);
	max-width: 92%;
}
.rt-faq__item.is-open .rt-faq__a { display: block; }
.rt-faq__a ul { margin: 8px 0 0; padding-left: 20px; }
.rt-faq__a li { margin-bottom: 6px; }

/* ============================================================
   12. CTA
   ============================================================ */
.rt-cta { text-align: center; }
.rt-cta__title { margin-bottom: 22px; }

/* ============================================================
   13. Pie
   ============================================================ */
.rt-footer {
	background: #000;
	color: var(--rt-ink-mute);
	padding: 60px 0 28px;
	font-size: 15px;
	border-top: 1px solid var(--rt-line-soft);
}
.rt-footer a { color: var(--rt-ink-mute); }
.rt-footer a:hover { color: #fff; }
.rt-newsletter { text-align: center; max-width: 540px; margin: 0 auto 48px; }
.rt-newsletter h3 { color: #fff; }
.rt-newsletter__form { display: flex; gap: 10px; margin-top: 16px; }
.rt-newsletter__form input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	padding: 13px 15px;
	color: #fff;
	font-family: var(--rt-body);
	font-size: 15px;
}
.rt-newsletter__form input::placeholder { color: #666; }
.rt-newsletter__form button {
	background: #fff;
	color: #000;
	border: 0;
	border-radius: 6px;
	padding: 0 22px;
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: .06em;
	cursor: pointer;
}
@media (max-width: 520px) { .rt-newsletter__form { flex-direction: column; } .rt-newsletter__form button { padding: 14px; } }

.rt-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--rt-line-soft);
}
@media (max-width: 760px) { .rt-footer__cols { grid-template-columns: 1fr; gap: 26px; text-align: center; } }
.rt-footer__cols h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.rt-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.rt-footer__cols li { margin-bottom: 8px; }
.rt-footer .rt-social { justify-content: flex-start; }
@media (max-width: 760px) { .rt-footer .rt-social { justify-content: center; } }

.rt-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	font-size: 13px;
	color: #6a6a6a;
	flex-wrap: wrap;
}
.rt-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt-pay__chip {
	background: #fff;
	color: #111;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}

/* ============================================================
   14. WooCommerce en oscuro — avisos, tienda, carrito, cuenta
   ============================================================ */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 8px;
	border-left: 4px solid var(--rt-green);
	background: var(--rt-panel);
	color: var(--rt-ink);
	font-size: 15px;
}
.woocommerce-notices-wrapper .woocommerce-error { border-left-color: var(--rt-red-hot); }
.woocommerce-notices-wrapper .woocommerce-info { border-left-color: #888; }
.woocommerce-notices-wrapper a.button { float: right; }

.rt-page { padding: 46px 0 70px; }
.rt-page h1 { color: #fff; }
.rt-page .woocommerce { font-size: 15px; }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce ul.products li.product { text-align: center; }
.woocommerce ul.products li.product img { border-radius: 8px; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 20px; margin-bottom: 6px; color: #fff; }
.woocommerce ul.products li.product .price { color: var(--rt-ink); font-weight: 700; }
.woocommerce ul.products li.product .price del { color: var(--rt-ink-mute); font-weight: 400; }

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	background: var(--rt-red);
	color: #fff;
	border-radius: 6px;
	padding: 14px 26px;
	border: 0;
	font-size: 16px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover { background: var(--rt-red-hover); color: #fff; }

/* Tablas (carrito clásico, totales, pedidos) */
.woocommerce table.shop_table {
	border: 1px solid var(--rt-line-soft);
	border-radius: 8px;
	background: var(--rt-panel);
	color: var(--rt-ink);
	border-collapse: separate;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-color: var(--rt-line-soft); color: var(--rt-ink); }
.woocommerce-cart table.cart img { width: 70px; border-radius: 6px; }

/* Formularios clásicos */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"] {
	background: var(--rt-panel);
	border: 1px solid var(--rt-line);
	color: #fff;
	border-radius: 6px;
	padding: 12px 14px;
}
.woocommerce form .form-row label { color: var(--rt-ink-soft); }

/* ============================================================
   15. Checkout y carrito por bloques — modo oscuro
   ============================================================ */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart,
.wc-block-checkout,
.wc-block-cart {
	color: var(--rt-ink);
}

/* Tipografía y títulos */
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wc-block-components-checkout-step__heading,
.wp-block-woocommerce-checkout h2,
.wp-block-woocommerce-cart h2 { color: #fff; }

.wc-block-components-checkout-step__description,
.wc-block-components-address-card,
.wc-block-components-order-summary-item__description,
.wc-block-components-product-name,
.wc-block-components-product-metadata__description,
.wc-block-components-totals-item,
.wc-block-components-formatted-money-amount,
.wc-block-components-checkout-order-summary__title-text,
.wc-block-cart-items,
.wc-block-cart-items th,
.wc-block-cart-items td { color: var(--rt-ink) !important; }

/* Campos */
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-blocks-components-select select {
	background: var(--rt-panel) !important;
	border-color: var(--rt-line) !important;
	color: #fff !important;
	border-radius: 6px !important;
}
.wc-block-components-text-input label,
.wc-blocks-components-select label,
.wc-block-components-checkbox__label { color: var(--rt-ink-mute) !important; }
.wc-block-components-checkbox__input[type="checkbox"] { background: var(--rt-panel); border-color: var(--rt-line); }

/* Paneles y separadores */
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-checkout-order-summary,
.wc-block-checkout__sidebar .wc-block-components-panel,
.wc-block-components-radio-control__option,
.wc-block-components-payment-method-label,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
	background: transparent;
	border-color: var(--rt-line-soft);
	color: var(--rt-ink);
}
.wc-block-checkout__sidebar { color: var(--rt-ink); }
.wc-block-components-divider { border-color: var(--rt-line-soft); }

.wc-block-components-radio-control__option {
	border: 1px solid var(--rt-line);
	border-radius: 8px;
	margin-bottom: 10px;
	padding: 14px 14px 14px 46px;
}
.wc-block-components-radio-control__option-checked { border-color: #fff; }

/* Botón de pago */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	font-family: var(--rt-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	background: var(--rt-red);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 17px;
	padding: 16px 26px;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { background: var(--rt-red-hover); color: #fff; }

/* Migas y enlaces del checkout */
.wc-block-components-checkout-return-to-cart-button { color: var(--rt-ink-soft); }
.wc-block-components-express-payment-continue-rule { color: var(--rt-ink-mute); }

/* Cupones y entradas variadas */
.wc-block-components-totals-coupon__input input { background: var(--rt-panel) !important; color: #fff !important; }

/* ============================================================
   16. Checkout claro — réplica del checkout del original
   (cabecera blanca con logo centrado, formulario a la izquierda,
   resumen del pedido en gris claro a la derecha)
   ============================================================ */
body.rt-checkout-light {
	background: #fff;
	color: #333;
}

.rt-checkout-header {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}
.rt-checkout-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
}
.rt-checkout-header .rt-logo { color: #111; justify-self: center; }
.rt-checkout-header .rt-logo span { color: var(--rt-red-hot); }
.rt-checkout-header__bag { justify-self: end; display: flex; color: #333; }
.rt-checkout-header__bag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.rt-checkout-footer {
	border-top: 1px solid #e5e5e5;
	padding: 18px 0 26px;
	font-size: 13px;
}
.rt-checkout-footer .rt-wrap { display: flex; gap: 22px; flex-wrap: wrap; }
.rt-checkout-footer a { color: #1773b0; text-decoration: underline; }

body.rt-checkout-light .rt-page { padding: 34px 0 60px; }
body.rt-checkout-light .rt-page h1 {
	font-family: var(--rt-body);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	font-size: 24px;
	color: #111;
	margin-bottom: 20px;
}

/* Texto general */
body.rt-checkout-light .wp-block-woocommerce-checkout,
body.rt-checkout-light .wc-block-checkout,
body.rt-checkout-light .wc-block-components-checkout-step__title,
body.rt-checkout-light .wc-block-components-title,
body.rt-checkout-light .wc-block-components-checkout-step__heading,
body.rt-checkout-light .wp-block-woocommerce-checkout h2,
body.rt-checkout-light .wc-block-components-checkout-step__description,
body.rt-checkout-light .wc-block-components-address-card,
body.rt-checkout-light .wc-block-components-product-name,
body.rt-checkout-light .wc-block-components-totals-item,
body.rt-checkout-light .wc-block-components-formatted-money-amount,
body.rt-checkout-light .wc-block-components-checkout-order-summary__title-text,
body.rt-checkout-light .wc-block-components-order-summary-item__description {
	color: #333 !important;
}
body.rt-checkout-light .wc-block-components-checkout-step__title,
body.rt-checkout-light .wp-block-woocommerce-checkout h2 { color: #111 !important; font-weight: 700; }

/* Todos los encabezados en claro (checkout y «pedido recibido») */
body.rt-checkout-light h1,
body.rt-checkout-light h2,
body.rt-checkout-light h3,
body.rt-checkout-light .wc-block-components-payment-method-label,
body.rt-checkout-light .woocommerce-order-overview,
body.rt-checkout-light .woocommerce-thankyou-order-received { color: #111 !important; }
body.rt-checkout-light .wc-block-components-radio-control__option { color: #333 !important; }

/* Campos: redondeados y claros como los del original */
body.rt-checkout-light .wc-block-components-text-input input,
body.rt-checkout-light .wc-block-components-combobox .components-combobox-control__input,
body.rt-checkout-light .wc-block-components-form .wc-block-components-text-input input,
body.rt-checkout-light .wc-block-components-country-input input,
body.rt-checkout-light .wc-block-components-state-input input,
body.rt-checkout-light .wc-blocks-components-select .wc-blocks-components-select__container,
body.rt-checkout-light .wc-blocks-components-select select,
body.rt-checkout-light .wc-block-components-totals-coupon__input input {
	background: #fff !important;
	border: 1px solid #d9d9d9 !important;
	color: #333 !important;
	border-radius: 8px !important;
}
body.rt-checkout-light .wc-block-components-text-input input:focus,
body.rt-checkout-light .wc-blocks-components-select select:focus {
	border-color: #1773b0 !important;
	box-shadow: 0 0 0 1px #1773b0 !important;
}
body.rt-checkout-light .wc-block-components-text-input label,
body.rt-checkout-light .wc-blocks-components-select label,
body.rt-checkout-light .wc-block-components-checkbox__label { color: #737373 !important; }
body.rt-checkout-light .wc-block-components-checkbox__input[type="checkbox"] { background: #fff; border-color: #d9d9d9; }

/* Columna derecha: resumen en gris claro a toda altura */
body.rt-checkout-light .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	background: #fafafa;
	border-left: 1px solid #e5e5e5;
	padding: 28px 24px;
	border-radius: 0;
	align-self: stretch;
}
@media (max-width: 700px) {
	body.rt-checkout-light .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		border-left: 0;
		border-top: 1px solid #e5e5e5;
		border-bottom: 1px solid #e5e5e5;
	}
}
body.rt-checkout-light .wc-block-components-sidebar .wc-block-components-panel,
body.rt-checkout-light .wc-block-components-totals-wrapper,
body.rt-checkout-light .wc-block-components-order-summary {
	background: transparent;
	border-color: #e5e5e5;
	color: #333;
}
body.rt-checkout-light .wc-block-components-divider { border-color: #e5e5e5; }
body.rt-checkout-light .wc-block-components-order-summary-item__image img {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}
body.rt-checkout-light .wc-block-components-order-summary-item__quantity {
	background: #666;
	color: #fff;
	border: 2px solid #fafafa;
}

/* Métodos de envío y pago: tarjetas claras */
body.rt-checkout-light .wc-block-components-radio-control__option,
body.rt-checkout-light .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	color: #333;
}
body.rt-checkout-light .wc-block-components-radio-control__option-checked {
	border-color: #1773b0;
	background: #f2f7fb;
}

/* Botón de pago: rojo de la marca, como el acento del original */
body.rt-checkout-light .wc-block-components-checkout-place-order-button {
	background: var(--rt-red);
	color: #fff;
	border-radius: 8px;
	font-size: 18px;
	padding: 18px 26px;
	width: 100%;
}
body.rt-checkout-light .wc-block-components-checkout-place-order-button:hover { background: var(--rt-red-hover); }

/* Notificaciones sobre claro */
body.rt-checkout-light .woocommerce-notices-wrapper .woocommerce-message,
body.rt-checkout-light .woocommerce-notices-wrapper .woocommerce-info,
body.rt-checkout-light .woocommerce-notices-wrapper .woocommerce-error {
	background: #f7f7f7;
	color: #333;
}
body.rt-checkout-light .wc-block-components-notice-banner { color: #333; }

/* Página de «pedido recibido» clásica, por si se usa */
body.rt-checkout-light .woocommerce-order { color: #333; }
body.rt-checkout-light .woocommerce table.shop_table { background: #fff; color: #333; border-color: #e5e5e5; }
body.rt-checkout-light .woocommerce table.shop_table th,
body.rt-checkout-light .woocommerce table.shop_table td { color: #333; border-color: #eee; }

/* Ocultar el desplegable de variaciones nativo: lo pilotan las tarjetas */
.rt-variations-native { display: none !important; }
