/* Taxi Onda David — hoja de estilos principal */

:root {
  --navy: #16225c;
  --navy-dark: #0e1740;
  --orange: #ef7d2d;
  --orange-dark: #d4661c;
  --bg: #f6f7fb;
  --white: #ffffff;
  --text: #2a2e3a;
  --text-light: #6b7080;
  --border: #e4e6ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 34, 92, 0.08);
  --max-width: 1160px;
  --font: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
  color: var(--text-light);
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(239, 125, 45, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.top-bar {
  background: var(--navy-dark);
  color: #cfd4ee;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #cfd4ee;
}

.top-bar a:hover {
  color: var(--orange);
}

.top-bar .top-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar .top-links .fa {
  margin-right: 6px;
}

site-header, header.site-header {
  display: block;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(22, 34, 92, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.logo img {
  height: 56px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: var(--orange);
  opacity: 0.18;
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  color: #d7dbf1;
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Secciones genéricas ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header p {
  margin-bottom: 0;
}

/* ---------- Tarjetas de servicio ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(239, 125, 45, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- Franja de llamada ---------- */

.call-strip {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(239, 125, 45, 0.28);
}

.call-strip h3 {
  color: var(--white);
  margin: 0 0 4px;
}

.call-strip p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ---------- Chips de servicios adicionales ---------- */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.chip i {
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}

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

@media (max-width: 500px) {
  .chip-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Galería ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(22, 34, 92, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-info-item p {
  margin: 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- Formulario ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.form-check input {
  margin-top: 4px;
}

.form-check a {
  color: var(--navy);
  text-decoration: underline;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* honeypot field, hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #c4c9e6;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h3 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #aeb4d6;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-logo {
  height: 60px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8891bc;
}

.footer-bottom a {
  color: #8891bc;
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ---------- Botón flotante de llamada ---------- */

.float-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px rgba(239, 125, 45, 0.45);
  z-index: 90;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 125, 45, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(239, 125, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 125, 45, 0); }
}

/* ---------- Aviso de cookies ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  color: #d7dbf1;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  color: #d7dbf1;
  margin: 0;
  max-width: 640px;
  font-size: 0.88rem;
}

.cookie-banner a {
  text-decoration: underline;
}

/* ---------- Páginas legales ---------- */

.legal-content h2 {
  margin-top: 36px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--text-light);
  margin-bottom: 8px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-light);
}

.legal-content th {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Página Gracias ---------- */

.thanks-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px;
}

.thanks-box .icon-big {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(239, 125, 45, 0.12);
  color: var(--orange);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

/* ---------- Responsive ---------- */

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-phone-btn {
    padding: 12px;
    border-radius: 50%;
    line-height: 1;
  }

  .nav-phone-btn .phone-text {
    display: none;
  }

  .logo img {
    height: 44px;
  }

  .nav-bar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 52px 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .call-strip {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}
