/* ===== Taxi Valle Gran Rey — moderno, limpio, paleta del logo VGR ===== */

/* ===== Fuente local (sin terceros) ===== */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --card: #ffffff;

  --ink: #17202b;
  --muted: #52657c;
  --line: #e3e9f0;

  --green: #00aa4e;
  --green-dark: #008c40;
  --blue: #4f62a9;
  --blue-deep: #33427c;
  --terra: #b85a2c;
  --sun: #f0de57;
  --sun-soft: #fdf6c9;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 42, 66, .08);
  --shadow-lg: 0 18px 44px rgba(23, 42, 66, .14);
  --header-h: 72px;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

section { scroll-margin-top: calc(var(--header-h) + 12px); }

::selection { background: var(--sun); color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s, color .2s;
  will-change: transform;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: .55rem 1.15rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 170, 78, .32);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 170, 78, .4);
}

.btn-glass,
.btn-outline {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-glass:hover,
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(23, 42, 66, .1); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  flex: none;
}
.brand-badge svg { width: 26px; height: 26px; }
.brand-text {
  font-weight: 500;
  font-size: 1.04rem;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
}
.brand-text strong { display: block; font-weight: 800; }

.header-actions { display: flex; align-items: center; gap: .7rem; }

.header-call { display: none; }

/* Language switcher */
.lang-switch {
  display: flex;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  padding: .32rem .72rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--blue); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  display: grid;
  place-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  padding: 1.1rem 1.5rem 1.9rem;
  display: grid;
  gap: .1rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  box-shadow: 0 24px 40px rgba(23, 42, 66, .16);
}
.main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.main-nav > a {
  font-weight: 700;
  font-size: 1.05rem;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--line);
}
.main-nav > a:hover { color: var(--green); }
.nav-cta-mobile { display: flex; gap: .7rem; margin-top: 1.2rem; }
.nav-cta-mobile .btn { flex: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.hero-scene { width: 100%; height: 100%; }

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--sun-soft);
  border: 1.5px solid var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.hero-badge .ico { width: 15px; height: 15px; color: var(--terra); }

.hero-title {
  font-size: clamp(2.35rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero-title > span { display: block; }
.grad-text {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.14rem);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: .5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.hero-stats li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .9rem 1rem;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
}
.hero-stats span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }

.section-head { max-width: 660px; margin-bottom: 2.8rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: .45rem 0 .8rem;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

.section-alt {
  background: var(--bg-alt);
}
.section-alt .card,
.section-alt .booking-form,
.section-alt .contact-card,
.section-alt .number-card {
  border: 1px solid var(--line);
}

/* ===== Services cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
  color: #fff;
}
.card:nth-child(6n+1) .card-icon { background: var(--green); }
.card:nth-child(6n+2) .card-icon { background: var(--blue); }
.card:nth-child(6n+3) .card-icon { background: var(--sun); color: var(--ink); }
.card:nth-child(6n+4) .card-icon { background: var(--terra); }
.card:nth-child(6n+5) .card-icon { background: var(--blue); }
.card:nth-child(6n+6) .card-icon { background: var(--green); }
.card-icon svg { width: 25px; height: 25px; }
.card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.card p { color: var(--muted); font-size: .95rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}

.about-visual { max-width: 420px; }
.about-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.about-card svg { width: 100%; height: auto; }
.about-chip {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: .6rem 1.05rem;
  box-shadow: var(--shadow-lg);
}
.about-chip strong { display: block; font-weight: 800; font-size: 1rem; }
.about-chip span { font-size: .8rem; color: var(--terra); font-weight: 700; }

.about-text h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .45rem 0 1rem;
  text-wrap: balance;
}
.about-text p { color: var(--muted); margin-bottom: 1rem; }

.check-list { margin-top: 1.4rem; display: grid; gap: .75rem; }
.check-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
  font-size: .95rem;
  font-weight: 500;
}
.check-list li > span:first-child {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  display: grid; place-items: center;
  margin-top: .12rem;
}

/* ===== Excursiones ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 2.4rem;
}
.chips li {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .58rem 1.2rem;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.chips li:hover {
  transform: translateY(-3px);
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.tour-note {
  background: var(--sun-soft);
  border: 1.5px solid var(--sun);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}
.tour-note p { font-size: 1.02rem; max-width: 560px; }

/* ===== Teléfonos de interés ===== */
.numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
.number-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.number-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.number-card strong {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.number-card span { font-size: .88rem; color: var(--muted); text-align: right; }

/* ===== Booking form ===== */
.booking-form {
  background: var(--card);
  border-radius: 22px;
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.field { display: grid; gap: .4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-weight: 700;
  font-size: .88rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: .78rem .95rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--card);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 170, 78, .14);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input.invalid,
.field select.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .12); }

.form-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: .86rem;
  color: var(--muted);
}

.form-error {
  margin-bottom: 1rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: #b03030;
  background: #fdecec;
  border: 1.5px solid #f3c1c1;
  border-radius: 12px;
  padding: .7rem 1rem;
}
.form-error[hidden] { display: none; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
a.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.contact-card .card-icon { margin-bottom: 1rem; width: 48px; height: 48px; }
.contact-card:nth-child(1) .card-icon { background: var(--green); }
.contact-card:nth-child(2) .card-icon { background: var(--green); }
.contact-card:nth-child(3) .card-icon { background: var(--blue); }
.contact-card:nth-child(4) .card-icon { background: var(--terra); }
.contact-card .card-icon svg { width: 23px; height: 23px; }
.contact-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: .3rem;
}
.contact-card p { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.contact-card small { display: block; margin-top: .35rem; font-size: .78rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-deep);
  color: #c9d2ec;
  padding: 2.6rem 0 7rem;
}
.footer-inner {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand .brand-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.footer-brand strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.footer-brand p { font-size: .88rem; margin-top: .2rem; }
.footer-copy { font-size: .82rem; }
.footer-meta { display: grid; gap: .35rem; justify-items: start; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
}
.footer-legal a {
  color: #c9d2ec;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer-legal a:hover { color: #fff; }

/* ===== Páginas legales ===== */
.legal-section { padding-top: calc(var(--header-h) + 3.5rem); }
.legal-title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: .45rem 0 .5rem;
}
.legal-updated { color: var(--muted); font-size: .9rem; }

.legal-body {
  max-width: 780px;
}
.legal-body h2 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 2.1rem 0 .55rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: .55rem; }
.legal-id {
  list-style: none;
  margin: .8rem 0 1.2rem;
  display: grid;
  gap: .35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
}
.legal-id li { font-weight: 600; font-size: .95rem; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0, 170, 78, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 29px; height: 29px; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ===== Focus visibility ===== */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ===== Breakpoints ===== */
@media (min-width: 560px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-card { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .number-card span { text-align: left; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-form { padding: 2.4rem; }
}

@media (min-width: 900px) {
  .section { padding: 6.5rem 0; }

  .header-call { display: inline-flex; }
  .hide-sm { display: inline; }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    display: flex;
    gap: 1.6rem;
    background: none;
    border: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }
  .main-nav > a {
    font-size: .94rem;
    font-weight: 600;
    padding: .3rem 0;
    border-bottom: none;
    color: var(--ink);
    position: relative;
  }
  .main-nav > a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2.5px;
    background: var(--green);
    border-radius: 2px;
    transition: width .25s ease;
  }
  .main-nav > a:hover { color: var(--green); }
  .main-nav > a:hover::after { width: 100%; }
  .nav-cta-mobile { display: none; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .tour-note { grid-template-columns: 1fr auto; align-items: center; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .site-footer { padding-bottom: 2.6rem; }
}

@media (max-width: 899px) {
  .hide-sm { display: none; }
}
