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

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

.hero__inner {
  max-width: 80rem;
  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;
}

/* Acordeón de modelos (hero) --------------------------------------------- */
.hero-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  margin: 0 auto 2rem;
  border-radius: var(--radius-xl);
  background: var(--green-900);
  border: 1px solid var(--black-a10);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  text-align: left;
}

.acc-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-height: 15rem;
  border-radius: var(--radius-lg);
  background: var(--neutral-950);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex 550ms cubic-bezier(0.25, 1, 0.35, 1), box-shadow 300ms ease;
}

.acc-panel:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-subtle);
}

.acc-panel__photo {
  position: absolute;
  inset: 0;
}

.acc-panel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.acc-panel.is-active .acc-panel__photo img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.acc-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--green-950) 0%, rgba(10, 17, 14, 0.4) 50%, transparent 100%);
  transition: background 450ms ease;
  pointer-events: none;
}

.acc-panel.is-active .acc-panel__shade {
  background: linear-gradient(to top, var(--green-950) 0%, rgba(10, 17, 14, 0.3) 50%, transparent 100%);
}

.acc-panel__top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.acc-panel__index {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--white-a20);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-subtle);
  white-space: nowrap;
}

.acc-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-subtle);
  flex-shrink: 0;
  transition: box-shadow 300ms ease;
}

.acc-panel.is-active .acc-panel__dot {
  box-shadow: 0 0 0 4px rgba(140, 189, 160, 0.25);
}

/* Etiqueta vertical cuando el panel está contraído (solo escritorio) */
.acc-panel__spine {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-a70);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.acc-panel.is-active .acc-panel__spine {
  opacity: 0;
}

.acc-panel__body {
  position: relative;
  z-index: 3;
  padding: 1rem;
}

.acc-panel__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 0.25rem;
}

.acc-panel__sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--white-a80);
  margin: 0 0 0.625rem;
}

.acc-panel__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), max-height 450ms ease;
}

.acc-panel.is-active .acc-panel__detail {
  max-height: 16rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.acc-panel__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.625rem;
  margin: 0 0 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--white-a10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--white-a90);
}

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

.acc-panel__spec strong {
  font-weight: 700;
  color: var(--color-white);
}

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

.acc-panel__spec--hl {
  color: var(--color-subtle);
}

.acc-panel__spec--hl strong {
  color: var(--color-subtle);
}

.acc-panel__spec .material-symbols-outlined {
  font-size: 14px;
  flex-shrink: 0;
}

.acc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.acc-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease;
}

.acc-panel__btn--white {
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}

.acc-panel__btn--white:hover {
  background: var(--green-50);
}

.acc-panel__btn--white .material-symbols-outlined {
  font-size: 14px;
}

.acc-panel__btn--ghost {
  background: var(--white-a10);
  border: 1px solid var(--white-a20);
  color: var(--color-white);
  font-weight: 500;
}

.acc-panel__btn--ghost:hover {
  background: var(--white-a20);
}

/* Móvil: paneles apilados; el activo crece para mostrar sus datos */
@media (max-width: 767px) {
  .acc-panel.is-active {
    min-height: 26rem;
  }

  .acc-panel__specs {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .acc-panel__body {
    padding: 1.25rem;
  }

  .acc-panel__title {
    font-size: 20px;
  }

  .acc-panel__sub {
    font-size: 12px;
  }
}

/* Escritorio: paneles en fila; el activo se expande al pasar el cursor */
@media (min-width: 768px) {
  .hero-accordion {
    flex-direction: row;
    height: 520px;
  }

  .acc-panel {
    min-height: 0;
  }

  .acc-panel.is-active {
    flex-grow: 3;
  }

  .acc-panel__spine {
    display: block;
  }
}

/* Tablet: los paneles contraídos son angostos; la etiqueta y el punto solo se ven en el activo */
@media (min-width: 768px) and (max-width: 1023px) {
  .acc-panel__index {
    transition: opacity 250ms ease;
  }

  .acc-panel:not(.is-active) .acc-panel__index,
  .acc-panel:not(.is-active) .acc-panel__dot {
    opacity: 0;
  }

  .acc-panel:not(.is-active) .acc-panel__title {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-accordion {
    height: 560px;
  }

  .acc-panel.is-active {
    flex-grow: 2.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-panel,
  .acc-panel__detail,
  .acc-panel__photo img,
  .acc-panel__spine {
    transition: none;
  }

  .acc-panel.is-active .acc-panel__photo img {
    transform: none;
  }
}

.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;
  }

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

  .hero__actions .btn {
    width: auto;
  }
}

@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;
  }
}
