/* Vehículos Portafolio */
.vehiculos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.vehiculo-card {
  background: #181b20;
  border-radius: 18px;
  box-shadow: 0 4px 24px #000a;
  padding: 2rem;
  margin: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #23262c;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vehiculo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 32px #0ff2ff55;
  border: 1px solid #0ff2ff;
}
.vehiculo-img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #23262c;
}

/* Modal Detalle Vehículo */
.vehiculo-detalle-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 19, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.vehiculo-detalle-content {
  background: #181b20;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0ff2ff55;
  padding: 1rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  color: #e0e6ed;
  text-align: left;
}
.vehiculo-img-large {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: #23262c;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #ff2323;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
}
.vehiculo-detalle-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.vehiculo-detalle-content li {
  margin-bottom: 0.5rem;
}
body {
  margin: 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #10131a;
  color: #e0e6ed;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin: 0.5em 0 0.5em 0;
}

h1 {
  font-size: 4rem;
  color: #fff;
  line-height: 1.1;
}

h1 .highlight-red, .highlight-red {
  color: #ff2323;
}

h2 {
  font-size: 2rem;
  color: #0ff2ff;
  font-weight: 600;
}

/* ── NAV ── */
nav {
  background: #181b20;
  box-shadow: 0 2px 8px #000a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  color: #ff2323;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  margin-left: 0.8rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #0ff2ff;
  background: rgba(15,242,255,0.08);
}

.nav-links a.active {
  color: #ff2323;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #181b20;
    border-bottom: 2px solid #ff2323;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    margin-left: 0;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a:last-child { border-bottom: none; }
}

.button-primary {
  background: linear-gradient(90deg, #ff2323 60%, #0ff2ff 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 16px #ff232344;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.button-primary:hover {
  background: #fff;
  color: #ff2323;
  border: 1px solid #ff2323;
}

.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #181b20;
  border-radius: 18px;
  box-shadow: 0 4px 24px #000a;
  padding: 2rem;
  margin: 2rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #23262c;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 32px #ff232355;
  border: 1px solid #ff2323;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

footer {
  background: #181c24;
  color: #0ff2ff;
  text-align: center;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 4rem;
  border-top: 2px solid #0ff2ff33;
}

.intro {
  max-width: 700px;
  margin: 2rem auto;
  font-size: 1.2rem;
  color: #b0b6be;
}

.precio {
  color: #ff2323;
  font-size: 1.3rem;
  display: block;
  margin: 1rem 0;
}

/* Animación de desvanecido para el texto dinámico del hero */
#hero-dynamic {
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  display: inline-block;
}

/* Animación de sobre-escritura brusca para el texto dinámico del hero */
@keyframes typewriter-out {
  0% { opacity: 1; letter-spacing: 0.1em; }
  80% { opacity: 0; letter-spacing: 0.5em; }
  100% { opacity: 0; letter-spacing: 0.5em; }
}
@keyframes typewriter-in {
  0% { opacity: 0; letter-spacing: 0.5em; }
  20% { opacity: 0; letter-spacing: 0.5em; }
  100% { opacity: 1; letter-spacing: 0.1em; }
}
#hero-dynamic.typewriter-out {
  animation: typewriter-out 0.3s cubic-bezier(0.8,0,0.2,1) both;
}
#hero-dynamic.typewriter-in {
  animation: typewriter-in 0.3s cubic-bezier(0.8,0,0.2,1) both;
}

/* Animación máquina de escribir para el subtítulo */
#hero-typewriter {
  border-right: 2px solid #ff2323;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  min-width: 10ch;
  vertical-align: bottom;
}

/* Fuente Montserrat de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.hero-section {
  position: relative;
  overflow: hidden;

  /* CLAVE */
  max-width: none !important;
  width: 100%;
  padding: 0; /* opcional si quieres full edge */
}
.hero-section video {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-section .hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  max-width: none;
  min-width: 100vw;
  min-height: 100%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero-section .hero-bg {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
  }
}

.carousel-section {
  width: 100vw;
  background: transparent;
  padding: 2rem 0 1rem 0;
  display: flex;
  justify-content: center;
}
.carousel-container {
  width: 900px;
  max-width: 98vw;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0ff2ff22;
  background: #181b20cc;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: none;
  will-change: transform;
}
.carousel-img {
  width: 300px;
  height: 180px;
  object-fit: cover;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0008;
  border: 2px solid #23262c;
  background: #222;
}
@media (max-width: 1000px) {
  .carousel-container {
    width: 98vw;
  }
  .carousel-img {
    width: 32vw;
    min-width: 180px;
    height: 20vw;
    min-height: 100px;
  }
}

/* ─── SECCIÓN SOLUCIÓN / FEATURES ─── */
.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: #0ff2ff; margin-bottom: 1rem;
  border-bottom: 1px solid #0ff2ff44; padding-bottom: .3rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1rem;
}
.section-title .red  { color: #ff2323; }
.section-title .cyan { color: #0ff2ff; }
.section-desc { color: #8a9ab5; font-size: 1.1rem; line-height: 1.7; max-width: 600px; }

.features { padding: 5rem 2rem; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media(max-width: 768px) { .features-layout { grid-template-columns: 1fr; } }

.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: #181b20; border-radius: 16px; padding: 1.5rem;
  border: 1px solid #23262c; transition: all .3s;
}
.feature-item:hover {
  border-color: #0ff2ff44;
  box-shadow: 0 0 30px rgba(15,242,255,.1);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.feature-icon.red  { background: rgba(255,35,35,.12); border: 1px solid rgba(255,35,35,.25); }
.feature-icon.cyan { background: rgba(15,242,255,.08); border: 1px solid rgba(15,242,255,.2); }
.feature-icon.gold { background: rgba(255,200,50,.08); border: 1px solid rgba(255,200,50,.2); }
.feature-text h4 { color: #fff; font-size: 1rem; margin-bottom: .35rem; }
.feature-text p  { color: #6a7a95; font-size: .9rem; line-height: 1.6; margin: 0; }

.visual-box {
  background: linear-gradient(145deg, #181b20, #10131a);
  border-radius: 24px; border: 1px solid #23262c; padding: 2.5rem 2rem;
  box-shadow: 0 0 80px rgba(15,242,255,.07), 0 0 40px rgba(255,35,35,.05);
  position: relative; overflow: hidden;
}
.visual-box::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,242,255,.15) 0%, transparent 70%);
}
.visual-box::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,35,35,.12) 0%, transparent 70%);
}
.mockup-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ff2323; }
.mockup-dot.y { background: #ffc83a; }
.mockup-dot.g { background: #0ff2ff; }
.mockup-title { font-size: .8rem; color: #3a4560; margin-left: .8rem; letter-spacing: 1px; }
.ai-dashboard { position: relative; z-index: 1; }
.dash-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #10131a; border-radius: 10px; padding: .9rem 1.2rem;
  margin-bottom: .7rem; border: 1px solid #1e2330;
}
.dash-row .label { color: #5a6880; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.dash-row .value { font-weight: 800; font-size: 1rem; }
.dash-row .value.green { color: #00e676; }
.dash-row .value.cyan  { color: #0ff2ff; }
.dash-row .value.red   { color: #ff2323; }
.progress-bar-wrap { margin-top: 1.5rem; }
.pb-label { display: flex; justify-content: space-between; font-size: .75rem; color: #5a6880; margin-bottom: .4rem; }
.pb { height: 6px; border-radius: 6px; background: #1e2330; overflow: hidden; margin-bottom: .8rem; }
.pb-fill { height: 100%; border-radius: 6px; }
.pb-fill.red  { background: linear-gradient(90deg,#ff2323,#ff6a00); animation: grow-bar 2.5s ease-out forwards; }
.pb-fill.cyan { background: linear-gradient(90deg,#0ff2ff,#0075ff); animation: grow-bar 2.8s ease-out forwards; }
.pb-fill.gold { background: linear-gradient(90deg,#ffc83a,#ff6a00); animation: grow-bar 3s ease-out forwards; }
@keyframes grow-bar { from { width: 0; } }
