/* ============================================================
   RANI — shared stylesheet, used by every page (index.html,
   faq.html, contact.html, nosotros.html, privacidad.html,
   terminos.html, and any future page). Editing a color, font, or
   the header/footer look here updates it everywhere at once —
   that's the whole point of keeping this in one file.
============================================================= */

/* Barcola Expanded Bold — official heading typeface per BRANDBOOK_RANI.pdf.
   Licensed font file lives in fonts/BarcolaExpanded-Bold.woff2. PAUSED
   for now — the font's own line spacing ran two-line headings together
   too tightly (reported on Política de Privacidad), so headings are
   back to Unbounded (the previous font) until that's dialed in.
   To turn it back on: uncomment the @font-face block below, add
   'Barcola Expanded' to the front of the --font-display line just
   below it, and tighten up the h1 line-height fix that goes with it
   (see the comment on the h1 rule further down this file). */
/*
@font-face {
  font-family: 'Barcola Expanded';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/BarcolaExpanded-Bold.woff2') format('woff2');
}
*/

:root {
  /* ---- Rani brand colors (official values, BRANDBOOK_RANI.pdf) ---- */
  --purple: #5733D1;      /* Mckenzie — primary */
  --purple-deep: #3F1FA0; /* darker shade for depth/gradient (not in brandbook; kept for the existing hero gradient) */
  --white: #FFFFFF;       /* Full White */
  --cheddar: #FDC264;     /* origin / warm accent */
  --sky: #75C5FF;         /* Bright Sky Blue accent */
  --pink: #FF78B0;        /* Pinkest Pink — destination / vibrant accent */
  --lavender: #C9B8F5;    /* tint of purple for supporting text (not in brandbook; kept for existing muted text) */

  --font-display: 'Unbounded', 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;

  --header-h: clamp(38px, 4.5vw, 84px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(120% 140% at 15% 0%, var(--purple-deep) 0%, var(--purple) 45%, var(--purple) 100%);
  color: var(--white);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* subtle repeating "n" motif watermark, echoing the packaging pattern
   from the brandbook — very low opacity so it stays a texture, not noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 20px 20px, var(--white) 3px, transparent 3.5px);
  background-size: 64px 64px;
}

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- Header (shared by every page) ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 0;
}

.logo { display: flex; align-items: center; }
.logo img { display: block; height: var(--header-h); width: auto; }

/* Main site nav — Home / Nosotros / FAQs, shown on every page */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px clamp(16px, 2vw, 28px);
  order: 3;
  flex-basis: 100%;
}
@media (min-width: 720px) {
  .site-nav { order: 0; flex-basis: auto; }
}

.nav-pill-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  opacity: 0.82;
  white-space: nowrap;
}
.nav-pill-link:hover { opacity: 1; }
.nav-pill-link.active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-pill-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.status-pill {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 1.8vw, 28px);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}

.status-pill.pill-enabled { cursor: pointer; }
.status-pill.pill-enabled:hover { background: rgba(255,255,255,0.18); }

/* Countdown ticking + live download button: solid cheddar (brand
   yellow) so this one button stands out from everything else in the
   header while it's actually doing something — a plain "Muy pronto"
   stays understated since there's nothing to click yet. */
.status-pill.pill-countdown,
.status-pill.pill-enabled {
  background: var(--cheddar);
  border-color: var(--cheddar);
  color: var(--purple-deep);
}
.status-pill.pill-enabled:hover {
  background: #FFD48A;
  border-color: #FFD48A;
}

/* Countdown state: two stacked lines instead of one row of caps text */
.status-pill.pill-countdown {
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 8px clamp(14px, 1.8vw, 26px);
  letter-spacing: normal;
  text-transform: none;
  cursor: default;
}
.pill-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pill-value {
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 700;
  letter-spacing: 0;
}

/* A plainer text nav link — kept for any page that needs a single
   one-off link (unused by the six main pages, available if needed). */
.nav-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
}
.nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero (homepage) ---------- */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 28px;
}

/* ---- Signature element: the route ----
   Two nodes connected by a traveling path, echoing the brand's own
   isotipo story: a warm origin point and a vibrant destination point,
   joined by one continuous, fluid line. Here, it stands for the app's
   own journey — in progress, on its way to Venezuela. */
.route {
  width: min(360px, 80vw);
  margin: 0 auto 32px;
  position: relative;
}

.route svg { width: 100%; height: auto; display: block; overflow: visible; }

.route-path {
  fill: none;
  stroke: rgba(255,255,255,0.4);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 13 11;
}

.route-path-draw {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 3.2s cubic-bezier(.65,0,.35,1) infinite;
}

.node { transform-box: fill-box; transform-origin: center; }
.node-origin { fill: var(--cheddar); animation: pulse 3.2s ease-in-out infinite; }
.node-dest { fill: var(--pink); animation: pulse 3.2s ease-in-out infinite 1.6s; }

.traveler {
  offset-path: path('M26,150 C130,90 230,185 334,150');
  offset-rotate: auto;
  animation: travel 3.2s cubic-bezier(.65,0,.35,1) infinite;
}

.ping {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 1.6s ease-out infinite;
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes draw {
  0%   { stroke-dashoffset: 340; opacity: 0; }
  8%   { opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  80%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes travel {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  55%  { offset-distance: 100%; opacity: 1; }
  62%  { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ---------- Store badges (disabled placeholders until launch) ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  cursor: default;
  user-select: none;
  text-decoration: none;
}

.badge.badge-enabled {
  cursor: pointer;
  color: var(--white);
  transition: transform 0.15s ease, background 0.15s ease;
}
.badge.badge-enabled:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.badge-text { text-align: left; line-height: 1.2; }
.badge-text .small { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.badge-text .big { display: block; font-size: 15px; font-weight: 600; font-family: var(--font-body); }

.badges-note {
  font-size: 13px;
  color: var(--lavender);
  margin: 0 0 8px;
}

/* ---------- Page header (FAQ, Contact, Nosotros, legal pages) ---------- */
.page-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.page-header h1 {
  font-size: clamp(28px, 4.5vw, 42px);
}

.page-header .lede { margin-left: auto; margin-right: auto; }

/* ---------- Nosotros: value props + history ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 48px;
}
@media (max-width: 720px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}
.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.value-icon svg { width: 18px; height: 18px; }
.value-title { font-size: 15.5px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.value-desc { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.72); }

.history-block {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.history-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 12px;
}
.history-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.history-text.filled {
  color: rgba(255,255,255,0.82);
  font-style: normal;
}
.history-text p {
  margin: 0 0 14px;
}
.history-text p:last-child { margin-bottom: 0; }

/* ---------- Legal pages (Privacidad, Términos) ---------- */
.legal-updated {
  text-align: center;
  font-size: 13.5px;
  color: var(--lavender);
  margin: -20px 0 40px;
}
.legal-intro {
  max-width: 680px;
  margin: -12px auto 40px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}
.legal-intro p {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal-intro p:last-child { margin-bottom: 0; }
.legal-sections {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.legal-section-title { font-size: 16.5px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.legal-section-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.legal-section-body.filled {
  color: rgba(255,255,255,0.82);
  font-style: normal;
}
.legal-section-body p {
  margin: 0 0 12px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal-section-body p:last-child { margin-bottom: 0; }
.legal-section-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-section-body ul:last-child { margin-bottom: 0; }
.legal-section-body li { margin-bottom: 6px; }
.legal-section-body li:last-child { margin-bottom: 0; }
.legal-section-body a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.legal-section-body a:hover { text-decoration-color: var(--white); }

/* ---------- Contact / support hours ---------- */
.support-hours {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field.full { margin-top: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--white);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}
.form-textarea { height: 120px; resize: vertical; }
.form-submit-row { display: flex; justify-content: center; margin-top: 22px; }
.btn-submit {
  background: var(--cheddar);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 13px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.form-status {
  text-align: center;
  font-size: 13.5px;
  margin: 16px 0 0;
  min-height: 1.4em;
}
.form-status.success { color: #B7F0C4; }
.form-status.error { color: #FFC2C2; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
}

.faq-question:hover { background: rgba(255,255,255,0.04); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.faq-answer-inner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.faq-answer-inner a:hover { text-decoration-color: var(--white); }

.faq-loading, .faq-empty {
  text-align: center;
  color: var(--lavender);
  font-size: 14px;
  padding: 24px 0;
}

/* ---------- Footer (shared by every page) ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 24px 0 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.footer-link {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-link.active {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Instagram / WhatsApp icon links — sit at the end of the footer's
   page-links row (Soporte / Política de privacidad / Términos). */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.social-icon svg { width: 16px; height: 16px; display: block; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.flag-dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 10px;
  vertical-align: middle;
}
.flag-dots span {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.flag-dots .d1 { background: var(--cheddar); }
.flag-dots .d2 { background: var(--sky); }
.flag-dots .d3 { background: var(--pink); }

.footer-left, .footer-right {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.footer-right a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4);
}
.footer-right a:hover { text-decoration-color: var(--white); }

/* ---------- Accessibility & motion ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .route-path-draw, .traveler, .node-origin, .node-dest, .ping {
    animation: none !important;
  }
  .route-path-draw { stroke-dashoffset: 0; opacity: 1; }
  .traveler { offset-distance: 100%; opacity: 1; }
  .ping { opacity: 0; }
}

@media (max-width: 520px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { order: -1; }
}
