/* ============================================================
   TEMA APPLE (variante /apple)
   Estructura tomada de DESIGN.md: lienzo claro, un solo acento,
   hairlines, tipografía system-ui, sin gradientes ni sombras.
   Se carga SOLO en /apple y se apoya en style.css.
============================================================ */

html.theme-apple {
  background-color: #ffffff;
}

body.theme-apple {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, sans-serif;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --hair: #d2d2d7;
  --hair-soft: #e8e8ed;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: rgba(234, 88, 12, 0.1);

  --ria-orange: #ea580c;
  --ria-orange-hover: #c2410c;
  --text-main: #1d1d1f;
  --text-muted: #424245;
  --text-dim: #6e6e73;
  --bg-slate: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f5f7;

  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Decoración fuera: la atmósfera la da el contenido */
.theme-apple .aura-fixed-wrap {
  display: none;
}

/* ---------------- Tipografía ---------------- */

.theme-apple .hero-main-title {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.theme-apple .hero-main-desc {
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  max-width: 34rem;
}

.theme-apple .hero-main-desc strong {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .section-head h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.theme-apple .section-head p,
.theme-apple .partner-sub {
  font-size: 1.0625rem;
  line-height: 1.47;
  color: var(--ink-3);
}

/* ---------------- Header ---------------- */

.theme-apple .ria-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair-soft);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.theme-apple .brand-title {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .brand-subtitle {
  color: var(--ink-3);
  font-weight: 400;
}

.theme-apple .nav-link {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 0.875rem;
}

.theme-apple .nav-link:hover {
  color: var(--ink);
}

.theme-apple .header-rate-pill {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .btn-alumnos-login {
  background: #ffffff;
  border: 1px solid var(--hair);
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .btn-black-pill {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
}

.theme-apple .btn-black-pill:hover {
  background: var(--accent-hover);
}

.theme-apple .nav-toggle {
  background: #ffffff;
  border: 1px solid var(--hair);
}

.theme-apple .nav-toggle-bar {
  background: var(--ink);
}

@media (max-width: 960px) {
  .theme-apple .header-nav {
    background: #ffffff;
    border: 1px solid var(--hair-soft);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
}

/* ---------------- Hero ---------------- */

.theme-apple .hero-wrapper {
  max-width: 1440px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.theme-apple .hero-grid {
  gap: clamp(2rem, 5vw, 4.5rem);
}

/* ---------------- Comparativa ---------------- */

.theme-apple .hero-live-matrix {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  box-shadow: none;
}

.theme-apple .hero-live-matrix:hover {
  border-color: var(--hair);
}

.theme-apple .matrix-header {
  border-bottom: 1px solid var(--hair);
}

.theme-apple .matrix-header-title {
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.theme-apple .matrix-dot {
  background: var(--accent);
}

.theme-apple .matrix-tag {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .matrix-col-label {
  color: var(--ink-3);
  font-weight: 400;
}

.theme-apple .matrix-amount {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.theme-apple .matrix-col-p2p .matrix-amount,
.theme-apple .matrix-col-p2p .matrix-detail {
  color: var(--accent);
}

.theme-apple .matrix-divider-arrow {
  color: var(--ink-4);
}

.theme-apple .matrix-detail {
  color: var(--ink-3);
}

.theme-apple .matrix-footer {
  background: var(--accent-soft);
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 11px;
}

.theme-apple .matrix-gain-badge {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
}

.theme-apple .matrix-gain-text {
  color: var(--ink);
}

.theme-apple .matrix-gain-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---------------- Chips de confianza ---------------- */

.theme-apple .check-item,
.theme-apple .hero-mini-pill {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink-2);
  border-radius: 999px;
  font-weight: 400;
}

.theme-apple .hero-cta-btn {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: none;
}

.theme-apple .hero-cta-btn:hover {
  background: var(--accent-hover);
}

/* ---------------- Calculadora ---------------- */

.theme-apple .ria-calc-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 22px;
  box-shadow: none;
}

.theme-apple .calc-promo-banner {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  border-radius: 14px;
}

.theme-apple .promo-title {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .promo-rate {
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .promo-official {
  color: var(--ink-3);
}

.theme-apple .promo-sep {
  color: var(--ink-4);
}

.theme-apple .promo-rate strong {
  color: var(--accent);
  font-weight: 600;
}

.theme-apple .promo-disclaimer {
  color: var(--ink-4);
}

.theme-apple .live-sync-tag {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink-2);
  border-radius: 999px;
  font-weight: 500;
}

.theme-apple .live-pulse-dot {
  background: var(--accent);
  box-shadow: none;
}

.theme-apple .calc-mode-switch-wrap {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
}

.theme-apple .calc-mode-btn {
  color: var(--ink-3);
  font-weight: 500;
  border-radius: 9px;
}

.theme-apple .calc-mode-btn.active {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--hair);
}

.theme-apple .calc-currency-row {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 14px;
}

.theme-apple .row-active-driver {
  border-color: var(--accent) !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.theme-apple .row-top {
  color: var(--ink-3);
  font-weight: 400;
}

.theme-apple .row-active-driver .row-top,
.theme-apple .row-active-driver #receiveRowSub {
  color: var(--accent);
}

.theme-apple #receiveRowSub {
  color: var(--ink-3) !important;
}

.theme-apple .amount-input-control,
.theme-apple .amount-highlight {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.theme-apple .currency-selector-chip {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  color: var(--ink);
}

.theme-apple .quick-chips-row .ria-chip {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink-2);
  font-weight: 400;
}

.theme-apple .quick-chips-row .ria-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

.theme-apple .bank-route-strip {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  color: var(--ink-2);
}

.theme-apple .bank-select {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink);
}

.theme-apple .calc-savings-box {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
}

.theme-apple .savings-copy {
  color: var(--ink-2);
}

.theme-apple .savings-copy strong {
  color: var(--accent);
}

.theme-apple .calc-primary-btn {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
}

.theme-apple .calc-primary-btn:hover {
  background: var(--accent-hover);
}

.theme-apple .calc-guarantee-note {
  color: var(--ink-3);
}

/* ---------------- Comerciantes ---------------- */

.theme-apple .merchants-live-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
}

.theme-apple .merchants-title {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .merchants-source-pill {
  background: var(--parchment);
  border: 1px solid var(--hair);
  color: var(--ink-2);
  font-weight: 500;
}

.theme-apple .merchants-intro,
.theme-apple .merchants-footer-note {
  color: var(--ink-3);
}

.theme-apple .merchant-badge-card {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
}

.theme-apple .merchant-name {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .merchant-price-tag {
  background: #ffffff;
  border: 1px solid var(--hair);
  color: var(--accent);
  font-weight: 600;
}

.theme-apple .merchant-card-stats,
.theme-apple .merchant-stat {
  color: var(--ink-3);
}

.theme-apple .merchant-stat strong {
  color: var(--ink);
}

.theme-apple .stat-success strong {
  color: #0a7d4f;
}

.theme-apple .method-tag {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  color: var(--ink-3);
  border-radius: 999px;
}

.theme-apple .merchant-avatar {
  background: #ffffff;
  border: 1px solid var(--hair);
  color: var(--ink-2);
}

/* ---------------- Secciones ---------------- */

.theme-apple .info-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.theme-apple .info-section:nth-of-type(even) {
  background: var(--parchment);
}

/* Métricas */
.theme-apple .trust-metrics-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  box-shadow: none;
}

.theme-apple .metric-number {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.theme-apple .metric-label {
  color: var(--ink-2);
  font-weight: 500;
}

.theme-apple .metric-sub {
  color: var(--ink-3);
}

.theme-apple .highlight-positive {
  color: var(--accent);
}

/* Bancos */
.theme-apple .partner-banks-strip {
  background: transparent;
}

.theme-apple .banks-carousel-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
}

.theme-apple .banks-group-title {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .partner-logo-item {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
}

/* Cómo funciona */
.theme-apple .ui-performing-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  box-shadow: none;
}

.theme-apple .ui-frag-meta-bar {
  background: transparent;
  border-bottom: 1px solid var(--hair-soft);
}

.theme-apple .ui-frag-tag {
  color: var(--ink-3);
}

.theme-apple .ui-frag-status {
  border-radius: 999px;
  font-weight: 500;
}

.theme-apple .status-verified,
.theme-apple .status-escrow {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(234, 88, 12, 0.25);
}

.theme-apple .status-credited {
  background: rgba(10, 125, 79, 0.1);
  color: #0a7d4f;
  border-color: rgba(10, 125, 79, 0.25);
}

.theme-apple .ui-frag-receipt-body {
  background: #ffffff;
}

.theme-apple .ui-receipt-k {
  color: var(--ink-3);
}

.theme-apple .ui-receipt-v {
  color: var(--ink);
}

.theme-apple .ui-frag-caption h4 {
  color: var(--ink);
}

.theme-apple .ui-frag-caption p {
  color: var(--ink-3);
}

/* Garantía: único tile oscuro */
.theme-apple .guarantee-performing-panel {
  background: #1d1d1f;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.theme-apple .guarantee-panel-title {
  color: #ffffff;
}

.theme-apple .guarantee-panel-desc {
  color: #d2d2d7;
}

.theme-apple .guarantee-shield-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-apple .guarantee-performing-panel .hero-cta-btn {
  background: var(--accent);
  color: #ffffff;
}

/* ---------------- Opiniones ---------------- */

.theme-apple .reviews-summary {
  background: var(--parchment);
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
}

.theme-apple .reviews-average {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .reviews-count,
.theme-apple .reviews-summary-note {
  color: var(--ink-3);
}

.theme-apple .stars-base {
  color: var(--hair);
}

.theme-apple .stars-fill,
.theme-apple .review-stars {
  color: var(--accent);
}

.theme-apple .review-stars .is-empty {
  color: var(--hair);
}

.theme-apple .dist-bar {
  background: var(--hair-soft);
}

.theme-apple .dist-bar > span {
  background: var(--accent);
}

.theme-apple .reviews-cta-link {
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

.theme-apple .reviews-demo-note {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.25);
  color: #9a3412;
}

.theme-apple .review-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  box-shadow: none;
}

.theme-apple .review-card:hover {
  border-color: var(--hair);
  transform: none;
}

.theme-apple .review-avatar {
  background: var(--parchment);
  border: 1px solid var(--hair);
  color: var(--ink-2);
}

.theme-apple .review-id strong {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .review-id span,
.theme-apple .review-foot {
  color: var(--ink-3);
}

.theme-apple .review-text {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.theme-apple .review-badge {
  background: var(--parchment);
  border-color: var(--hair);
  color: var(--ink-3);
  font-weight: 500;
}

.theme-apple .review-example {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.25);
  color: #9a3412;
}

/* ---------------- FAQ ---------------- */

.theme-apple .faq-item {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 14px;
  margin-bottom: 0.6rem;
}

.theme-apple .faq-question {
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .faq-answer p {
  color: var(--ink-3);
}

.theme-apple .faq-question .faq-chevron {
  color: var(--ink-4);
}

/* ---------------- Footer ---------------- */

.theme-apple .ria-footer {
  background: var(--parchment);
  border-top: 1px solid var(--hair-soft);
  color: var(--ink-3);
}

.theme-apple .footer-brand {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .footer-desc,
.theme-apple .footer-disclaimer,
.theme-apple .footer-copy {
  color: var(--ink-3);
}

/* ---------------- Sticky móvil ---------------- */

.theme-apple .sticky-mobile-bar {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--hair-soft);
  box-shadow: none;
}

.theme-apple .sticky-sub {
  color: var(--ink-3);
}

.theme-apple .sticky-val {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .sticky-btn {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
}

/* ---------------- Modal ---------------- */

.theme-apple .login-modal-card {
  background: #ffffff;
  border: 1px solid var(--hair-soft);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.theme-apple .login-title {
  color: var(--ink);
}

.theme-apple .login-sub,
.theme-apple .login-footer-copy {
  color: var(--ink-3);
}

.theme-apple .login-form .btn-login-submit {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
}

.theme-apple .login-modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* ---------------- Micro-interacción ---------------- */

.theme-apple button:active,
.theme-apple .hero-cta-btn:active,
.theme-apple .calc-primary-btn:active,
.theme-apple .btn-black-pill:active,
.theme-apple .reviews-cta-link:active,
.theme-apple .sticky-btn:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .theme-apple button:active,
  .theme-apple .hero-cta-btn:active,
  .theme-apple .calc-primary-btn:active {
    transform: none;
  }
}

/* ---------------- Correcciones de contraste ---------------- */

.theme-apple .partner-heading {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .amount-highlight {
  color: var(--accent) !important;
}

.theme-apple #receiveRowSub {
  color: var(--ink-3) !important;
}

.theme-apple .highlight-amount {
  color: var(--ink) !important;
}

.theme-apple .highlight-rate {
  color: var(--accent) !important;
}

.theme-apple .highlight-safe {
  color: var(--ink) !important;
}

.theme-apple .highlight-gain {
  color: var(--accent) !important;
}

.theme-apple .partner-sub {
  color: var(--ink-3);
}

.theme-apple .calc-guarantee-note {
  color: var(--ink-3);
}

.theme-apple .calc-guarantee-note strong {
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .calc-guarantee-note svg {
  stroke: var(--ink-3);
}

.theme-apple .stat-success strong {
  color: var(--ink-2);
}

.theme-apple .merchant-stat strong {
  color: var(--ink);
}

.theme-apple .guarantee-shield-wrap svg {
  stroke: var(--accent);
}

.theme-apple .faq-answer strong {
  color: var(--ink);
  font-weight: 500;
}

.theme-apple .faq-answer a {
  color: var(--accent);
}

@media (max-width: 480px) {
  .theme-apple .calc-mode-btn {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.4rem;
    min-width: 0;
    font-size: 0.78rem;
  }

  .theme-apple .mode-btn-flag {
    font-size: 0.8rem;
  }
}

/* ---------------- Producto / capturas ---------------- */

.theme-apple .product-main {
  background: #1d1d1f;
  border-color: #1d1d1f;
  border-radius: 22px;
}

.theme-apple .product-main figcaption strong {
  color: #ffffff;
}

.theme-apple .product-main figcaption span {
  color: #a1a1a6;
}

.theme-apple .product-phone {
  background: var(--parchment);
  border-color: var(--hair-soft);
  border-radius: 22px;
}

.theme-apple .product-points {
  background: #ffffff;
  border-color: var(--hair-soft);
  border-radius: 22px;
}

.theme-apple .product-points h4 {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .product-points li {
  color: var(--ink-3);
}

.theme-apple .product-points li::before {
  background: var(--accent);
}

.theme-apple .product-link {
  color: var(--accent);
  font-weight: 500;
}

.theme-apple .product-link:hover {
  color: var(--accent-hover);
}

/* Pasos: estado como etiqueta limpia, sin p?ldora que tape el t?tulo */
.theme-apple .ui-frag-status {
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 500;
  letter-spacing: 0;
}

.theme-apple .status-verified,
.theme-apple .status-escrow {
  color: var(--accent);
}

.theme-apple .status-credited {
  color: #0a7d4f;
}

/* ---------------- Formulario de opiniones ---------------- */

.theme-apple .review-modal-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.theme-apple .review-modal-card {
  background: #ffffff;
  border-color: var(--hair-soft);
  border-radius: 22px;
}

.theme-apple .review-modal-title {
  color: var(--ink);
  font-weight: 600;
}

.theme-apple .review-modal-sub,
.theme-apple .review-field,
.theme-apple .review-rating legend,
.theme-apple .review-consent {
  color: var(--ink-3);
}

.theme-apple .review-input {
  background: var(--parchment);
  border-color: var(--hair-soft);
  color: var(--ink);
}

.theme-apple .review-input:focus {
  border-color: var(--accent);
}

.theme-apple .stars-input label {
  color: var(--hair);
}

.theme-apple .stars-input input:checked ~ label,
.theme-apple .stars-input label:hover,
.theme-apple .stars-input label:hover ~ label {
  color: var(--accent);
}

.theme-apple .review-form-status.is-error {
  color: #b91c1c;
}

.theme-apple .review-form-status.is-ok {
  color: #0a7d4f;
}

.theme-apple .review-submit {
  background: var(--accent);
  font-weight: 500;
}

.theme-apple .review-submit:hover {
  background: var(--accent-hover);
}
