/* =========================================================
   SERVCAL V2.3 — Ajustes finales solicitados
   Mantiene el concepto V2.2 y corrige escala, flujo,
   sectores, CTA y contacto por correo.
   ========================================================= */

/* Navegación: el nombre más largo conserva aire sin competir con el CTA */
.main-nav {
  gap: clamp(17px, 1.8vw, 31px);
}

.main-nav > a:not(.nav-cta) {
  font-size: clamp(.74rem, .82vw, .84rem);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   1. HERO: tipografía más proporcionada
   --------------------------------------------------------- */
.hero {
  min-height: min(820px, calc(100svh - 112px));
}

.hero-layout {
  min-height: min(820px, calc(100svh - 112px));
  align-items: center;
  padding-top: clamp(82px, 8vh, 118px);
  padding-bottom: clamp(86px, 9vh, 124px);
}

.hero-copy {
  width: min(790px, 72%);
  max-width: 790px;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 4.6vw, 4.85rem);
  line-height: .985;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 650px;
  font-size: clamp(.98rem, 1.22vw, 1.12rem);
}

/* ---------------------------------------------------------
   2. SERVICIOS: ancla y escala fina
   --------------------------------------------------------- */
.svc-card-network {
  scroll-margin-top: 118px;
}

.svc-card-primary h3 {
  font-size: clamp(2.55rem, 4.25vw, 4rem);
}

.svc-card-primary {
  min-height: 530px;
}

.svc-card-primary .svc-console {
  margin-top: auto;
}

/* ---------------------------------------------------------
   3. CENTRO DE SOLUCIONES: menos sobredimensionado
   --------------------------------------------------------- */
.solution-lab {
  padding-top: clamp(88px, 8vw, 116px);
  padding-bottom: clamp(88px, 8vw, 116px);
}

.solution-lab-heading {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .62fr);
  gap: clamp(38px, 5vw, 70px);
  margin-bottom: 38px;
}

.solution-lab-heading h2 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.45vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.solution-console-v22 {
  max-width: 1280px;
  margin-inline: auto;
  grid-template-columns: 275px minmax(0, 1fr);
  border-radius: 24px;
}

.solution-tablist {
  padding: 14px;
}

.solution-tab {
  grid-template-columns: 30px 1fr;
  min-height: 82px;
  padding: 15px 14px;
}

.solution-tab strong {
  font-size: .86rem;
}

.solution-tab small {
  font-size: .62rem;
}

.solution-stage {
  min-height: 430px;
  padding: 38px 42px;
}

.solution-panel {
  grid-template-columns: minmax(0, 1.16fr) minmax(270px, .84fr);
  gap: 38px;
}

.solution-copy h3 {
  max-width: 650px;
  font-size: clamp(1.95rem, 2.8vw, 2.75rem);
  line-height: 1.075;
}

.solution-copy > p {
  font-size: .9rem;
  line-height: 1.68;
}

.solution-visual {
  min-height: 300px;
}

.solution-orbit,
.plep-beam {
  width: 154px;
  height: 154px;
}

.network-map-v22 {
  width: 184px;
  height: 184px;
}

.lab-stack {
  width: 82%;
}

/* ---------------------------------------------------------
   4. MÉTODO: símbolo comprensible en lugar de “SC”
   --------------------------------------------------------- */
.process-core-icon {
  width: 62px;
  height: 62px;
  color: #fff;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(114, 181, 255, .42));
}

.process-core > i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.process-core .process-dot-orange {
  top: 10px;
  left: 34px;
  background: var(--servcal-orange);
  box-shadow: 0 0 13px rgba(255, 124, 37, .75);
}

.process-core .process-dot-blue {
  right: 15px;
  bottom: 28px;
  background: #72b5ff;
  box-shadow: 0 0 13px rgba(114, 181, 255, .75);
}

.process-core .process-dot-green {
  left: 8px;
  bottom: 35px;
  background: #22d59b;
  box-shadow: 0 0 13px rgba(34, 213, 155, .75);
}

/* ---------------------------------------------------------
   5. SECTORES: bento equilibrado, cuadros más sólidos
   --------------------------------------------------------- */
.sectors-heading {
  max-width: 1040px;
  margin-bottom: 42px;
}

.sectors-heading h2 {
  max-width: 880px;
  font-size: clamp(2.55rem, 4.6vw, 4.7rem);
  line-height: 1.01;
  letter-spacing: -.058em;
}

.sector-bento {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
}

.sector-v22-card,
.sector-v22-wide {
  grid-column: span 4;
  min-height: 270px;
  padding: 31px;
  border-radius: 22px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(45, 131, 235, .16), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border-color: rgba(114, 181, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 22px 50px -38px rgba(0, 70, 180, .8);
}

.sector-v22-card:nth-child(1) {
  grid-column: span 7;
  min-height: 310px;
}

.sector-v22-card:nth-child(2) {
  grid-column: span 5;
  min-height: 310px;
}

.sector-v22-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 34px;
  left: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 131, 235, .85), rgba(255, 124, 37, .72), transparent);
  opacity: .7;
  transition: opacity .3s ease, transform .3s ease;
}

.sector-v22-card:hover::before {
  opacity: 1;
  transform: scaleX(1.08);
}

.sector-v22-card:hover {
  border-color: rgba(114, 181, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 70px -38px rgba(0, 85, 210, .9);
}

.sector-symbol {
  width: 52px;
  height: 52px;
  margin-top: 8px;
}

.sector-v22-card > p {
  margin-top: auto;
  padding-top: 34px;
}

.sector-v22-card h3 {
  max-width: 620px;
  font-size: clamp(1.35rem, 1.75vw, 1.82rem);
}

/* ---------------------------------------------------------
   6. CTA + CONTACTO: continuidad visual y envío por correo
   --------------------------------------------------------- */
.cta-banner {
  padding: clamp(62px, 6vw, 82px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 13% 35%, rgba(7, 83, 180, .42), transparent 34%),
    radial-gradient(circle at 90% 60%, rgba(255, 124, 37, .12), transparent 26%),
    linear-gradient(135deg, #030a15, #071426 60%, #0a1d35);
  border-top: 1px solid rgba(114, 181, 255, .1);
  border-bottom: 1px solid rgba(114, 181, 255, .1);
}

.cta-banner-bg {
  opacity: .52;
}

.cta-banner-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: clamp(38px, 6vw, 88px);
}

.cta-banner-copy h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 3.75vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.cta-banner-copy p {
  max-width: 670px;
  line-height: 1.65;
}

.cta-banner-actions {
  min-width: 230px;
  align-items: stretch;
}

.cta-email-link {
  display: inline-flex;
  justify-content: center;
  padding: 8px 4px 2px;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 124, 37, .38);
  transition: color .2s ease, border-color .2s ease;
}

.cta-email-link:hover {
  color: #fff;
  border-color: var(--servcal-orange);
}

.contact {
  padding: clamp(88px, 8vw, 120px) 0;
  background:
    radial-gradient(circle at 4% 25%, rgba(7, 83, 180, .24), transparent 32%),
    radial-gradient(circle at 94% 76%, rgba(255, 124, 37, .075), transparent 27%),
    #030a15;
}

.contact-layout {
  grid-template-columns: minmax(0, .82fr) minmax(480px, .78fr);
  gap: clamp(54px, 7vw, 94px);
}

.contact-copy h2 {
  max-width: 650px;
  font-size: clamp(2.6rem, 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.contact-details {
  margin-top: 38px;
}

.contact-details > * {
  min-height: 82px;
}

.contact-form {
  position: relative;
  padding: clamp(28px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(0, 50, 130, .12);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--servcal-blue), var(--servcal-blue-light) 72%, var(--servcal-orange));
}

.form-heading {
  margin-bottom: 24px;
}

.contact-form label {
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 10px;
  background-color: #f5f8fc;
}

.contact-form input,
.contact-form select {
  height: 46px;
}

.contact-form textarea {
  min-height: 126px;
}

.form-submit {
  min-height: 52px;
  justify-content: center;
  gap: 10px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: .75;
}

.form-note {
  min-height: 1.25em;
  line-height: 1.5;
}

.form-note.is-success {
  color: #07845e;
  font-weight: 650;
}

.form-note.is-error {
  color: #b42318;
  font-weight: 650;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav > a:not(.nav-cta) {
    font-size: .72rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.2vw, 4.55rem);
  }

  .solution-console-v22 {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .solution-stage {
    padding: 34px;
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-layout {
    min-height: 760px;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(2.85rem, 8.4vw, 4.15rem);
  }

  .solution-lab-heading {
    grid-template-columns: 1fr;
  }

  .solution-console-v22 {
    grid-template-columns: 1fr;
  }

  .solution-stage {
    min-height: 0;
  }

  .sector-v22-card,
  .sector-v22-wide,
  .sector-v22-card:nth-child(1),
  .sector-v22-card:nth-child(2) {
    grid-column: span 6;
    min-height: 270px;
  }

  .sector-v22-card:nth-child(1),
  .sector-v22-card:nth-child(5) {
    grid-column: span 12;
  }

  .cta-banner-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cta-banner-actions {
    width: min(100%, 330px);
    min-width: 0;
  }

  .contact-copy h2 {
    max-width: 740px;
  }
}

@media (max-width: 680px) {
  .hero,
  .hero-layout {
    min-height: 690px;
  }

  .hero-layout {
    padding-top: 84px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12.3vw, 3.55rem);
    line-height: 1.01;
  }

  .hero-lead {
    font-size: .96rem;
  }

  .solution-lab-heading h2,
  .sectors-heading h2 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .solution-stage {
    padding: 24px 20px;
  }

  .solution-copy h3 {
    font-size: 1.9rem;
  }

  .solution-visual {
    min-height: 250px;
  }

  .sector-v22-card,
  .sector-v22-wide,
  .sector-v22-card:nth-child(1),
  .sector-v22-card:nth-child(2),
  .sector-v22-card:nth-child(5) {
    grid-column: span 12;
    min-height: 250px;
    padding: 26px;
  }

  .cta-banner-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .contact-form {
    padding: 26px 20px;
    border-radius: 19px;
  }
}

/* El checkbox no hereda el ancho de los campos de texto. */
.contact-form .consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
}

/* Ajuste final V2.3: centro de soluciones en tablet y móvil */
@media (max-width: 900px) {
  .solution-tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .solution-tab {
    width: auto;
    min-width: 0;
    min-height: 78px;
    padding: 13px 12px;
    flex: none;
  }

  .solution-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .solution-copy,
  .solution-copy h3,
  .solution-copy > p {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .solution-tab {
    min-height: 70px;
  }

  .solution-stage {
    padding: 25px 20px 22px;
  }

  .solution-copy h3 {
    font-size: clamp(1.72rem, 8vw, 2rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .solution-copy > p {
    font-size: .9rem;
    line-height: 1.65;
  }

  .solution-copy ul {
    gap: 7px;
    margin: 21px 0 25px;
  }

  .solution-visual {
    min-height: 238px;
  }
}

@media (max-width: 350px) {
  .solution-tablist { grid-template-columns: 1fr; }
}

/* Campo trampa anti-spam oculto sin estilos inline (compatible con CSP). */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
