:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #17231f;
  --ink-dim: #5c6b64;
  --accent: #0284a8;
  --accent-deep: #056586;
  --accent-wash: #e2f3f7;
  --line: rgba(23, 35, 31, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

.envoltorio { max-width: var(--max); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

.etiqueta {
  display: inline-block;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-fila { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .nav-fila { height: 168px; } }

.nav-marca { display: flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }

.nav-logo { height: 68px; width: auto; object-fit: contain; transition: transform 0.25s ease; }
@media (min-width: 640px) { .nav-logo { height: 156px; } }
.nav-marca:hover .nav-logo { transform: scale(1.04); }

.nav-links { display: none; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 920px) { .nav-links { display: flex; } }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }

.nav-derecha { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 920px) { .nav-burger { display: none; } }

.nav-burger span { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
.nav-burger.activo span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.activo span:nth-child(2) { opacity: 0; }
.nav-burger.activo span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.abierto { opacity: 1; pointer-events: auto; }

.nav-overlay-links { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav-overlay-links li { margin-block: 16px; }
.nav-overlay-links a, .nav-overlay-links .enlace-overlay {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}
.nav-overlay.abierto .nav-overlay-links a, .nav-overlay.abierto .nav-overlay-links .enlace-overlay { opacity: 1; transform: translateY(0); }
.nav-overlay.abierto .nav-overlay-links li:nth-child(1) a { transition-delay: 0.05s; }
.nav-overlay.abierto .nav-overlay-links li:nth-child(2) a { transition-delay: 0.11s; }
.nav-overlay.abierto .nav-overlay-links li:nth-child(3) a { transition-delay: 0.17s; }
.nav-overlay.abierto .nav-overlay-links li:nth-child(4) a { transition-delay: 0.23s; }
.nav-overlay.abierto .nav-overlay-links li:nth-child(5) a { transition-delay: 0.29s; }
.nav-overlay-links a:hover, .nav-overlay-links .enlace-overlay:hover { color: var(--accent); }

body.menu-abierto { overflow: hidden; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.boton-primario { background: var(--accent); color: #ffffff; box-shadow: 0 10px 26px -12px rgba(31, 111, 102, 0.55); }
.boton-primario:hover { background: var(--accent-deep); transform: translateY(-1px); }
.boton-primario:active { transform: scale(0.98); }

.boton-secundario { background: transparent; color: var(--ink); border-color: var(--line); }
.boton-secundario:hover { border-color: var(--accent); color: var(--accent); }

.boton-whatsapp { background: var(--surface); color: var(--accent-deep); border: 1px solid var(--line); padding: 10px 18px; }
.boton-whatsapp:hover { border-color: var(--accent); }
@media (max-width: 480px) { .boton-whatsapp span { display: none; } .boton-whatsapp { padding: 10px; } }

/* ---------- hero ---------- */

.hero { padding-top: clamp(40px, 6vw, 64px); }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 32px; } }

.hero-texto { max-width: 540px; }

.hero-texto h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-sub { font-size: 1.05rem; line-height: 1.65; color: var(--ink-dim); max-width: 46ch; margin: 0 0 30px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-ola { display: none; }

/* ---------- reveal ---------- */

.revela { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.revela.visible { opacity: 1; transform: translateY(0); }

/* ---------- sections ---------- */

section { padding-block: clamp(56px, 8vw, 100px); }

.seccion-cabecera { max-width: 640px; margin-bottom: 44px; }
.seccion-cabecera.centrada { margin-inline: auto; text-align: center; }

.seccion-cabecera h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* servicios */

.servicios-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 880px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }

.servicio-tarjeta {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px 26px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.servicio-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(23, 35, 31, 0.35); }

.servicio-tarjeta.destacado { border-color: var(--accent); }

.servicio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.servicio-foto { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: -22px; }
.servicio-foto img { width: 100%; height: 100%; object-fit: cover; }

.servicio-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-wash);
  font-size: 20px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  border: 4px solid var(--surface);
}

.servicio-tarjeta h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.servicio-tarjeta > p { color: var(--ink-dim); font-size: 0.96rem; margin: 0 0 16px; }

.servicio-lista { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.servicio-lista li { font-size: 0.92rem; color: var(--ink-dim); padding-left: 22px; position: relative; }
.servicio-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.enlace-flecha { color: var(--accent-deep); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { text-decoration: underline; }

/* descubre tira */

.descubre-tira { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .descubre-tira { grid-template-columns: repeat(5, 1fr); } }

.descubre-mas { text-align: center; margin-top: 20px; display: flex; justify-content: center; }

.descubre-tira figure { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; }
.descubre-tira img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.descubre-tira figure:hover img { transform: scale(1.06); }

.descubre-tira figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-size: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* furgoneta */

.furgoneta-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) {
  .furgoneta-grid { grid-template-columns: 1fr 1fr; }
  .furgoneta-miniaturas { grid-column: 2; }
}

.furgoneta-principal { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.furgoneta-principal img { width: 100%; height: 100%; object-fit: cover; }

.furgoneta-detalle h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; margin: 0 0 14px; }
.furgoneta-detalle p { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.6; max-width: 46ch; margin: 0 0 22px; }

.amenidades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-bottom: 26px; }
.amenidades span { font-size: 0.95rem; color: var(--ink); }

.furgoneta-miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.furgoneta-miniaturas img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; }

/* adicionales */

.adicionales-grid { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
@media (min-width: 700px) { .adicionales-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .adicionales-grid { grid-template-columns: repeat(5, 1fr); } }

.adicional-icono { font-size: 26px; display: block; margin-bottom: 10px; }
.adicional h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.adicional p { font-size: 0.9rem; color: var(--ink-dim); margin: 0; }

/* footer */

footer { background: var(--accent-deep); color: #eef4f2; padding-block: 56px 0; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.3fr 0.9fr; } }

.footer-marca { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo { height: 64px; width: auto; object-fit: contain; border-radius: var(--radius-sm); background: #fff; padding: 6px 10px; }
.footer-marca p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin: 0; max-width: 30ch; }

.footer-form { display: flex; flex-direction: column; gap: 12px; }
.footer-form .etiqueta { color: #bfe3da; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-fila { grid-template-columns: 1fr; } }
.footer-form input, .footer-form textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.footer-form .boton-primario { align-self: flex-start; background: #ffffff; color: var(--accent-deep); }
.footer-form .boton-primario:hover { background: #eaf3f1; }

.footer-contacto { display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; }
.footer-contacto a { color: #eef4f2; text-decoration: none; }
.footer-contacto a:hover { text-decoration: underline; }
.footer-contacto span { color: rgba(255, 255, 255, 0.75); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- chat modal ---------- */

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-modal.abierto { display: flex; }

.chat-modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 31, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-modal.abierto .chat-modal-fondo { opacity: 1; }

.chat-ventana {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: min(600px, calc(var(--vvh, 100dvh) - 40px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, height 0.15s ease;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(23, 35, 31, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
}

.chat-modal.abierto .chat-ventana { transform: translateY(0) scale(1); opacity: 1; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }

.chat-cerrar {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.chat-cerrar:hover { background: var(--accent-wash); color: var(--accent-deep); }

.chat-mensajes { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; }
.chat-msg.bot { background: var(--accent-wash); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { color: var(--ink-dim); font-style: italic; background: transparent; padding: 0 15px; }

.chat-inputbar { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-inputbar input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 0.93rem; font-family: inherit; }
.chat-inputbar input:focus { outline: none; border-color: var(--accent); }
.chat-inputbar button {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; font-size: 15px; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s ease;
}
.chat-inputbar button:hover { background: var(--accent-deep); }
.chat-inputbar button:disabled { opacity: 0.5; cursor: default; }

/* ---------- scroll ---------- */

html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--accent-wash); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--accent-wash); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 2px solid var(--accent-wash); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

.chat-mensajes::-webkit-scrollbar { width: 8px; }
.chat-mensajes::-webkit-scrollbar-thumb { border-width: 1px; }

@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .descubre-tira figure:hover img { transform: none; }
}
