/* Taxi Ayora Taxiban — hoja de estilos principal */

:root {
  --navy-900: #0b111c;
  --navy-800: #0f1724;
  --navy-700: #162133;
  --navy-600: #1e2d44;
  --yellow: #ffc233;
  --yellow-dark: #e9a900;
  --ink: #131a26;
  --body: #4a5568;
  --line: #e3e8ef;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 36, .06);
  --shadow: 0 12px 32px rgba(15, 23, 36, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 36, .16);
  --wrap: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, iframe { max-width: 100%; }
ul { margin: 0; padding: 0; }

.svg-sprite { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: .7rem 1.1rem;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 820px); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .78rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 22px rgba(255, 194, 51, .38); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-call { background: var(--yellow); color: var(--ink); padding: .55rem 1.05rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 36, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--yellow); color: var(--navy-800); border-radius: 12px;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text strong { display: block; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-text small { display: block; font-size: .76rem; color: var(--yellow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; }
.nav a { color: #d7dee9; text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav ul a:hover { color: var(--yellow); }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: #fff; margin-inline: auto; position: relative; transition: .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 520px at 78% -10%, rgba(255, 194, 51, .20), transparent 60%),
    linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #dfe6f0;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, var(--navy-900) 34px 68px);
  opacity: .85;
}
.hero-inner { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .hl { color: var(--yellow); }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: #c3cddb; max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow-dark); margin: 0 0 .9rem;
}
.hero .eyebrow { color: var(--yellow); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, .22); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; font-size: .92rem; color: #aeb9c9; }
.hero-badges li { display: flex; align-items: center; gap: .45rem; }
.hero-badges li::before { content: "✓"; color: var(--yellow); font-weight: 800; }

.hero-card {
  background: #fff; color: var(--body); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.quick { margin: 0 0 1.2rem; }
.quick > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.quick > div:last-child { border-bottom: 0; }
.quick dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #8b97a8; }
.quick dd { margin: .15rem 0 0; font-weight: 600; color: var(--ink); }
.quick dd a { color: var(--ink); text-decoration: none; }
.quick dd a:hover { color: var(--yellow-dark); }
.hero-card-note { font-size: .86rem; color: #7b8697; margin: .9rem 0 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.2rem, 6.5vw, 5.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-intro { max-width: 62ch; font-size: 1.04rem; }

.grid { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dbe6; }
.card-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255, 194, 51, .18); color: var(--yellow-dark); margin-bottom: 1rem;
}
.card-ico svg { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .97rem; }

.features { grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; }
.feature { padding: 1.2rem 1.3rem; border-left: 3px solid var(--yellow); background: var(--surface-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.section-alt .feature { background: #fff; }
.feature strong { display: block; color: var(--ink); font-size: 1.06rem; margin-bottom: .3rem; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Zona ---------- */
.zona-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.2rem); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 1.4rem 0 1.8rem; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .95rem; font-size: .92rem; font-weight: 600; color: var(--ink);
}
.section-alt .chips li { box-shadow: var(--shadow-sm); }
.map-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-foot { margin: 0; padding: .9rem 1.1rem; font-size: .88rem; background: #fff; }
.map-foot a { color: var(--yellow-dark); font-weight: 700; }

/* ---------- Banda CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; color: #c3cddb; }

/* ---------- FAQ ---------- */
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm);
}
details[open] { border-color: var(--yellow); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--yellow-dark); font-size: 1.5rem; line-height: 1; font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { margin: .8rem 0 0; font-size: .97rem; }

/* ---------- Contacto ---------- */
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.2rem); align-items: start; }
.contact-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 11px; background: var(--navy-800); color: var(--yellow);
}
.contact-ico svg { width: 21px; height: 21px; }
.contact-list strong { color: var(--ink); }
.contact-list a { color: var(--yellow-dark); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: .95rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .32rem; }
.field .opt { font-weight: 500; color: #97a1b0; }
.field input, .field textarea {
  font: inherit; font-size: .97rem; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfe; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--yellow); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e04b4b; background: #fff6f6; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.field-row:has(.field-sm) { grid-template-columns: 1fr 1fr .8fr; }
.field-check { flex-direction: row; align-items: flex-start; gap: .6rem; margin-top: .3rem; }
.field-check input { width: auto; margin-top: .25rem; accent-color: var(--yellow-dark); }
.field-check label { font-size: .86rem; font-weight: 500; color: var(--body); margin: 0; }
.field-check a { color: var(--yellow-dark); font-weight: 700; }
.form-note { font-size: .88rem; margin: .8rem 0 0; min-height: 1.2em; }
.form-note.error { color: #d13c3c; font-weight: 600; }
.form-note.ok { color: #1c8c4f; font-weight: 600; }
.form-alt { font-size: .9rem; text-align: center; margin: .6rem 0 0; }
.form-alt a { color: var(--yellow-dark); font-weight: 700; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #97a3b4; padding: 3rem 0 1.2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; gap: .9rem; max-width: 420px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: .35rem 0 0; font-size: .92rem; }
.footer-nav ul { list-style: none; display: grid; gap: .5rem; }
.footer-nav a { color: #b6c1d0; text-decoration: none; font-size: .94rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--yellow); text-decoration: none; }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

/* ---------- Páginas legales ---------- */
.page-head { background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 3.2rem 0 2.6rem; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-head p { margin: .6rem 0 0; color: #b6c1d0; }
.legal h2 { font-size: 1.32rem; margin-top: 2.2rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--yellow-dark); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; font-weight: 700; color: var(--yellow-dark); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .zona-inner, .contacto-inner { grid-template-columns: 1fr; }
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .hero-card { max-width: 520px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .6rem;
    background: var(--navy-800); padding: 1.1rem 1.25rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav ul a { display: block; padding: .85rem .2rem; font-size: 1.02rem; }
  .nav-cta { margin-top: .9rem; justify-content: center; }

  .cards, .features { grid-template-columns: 1fr; }
  .field-row, .field-row:has(.field-sm) { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }

  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(255, 255, 255, .2); box-shadow: 0 -6px 20px rgba(15, 23, 36, .18);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem .5rem; font-weight: 800; text-decoration: none; font-size: 1rem;
  }
  .mb-call { background: var(--yellow); color: var(--ink); }
  .mb-wa { background: #25d366; color: #05331a; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-bar, .hero-actions, .form-card { display: none; }
  body { color: #000; }
}
