/* ════════════════════════════════════════════════════════════
   stock3.css — Apple Store inspired (light)
   Sistema compartido entre index.php, stock-iphone.php, productos-apple.php y oferta3.php.
   Edita aqui una vez y se propaga en todas.
   ════════════════════════════════════════════════════════════ */

:root {
	--bg:           #ffffff;
	--bg-soft:      #f5f5f7;
	--bg-dark:      #1d1d1f;
	--bg-deep:      #000000;
	--ink:          #1d1d1f;
	--ink-mute:     #6e6e73;
	--ink-soft:     #86868b;
	--border:       #d2d2d7;
	--border-strong:#86868b;
	--brand:        #7c3aed;
	--brand-hover:  #6d28d9;
	--brand-bright: #a78bfa;
	--success:      #34c759;
	--success-soft: #ecfdf5;
	--success-ink:  #047857;
	--warn:         #ff9500;
	--wa:           #25d366;
	--wa-hover:     #1fad53;
	--surface-1:    #ffffff;
	--surface-2:    #f5f5f7;
	--surface-3:    #fafafa;

	--r-field:  8px;
	--r-card:   12px;
	--r-panel:  18px;
	--r-pill:   980px;

	--ff-display: 'Inter Tight', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	--ff-text:    'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--ff-text);
	background: var(--bg);
	color: var(--ink);
	line-height: 1.47;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 17px;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.s-header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 16px 22px;
}
.s-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.s-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.01em;
}
.s-brand:hover { color: var(--ink); }
.s-brand svg { width: 22px; height: 22px; color: var(--ink); }
.s-brand-logo { width: 32px; height: 32px; object-fit: contain; display: block; }
.s-header-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wa);
	color: #fff;
	padding: 8px 16px;
	border-radius: var(--r-pill);
	font-weight: 600;
	font-size: 14px;
	transition: background .2s;
}
.s-header-wa:hover { background: var(--wa-hover); color: #fff; }
.s-header-wa svg { width: 16px; height: 16px; fill: currentColor; }

.s-header-nav {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 14px;
	background: rgba(124,58,237,.08);
	color: var(--brand);
	border: 1px solid rgba(124,58,237,.18);
	border-radius: var(--r-pill);
	font-weight: 500;
	font-size: 14px;
	transition: background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.s-header-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.s-header-nav-arrow { font-size: 16px; line-height: 1; }
.s-header-nav-text-short { display: none; }

/* ════════════════════════════════════════════════════════════
   HERO chapter dark
   ════════════════════════════════════════════════════════════ */
.s-hero {
	background: var(--bg-dark);
	color: #f5f5f7;
	padding: 56px 22px 64px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.s-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(124,58,237,.18) 0%, transparent 55%),
		radial-gradient(circle at 80% 70%, rgba(167,139,250,.10) 0%, transparent 55%);
	pointer-events: none;
}
.s-hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.s-hero-eyebrow {
	font-family: var(--ff-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--brand-bright);
	letter-spacing: 0.02em;
	margin-bottom: 14px;
	text-transform: uppercase;
}
.s-hero-pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 18px;
}
.s-hero-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	background: rgba(167,139,250,.14);
	color: var(--brand-bright);
	border: 1px solid rgba(167,139,250,.28);
	border-radius: var(--r-pill);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.s-hero h1 {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: clamp(26px, 4.2vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	color: #fff;
}
.s-hero-sub {
	font-size: 19px;
	color: rgba(245,245,247,.7);
	margin: 0 0 26px;
	line-height: 1.4;
}
.s-hero-ctas {
	display: inline-flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.s-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--brand);
	color: #fff;
	padding: 12px 22px;
	border-radius: var(--r-pill);
	font-size: 15px;
	font-weight: 500;
	transition: background .2s, transform .12s;
}
.s-hero-cta:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.s-hero-cta-icon { font-size: 18px; line-height: 1; }
.s-hero-cta--ghost {
	background: rgba(255,255,255,.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,.18);
}
.s-hero-cta--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ════════════════════════════════════════════════════════════
   PROMO BAND (modulo cuotas destacado, estetica Apple)
   ════════════════════════════════════════════════════════════ */
.s-promo-band {
	background: var(--bg-soft);
	padding: 40px 22px;
}
.s-promo-card {
	max-width: 820px;
	margin: 0 auto;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-panel);
	padding: 44px 40px 36px;
	text-align: center;
	box-shadow: 0 4px 18px rgba(124,58,237,.06);
}
.s-promo-eyebrow {
	font-family: var(--ff-text);
	font-size: 13px;
	letter-spacing: 0.16em;
	font-weight: 600;
	color: var(--brand);
	text-transform: uppercase;
	margin-bottom: 14px;
}
.s-promo-headline {
	font-family: var(--ff-display);
	font-size: clamp(30px, 5.5vw, 48px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0 0 10px;
}
.s-promo-sub {
	font-family: var(--ff-display);
	font-size: clamp(17px, 2.6vw, 22px);
	font-weight: 500;
	color: var(--ink-mute);
	letter-spacing: -0.01em;
	margin-bottom: 26px;
	line-height: 1.25;
}
.s-promo-cards {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.s-promo-cards svg { height: 44px; width: auto; display: block; }
.s-promo-microcopy {
	font-size: 14px;
	color: var(--ink-mute);
	font-weight: 500;
	margin: 0;
}

/* ════════════════════════════════════════════════════════════
   BENEFITS strip
   ════════════════════════════════════════════════════════════ */
.s-benefits {
	background: var(--bg-soft);
	border-bottom: 1px solid var(--border);
	padding: 18px 22px;
}
.s-benefits-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.s-benefit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ink);
	font-weight: 500;
}
.s-benefit svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.s-benefit strong { font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   CATEGORIES grid (HOME)
   ════════════════════════════════════════════════════════════ */
.s-categories {
	background: var(--bg);
	padding: 56px 22px;
}
.s-categories-inner { max-width: 1200px; margin: 0 auto; }
.s-section-eyebrow {
	font-family: var(--ff-text);
	font-size: 13px;
	letter-spacing: 0.14em;
	font-weight: 600;
	color: var(--brand);
	text-transform: uppercase;
	margin-bottom: 8px;
	text-align: center;
}
.s-section-title {
	font-family: var(--ff-display);
	font-size: clamp(28px, 4.5vw, 40px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 36px;
	text-align: center;
}
.s-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.s-cat-card {
	background: var(--bg-soft);
	border: 1px solid transparent;
	border-radius: var(--r-panel);
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--ink);
	transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
}
.s-cat-card:hover {
	color: var(--ink);
	background: var(--bg);
	border-color: var(--border);
	box-shadow: 0 12px 32px rgba(124,58,237,.10);
	transform: translateY(-3px);
}
.s-cat-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
}
.s-cat-icon svg { width: 100%; height: 100%; }
.s-cat-name {
	font-family: var(--ff-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin-bottom: 4px;
}
.s-cat-sub {
	font-size: 14px;
	color: var(--ink-mute);
	margin-bottom: 14px;
	min-height: 21px;
}
.s-cat-link {
	font-size: 14px;
	color: var(--brand);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.s-cat-card:hover .s-cat-link { color: var(--brand-hover); }
.s-cat-link::after { content: '›'; font-size: 18px; line-height: 1; transition: transform .2s; }
.s-cat-card:hover .s-cat-link::after { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════
   HIGHLIGHTS — beneficios destacados (HOME)
   ════════════════════════════════════════════════════════════ */
.s-highlights {
	background: var(--bg);
	padding: 64px 22px 24px;
}
.s-highlights-inner { max-width: 1200px; margin: 0 auto; }
.s-hl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}
.s-hl-card {
	background: var(--bg-soft);
	border: 1px solid transparent;
	border-radius: var(--r-panel);
	padding: 28px 22px 26px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
}
.s-hl-card:hover {
	background: var(--bg);
	border-color: var(--border);
	box-shadow: 0 12px 32px rgba(124,58,237,.08);
	transform: translateY(-2px);
}
.s-hl-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand);
}
.s-hl-icon svg { width: 100%; height: 100%; }
.s-hl-title {
	font-family: var(--ff-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin-bottom: 6px;
	line-height: 1.25;
}
.s-hl-desc {
	font-size: 14px;
	color: var(--ink-mute);
	margin: 0;
	line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════
   CTA band (dark) — usado en home como cierre
   ════════════════════════════════════════════════════════════ */
.s-cta-band {
	background: var(--bg-dark);
	color: #f5f5f7;
	padding: 64px 22px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.s-cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 20%, rgba(124,58,237,.22) 0%, transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(167,139,250,.12) 0%, transparent 55%);
	pointer-events: none;
}
.s-cta-band-inner { max-width: 720px; margin: 0 auto; position: relative; }
.s-cta-band-eyebrow {
	font-size: 13px;
	letter-spacing: 0.14em;
	color: var(--brand-bright);
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 12px;
}
.s-cta-band-title {
	font-family: var(--ff-display);
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 14px;
}
.s-cta-band-sub {
	font-size: 18px;
	color: rgba(245,245,247,.7);
	margin: 0 0 26px;
	line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════
   SEO content block (HOME footer SEO)
   ════════════════════════════════════════════════════════════ */
.s-seo {
	background: var(--bg);
	padding: 64px 22px 72px;
	border-top: 1px solid var(--border);
}
.s-seo-inner {
	max-width: 980px;
	margin: 0 auto;
}
.s-seo-inner::after {
	content: '';
	display: block;
	clear: both;
}
.s-seo-title {
	font-family: var(--ff-display);
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 32px;
	text-align: center;
}
.s-seo-img {
	width: 320px;
	height: auto;
	border-radius: var(--r-panel);
	float: left;
	margin: 4px 28px 12px 0;
	display: block;
}
.s-seo-p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-mute);
	margin: 0 0 16px;
}
.s-seo-p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════
   STOCK PAGE — main / actionbar / chips / toolbar
   ════════════════════════════════════════════════════════════ */
.s-main { max-width: 1200px; margin: 0 auto; padding: 32px 22px 56px; }

.s-actionbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--border);
}
.s-actionbar-title {
	font-family: var(--ff-display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
	flex: 1;
	min-width: 200px;
}
.s-cotizar-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ink);
	color: #fff;
	padding: 11px 20px;
	border-radius: var(--r-pill);
	font-size: 15px;
	font-weight: 500;
	transition: background .2s, transform .12s;
	white-space: nowrap;
}
.s-cotizar-btn:hover { background: #000; transform: translateY(-1px); }
.s-cotizar-btn .icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.s-cotizar-btn.has-value { background: var(--brand); box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.s-cotizar-btn.has-value:hover { background: var(--brand-hover); }
.s-cotizar-status {
	display: none;
	font-size: 13px;
	color: var(--ink-mute);
	background: var(--bg-soft);
	padding: 8px 14px;
	border-radius: var(--r-pill);
	border: 1px solid var(--border);
}
.s-cotizar-status.show { display: inline-flex; align-items: center; gap: 8px; }
.s-cotizar-status strong { color: var(--ink); font-weight: 600; }
.s-cotizar-status .clear { color: var(--ink-mute); font-size: 12px; margin-left: 4px; cursor: pointer; background: none; border: none; padding: 2px; }
.s-cotizar-status .clear:hover { color: var(--ink); }

.s-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 8px;
	padding-bottom: 4px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
}
.s-filters::-webkit-scrollbar { display: none; }
.s-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--bg-soft);
	color: var(--ink);
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .2s, border-color .2s, color .2s;
	flex-shrink: 0;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(124,58,237,.15);
	min-height: 38px;
}
.s-chip:hover { background: #ebebed; }
.s-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.s-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--ink-mute);
	flex-wrap: wrap;
}
.s-count strong { color: var(--ink); font-weight: 600; }
.s-sort { display: inline-flex; align-items: center; gap: 8px; }
.s-sort-select {
	padding: 6px 28px 6px 12px;
	border: 1px solid var(--border);
	border-radius: var(--r-field);
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 12px;
	font-size: 14px;
	color: var(--ink);
	font-family: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	touch-action: manipulation;
	min-height: 36px;
}
.s-sort-select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   CARDS GRID (stock)
   ════════════════════════════════════════════════════════════ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.iphone-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	transition: border-color .2s, box-shadow .2s, transform .2s;
	opacity: 0;
	transform: translateY(8px);
}
.iphone-card.revealed { opacity: 1; transform: none; }
.iphone-card:hover { border-color: var(--ink-soft); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.iphone-card.is-hidden { display: none !important; }
.iphone-card.is-paid { border-color: var(--success); background: linear-gradient(180deg, var(--success-soft) 0%, #fff 35%); }

.card-header { margin-bottom: 12px; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); font-weight: 600; letter-spacing: 0.02em; }
.badge-nuevo { background: rgba(52,199,89,.12); color: #047857; }
.badge-seminuevo { background: rgba(124,58,237,.1); color: var(--brand-hover); }
.badge-promo { background: var(--warn); color: #fff; }
.badge-paid { background: var(--success); color: #fff; }

.card-body { flex: 1; display: flex; flex-direction: column; }
.modelo-titulo {
	font-family: var(--ff-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 4px;
	color: var(--ink);
}
.modelo-detalles { font-size: 13px; color: var(--ink-mute); margin-bottom: 12px; }
.comentario-web { font-size: 12px; color: var(--ink-mute); font-style: italic; background: var(--bg-soft); padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; }

.precios-row { margin-bottom: 14px; }
.precio-usd {
	font-family: var(--ff-display);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
	line-height: 1.1;
	margin-bottom: 6px;
}
.precio-usd .tachado { font-size: 15px; color: var(--ink-mute); text-decoration: line-through; margin-right: 10px; font-weight: 500; }
.precio-usd .promo { color: var(--warn); }
.incluye-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-mute); font-weight: 500; padding: 4px 0; }
.incluye-badge .regalo { font-size: 13px; }

.desc-box { display: none; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; }
.desc-box.show { display: block; }
.desc-line { display: flex; justify-content: space-between; padding: 3px 0; }
.desc-lbl { color: var(--ink-mute); }
.desc-val { color: var(--ink); font-weight: 500; }
.desc-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.desc-total-lbl { font-size: 12px; color: var(--ink-mute); flex: 1; line-height: 1.3; }
.desc-total-lbl small { display: block; font-size: 11px; opacity: .7; }
.desc-total-val { font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.desc-box.paid { background: var(--success-soft); }
.desc-box.paid .desc-total-val { color: var(--success-ink); }

.cuotas-destacadas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cuota-destacada { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; text-align: center; border: 1px solid transparent; transition: border-color .15s; display: flex; flex-direction: column; }
.cuota-destacada:hover { border-color: var(--border); }
.cuota-destacada.cuota-6sin { background: rgba(52,199,89,.08); }
.cuota-destacada.cuota-bna { background: rgba(124,58,237,.08); }
.cuota-destacada.cuota-tarjeta { background: var(--bg-soft); }
.cuota-destacada.cuota-bna-fija { background: rgba(124,58,237,.12); }
.cuota-label { font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; text-transform: uppercase; order: 1; }
.cuota-monto { font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; order: 2; }
.cuota-sublabel { font-size: 10px; color: var(--ink-mute); margin-top: 2px; letter-spacing: 0.03em; text-transform: uppercase; order: 3; }

.btn-ver-cuotas { width: 100%; background: none; border: none; color: var(--brand); padding: 8px; font-size: 13px; font-weight: 500; cursor: pointer; margin: 4px 0 0; transition: color .15s; }
.btn-ver-cuotas:hover { color: var(--brand-hover); }
.btn-ver-cuotas .arrow { display: inline-block; transition: transform .2s; font-size: 11px; }
.btn-ver-cuotas.open .arrow { transform: rotate(180deg); }
.cuotas-panel { display: none; padding: 6px 0 4px; }
.cuotas-panel.open { display: block; }
.cuotas-modulo { margin-bottom: 12px; }
.cuotas-modulo-header { font-size: 11px; font-weight: 600; color: var(--ink-mute); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.cuota-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cuota-row:last-child { border-bottom: none; }
.cuota-row .plazo { color: var(--ink-mute); }
.cuota-row .valor { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.cuotas-min-msg { display: none; background: rgba(255,149,0,.1); border-left: 3px solid var(--warn); padding: 10px 12px; border-radius: 8px; margin: 10px 0; gap: 10px; align-items: flex-start; }
.cuotas-min-msg.show { display: flex; }
.cuotas-min-msg .min-icon { font-size: 18px; line-height: 1; }
.cuotas-min-msg .min-text { font-size: 12px; color: var(--ink); line-height: 1.45; }
.cuotas-min-msg .min-text strong { color: #b45309; font-weight: 600; }
.iphone-card.hide-cuotas .cuotas-destacadas-row,
.iphone-card.hide-cuotas .btn-ver-cuotas,
.iphone-card.hide-cuotas .cuotas-panel { display: none !important; }

.precio-efectivo-block { background: var(--success-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0; text-align: left; }
.precio-efectivo-block .ef-label { font-size: 11px; font-weight: 600; color: var(--success-ink); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.precio-efectivo-block .ef-monto { font-family: var(--ff-display); font-size: 19px; font-weight: 600; color: var(--success-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.precio-efectivo-block .ef-usd { font-size: 13px; color: var(--success-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.precio-efectivo-block .ef-sub { font-size: 11px; color: var(--success-ink); opacity: .8; margin-top: 4px; }
.precio-efectivo-block .ef-hint { font-size: 11px; color: var(--success-ink); margin-top: 6px; font-style: italic; padding-top: 6px; border-top: 1px solid rgba(4,120,87,.15); }

.no-stock, .filter-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-mute); background: var(--bg-soft); border-radius: var(--r-card); }
.filter-empty h3, .no-stock h2 { color: var(--ink); margin: 0 0 8px; font-family: var(--ff-display); }

/* ════════════════════════════════════════════════════════════
   MODAL Cotizador (stock3)
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity .2s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
	background: var(--bg);
	border-radius: var(--r-panel);
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	transform: translateY(20px) scale(.97);
	transition: transform .25s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.modal-overlay.active .modal { transform: none; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-family: var(--ff-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: background .2s; }
.modal-close:hover { background: #ebebed; }
.modal-body { padding: 22px 24px; }
.modal-section + .modal-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-section-title { font-size: 12px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.modal-section-hint { font-size: 13px; color: var(--ink-mute); margin: 4px 0 14px; line-height: 1.45; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .field-grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.field select, .field input {
	padding: 10px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--r-field);
	font-size: 15px;
	background: var(--bg);
	color: var(--ink);
	font-family: inherit;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	width: 100%;
}
.field select { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.field select:focus, .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.field-hint { font-size: 12px; color: #6b4f00; background: #fffbeb; border-left: 3px solid var(--warn); padding: 8px 10px; border-radius: 6px; margin-top: 6px; line-height: 1.45; display: none; }
.field-hint.show { display: block; }
.field-hint strong { color: #4a3200; font-weight: 600; }

.cot-result { display: none; margin-top: 14px; padding: 12px 14px; background: #fef2f2; border-radius: 10px; border-left: 3px solid #dc2626; font-size: 13px; }
.cot-result.show { display: block; }
.cot-result.ok { background: var(--success-soft); border-left-color: var(--success); color: var(--success-ink); }
.cot-result-title { font-weight: 600; color: #b91c1c; margin-bottom: 2px; }
.cot-result.ok .cot-result-title { color: var(--success-ink); }
.cot-result-nota { color: var(--ink-mute); font-size: 12px; line-height: 1.45; }
.cot-result.ok .cot-result-nota { color: var(--ink); }

.modal-footer { padding: 16px 24px 22px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.modal-summary { font-size: 13px; color: var(--ink); flex: 1; min-width: 180px; }
.modal-summary strong { color: var(--ink); font-weight: 600; }
.modal-summary .empty { color: var(--ink-mute); font-style: italic; }
.btn-aplicar { background: var(--brand); color: #fff; padding: 11px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; transition: background .2s, transform .12s; }
.btn-aplicar:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--ink); border: 1px solid var(--border-strong); padding: 11px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; transition: background .15s; }
.btn-secondary:hover { background: var(--bg-soft); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.s-footer { background: var(--bg-dark); color: rgba(245,245,247,.65); padding: 48px 22px 24px; margin-top: 56px; }
.s-footer-inner { max-width: 1200px; margin: 0 auto; }
.sf-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .sf-grid { grid-template-columns: 2fr 1fr; } }
.sf-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sf-brand svg { color: var(--brand-bright); flex-shrink: 0; }
.sf-brand-name { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.sf-desc { font-size: 14px; line-height: 1.55; color: rgba(245,245,247,.6); margin-bottom: 16px; max-width: 540px; }
.sf-social { display: flex; gap: 10px; }
.sf-social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(245,245,247,.7); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.sf-social-link:hover { background: var(--brand); color: #fff; }
.sf-social-link svg { width: 17px; height: 17px; fill: currentColor; }
.sf-heading { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.sf-contact { list-style: none; padding: 0; margin: 0; }
.sf-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: rgba(245,245,247,.65); }
.sf-contact li svg { flex-shrink: 0; color: var(--brand-bright); }
.sf-contact a { color: rgba(245,245,247,.65); }
.sf-contact a:hover { color: var(--brand-bright); }
.sf-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(245,245,247,.4); text-align: center; }

/* ════════════════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════════════════ */
.back-to-top {
	position: fixed; bottom: 22px; right: 22px;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink);
	border: 1px solid var(--border);
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	z-index: 800;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s, background .2s;
	pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--ink); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════
   POPUP WhatsApp (stock3)
   ════════════════════════════════════════════════════════════ */
.popup-wa { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup-wa.active { display: flex; }
.popup-wa-modal { background: var(--bg); border-radius: var(--r-panel); padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.popup-wa-modal h3 { margin: 0 0 8px; font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.popup-wa-modal p { color: var(--ink-mute); margin: 0 0 18px; font-size: 14px; }
.popup-wa-modal a { display: block; text-align: center; background: var(--wa); color: #fff; padding: 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; transition: background .15s; }
.popup-wa-modal a:hover { background: var(--wa-hover); color: #fff; }
.popup-wa-close { margin-top: 10px; text-align: center; color: var(--ink-mute); cursor: pointer; font-size: 13px; padding: 6px; }
.popup-wa-close:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — mobile: full ancho, padding lateral 14px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	.s-header     { padding: 10px 14px; }
	.s-hero       { padding: 32px 16px 36px; }
	.s-promo-band { padding: 28px 14px; }
	.s-benefits   { padding: 14px 14px; }
	.s-highlights { padding: 40px 14px 12px; }
	.s-categories { padding: 40px 14px; }
	.s-cta-band   { padding: 44px 14px; }
	.s-seo        { padding: 44px 14px 52px; }
	.s-main       { padding: 20px 14px 36px; }
	.s-footer     { padding: 36px 14px 22px; }

	.s-promo-card { padding: 28px 18px 24px; max-width: 100%; }
	.s-promo-cards svg { height: 36px; }
	.s-promo-cards { gap: 8px; }

	/* Header brand 1-line + WA icon-only */
	.s-brand { font-size: 15px; gap: 8px; min-width: 0; flex: 1; }
	.s-brand-logo { width: 28px; height: 28px; flex-shrink: 0; }
	.s-header-wa { padding: 0; width: 40px; height: 40px; border-radius: 50%; justify-content: center; flex-shrink: 0; }
	.s-header-wa-text { display: none; }
	.s-header-wa svg { width: 18px; height: 18px; }

	.s-header-nav { padding: 6px 11px; font-size: 13px; gap: 2px; }
	.s-header-nav-text { display: none; }
	.s-header-nav-text-short { display: inline; }
	.s-header-nav-arrow { font-size: 14px; }

	.s-hero h1 { font-size: clamp(20px, 5.4vw, 26px); line-height: 1.15; margin-bottom: 12px; }
	.s-hero-sub { font-size: 15px; line-height: 1.45; margin-bottom: 22px; }
	.s-hero-pills { gap: 6px; margin-bottom: 16px; }
	.s-hero-pill { font-size: 10.5px; padding: 4px 10px; letter-spacing: 0.05em; }
	.s-hero-ctas { flex-direction: column; width: 100%; }
	.s-hero-cta { justify-content: center; min-height: 48px; }

	.s-hl-grid { grid-template-columns: 1fr; gap: 10px; }
	.s-hl-card { padding: 22px 18px 20px; }

	.s-seo-title { margin-bottom: 22px; }
	.s-seo-img { float: none; width: 100%; margin: 0 0 22px; }
	.s-seo-p { font-size: 15px; line-height: 1.6; }

	/* Action bar + cotizar btn (44px tap target) */
	.s-actionbar { gap: 10px; padding-bottom: 16px; margin-bottom: 16px; }
	.s-actionbar-title { font-size: 18px; flex-basis: 100%; line-height: 1.25; }
	.s-cotizar-btn { width: 100%; justify-content: center; min-height: 48px; }
	.s-cotizar-status { width: 100%; justify-content: center; }

	/* Filters scroll: edge fade + tighter chips */
	.s-filters { margin-left: -4px; margin-right: -4px; padding: 0 4px 6px; }
	.s-chip { padding: 9px 14px; font-size: 13.5px; min-height: 40px; }

	/* Toolbar: label arriba del select */
	.s-toolbar { gap: 8px; }
	.s-sort { width: 100%; }
	.s-sort-select { width: 100%; min-height: 40px; font-size: 14px; }

	.cards-grid { grid-template-columns: 1fr; gap: 12px; }
	.iphone-card { padding: 18px 16px; border-radius: var(--r-card); }
	.modelo-titulo { font-size: 19px; }
	.precio-usd { font-size: 24px; }
	/* Cuotas destacadas: 1 columna en mobile (más legible) */
	.cuotas-destacadas-row { grid-template-columns: 1fr; gap: 6px; }
	.cuota-destacada { padding: 10px 12px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
	.cuota-destacada .cuota-label { font-size: 12px; order: 0; }
	.cuota-destacada .cuota-sublabel { font-size: 10.5px; margin-top: 0; order: 0; }
	.cuota-destacada .cuota-monto { font-size: 16px; margin-top: 0; flex-shrink: 0; order: 0; }
	.cuota-destacada > div:first-child { flex: 1; }

	.modal-overlay { padding: 0; align-items: flex-end; }
	.modal { max-height: 95vh; max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; align-self: flex-end; }
	.modal-head    { padding: 11px 16px; border-bottom: 1px solid var(--border); }
	.modal-body    { padding: 12px 16px; }
	.modal-footer  { padding: 10px 16px 12px; gap: 8px; }
	.modal-section + .modal-section { margin-top: 12px; padding-top: 10px; }
	.modal-title { font-size: 16px; letter-spacing: -0.01em; }
	.modal-section-title { font-size: 11px; margin-bottom: 6px; letter-spacing: 0.05em; }
	.modal-section-hint { font-size: 12px; line-height: 1.35; margin: 0 0 8px; }
	/* Inputs efectivo en 2-col en mobile (USD + Pesos juntos, MP solo abajo) */
	.field-grid-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
	.field-grid-3 .field:last-child { grid-column: 1 / -1; }
	.field-grid { gap: 8px; }
	.field { gap: 3px; }
	.field label { font-size: 11.5px; }
	.field select, .field input { padding: 9px 11px; font-size: 15px; min-height: 42px; }
	.cot-result { padding: 8px 10px; margin-top: 8px; font-size: 12px; }
	.field-hint { padding: 6px 10px; font-size: 11.5px; line-height: 1.35; margin-top: 4px; }
	/* Summary se oculta en mobile para que entren los botones — el resumen real esta en cada card */
	.modal-summary { display: none; }
	.btn-aplicar, .btn-secondary { padding: 10px 14px; min-height: 42px; flex: 1; font-size: 14px; }

	.s-benefits-inner { gap: 12px 16px; }
	.s-benefit { font-size: 13px; }

	.s-section-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 24px; }
	.s-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.s-cat-card { padding: 24px 16px; }
	.s-cat-icon { width: 48px; height: 48px; }
	.s-cat-name { font-size: 18px; }

	.s-cta-band-title { font-size: clamp(24px, 7vw, 32px); }
	.s-cta-band-sub { font-size: 16px; }

	.sf-grid { gap: 24px; }
	.sf-desc { font-size: 13px; }

	.popup-wa { padding: 14px; }
	.popup-wa-modal { padding: 20px 18px; border-radius: 14px; }
}
