/* ffacile-racrga.com — Chile mobile guide */
:root {
  --bg: #f6fafb;
  --surface: #ffffff;
  --text: #0f1f24;
  --muted: #4a6670;
  --line: #cfe6e8;
  --teal-900: #063d3d;
  --teal-800: #0d4f4f;
  --teal-600: #1a8a8a;
  --teal-400: #4dbfb4;
  --mint-100: #dff6f2;
  --mint-50: #eefbf8;
  --accent: #0a7c6e;
  --shadow: 0 18px 50px rgba(6, 61, 61, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--bg) 28%, var(--bg) 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-800);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(760px, 92vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--teal-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(26, 138, 138, 0.28);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.header-links a {
  color: var(--teal-800);
  text-decoration: none;
}

.header-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-tld {
  font-weight: 600;
  color: var(--teal-600);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, var(--mint-100), #fff);
  color: var(--teal-800);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
}

.jump-nav {
  position: sticky;
  top: 52px;
  z-index: 40;
  background: rgba(246, 250, 251, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.jump-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.jump-nav a {
  color: var(--teal-800);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.jump-nav a:hover {
  background: var(--mint-100);
}

.disclaimer-bar {
  background: var(--teal-900);
  color: #e8f7f5;
  font-size: 0.8rem;
  padding: 0.65rem 0;
}

.disclaimer-bar p {
  margin: 0;
}

.hero {
  padding: 2.5rem 0 3rem;
  scroll-margin-top: 7rem;
}

.section,
.cta-band {
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 0.9fr 0.95fr;
  }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.85fr 1fr;
  }
}

.hero-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-figure figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
  border-top: 1px solid var(--line);
}

.hero-figure figcaption a {
  color: var(--accent);
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.media-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 61, 61, 0.05);
}

.media-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.media-card figcaption a {
  color: var(--accent);
}

.split-section {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

.split-section figure {
  margin: 0;
}

.prose-block h3 {
  font-size: 1.08rem;
  color: var(--teal-900);
  margin: 1.25rem 0 0.5rem;
}

.prose-block h3:first-child {
  margin-top: 0;
}

.prose-block p,
.prose-block ul {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.prose-block ul {
  padding-left: 1.2rem;
}

.section-follow {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.glossary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.glossary-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.glossary-item dt {
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 0.25rem;
}

.glossary-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.sources-plain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.sources-plain li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.sources-plain strong {
  color: var(--teal-900);
  font-weight: 600;
}

.sources-plain a {
  color: var(--accent);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: #dff6f2;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-reopen-cookies {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #dff6f2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-reopen-cookies:hover {
  color: #fff;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(6, 61, 61, 0.97);
  color: #e8f7f5;
  padding: 1rem 0 1.25rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(125, 224, 212, 0.35);
}

.cookie-banner-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.cookie-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.95;
  max-width: 62ch;
}

.cookie-banner .cookie-policy-link {
  color: #b8fff6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner .btn {
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
}

.cookie-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-custom {
  grid-column: 1 / -1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}

.cookie-custom label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.cookie-custom input:disabled + span {
  opacity: 0.85;
}

.mt-sm {
  margin-top: 0.5rem;
}

.table-scroll-margin {
  margin-top: 0.75rem;
}

/* UI-only: reduces accidental highlight of cited brand names (text remains in DOM for search & screen readers). */
.u-no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Legal / inner pages */
.page-sub .site-main {
  padding: 2rem 0 3rem;
}

.legal-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--teal-900);
  margin: 0 0 1rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  color: var(--teal-800);
  margin: 1.75rem 0 0.5rem;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

.legal-wrap .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--mint-100);
}

.team-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--teal-900);
}

.team-card .role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}

.team-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.figure-narrow {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.blog-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-teaser-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.blog-teaser-title a {
  color: var(--teal-900);
  text-decoration: none;
}

.blog-teaser-title a:hover {
  text-decoration: underline;
}

.blog-teaser-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-grid-spaced {
  margin-top: 1.5rem;
}

.legal-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-backlinks {
  margin-top: 1.5rem;
}

.legal-backlinks a {
  color: var(--accent);
  font-weight: 600;
}

.guides-hub-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.guides-hub-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.guides-hub-list a {
  font-weight: 700;
  color: var(--teal-800);
  text-decoration: none;
}

.guides-hub-list a:hover {
  text-decoration: underline;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-600);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--teal-900);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-800), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 79, 79, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(13, 79, 79, 0.36);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--teal-800);
}

.btn-ghost:hover {
  border-color: var(--teal-400);
}

.btn-outline {
  background: #fff;
  border-color: var(--teal-400);
  color: var(--teal-800);
}

.btn-outline:hover {
  background: var(--mint-50);
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-icon {
  color: var(--accent);
  margin-right: 0.35rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--teal-800);
}

.facts {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.facts li + li {
  margin-top: 0.55rem;
}

.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--mint-50) 100%);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--teal-900);
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-title {
  margin: 0;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--teal-800);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  background: var(--mint-50);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--mint-50);
  color: var(--teal-900);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table tbody th[scope="row"] {
  white-space: nowrap;
  color: var(--teal-800);
  font-weight: 700;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 75ch;
}

.map-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 160px;
}

.map-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--teal-900);
}

.map-card p {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: steps;
}

.pricing-stack li {
  counter-increment: steps;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 3rem;
  box-shadow: 0 8px 24px rgba(6, 61, 61, 0.05);
}

.pricing-stack li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: var(--mint-100);
  color: var(--teal-800);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-stack strong {
  display: block;
  color: var(--teal-900);
  margin-bottom: 0.25rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.chk {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border-radius: 4px;
  border: 2px solid var(--teal-400);
  background: linear-gradient(135deg, var(--mint-100), #fff);
}

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.acc-item + .acc-item {
  border-top: 1px solid var(--line);
}

.acc-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border: 0;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--teal-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.acc-trigger::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal-600);
  transition: transform 0.2s ease;
}

.acc-trigger[aria-expanded="true"]::after {
  content: "−";
}

.acc-trigger:hover {
  background: var(--mint-50);
}

.acc-panel {
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.acc-panel p {
  margin: 0;
}

.sources-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.sources-list li {
  margin-bottom: 0.85rem;
}

.sources-list cite {
  font-style: normal;
  font-weight: 600;
  color: var(--teal-900);
}

.sources-list a {
  color: var(--accent);
}

.cta-band {
  background: linear-gradient(120deg, var(--teal-800), #0a5c54 45%, var(--teal-600));
  color: #e8f7f5;
  padding: 2.5rem 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  max-width: 60ch;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-900);
  box-shadow: none;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  background: var(--teal-900);
  color: #c5e3df;
  padding: 2rem 0 1.25rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.small {
  margin: 0;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.micro {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

[hidden] {
  display: none !important;
}
