/* ==========================================================
   Marina Palmeras — estilos
   ========================================================== */

:root {
  --navy: #0e2433;
  --navy-soft: #16344a;
  --sand: #f7f4ef;
  --sand-dark: #ece6dc;
  --ink: #1b2a33;
  --muted: #5d6b73;
  --line: #ddd6cb;
  --accent: #b08a57;
  --accent-dark: #96733f;
  --white: #ffffff;
  --error: #b3412f;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
}

h1, h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }

.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

.link-arrow {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.link-arrow:hover { opacity: 1; }
.link-arrow span { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Encabezado ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.header.is-scrolled {
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__img {
  display: block;
  height: 48px;
  width: auto;
}

.logo__img--dark,
.header.is-scrolled .logo__img--light { display: none; }
.header.is-scrolled .logo__img--dark { display: block; }

.nav { display: flex; gap: 36px; }

.nav a {
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover { opacity: 1; }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 64px;
  color: var(--white);
  background: radial-gradient(ellipse at 80% 20%, #1f4660 0%, var(--navy) 65%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__media {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 15;
  max-height: calc(100vh - 200px);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-soft) url("images/marina-aerea.jpg") center / cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  margin-bottom: 28px;
}

.hero__lead {
  max-width: 540px;
  font-size: 18px;
  font-weight: 300;
  opacity: 0.88;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 48px;
  margin: 72px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.stats dd {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.2;
}

/* ---------- Secciones ---------- */

.section { padding: 120px 0; }
.section--alt { background: var(--white); }

.section__header {
  max-width: 620px;
  margin-bottom: 64px;
}

.section h2 { font-size: clamp(34px, 4.5vw, 52px); }

/* Servicios */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}

.service:not(:nth-child(3n + 1)) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.service__num {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 15px;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* Plan de lavadas */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 6px;
}

.feature__content h2 { margin-bottom: 20px; }

.feature__lead {
  color: var(--muted);
  max-width: 460px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
}

.price__amount {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.price__period {
  font-size: 14px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 28px 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.checklist li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Pasos de la visita */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent);
}

.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

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

.booking {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.booking__intro h2 { margin-bottom: 20px; }
.booking__intro > p { color: var(--muted); max-width: 420px; }

.booking__info {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.booking__info li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.booking__info span { color: var(--muted); }
.booking__info a { text-decoration: none; color: var(--accent-dark); font-weight: 500; }

.form {
  position: relative;
  background: var(--sand);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form__row { margin-bottom: 20px; }

.form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6b73' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--error);
}

.field__error {
  min-height: 0;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

.field__error:empty { display: none; }

.form__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.form.is-sent > :not(.form__success) { display: none; }

.form__success {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  text-align: center;
}

.form__success[hidden] { display: none; }

.form__success h3 {
  font-family: var(--font-serif);
  font-size: 34px;
  margin-bottom: 14px;
}

.form__success p { color: var(--muted); }
.form__success strong { color: var(--ink); font-weight: 500; }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }

.success__link { margin: 28px auto 0; }

.success__back {
  margin: 16px auto 0;
  padding: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.success__back:hover { color: var(--ink); }

/* ---------- Pie de página ---------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 32px;
  font-size: 14px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__logo {
  display: block;
  height: 120px;
  width: auto;
}

.footer__link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
}

/* Botón flotante de WhatsApp */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  opacity: 0.7;
}

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

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

  .service,
  .service:not(:nth-child(3n + 1)) {
    padding: 36px 24px 36px 0;
    border-left: none;
  }

  .service:nth-child(2n) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .booking { grid-template-columns: 1fr; gap: 48px; }
  .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature__media img { aspect-ratio: 4 / 3; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }

  /* En pantallas angostas el video vertical pasa a ser el fondo del hero */
  .hero {
    align-items: flex-end;
    padding: 140px 0 48px;
  }

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

  .hero__media {
    position: absolute;
    inset: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 36, 51, 0.5) 0%, rgba(14, 36, 51, 0.7) 30%, rgba(14, 36, 51, 0.94) 75%);
  }
}

@media (max-width: 720px) {
  .header__inner { height: 64px; }
  .logo__img { height: 34px; }

  .hero { padding: 120px 0 96px; }
  .hero__lead { font-size: 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); align-items: end; margin-top: 48px; gap: 16px; }
  .stats dd { font-size: 21px; }

  .section { padding: 80px 0; }
  .section__header { margin-bottom: 40px; }

  .services { grid-template-columns: 1fr; }
  .service,
  .service:nth-child(2n) {
    padding: 28px 0;
    border-left: none;
  }

  .steps { grid-template-columns: 1fr; gap: 36px; }

  .form { padding: 28px 20px; }
  .form__row--2 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__logo { height: 96px; }

  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .btn--small { padding: 9px 14px; font-size: 13px; }
  .logo__img { height: 30px; }
  .stats dt { font-size: 10px; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
