/* ==========================================================================
   Páginas de detalle de modelo (Super VAN, V6E, H9E)
   ========================================================================== */

.detail-hero {
  background: var(--color-surface-low);
  padding: 2.5rem 0;
  overflow: hidden;
}

.detail-hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
  gap: 1rem;
}

.detail-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.detail-hero__lead {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted-2);
  max-width: 48rem;
}

.detail-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  padding-top: 0.5rem;
}

.detail-hero__actions .btn {
  width: 100%;
}

.detail-hero__visual,
.detail-hero .photo-carousel {
  position: relative;
  max-width: 64rem;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
}

.detail-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-hero__tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--tertiary-a85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.detail-hero__tag .material-symbols-outlined {
  font-size: 16px;
  color: var(--color-secondary-fixed);
}

.metrics {
  max-width: 64rem;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
}

.metric__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  color: var(--color-ink-2);
}

.metric__value small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted-2);
}

.metric__value--hl {
  color: var(--color-secondary);
}

.metric__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .detail-hero__tag {
    display: flex;
  }

  .detail-hero__actions {
    flex-direction: row;
    max-width: none;
    width: auto;
  }

  .detail-hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .detail-hero__title {
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.03em;
  }

  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .detail-hero {
    padding-bottom: 4rem;
  }
}

/* Secciones de detalle -------------------------------------------------- */
.detail-section {
  padding: 4rem 0;
}

.detail-section__head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.detail-section__head--center {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.detail-section__head h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin: 0.5rem 0 0.25rem;
}

.detail-section__head p {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted-2);
}

@media (min-width: 768px) {
  .detail-section__head h2 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.02em;
  }
}

/* Variantes ------------------------------------------------------------- */
.variants {
  display: grid;
  gap: 1.5rem;
}

.variant {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}

.variant:hover {
  box-shadow: var(--shadow-xl);
}

.variant__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.variant__kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.variant h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin: 0.25rem 0 0;
}

.variant__code {
  flex-shrink: 0;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-container);
  color: var(--color-ink-2);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.variant__code--hl {
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}

.variant__desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted-2);
  margin: 0 0 1rem;
}

.variant__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface-low);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.variant__specs .k {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-2);
}

.variant__specs .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-ink-2);
}

.variant__specs .v--hl {
  color: var(--color-secondary);
}

@media (max-width: 479px) {
  .variant__specs .v {
    font-size: 17px;
    line-height: 24px;
  }
}

.variant .btn {
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.variant .btn:hover {
  background: var(--green-800);
}

.variant .btn .material-symbols-outlined {
  font-size: 18px;
}

@media (min-width: 768px) {
  .variant {
    padding: 2.5rem;
  }

  .variant h3 {
    font-size: 28px;
    line-height: 36px;
  }

  .variant__specs .v {
    font-size: 22px;
    line-height: 30px;
  }
}

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

/* Pilares tecnológicos -------------------------------------------------- */
.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pillar__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--color-surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-2);
  margin-bottom: 1rem;
}

.pillar__icon .material-symbols-outlined {
  font-size: 26px;
}

.pillar h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin: 0 0 0.25rem;
}

.pillar p {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted-2);
}

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

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

/* Ficha técnica completa -------------------------------------------------- */
.specs {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.specs__group {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.specs__group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  user-select: none;
}

.specs__group summary::-webkit-details-marker {
  display: none;
}

.specs__group summary:hover {
  background: var(--color-surface);
}

.specs__group summary .material-symbols-outlined {
  color: var(--color-secondary);
  transition: transform 0.2s;
}

.specs__group[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.specs__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.specs__table th,
.specs__table td {
  padding: 0.625rem 1.5rem;
  border-top: 1px solid var(--color-surface-container);
  vertical-align: top;
  text-align: left;
}

.specs__table th {
  width: 42%;
  font-weight: 400;
  color: var(--color-muted-2);
  overflow-wrap: anywhere;
}

.specs__table td {
  font-weight: 600;
  color: var(--color-ink-2);
  overflow-wrap: anywhere;
}

@media (max-width: 479px) {
  .specs__table th,
  .specs__table td {
    padding-inline: 1rem;
    font-size: 12px;
  }
}

.specs__table td small {
  display: block;
  font-weight: 400;
  color: var(--color-muted-2);
}

.specs__note {
  padding: 0.75rem 1.5rem 1rem;
  border-top: 1px solid var(--color-surface-container);
  font-size: 12px;
  color: var(--color-muted-2);
}

.features {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--color-surface-container);
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-2);
}

.features .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-secondary);
  margin-top: 1px;
}

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

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

/* Llamado a la acción oscuro -------------------------------------------- */
.cta-dark {
  background: var(--color-tertiary-container);
  color: var(--color-white);
  padding: 4rem 0;
}

.cta-dark__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.cta-dark__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary-fixed);
}

.cta-dark h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cta-dark p {
  font-size: 16px;
  line-height: 26px;
  color: var(--white-a70);
  max-width: 42rem;
}

.cta-dark .btn--secondary {
  padding: 1rem 2.5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
}

.cta-dark .btn--secondary:hover {
  background: var(--color-secondary-fixed);
  color: var(--color-on-ok-container);
}

.cta-dark .btn--secondary .material-symbols-outlined {
  font-size: 18px;
}

.cta-dark__note {
  font-size: 12px;
  color: var(--white-a70);
}

@media (min-width: 768px) {
  .cta-dark h2 {
    font-size: 40px;
    line-height: 48px;
  }
}

/* Galería de fotos ------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-container);
  box-shadow: var(--shadow-sm);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 900ms var(--ease-out, ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, var(--black-a80), transparent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--wide img {
    aspect-ratio: 21 / 9;
  }
}

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

  .gallery__item--wide {
    grid-column: span 4;
  }
}
