/* Hero, lineup con tabs y sección de formulario. Mobile-first: todo lo que
   está fuera de media query es la vista de celular. */

/* ---------- HERO ---------- */
.hero {
  background:
    linear-gradient(160deg, var(--brand-blue) 0%, #071f4f 100%);
  color: #ffffff;
}

.hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 3rem var(--container-padding) 3.5rem;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__text {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero__cta {
  width: 100%;
}

.hero__points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__points li {
  position: relative;
  padding-left: 1.6rem;
}

.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-red);
}

@media (min-width: 768px) {
  .hero__inner {
    padding-block: 4.5rem 5rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__cta {
    width: auto;
  }

  .hero__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ---------- LINEUP ---------- */
.lineup {
  background-color: var(--surface-light);
}

.lineup__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--section-spacing) var(--container-padding);
}

/* Tabs: en mobile scrollean horizontal en vez de apilarse. */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 0.65rem 1.25rem;
  border: 2px solid rgba(0, 74, 143, 0.2);
  border-radius: 50rem;
  background-color: #ffffff;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  border-color: var(--brand-blue);
}

.tab[aria-selected='true'] {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.tab-panel[hidden] {
  display: none;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(0, 74, 143, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 74, 143, 0.12);
  transform: translateY(-2px);
}

.card__media {
  aspect-ratio: 4 / 3;
  background-color: #eef2fa;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.35rem;
}

.card__name {
  font-size: 1.25rem;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.card__specs {
  display: flex;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(0, 74, 143, 0.1);
}

.card__spec {
  display: flex;
  flex-direction: column;
}

.card__spec-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-default);
  line-height: 1.2;
}

.card__spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7590;
}

.card__cta {
  margin-top: auto;
  width: 100%;
  padding-block: 0.7rem;
  font-size: 0.95rem;
}

.lineup__noscript,
.lineup__error {
  margin: 0;
  padding: 1rem 1.25rem;
  background-color: #fff4f5;
  border-left: 4px solid var(--brand-red);
  border-radius: 4px;
}

/* ---------- FORM ---------- */
.quote {
  background-color: #ffffff;
  scroll-margin-top: 80px;
}

.quote__inner {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--section-spacing) var(--container-padding);
}

.quote__form {
  background-color: var(--surface-light);
  border: 1px solid rgba(0, 74, 143, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  /* El iframe del embed puede tardar; reserva alto para no saltar el layout. */
  min-height: 420px;
}

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

/* El embed de HubSpot trae sus propios estilos; solo ajustamos lo que
   rompe en mobile y el botón de submit para que use la marca. */
.quote__form input[type='text'],
.quote__form input[type='email'],
.quote__form input[type='tel'],
.quote__form select,
.quote__form textarea {
  max-width: 100%;
}

.quote__form input[type='submit'],
.quote__form .hs-button {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
  border-radius: 50rem !important;
  font-weight: 700 !important;
  padding: 0.85rem 1.75rem !important;
  cursor: pointer;
}
