/* ==========================================================================
   Trayectos y Destinos — Boceto
   ========================================================================== */

:root {
  --black: #16140f;
  --black-soft: #211d16;
  --charcoal: #34302a;
  --gold: #f5b400;
  --gold-light: #ffd766;
  --cream: #f7f4ee;
  --grey-text: #6b6558;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --container-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
  margin: 0;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 244, 238, 0.6);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 20, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 180, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.brand-name span { color: var(--gold); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { color: var(--cream); opacity: 0.85; transition: opacity .2s ease, color .2s ease; }
.nav a:hover { opacity: 1; color: var(--gold); }

.btn-header { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,20,15,0.88) 0%, rgba(22,20,15,0.78) 50%, rgba(22,20,15,0.95) 100%);
  z-index: -1;
}
.hero-inner { padding-top: 60px; padding-bottom: 60px; max-width: 720px; }

.eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  color: rgba(247, 244, 238, 0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}

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

/* Section headings */
.section-eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 10px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--grey-text);
}

/* Servicios */
.servicios { padding: 96px 0; background: var(--cream); }
.servicios .section-title { margin-bottom: 48px; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.servicio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.06);
  border: 1px solid rgba(22, 20, 15, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.servicio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(22, 20, 15, 0.12); }

.servicio-icon { display: block; margin-bottom: 16px; }
.servicio-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 10px;
}
.servicio-card p { color: var(--grey-text); font-size: 0.95rem; margin: 0; }

/* Cómo funciona */
.como-funciona { padding: 96px 0; background: var(--cream); }

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.paso-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.06);
  border: 1px solid rgba(22, 20, 15, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.paso-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(22, 20, 15, 0.12); }

.paso-numero {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paso-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.paso-card p { color: var(--grey-text); font-size: 0.95rem; margin: 0; }

/* Flota */
.flota { padding: 96px 0; background: var(--black); }
.flota .section-title, .flota .section-eyebrow { color: var(--cream); }
.flota .section-eyebrow { color: var(--gold); }
.flota .section-sub { color: rgba(247, 244, 238, 0.7); }

.flota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.flota-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.flota-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.flota-photo img:hover { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(22, 20, 15, 0.92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 244, 238, 0.12);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(247, 244, 238, 0.24); }

/* Cotizar */
.cotizar { padding: 96px 0; background: var(--cream); }

.cotizar-form {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.06);
  border: 1px solid rgba(22, 20, 15, 0.06);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-field .required { color: var(--gold); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid rgba(22, 20, 15, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease;
}
.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-feedback {
  min-height: 1.4em;
  margin: 20px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-feedback-success { color: var(--whatsapp-dark); }
.form-feedback-error { color: #c0392b; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(245, 180, 0, 0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Por qué nosotros */
.por-que { padding: 96px 0; background: var(--cream); }
.por-que-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.por-que-text .section-eyebrow, .por-que-text .section-title { text-align: left; }

.checklist { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--charcoal);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.por-que-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.por-que-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Contacto */
.contacto {
  padding: 96px 0;
  background: var(--black);
  text-align: center;
}
.contacto-inner { max-width: 620px; margin: 0 auto; }
.contacto-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 24px; }
.contacto .section-title { color: var(--cream); margin-bottom: 16px; }
.contacto p { color: rgba(247, 244, 238, 0.75); margin-bottom: 32px; }
.contacto-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.btn-instagram {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 180, 0, 0.35);
}
.btn-instagram:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 180, 0, 0.45); }
.icon-instagram { flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--black-soft);
  padding: 20px 0;
  text-align: center;
}
.site-footer p {
  margin: 0;
  color: rgba(247, 244, 238, 0.5);
  font-size: 0.85rem;
}

/* Floating WhatsApp button */
.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-ring { animation: none; }
  .fab-whatsapp { transition: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .por-que-inner { grid-template-columns: 1fr; }
  .por-que-text .section-eyebrow, .por-que-text .section-title { text-align: center; }
  .checklist { max-width: 460px; margin-left: auto; margin-right: auto; }

  .cotizar-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }

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

@media (max-width: 760px) {
  .brand-name { display: none; }
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid rgba(245, 180, 0, 0.15);
    transform: translateY(-140%);
    transition: transform .25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .btn-header { display: none; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
