/* Tus Envios Latinos — estilos principales */

:root {
  /* Paleta igual que la app Android (Expo) */
  --color-bg: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-primary: #0066CC;
  --color-primary-dark: #004999;
  --color-primary-light: #3385D6;
  --color-accent: #FF6B35;
  --color-accent-hover: #E8491B;
  --color-accent-light: #FF8F66;
  --color-success: #10B981;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-footer-bg: #1E293B;
  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 102, 204, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  line-height: 1.2;
}

.logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.nav-links a:hover { color: var(--color-accent); }

.nav-links a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 102, 204, 0.1), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(255, 107, 53, 0.08), transparent),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.hero-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
}

.hero-stats li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.hero-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-stat-link:hover {
  color: var(--color-text);
}

.hero-stat-link:hover strong {
  color: var(--color-accent);
}

.hero-stars {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #FBBC04;
  margin-top: 0.2rem;
  line-height: 1;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.88) 42%, rgba(0, 102, 204, 0.28) 100%);
}

.page-hero--remesas .page-hero-bg {
  background-image: url("../assets/images/remesas-cup.jpg");
}

.page-hero--recargas .page-hero-bg {
  background-image: url("../assets/images/recargas-havana.jpg");
}

.page-hero--combos .page-hero-bg {
  background-image: url("../assets/images/combos-mercado.jpg");
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.page-hero-sub {
  margin: 0;
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.service-remesa::before {
  background: linear-gradient(90deg, #0066CC, #004999);
}

.service-recargas::before {
  background: linear-gradient(90deg, #10B981, #059669);
}

.service-combos::before {
  background: linear-gradient(90deg, #FF6B35, #E8491B);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.service-card p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cuba band */
.cuba-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cuba-band-media {
  margin: 0;
}

.cuba-band-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cuba-band-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.cuba-band-content > p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.cuba-band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cuba-band-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text);
  font-weight: 500;
}

.cuba-band-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Calculator */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.field-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.option-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.option-btn {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}

.option-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-btn span {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.option-btn input:checked + span {
  border-color: var(--color-primary);
  background: rgba(0, 102, 204, 0.08);
  color: var(--color-primary);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.catalog-toolbar label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.currency-select {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-group select:disabled {
  background: var(--color-bg-alt);
  cursor: not-allowed;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-primary); }
.form-check label { margin: 0; font-weight: 500; cursor: pointer; }

.form-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form-note.error { color: #b91c1c; }
.form-note.success { color: var(--color-primary-light); }

.calculator-result h3 {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.result-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: var(--radius);
}

.result-details { margin: 0; }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.result-row dt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.result-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.result-total {
  border-bottom: none;
  padding-top: 1rem;
}

.result-total dt,
.result-total dd {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.result-highlight {
  margin-top: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(255, 107, 53, 0.08));
  border-radius: var(--radius);
  border: none;
}

.result-highlight dd {
  font-size: 1.25rem;
  color: var(--color-accent);
}

.result-disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hidden { display: none !important; }

/* Catalog (combos & recargas) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.catalog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-card--selectable {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.catalog-card--selectable:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.catalog-card--selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
  background: rgba(0, 102, 204, 0.04);
}

.catalog-select-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: rgba(0, 102, 204, 0.1);
  border-radius: 999px;
}

.order-panel {
  margin-top: 2rem;
}

.order-panel-inner {
  padding: 1.75rem;
}

.order-panel-inner h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.order-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.order-form h4 {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 1rem;
  margin: 1.25rem 0;
}

.btn-whatsapp {
  margin-top: 0.5rem;
}

.btn-whatsapp::before {
  content: "💬 ";
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.catalog-card .catalog-desc {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.catalog-card .catalog-price {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.catalog-card .catalog-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.catalog-loading,
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.catalog-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  width: fit-content;
}

/* Reviews */
.section-reviews {
  background: var(--color-bg-alt);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 204, 0.12);
  color: var(--color-primary);
  font-weight: 700;
}

.review-author {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

.review-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.review-stars {
  color: #FBBC04;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.review-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
}

.reviews-loading,
.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 1.5rem;
}

.reviews-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reviews-footer {
  margin: 1rem 0 0;
  text-align: center;
}

.reviews-footer a {
  font-weight: 600;
}

/* CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.92) 0%, rgba(0, 73, 153, 0.88) 55%, rgba(255, 107, 53, 0.75) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.cta-content > p {
  margin: 0 0 2rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-section .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-section .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.contact-info {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.85;
}

.contact-info a { color: var(--color-accent-light); }

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-inner { text-align: center; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-col a:hover { color: var(--color-accent-light); }

.footer-col p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.65;
}

.footer-bottom p { margin: 0; }

/* Legal & content pages */
.legal-page { padding-bottom: 4rem; }

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 2.25rem 0 0.75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li { margin-bottom: 0.4rem; }

.legal-content a { font-weight: 500; }

.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.legal-toc h2 {
  margin: 0 0 1rem !important;
  font-size: 1rem !important;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc a {
  font-size: 0.9rem;
  color: var(--color-text);
}

.legal-toc a:hover { color: var(--color-accent); }

/* FAQ */
.faq-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 102, 204, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p + p { margin-top: 0.75rem; }

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-cat-label {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.footer-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  opacity: 0.6;
}

.file-protocol-banner {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.file-protocol-banner p {
  margin: 0 0 0.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.file-protocol-banner p:last-child {
  margin-bottom: 0;
}

.file-protocol-banner code {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.file-protocol-banner a {
  color: #b45309;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .calculator-layout { grid-template-columns: 1fr; }

  .hero-layout,
  .cuba-band-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero { padding: 2.5rem 0 2.5rem; }
  .section { padding: 3rem 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .legal-toc ol { columns: 1; }
}
