html, body {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;        /* �9�7 ESTO CENTRA TODO */
  padding: 0 20px;
}

.header {
  background: #000;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 80px;
  width: auto;
}

.nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 200;
}

.hero {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0,0,0,0.6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  color: white;
  text-align: center;
}
/* === T�0�1TULO PRINCIPAL DEL HERO === */
.hero-content h1 {
  font-size: 72px;        /* grande y protagonista */
  font-weight: 600;      /* delgado, elegante (Poppins thin/light) */
  letter-spacing: 1px;
  margin-bottom: 20px;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }
}
/* === HERO SEARCH BAR ESTILO PILL (VERSI�0�7N CTA REAL) === */
.hero-actions {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

/* Reset general */
.hero-actions input,
.hero-actions select,
.hero-actions .btn-primary {
  height: 56px;
  border-radius: 0;
  border: none;
  outline: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  box-shadow: none;
}

/* Input izquierdo */
.hero-actions input {
  border-radius: 999px 0 0 999px;
  padding: 0 20px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

/* Select centro */
.hero-actions select {
  padding: 0 20px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  background: #fff;
}

/* Bot��n derecho (CTA real, no link) */
.hero-actions .btn-primary {
  border-radius: 0 999px 999px 0;
  padding: 0 32px;
  height: 56px;
  background: #e36b10;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none !important;  /* �9�7 quita subrayado */
  cursor: pointer;                  /* �9�7 se siente bot��n */
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Hover de bot��n */
.hero-actions .btn-primary:hover {
  background: #006078;
}

/* Active (cuando haces click) */
.hero-actions .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions input,
  .hero-actions select,
  .hero-actions .btn-primary {
    border-radius: 999px;
    width: 100%;
  }
}

.section {
  padding: 80px 10%;
}

/* === HEADER FLOTANTE TRANSPARENTE === */
.header {
  position: fixed;       /* flota encima del hero */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;   /* transparente al inicio */
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

/* cuando haga scroll */
.header.scrolled {
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Ajuste para que el hero quede pegado arriba */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overlay igual, pero le damos un poco m��s de drama */
.hero-overlay {
  background: rgba(0,0,0,0.55);
}

/* Para que el contenido del hero no se vaya detr��s del header */
.hero-content {
  padding-top: 120px;
}

.section h2 {
  margin-bottom: 30px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 30px;
  border: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
  background: #f7f7f7;
}

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

.who img {
  width: 100%;
  border-radius: 10px;
}

.mission {
  display: flex;
  gap: 30px;
  justify-content: center;
  text-align: center;
}

.mission-box {
  background: #111;
  color: white;
  padding: 40px;
  width: 300px;
}



/* === SECCI�0�7N HISTORIA === */

/* Importar Poppins Thin */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;600&display=swap');

.history {
  background: #fff;
}

.history-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

/* Bloque naranja */
.history-badge {
  background: #e36b10;
  border-radius: 30px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1; /* cuadrado perfecto */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100; /* Thin */
  line-height: 1;
}

.history-badge span {
  font-size: 86px;
  letter-spacing: 6px;
}

/* Texto derecha */
.history-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 22px;
  color: #222;
  max-width: 600px;
}

/* Responsive */
@media (max-width: 900px) {
  .history-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .history-badge {
    margin: 0 auto;
  }

  .history-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* === SECCI�1�70�1�77N LO QUE HACEMOS (TETRIS GRID) === */

.services-title {
  text-align: center;
  font-size: 72px;
  font-weight: 300;
  margin-bottom: 60px;
}

.services-grid-tetris {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
grid-template-columns: 1.3fr 1fr 1fr;
grid-template-rows: 280px 230px 210px;
  gap: 20px;
}

/* Base de los tiles */
.service-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
}

/* Imagen de fondo */
.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

/* Overlay oscuro */
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2;
  transition: background 0.3s ease;
}

/* Texto */
.service-tile span {
  position: relative;
  z-index: 3;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.65);
  padding-bottom: 6px;
}

/* Hover */
.service-tile:hover::before {
  transform: scale(1.12);
}

.service-tile:hover::after {
  background: rgba(0,0,0,0.45);
}

/* Posiciones tipo tetris */
.tile-experience   { grid-column: 1 / 2; grid-row: 1 / 3; }

.tile-produccion   { grid-column: 2 / 3; grid-row: 1 / 2; }
.tile-rutas        { grid-column: 3 / 4; grid-row: 1 / 2; }

.tile-capacitacion { grid-column: 2 / 3; grid-row: 2 / 3; }
.tile-filming      { grid-column: 3 / 4; grid-row: 2 / 3; }

.tile-autocare     { grid-column: 1 / 2; grid-row: 3 / 4; }
.tile-testdrives   { grid-column: 2 / 3; grid-row: 3 / 4; }
.tile-teambuilding { grid-column: 3 / 4; grid-row: 3 / 4; }

/* IM�1�70�1�79GENES (RUTAS CORRECTAS) */
.tile-experience::before   { background-image: url("../img/driving-experience.jpeg"); }
.tile-produccion::before   { background-image: url("../img/produccion.jpeg"); }
.tile-rutas::before        { background-image: url("../img/rutas.jpeg"); }
.tile-capacitacion::before { background-image: url("../img/capacitacion.jpeg"); }
.tile-filming::before { background-image: url("../img/filming.jpeg"); }
.tile-autocare::before     { background-image: url("../img/auto-care.jpeg"); }
.tile-teambuilding::before { background-image: url("../img/team-building.jpeg"); }
.tile-testdrives::before    {  background-image: url("../img/test-drives.jpeg"); }

/* Responsive */
@media (max-width: 900px) {
  .services-grid-tetris {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 180px);
  }

  .tile-experience,
  .tile-produccion,
  .tile-rutas,
  .tile-capacitacion,
  .tile-filming,
  .tile-autocare,
  .tile-testdrives,
  .tile-teambuilding {
    grid-column: auto;
    grid-row: auto;
    border-radius: 20px;
  }
}

/* === BANNER / CINTILLO SEPARADOR === */

.section-divider {
  width: 100%;
  margin: 100px 0;           /* espacio arriba y abajo entre secciones */
  overflow: hidden;         /* evita scroll horizontal */
}

.section-divider img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* === QUI�0�7NES SOMOS === */

.about-section {
  padding: 120px 0;
}

.about-title {
  font-size: 72px;
  font-weight: 300;
  margin-bottom: 24px;
}

.about-text {
  max-width: 820px;
  margin: 0 auto;   /* �9�6 ESTO lo centra */
  line-height: 1.6;
  font-size: 18px;
  text-align: left; /* opcional: mantiene lectura editorial */
}

.about-rect {
  margin: 80px auto;
  width: 80%;
  max-width: 900px;
  height: 240px;
  background: #006078;
}

.mv-title {
  font-size: 56px;
  font-weight: 300;
  margin-bottom: 60px;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.mv-card {
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mv-card:hover {
  background: #e36b10;
  transform: scale(1.04);
}

/* === FOOTER MOCKUP 4 COLUMNAS === */
/* === FOOTER === */

.footer {
  background: #e36b10;
  color: #fff;
  padding: 80px 5% 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: flex-start;
}

/* Titulos */
.footer-col h4 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Reset lista */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items */
.footer-links li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.8;
}

/* Links */
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Columna marca */
.footer-brand p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.6; /* ligeramente menor para que no se vea tan separado */
}

.footer-logo {
  height: 90px;
  width: auto;
  margin-bottom: 20px;
}

/* === CONTACTO (icono + texto alineado) === */

.footer-col ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Newsletter === */

.footer input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
}

.footer button {
  width: 100%;
  padding: 14px;
  background: #006078;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.footer button:hover {
  background: #004c5a;
}

/* === Redes === */

.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  display: flex;
  justify-content: flex-start;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #e36b10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.2s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  background: #006078;
  color: #fff;
}

/* === Responsive === */

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}

/* ================= LIGHTBOX ================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: 0.2s ease;
}

.arrow:hover,
.close:hover {
  opacity: 0.7;
}

.arrow.left {
  left: 40px;
}

.arrow.right {
  right: 40px;
}

/* === AVISO DE PRIVACIDAD === */
.aviso-privacidad {
  background: #f4f4f4;
  padding: 90px 20px; /* un poco más de aire arriba y abajo */
}

.aviso-box {
  max-width: 860px; /* líneas más cortas = mejor lectura */
  margin: 0 auto;
  background: #ffffff;
  padding: 80px 90px; /* más espacio interno */
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border-radius: 4px;
}

.aviso-box p {
  font-size: 14px;
  line-height: 1.9; /* mejora la lectura */
  margin-bottom: 22px;
  color: #222;
}

.aviso-box h2 {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 55px;
  margin-bottom: 22px;
  font-weight: 600;
  color: #111;
}

/* primer título sin espacio extra arriba */
.aviso-box h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .aviso-privacidad {
    padding: 60px 16px;
  }

  .aviso-box {
    padding: 45px 28px;
  }

  .aviso-box p {
    font-size: 13.5px;
    line-height: 1.85;
  }

  .aviso-box h2 {
    margin-top: 40px;
  }
}
/* === OBJETIVO Y VALORES === */
.valores-section {
  background: #111;
  color: #ffffff;
  padding: 120px 0;
}

.valores-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 30px;
}

.valores-intro {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 80px;
  color: #cfcfcf;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 80px;
}

.valor-item h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 15px;
}

.valor-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #bdbdbd;
}

/* Responsive */

@media (max-width: 992px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

@media (max-width: 600px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }

  .valores-title {
    font-size: 30px;
  }

  .valores-intro {
    font-size: 16px;
  }
}
/* === NUMERALIA === */
.numeralia-section {
  background: #e36b10;
  padding: 100px 5%;
}

.numeralia-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.numeralia-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.num-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.num-value {
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

.num-suffix {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.num-label {
  font-size: 15px !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 400 !important;
  margin-top: 8px !important;
  max-width: 160px;
  line-height: 1.4 !important;
}

@media (max-width: 900px) {
  .numeralia-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
  }
}

@media (max-width: 500px) {
  .numeralia-grid {
    grid-template-columns: 1fr;
  }
  .num-value {
    font-size: 64px;
  }
}