:root {
  --ink: #171916;
  --muted: #74766f;
  --line: #e9e9e4;
  --soft: #f6f6f2;
  --white: #fff;
  --accent: #c7a879;
  --green: #25d366;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

img {
  display: block;
  max-width: 100%;
}

/* =========================
   BARRA SUPERIOR Y CABECERA
   ========================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6.5%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .07em;
}

.header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.5%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 160px;
}

.brand img {
  width: 158px;
  max-height: 55px;
  object-fit: contain;
}

.brand-fallback,
.footer-brand {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.07em;
}

.brand-fallback b,
.footer-brand b {
  font-weight: 500;
  color: #a88b61;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
}

.nav > a:not(.nav-cta) {
  transition: color .2s;
}

.nav > a:not(.nav-cta):hover,
.text-link:hover {
  color: #a88b61;
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 14px 19px;
  border-radius: 5px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   PORTADA
   ========================= */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 570px;
  padding: 55px 6.5% 80px;
  align-items: center;
  gap: 6%;
  overflow: hidden;
}

.hero-content {
  max-width: 570px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #7b7b72;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1,
.section-heading h2,
.reservation h2,
.location h2 {
  font-family: Manrope, sans-serif;
  letter-spacing: -.065em;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.1;
  margin: 25px 0 22px;
}

.hero h1 span,
.section-heading h2 span,
.reservation h2 span,
.location h2 span {
  color: #a88b61;
}

.hero-description {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 49px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}

.button:hover { transform: translateY(-2px); }

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover { background: #33372f; }

.button-light {
  background: #fff;
  border-color: #e4e4df;
}

.button-light:hover { background: var(--soft); }

.hero-trust {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.trust-icon {
  color: #a88b61;
  font-weight: 800;
}

.trust-separator { color: #c6c6bd; }

.hero-visual {
  position: relative;
  min-width: 0;
}

/* PORTADA: se elimina la foto externa que mostraba el Chevrolet.
   Se mantiene el espacio y el estilo visual de la portada. */

.hero-image {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 25%, #ffffff 0%, transparent 42%),
    linear-gradient(135deg, #eeeee8 0%, #d9d9d0 55%, #c9c8bd 100%);
}

.hero-image::after {
  content: "REALITY CAR";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #171916;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5px;
}

.image-label {
  position: absolute;
  bottom: -23px;
  left: -28px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  background: #fff;
  box-shadow: 0 10px 40px #0000000c;
}

.label-icon {
  font-size: 25px;
  color: #b49a72;
}

.image-label strong,
.image-label small {
  display: block;
}

.image-label strong {
  font-size: 12px;
  margin-bottom: 5px;
}

.image-label small {
  color: var(--muted);
  font-size: 10px;
}

.vertical-note {
  position: absolute;
  right: -24px;
  top: 35%;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: .25em;
  color: #898a81;
}

.hero-number {
  position: absolute;
  bottom: 27px;
  right: 6.5%;
  font-size: 12px;
  font-weight: 700;
}

.hero-number span {
  color: #a5a69d;
  font-weight: 400;
}

/* =========================
   VENTAJAS
   ========================= */

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 6.5%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 5px 12px;
  border-right: 1px solid var(--line);
}

.benefit:first-child { justify-content: flex-start; }

.benefit:last-child { border-right: 0; }

.benefit-icon {
  font-size: 23px;
  color: #a88b61;
}

.benefit strong,
.benefit small { display: block; }

.benefit strong {
  font-size: 11px;
  margin-bottom: 5px;
}

.benefit small {
  font-size: 10px;
  color: var(--muted);
}

/* =========================
   SECCIONES Y FLOTA
   ========================= */

.section { padding: 100px 6.5%; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 36px;
}

.section-heading h2,
.reservation h2,
.location h2 {
  font-size: clamp(35px, 4vw, 48px);
  line-height: 1.18;
  margin: 15px 0 12px;
}

.section-heading p,
.location-copy > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 0;
}

.text-link {
  font-size: 11px;
  font-weight: 700;
  padding-bottom: 8px;
  white-space: nowrap;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.car-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px #0000000a;
}

.car-image {
  position: relative;
  background: #f2f1ed;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .5s;
}

.car-card:hover .car-image img { transform: scale(1.04); }

.car-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  padding: 8px 10px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
}

.car-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 19px 0;
}

.car-category {
  color: #9b9b90;
  font-size: 8px;
  letter-spacing: .13em;
  font-weight: 700;
}

.car-info h3 {
  font-family: Manrope, sans-serif;
  font-size: 21px;
  margin: 7px 0 0;
  letter-spacing: -.04em;
}

.car-arrow {
  font-size: 22px;
  color: #a88b61;
}

.car-card > p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding: 0 19px;
  margin: 12px 0 18px;
  min-height: 38px;
}

.car-bottom {
  border-top: 1px solid var(--line);
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.car-bottom > span {
  font-size: 10px;
  color: var(--muted);
}

.car-reserve {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.car-reserve:hover { color: #a88b61; }

.fleet-note {
  color: #8b8b82;
  font-size: 10px;
  margin-top: 20px;
}

/* =========================
   RESERVAS
   ========================= */

.reservation {
  background: var(--soft);
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 9%;
  align-items: start;
}

.reservation-copy { padding-top: 28px; }

.reservation h2 { margin-top: 23px; }

.reservation-copy > p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 430px;
}

.reservation-points {
  display: grid;
  gap: 17px;
  margin-top: 36px;
}

.reservation-points div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 600;
}

.reservation-points span {
  color: #a88b61;
  font-size: 10px;
}

.booking-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 8px;
}

.form-heading h3 {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  margin-bottom: 7px;
  letter-spacing: -.04em;
}

.form-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 25px;
}

.booking-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin: 17px 0 8px;
}

.booking-form label span {
  font-weight: 400;
  color: var(--muted);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5e5df;
  border-radius: 4px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #a88b61;
}

.booking-form textarea { resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-button {
  width: 100%;
  margin-top: 23px;
}

.form-privacy {
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  color: #8b8b82;
  margin: 13px 0 0;
}

.form-feedback {
  font-size: 11px;
  color: #a33;
  margin: 8px 0 0;
}

/* =========================
   UBICACIÓN
   ========================= */

.location {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 10%;
  align-items: center;
}

.location-copy > p {
  max-width: 390px;
  margin-bottom: 26px;
}

.map-card {
  position: relative;
  min-height: 300px;
  background-color: #f0f0e9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.map-pattern {
  position: absolute;
  inset: -30%;
  opacity: .6;
  transform: rotate(-12deg);
  background-image:
    linear-gradient(28deg, transparent 47%, #fff 48%, #fff 51%, transparent 52%),
    linear-gradient(105deg, transparent 46%, #d8d9cf 47%, #d8d9cf 49%, transparent 50%),
    linear-gradient(165deg, transparent 45%, #fff 46%, #fff 50%, transparent 51%);
  background-size: 100px 90px, 130px 120px, 160px 110px;
}

.map-pin {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 5px 18px #0002;
}

.map-pin::first-letter { transform: rotate(45deg); }

.map-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #fff;
  padding: 17px 20px;
  min-width: 190px;
  box-shadow: 0 8px 30px #0000000a;
}

.map-label strong,
.map-label span,
.map-label small { display: block; }

.map-label strong {
  font-size: 11px;
  margin-bottom: 6px;
}

.map-label span {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}

.map-label small {
  font-size: 9px;
  color: #a88b61;
  font-weight: 700;
}

/* =========================
   PIE DE PÁGINA
   ========================= */

.footer {
  background: #171916;
  color: #fff;
  padding: 40px 6.5% 20px;
}

.footer-brand { display: inline-block; }

.footer > p {
  color: #a8a99f;
  font-size: 11px;
  margin: 10px 0 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  padding-bottom: 25px;
  font-size: 10px;
  color: #d1d1ca;
}

.footer-links a:hover,
.footer-bottom a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #a8a99f;
}

/* =========================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: var(--green);
  color: #103d20;
  border-radius: 40px;
  box-shadow: 0 5px 25px #0002;
  font-size: 11px;
  transition: transform .2s;
}

.whatsapp-float:hover { transform: translateY(-3px); }

.whatsapp-float span { font-size: 19px; }

/* ==========================================
   INTRO DE IDIOMAS — DISEÑO PREMIUM
   ========================================== */

.language-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(15, 16, 14, .86);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: languageFadeIn .3s ease both;
}

.language-modal {
  position: relative;
  width: min(100%, 550px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 39px 34px 28px;
  background: #fff;
  border: 1px solid #d8c3a2;
  border-radius: 12px;
  box-shadow: 0 25px 75px rgba(0, 0, 0, .3);
  text-align: center;
  animation: languageSlideIn .4s ease both;
}

.language-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c7a879;
}

.language-brand {
  margin: 0 0 25px;
  color: #171916;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
}

.language-brand span { color: #a88b61; }

.language-modal h2 {
  margin: 0 0 10px;
  color: #171916;
  font-family: Manrope, sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.2;
}

.language-modal > p {
  margin: 0 0 27px;
  color: #74766f;
  font-size: 13px;
  line-height: 1.7;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.language-options button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 72px;
  padding: 13px 15px;
  color: #171916;
  background: #fff;
  border: 1px solid #e9e9e4;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.language-options button:hover {
  background: #faf8f3;
  border-color: #c7a879;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .055);
  transform: translateY(-2px);
}

.language-options button:active { transform: scale(.985); }

.language-options button:focus-visible {
  outline: 2px solid #a88b61;
  outline-offset: 3px;
}

.language-options .language-flag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  font-size: 31px;
  line-height: 1;
}

.language-options button > span:last-child {
  overflow-wrap: anywhere;
}

.language-footer {
  margin: 25px 0 0;
  color: #929187;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Estado de idioma seleccionado */

.language-options button.active,
.language-options button[aria-pressed="true"] {
  background: #faf7f0;
  border-color: #c7a879;
  box-shadow: inset 0 0 0 1px #c7a879;
}

/* Adaptación para árabe y contenido RTL */

html[dir="rtl"] .language-modal {
  direction: rtl;
}

html[dir="rtl"] .language-options button {
  text-align: right;
}

/* Animaciones discretas */

@keyframes languageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes languageSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   DISEÑO RESPONSIVE — TABLET Y MÓVIL
   ========================================== */

@media (max-width: 1050px) {
  .nav { gap: 17px; }
  .nav-cta { padding: 12px; }
  .hero { gap: 4%; }

  .benefit-strip {
    padding-left: 4%;
    padding-right: 4%;
  }

  .benefit { padding: 5px 8px; }
  .section { padding: 80px 5%; }
  .reservation { gap: 5%; }
}

@media (max-width: 780px) {
  .topbar {
    padding: 9px 5%;
    font-size: 9px;
  }

  .header {
    height: 72px;
    padding: 0 5%;
  }

  .brand img { width: 135px; }
  .brand-fallback { font-size: 19px; }

  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 71px;
    background: #fff;
    padding: 20px 5% 25px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open { display: flex; }

  .nav > a { padding: 14px 0; }

  .nav .nav-cta {
    text-align: center;
    margin-top: 8px;
    padding: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 54px 5% 65px;
    gap: 40px;
  }

  .hero h1 { font-size: clamp(42px, 10vw, 62px); }

  .hero-visual { margin: 0 8px 10px 0; }

  .hero-image { aspect-ratio: 1.25 / 1; }

  .vertical-note { right: -18px; }

  .hero-number {
    right: 5%;
    bottom: 20px;
  }

  .benefit-strip {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 25px 5%;
  }

  .benefit {
    justify-content: flex-start !important;
    border-right: 0;
  }

  .benefit:nth-child(odd) { border-right: 1px solid var(--line); }

  .section { padding: 70px 5%; }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .car-image img { height: 250px; }

  .reservation,
  .location {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .reservation-copy { padding-top: 0; }

  .booking-form { padding: 23px 19px; }

  .location { gap: 30px; }

  .map-card { min-height: 270px; }
}

@media (max-width: 480px) {
  .topbar {
    font-size: 8px;
    letter-spacing: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button { width: 100%; }

  .hero-trust { flex-wrap: wrap; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-bottom { flex-direction: column; }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }

  /* Selector de idiomas en móvil */

  .language-overlay { padding: 14px; }

  .language-modal {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 33px 19px 23px;
  }

  .language-brand {
    margin-bottom: 21px;
    font-size: 12px;
  }

  .language-modal h2 { font-size: 27px; }

  .language-modal > p {
    margin-bottom: 21px;
    font-size: 12px;
  }

  .language-options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .language-options button {
    min-height: 59px;
    padding: 9px 13px;
  }

  .language-options .language-flag {
    width: 38px;
    height: 36px;
    font-size: 28px;
  }

  .language-footer {
    margin-top: 20px;
    font-size: 9px;
  }
}

/* Accesibilidad: respetar la preferencia de reducir movimiento */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
