/* ==========================================================================
   Página de inicio
   ========================================================================== */

/* Hero ------------------------------------------------------------------ */
.hero {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border-a80);
  text-align: center;
}

.hero__inner {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero .badge {
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.model-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.model-tab {
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-tab:hover {
  color: var(--color-ink);
}

.model-tab.is-active {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: var(--shadow-tab);
}

.showcase {
  position: relative;
  max-width: 56rem;
  margin: 0 auto 2rem;
}

.showcase__screen {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-ink);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 6000ms cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.is-active img {
  transform: scale(1.03);
}

.carousel-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black-a80), var(--black-a20) 50%, transparent);
  pointer-events: none;
}

.spec-bar {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--white-a10);
  background: var(--green-950-a90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--white-a95);
}

.spec-bar__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .spec-bar__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Móvil: pestañas en una línea y barra de datos compacta (2 datos clave) */
@media (max-width: 639px) {
  .model-tabs {
    width: 100%;
    max-width: 22rem;
    gap: 0.25rem;
  }

  .model-tab {
    flex: 1;
    padding: 0.5rem 0.5rem;
    font-size: 11px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .spec-bar {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 11px;
  }

  .spec-bar__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spec-bar__item:nth-child(n + 3) {
    display: none;
  }
}

.spec-bar__item--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.spec-bar__item--hl {
  color: var(--color-subtle);
  font-weight: 600;
}

.spec-bar__item .material-symbols-outlined {
  font-size: 14px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

.hero__actions .btn {
  width: 100%;
}

.hero__actions .btn--outline .material-symbols-outlined {
  transition: transform 0.2s;
}

.hero__actions .btn--outline:hover .material-symbols-outlined {
  transform: translateX(2px);
}

@media (min-width: 640px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .model-tab {
    padding-inline: 1.25rem;
  }

  .spec-bar {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 12px;
  }

  .hero__actions {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
  }

  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .spec-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 60px;
  }

  .hero__lead {
    font-size: 18px;
  }
}

/* Ventajas competitivas ------------------------------------------------- */
.advantages .section-head {
  margin-bottom: 2.5rem;
}

.advantages__grid {
  display: grid;
  gap: 1.25rem;
}

.adv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--header-a95);
  border: 1px solid var(--white-a10);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adv-card:hover {
  border-color: var(--accent-a50);
  box-shadow: var(--shadow-xl);
}

.adv-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--white-a10);
  border: 1px solid var(--white-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-subtle);
  margin-bottom: 1rem;
}

.adv-card__icon .material-symbols-outlined {
  font-size: 20px;
}

.adv-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.adv-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--white-a70);
}

.adv-card__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--white-a10);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-subtle);
}

@media (min-width: 640px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-card p {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjetas de modelos --------------------------------------------------- */
.models-grid {
  display: grid;
  gap: 1.5rem;
}

.model-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.model-card:hover {
  box-shadow: var(--shadow-md);
}

.model-card__body {
  padding: 1.5rem;
}

.model-card .tag {
  margin-bottom: 0.75rem;
}

.model-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0 0 0.25rem;
}

.model-card__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.model-card__img {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.model-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.model-card:hover .model-card__img img {
  transform: scale(1.05);
}

.spec-list {
  font-size: 12px;
}

.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--color-border-faint);
  color: var(--color-muted);
}

.spec-list__row:last-child {
  border-bottom: 0;
}

.spec-list__key {
  font-weight: 500;
}

.spec-list__val {
  font-weight: 700;
  color: var(--color-ink);
  text-align: right;
}

.spec-list__val--hl {
  color: var(--color-deep);
}

.model-card__foot {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Servicios corporativos & flotas --------------------------------------- */
.fleet {
  padding-block: 3.5rem;
  background: var(--color-green);
  color: var(--color-white);
  border-bottom: 1px solid var(--white-a10);
}

.fleet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  isolation: isolate;
}

.fleet__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.fleet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.28;
  filter: saturate(0.6);
}

.fleet__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--green-900) 20%, rgba(13, 20, 17, 0.55));
}

.fleet__text {
  max-width: 36rem;
  text-align: center;
}

.fleet__text .badge {
  margin-bottom: 0.75rem;
}

.fleet__text h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}

.fleet__text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-a70);
  margin: 0 0 1rem;
}

.fleet__checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-subtle);
}

.fleet__checks li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.fleet__checks .material-symbols-outlined {
  font-size: 16px;
}

.fleet__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fleet__actions .btn {
  padding-inline: 1.5rem;
}

.fleet__actions .btn--white .material-symbols-outlined {
  color: var(--color-accent);
}

.fleet__actions .btn--dark .material-symbols-outlined {
  color: var(--color-subtle);
}

@media (min-width: 640px) {
  .fleet {
    padding-block: 4rem;
  }

  .fleet__actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .fleet__panel {
    flex-direction: row;
  }

  .fleet__text {
    text-align: left;
  }

  .fleet__checks {
    justify-content: flex-start;
  }
}

/* Llamado a contacto ---------------------------------------------------- */
.contact-callout {
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.contact-callout .badge {
  margin-bottom: 1rem;
}

.contact-callout .section-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.contact-callout__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

.contact-callout__actions .btn--primary {
  width: 100%;
}

.contact-callout__actions .btn--primary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-subtle);
}

.contact-callout__actions .btn--link .material-symbols-outlined:first-child {
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .contact-callout__actions {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
  }

  .contact-callout__actions .btn--primary {
    width: auto;
  }
}
