/* ========================
   VARIABLES DE MARCA
   ======================== */
:root {
  --rojo: #000000;           /* fondo oscuro principal */
  --rojo-oscuro: #111111;    /* tono más oscuro abajo */
  --negro: #e50914;          /* rojo brillante marca MOTOCV */
  --blanco: #ffffff;
  --gris-texto: #f5f5f5;
  --gris-suave: #cccccc;

  --radius-card: 14px;
  --radius-btn: 8px;

  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

/* ========================
   HEADER
   ======================== */
.site-header-black {
  background: var(--negro);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blanco);
}

.brand-area {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo-text {
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.brand-sub {
  color: var(--negro);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: var(--gris-texto);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
  color: var(--blanco);
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.lang-btn.lang-active {
  background: var(--blanco);
  color: var(--negro);
  font-weight: 700;
}

/* ====== BURGER MENU ====== */
.burger {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-btn);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--blanco);
  border-radius: 1px;
}

.mobile-menu {
  background: var(--negro);
  display: none;
  flex-direction: column;
  padding: 16px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-link {
  color: var(--blanco);
  font-size: 0.95rem;
  text-decoration: none;
}
.mobile-link.active,
.mobile-link:hover {
  color: var(--gris-suave);
}

.desktop-only { display: none; }
.mobile-only { display: flex; }
@media (min-width: 768px) {
  .desktop-only { display: flex; }
  .mobile-only { display: none; }
}

/* ========================
   FILA DE MOTOS
   ======================== */
.motos-row {
  max-width: 1200px;
  margin: 32px auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .motos-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.moto-box {
  background: var(--negro);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.moto-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--rojo);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.moto-img,
.moto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.moto-info {
  padding: 16px;
  background: var(--negro);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moto-precio {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rojo);
}

.moto-precio span {
  color: var(--blanco);
  font-size: 0.85rem;
}

.moto-btn {
  background: var(--rojo);
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: 0.2s ease-in-out;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}
.moto-btn:hover {
  background: var(--blanco);
  color: var(--rojo);
}

/* ========================
   VIDEO BANNER (full width sin recorte)
   ======================== */
.banner-video {
  width: 100%;
  margin-top: 24px;
  background: var(--negro);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 1);
}

.banner-video-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* el video ocupa todo el ancho y ajusta su altura automáticamente */
.banner-video-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: #000;
}

/* ========================
   MAPA COMO BANNER FULL WIDTH
   ======================== */
.banner-mapa {
  width: 100%;
  position: relative;
  background: var(--negro);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
  padding: 0;
}

.banner-mapa-bg {
  width: 100%;
  min-height: 220px;
  background: var(--rojo);
  position: relative;
  overflow: hidden;
}

.map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}
@media (min-width:768px){
  .banner-mapa-bg { min-height: 320px; }
  .map-embed { height: 320px; }
}

.contact-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px;
  text-align: center;
  line-height: 1.4;
}

/* ========================
   FOOTER
   ======================== */
.site-footer-black {
  background: var(--negro);
  color: var(--blanco);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px 16px;
}

.footer-inner-tight {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .footer-inner-tight {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-logo {
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-sub {
  color: var(--rojo);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.footer-note {
  color: var(--gris-texto);
  font-size: 0.8rem;
  margin-top: 8px;
}
.footer-legal {
  color: var(--gris-texto);
  font-size: 0.75rem;
  text-align: left;
}
@media (min-width: 768px) {
  .footer-legal { text-align: right; }
}
/* ===== Espacio entre el video y el mapa ===== */
.banner-video {
  margin-bottom: 32px; /* separa el mapa del video */
}
/* ========================
   PÁGINA DE RESERVA MOTOCV
   ======================== */

/* Galería de modelos en la página de reserva */
.motos-row.modelos-reserva {
  max-width: 1200px;
  margin: 32px auto 16px auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .motos-row.modelos-reserva {
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* las 5 motos en fila en desktop */
  }
}

/* Nombre de la moto debajo de la imagen (en la reserva) */
.moto-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blanco);
}

/* Ajuste de precio para que no “grite” tanto en la página de reserva */
.modelos-reserva .moto-precio {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rojo);
}

/* ========================
   PÁGINA DE RESERVA MOTOCV — ESTILO ACTUALIZADO
   ======================== */

/* ==== GALERÍA DE MODELOS ==== */
.motos-row.modelos-reserva {
  max-width: 1200px;
  margin: 32px auto 16px auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .motos-row.modelos-reserva {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.moto-nombre {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanco);
}
.modelos-reserva .moto-precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--negro);
}

/* ==== FORMULARIO ==== */
.reserva-form-section {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 16px 40px;
}

.reserva-form-inner {
  background: linear-gradient(180deg, #000000 0%, #111111 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-card);
  padding: 24px 20px 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.reserva-form-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--negro);
}

.reserva-form-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blanco);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--negro);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Campos */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .form-row-inline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Inputs y selects */
.booking-form input,
.booking-form select,
.booking-form textarea {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blanco);
  font-family: var(--font-main);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: 0.9rem;
  transition: 0.2s ease-in-out;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--negro);
  box-shadow: 0 0 0 1px var(--negro);
}

/* Checkbox */
.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--negro);
}

/* Botón */
.booking-form .moto-btn {
  background: var(--negro);
  color: var(--blanco);
  font-weight: 700;
  border: 2px solid var(--negro);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
  transition: all 0.2s ease-in-out;
  align-self: flex-start;
}
.booking-form .moto-btn:hover {
  background: var(--blanco);
  color: var(--negro);
  border-color: var(--blanco);
}

/* ==== NOTA IMPORTANTE ==== */
.nota-importante {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(229, 9, 20, 0.1);
  border-left: 4px solid var(--negro);
  border-radius: var(--radius-card);
  color: var(--gris-texto);
  line-height: 1.5;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nota-importante::before {
  content: "⚠️";
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.nota-importante strong {
  color: var(--blanco);
  font-weight: 700;
}
/* ========================
   MODAL CONDIÇÕES DE ALUGUER
   ======================== */
.terms-link {
  background: none;
  border: none;
  color: var(--negro); /* color rojo brillante de la marca */
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #ff2b2b; /* tono más claro al pasar el mouse */
}

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.terms-modal-overlay.is-visible {
  display: flex;
}

.terms-modal {
  background: #111;
  border-radius: 14px;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 24px 24px;
  color: var(--blanco);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  position: relative;
}

.terms-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--blanco);
  font-size: 1.6rem;
  cursor: pointer;
}

.terms-section {
  margin-top: 12px;
}

.terms-section h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.terms-section p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gris-texto);
}
/* ========================
   PÁGINA RESERVA: GALERÍA 3 ARRIBA + 2 ABAJO CENTRADAS
   ======================== */

/* Base: una por fila en móvil (como ya tenías) */
.motos-row.modelos-reserva {
  max-width: 1200px;
  margin: 32px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr; /* móvil: 1 columna */
  gap: 20px;
}

/* Hacemos las fotos un poco más altas para que se vean mayores */
.motos-row.modelos-reserva .moto-img-wrap {
  aspect-ratio: 16 / 10; /* más alta que antes, foto se ve más grande */
}

/* En escritorio: 3 columnas, con la fila de abajo centrada */
@media (min-width: 768px) {
  .motos-row.modelos-reserva {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columnas */
    gap: 24px;
  }

  /* 1ª fila: items 1, 2, 3 ocupan columnas 1,2,3 normalmente */

  /* 2ª fila: el 4º va a la columna 1 y el 5º a la columna 3 para quedar centrados */
  .motos-row.modelos-reserva .moto-box:nth-child(4) {
    grid-column: 1 / 2;
  }

  .motos-row.modelos-reserva .moto-box:nth-child(5) {
    grid-column: 3 / 4;
  }
}
/* ========== FORMULÁRIO MOTOCV MAIS CLARO ========== */

.reserva-form-section {
  padding: 4rem 1.5rem 5rem;
  /* Deja el fondo general oscuro si quieres mantener el estilo */
  background: #000000; /* o usa var(--rojo) si ya la tienes definida */
}

.reserva-form-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;          /* FONDO BLANCO PRINCIPAL */
  border-radius: 16px;
  padding: 2.5rem 1.8rem 2.8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border-top: 6px solid #e50914; /* ROJO MOTOCV (puedes usar var(--negro) si está definida) */
}

/* Título del formulario */
.reserva-form-inner h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Filas del formulario */
.booking-form .form-row {
  margin-bottom: 1.1rem;
}

/* Etiquetas */
.booking-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #111111; /* Texto oscuro para buen contraste */
}

/* Inputs, selects y textarea */
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dddddd;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: #f9f9f9;      /* Gris muy claro */
  color: #111111;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #e50914; /* rojo */
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.25);
  background: #ffffff;
}

/* Fila con 2 columnas (datas) */
.booking-form .form-row-inline {
  display: flex;
  gap: 1rem;
}

.booking-form .form-row-inline > div {
  flex: 1;
}

/* Checkbox + texto */
.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #222222;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.15rem;
}

/* Link de condições */
.terms-link {
  border: none;
  background: none;
  padding: 0;
  color: #e50914;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Botão de enviar */
.booking-form .moto-btn {
  width: 100%;
  margin-top: 0.8rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: #e50914; /* rojo principal */
  color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.booking-form .moto-btn:hover {
  background: #ff1730;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Nota importante abaixo do formulário */
.nota-importante {
  margin-top: 1.6rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: #fff5f5;           /* Fundo claro com toque vermelho */
  border-left: 4px solid #e50914;
  color: #6b0000;
  font-size: 0.9rem;
  line-height: 1.5;
}
/* ===== BOTÓN FLOTANTE WHATSAPP (BARRA INFERIOR) ===== */
.whatsapp-button {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #25D366;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 14px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease;
}

.whatsapp-button:hover {
  background-color: #20ba5a;
}

.whatsapp-button i {
  font-size: 22px;
}

/* En pantallas grandes, hazlo más estrecho si prefieres */
@media (min-width: 768px) {
  .whatsapp-button {
    width: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    border-radius: 40px;
    padding: 12px 20px;
  }
}
/* ===== AJUSTE ESPACIADO MENSAJE DE RESERVA ===== */
.reserva-feedback .reserva-message {
  text-align: center;
  padding: 40px 20px;
}

.reserva-feedback .reserva-message h2 {
  margin-bottom: 14px;
}

.reserva-feedback .reserva-message p {
  margin-bottom: 24px;
}

.reserva-feedback .reserva-message .moto-btn {
  display: inline-block;
  margin-top: 20px; /* <-- esto baja el botón */
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
  padding:30px 20px 60px;
}
.gallery-item img{
  width:100%;height:100%;object-fit:cover;
  border-radius:12px;cursor:pointer;
  transition:transform .3s ease;
}
.gallery-item:hover img{transform:scale(1.03);}
.lightbox{
  position:fixed;inset:0;background:rgba(0,0,0,.9);
  display:flex;justify-content:center;align-items:center;
  opacity:0;pointer-events:none;transition:opacity .2s;
  z-index:999;
}
.lightbox.is-open{opacity:1;pointer-events:auto;}
.lightbox img{max-width:90vw;max-height:80vh;border-radius:10px;}
.lightbox-close,.lightbox-prev,.lightbox-next{
  position:absolute;background:rgba(0,0,0,.5);color:#fff;border:none;
  width:42px;height:42px;border-radius:50%;cursor:pointer;
}
.lightbox-close{top:20px;right:20px;}
.lightbox-prev{left:20px;top:50%;transform:translateY(-50%);}
.lightbox-next{right:20px;top:50%;transform:translateY(-50%);}
.lightbox button:hover{background:rgba(0,0,0,.7);}
.lightbox figcaption{color:#fff;text-align:center;margin-top:10px;font-size:14px;}
