/* Estilos del sitio (celeste y blanco) - hand-written site CSS. No framework. */

:root {
  --accent: #58a6e0;
  --accent-2: #1f6fb5;
  --accent-hover: #3f93d3;
  --accent-tint: rgba(116, 172, 223, .18);
  --sun: #f6b40e;
  --bg: #ffffff;
  --surface: #f3f8fd;
  --surface-2: #e6f1fa;
  --border: #cfe2f3;
  --text: #0f2d4a;
  --text-muted: #4a6580;
  --off-white: #0b2540;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,60,100,.10), 0 2px 6px rgba(20,60,100,.08);
  --shadow-md: 0 4px 10px rgba(20,60,100,.10), 0 16px 40px rgba(20,60,100,.14);
  --shadow-lg: 0 12px 32px rgba(20,60,100,.14), 0 30px 70px rgba(20,60,100,.16);
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--off-white); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.2em; color: var(--text-muted); }
strong { color: var(--text); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent-2); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .75em;
}
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head .lead { font-size: 1.05rem; }
.lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 1.6em; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.6,.2,1), box-shadow .16s, background .16s, border-color .16s;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b2540; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #0b2540; }
.btn--secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn--secondary:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.btn--sm { height: 40px; padding: 0 1.2em; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.98); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; }
.logo { height: 34px; width: auto; max-width: none; }

.main-nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__trigger {
  display: inline-flex; align-items: center; gap: .35em; background: none; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-weight: 500; padding: .6em .8em; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent-2); }
.icon--chevron { width: 16px; height: 16px; transition: transform .15s; }
.main-nav__trigger[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 50;
}
.main-nav__item:last-child .dropdown, .dropdown.dropdown--right { left: auto; right: 0; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.dropdown a:hover, .dropdown a:focus { background: var(--accent-tint); color: var(--accent-2); }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.mobile-nav-trigger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.icon--close { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon--open { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-trigger { display: inline-flex; }
  .site-header__actions .btn--sm { display: none; }
  .mobile-nav { display: block; background: var(--surface); border-bottom: 1px solid var(--border); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav__group { border-top: 1px solid var(--border); padding: .6rem 0; }
  .mobile-nav__group summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
  .mobile-nav__group ul { list-style: none; padding: 0; margin: .4rem 0 0; }
  .mobile-nav__group ul a { display: block; padding: .5rem 0; color: var(--text-muted); }
  .mobile-nav .btn { margin: 1rem 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 1rem; border-bottom: 1px solid var(--border); }
.breadcrumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .5rem; color: var(--border); }
.breadcrumbs li[aria-current] { color: var(--text); }

/* ---------- Sections / backgrounds ---------- */
.section { position: relative; padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.section--tint { background: var(--surface); }
.section--mesh::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(88,166,224,.35) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.section--glow::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 60%; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 20%, rgba(116,172,223,.16), transparent 70%);
}
.section--glow-b::after {
  content: ''; position: absolute; inset: auto -10% -30% -10%; height: 60%; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 80%, rgba(88,166,224,.18), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 6vw, 88px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 55% at 78% 15%, rgba(88,166,224,.35), transparent 65%),
  radial-gradient(50% 50% at 10% 90%, rgba(116,172,223,.18), transparent 65%),
  linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(234,244,252,.82) 100%),
  url('../images/ar-bg-wall.webp') center / cover no-repeat; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .85; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero--form-side .hero__inner { grid-template-columns: 1fr .85fr; }
.hero h1 { max-width: 26ch; font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem); }
.hero__offices { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0; flex-wrap: wrap; color: var(--text-muted); font-size: .9rem; }
.hero__offices .flag-mark { border-radius: 4px; box-shadow: var(--shadow-sm); }
.flag-emoji { font-size: 1.4rem; line-height: 1; }
.hero__badges { display: flex; gap: .75rem; margin: 1.4rem 0 0; }
.hero__badge { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; transition: border-color .15s, transform .15s; }
.hero__badge:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent-2); }
.hero__badge .icon { color: var(--accent-2); width: 20px; height: 20px; }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); position: relative; }

/* Simple two-column hero used on inner pages (heading one side, form other) */
.hero--split .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero--split .hero__inner, .hero__inner { grid-template-columns: 1fr !important; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 1.6rem; transition: transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(88,166,224,.4); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-2); margin-bottom: 1rem; }
.icon-badge .icon { width: 26px; height: 26px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }

.card--flex { display: flex; gap: 1rem; align-items: flex-start; }
.card--flex .icon-badge { margin-bottom: 0; flex-shrink: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--accent-2); font-weight: 600; margin-top: .6rem; transition: gap .15s; }
.link-arrow:hover { gap: .65em; }

/* Numbered step circle (never an oversized numeral) */
.step-circle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b2540; font-weight: 700; font-size: .95rem; margin-bottom: .75rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th { background: var(--surface-2); text-align: left; padding: 14px 16px; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
tbody td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text); font-size: .92rem; }
tbody tr:nth-child(even) { background: rgba(88,166,224,.06); }
.mark-yes { color: #1a9d5c; font-weight: 700; }
.mark-no { color: #d64559; font-weight: 700; }

/* ---------- Forms ---------- */
.form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 28px); }
.form-block__eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: .5rem; }
.form-block__intro { color: var(--text-muted); margin-bottom: 1rem; }
.form-legal { font-size: .78rem; color: var(--text-muted); margin-top: .9rem; }
.form-followup { display: flex; align-items: center; gap: .5em; font-size: .85rem; color: var(--accent-2); margin-top: .75rem; }
.form-followup .icon { width: 18px; height: 18px; }

/* formFactory field polish (targets common generic classnames without touching its JS) */
.form-block form input, .form-block form select, .form-block form textarea {
  background: var(--bg) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
  border-radius: 10px !important;
}
.form-block form input:focus, .form-block form select:focus, .form-block form textarea:focus {
  outline: 2px solid var(--accent-2) !important; outline-offset: 1px;
}
.form-block form button[type="submit"], .form-block form input[type="submit"] {
  border-radius: 10px !important;
}

/* ---------- Exchange logo strip ---------- */
.exchange-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; align-items: center; justify-items: center; }
.exchange-logo { height: 22px; width: auto; max-width: 120px; opacity: .9; transition: opacity .15s, transform .15s; }
.exchange-logo:hover { opacity: 1; transform: translateY(-2px); }
@media (min-width: 640px) {
  .exchange-strip { grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
  .exchange-logo { height: 26px; max-width: 140px; }
}
@media (min-width: 960px) {
  .exchange-strip { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Reviews ---------- */
.reviews-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { display: flex; flex-direction: column; gap: .75rem; }
.review-card__head { display: flex; align-items: center; gap: .8rem; }
.review-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; }
.review-card__name { font-weight: 600; color: var(--text); }
.review-card__meta { font-size: .8rem; color: var(--text-muted); }
.review-card__stats { display: flex; gap: 1rem; font-size: .82rem; color: var(--accent-2); flex-wrap: wrap; }
.review-note { font-size: .8rem; color: var(--text-muted); margin-top: 2rem; }

/* ---------- Company facts block ---------- */
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.fact-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.fact-item .icon { color: var(--accent-2); margin-bottom: .5rem; }
.fact-item strong { display: block; color: var(--off-white); }

/* ---------- Map ---------- */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 720px; aspect-ratio: 16/9; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Calculator decoration ---------- */
.calc-decoration { position: relative; }
.calc-decoration canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; z-index: 0; }
.calc-decoration > .container { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-2); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 4rem; overflow: hidden; }
.site-footer__bg { position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 0%, rgba(88,166,224,.1), transparent 70%); pointer-events: none; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__brand p { font-size: .88rem; }
.site-footer__contact { display: flex; align-items: center; gap: .4em; }
.site-footer__col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer__col a { color: var(--text-muted); font-size: .88rem; }
.site-footer__col a:hover { color: var(--accent-2); }
.site-footer__disclaimer { position: relative; border-top: 1px solid var(--border); padding-block: 1.5rem 2rem; }
.site-footer__disclaimer p { font-size: .78rem; }
.site-footer__legal { color: var(--text-muted); }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.flag-row { display: flex; gap: .5rem; }

.table-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.content-block { max-width: 780px; }
.content-block h2 { margin-top: 2.4rem; }
.content-block h2:first-child { margin-top: 0; }

.disclaimer-box { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; }

@media (max-width: 640px) {
  .hero__inner, .two-col { grid-template-columns: 1fr; }
}

/* Legibility panel over the hero photo */
.hero .hero__inner > div:first-child {
  background: rgba(255,255,255,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(207,226,243,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 36px);
}
.hero .hero__inner > div:first-child p { color: #2f4a66; }
.hero .hero__inner { align-items: stretch; }
.hero .hero__inner > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.hero .hero__inner > div:first-child h1 { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); max-width: none; margin-bottom: .6em; }
.hero .hero__inner > div:first-child .lead { font-size: .98rem; line-height: 1.55; }
.hero .hero__inner > .hero-card { display: flex; flex-direction: column; justify-content: center; }

/* Hero form card: flag stripes + Sol de Mayo watermark */
.hero .hero__inner > .hero-card { align-self: center; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.hero-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg, #74acdf 0 33.3%, #fff 33.3% 66.6%, #74acdf 66.6% 100%);
  box-shadow: inset 0 -1px 0 rgba(31,111,181,.15);
}
.hero-card::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; pointer-events: none; opacity: .18;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%23f6b40e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M50 4v16M50 80v16M4 50h16M80 50h16M17 17l11 11M72 72l11 11M83 17L72 28M28 72L17 83'/%3E%3Cpath d='M50 10v10M50 80v10M10 50h10M80 50h10M24 24l7 7M69 69l7 7M76 24l-7 7M31 69l-7 7' transform='rotate(22.5 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='22' fill='%23f6b40e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card { padding-top: clamp(28px, 3.4vw, 40px); }
.hero-card .form-block__eyebrow { text-align: center; }

/* Calculator section: celeste background */
.section.calc { background: linear-gradient(180deg, #dcecf9 0%, #cfe4f6 100%); }
.section.calc::before { display: none; }
