@import url('service-page.css');

/* Ajustes propios de esta página. */
.support .section-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 9vw, 150px);
  align-items: end;
}
.support h1,
.finish h2 {
  font-size: clamp(48px, 7vw, 108px);
  letter-spacing: -0.075em;
}
.support h1 span,
.finish h2 span {
  display: block;
}
.box {
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--blue);
  box-shadow: 6px 6px 0 var(--blue);
}
.box p {
  margin-bottom: 24px;
}
.rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(50px, 10vw, 150px);
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}
.rows li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid #858783;
}
.rows h3 {
  margin-bottom: 8px;
}
.finish .section-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 8vw, 120px);
  align-items: center;
}
.finish p {
  padding-top: 17px;
  border-top: 2px solid var(--paper);
  margin-bottom: 25px;
}
@media (max-width: 700px) {
  .support .section-inner,
  .finish .section-inner,
  .rows {
    grid-template-columns: 1fr;
  }
  .support h1,
  .finish h2 {
    font-size: clamp(43px, 14vw, 68px);
  }
  .site-nav .nav-links {
    z-index: 2;
  }
}
/* Soporte: interfaz de respuesta directa y señales de estado. */
.support {
  background: #20212a;
}
.support::before {
  border-color: rgb(245 242 233 / 16%);
}
.support .section-inner {
  align-items: center;
}
.support h1 {
  max-width: 9ch;
}
.box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(245 242 233 / 30%);
  border-top: 4px solid #61a2e7;
  background: #2d5f99;
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--paper);
}
.box::before {
  display: block;
  margin-bottom: 36px;
  color: #bcd7f4;
  content: '●  SOPORTE DISPONIBLE';
  font:
    700 10px/1 Arial,
    sans-serif;
  letter-spacing: 0.15em;
}
.box .button {
  --button-bg: var(--paper);
  --button-shadow: var(--ink);
  color: var(--ink);
}
.rows {
  gap: 14px;
}
.rows li {
  min-height: 162px;
  padding: 26px 22px;
  border: 1px solid rgb(12 13 12 / 20%);
  border-left: 5px solid var(--blue);
  background: rgb(245 242 233 / 62%);
}
.rows li:nth-child(even) {
  border-left-color: var(--ink);
}
.rows li .number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
}
.rows h3 {
  font-size: clamp(20px, 1.9vw, 28px);
}
.finish {
  background: linear-gradient(135deg, var(--panel), #171923);
}
.finish > .section-inner > div:last-child {
  padding: 26px;
  border-left: 2px solid var(--blue);
}
@media (max-width: 700px) {
  .support h1 {
    max-width: 100%;
  }
  .box {
    box-shadow: 4px 4px 0 var(--paper);
  }
  .rows {
    grid-template-columns: 1fr;
  }
  .rows li {
    min-height: 0;
  }
}
@media (min-width: 701px) {
  .support h1 {
    max-width: 13ch;
    font-size: clamp(52px, 5.1vw, 82px);
  }
  .support .section-inner {
    min-height: min(690px, calc(100dvh - var(--nav-height) - 42px));
  }
}
/* Soporte: el footer hereda el estado activo del panel de soporte. */
.finish > .site-footer {
  background: #171923;
  border-top: 1px solid rgb(97 162 231 / 46%);
}
.finish > .site-footer nav a::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #61a2e7;
  content: '';
}
/* Soporte mantiene un único panel oscuro hasta el footer. */
.finish {
  background: var(--panel);
}
body.motion-ready .screen.finish:not(.is-visible) {
  background-color: var(--panel);
}

/* Responsive final de servicio: este bloque vive después del @import para
   prevalecer sobre la composición específica de cada página en móvil/tablet. */
@media (max-width: 1199px) {
  :root {
    --service-page-clearance: max(96px, calc(76px + env(safe-area-inset-bottom)));
  }
  main > .screen {
    height: auto;
    min-height: 100svh;
    overflow-x: clip;
    overflow-y: visible;
    padding-bottom: var(--service-page-clearance);
  }
  main > .screen > .section-inner {
    max-height: none;
  }
  main > .screen:last-child {
    display: block;
    min-height: 100svh;
  }
  main > .screen:last-child > .section-inner {
    padding-bottom: 30px;
  }
  main > .screen:last-child > .site-footer {
    margin-inline: 0;
    padding: 24px var(--gutter) var(--service-page-clearance);
  }
  .screen,
  .section-heading,
  .service-list li,
  .cards article,
  .flow article,
  .rows li,
  .closing .section-inner,
  .end .section-inner,
  .last .section-inner,
  .finish .section-inner {
    text-align: center;
  }
  .section-heading p,
  .page-hero .intro,
  .auto .intro,
  .lead,
  .box {
    margin-inline: auto;
  }
  .service-list li,
  .rows li {
    grid-template-columns: 1fr !important;
  }
  .service-list li p,
  .rows li p {
    grid-column: auto;
  }
  .service-list li .number,
  .rows li .number,
  .flow .number {
    justify-self: center;
  }
  .page-hero .button,
  .auto .button,
  .lead .button,
  .box .button,
  .panel .button,
  .closing .button,
  .end .button,
  .last .button,
  .finish .button {
    margin-inline: auto;
  }
  .site-nav .nav-links {
    pointer-events: none;
  }
  .site-nav.is-open .nav-links {
    pointer-events: auto;
  }
}
@media (max-width: 700px) {
  .screen > .section-inner {
    gap: 20px !important;
  }
  .page-hero h1,
  .hero2 h1,
  .auto h1,
  .support h1 {
    font-size: clamp(32px, 10.5vw, 46px) !important;
    line-height: 0.98;
  }
  .section-heading h2,
  .closing h2,
  .end h2,
  .last h2,
  .finish h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1;
  }
  .service-list,
  .cards,
  .flow,
  .rows {
    gap: 12px !important;
  }
  .service-list li,
  .cards article,
  .flow article,
  .rows li {
    padding: 16px !important;
  }
  .service-list p,
  .cards p,
  .flow p,
  .rows p {
    font-size: 13px !important;
    line-height: 1.32 !important;
  }
}

@media (min-width: 701px) and (max-width: 1199px) and (orientation: portrait) {
  main > .screen {
    padding-top: calc(var(--nav-height) + clamp(18px, 2.2dvh, 26px));
  }
  .page-hero h1,
  .hero2 h1,
  .auto h1,
  .support h1 {
    font-size: clamp(40px, min(6.5vw, 5.6dvh), 56px) !important;
    line-height: 0.96;
  }
  .section-heading h2,
  .closing h2,
  .end h2,
  .last h2,
  .finish h2 {
    font-size: clamp(34px, min(5.5vw, 4.8dvh), 46px) !important;
    line-height: 0.98;
  }
  .intro,
  .lead,
  .section-heading > p {
    font-size: clamp(14px, 1.9vw, 16px);
    line-height: 1.4;
  }
  .service-list,
  .cards,
  .flow,
  .rows {
    gap: clamp(12px, 2dvh, 18px) !important;
  }
  .service-list li,
  .cards article,
  .flow article,
  .rows li {
    min-height: 0;
    padding: clamp(16px, 2.2dvh, 22px) !important;
  }
}

/* La escala de iPad Pro se ajusta sin afectar a escritorio ni al menú móvil. */
@media (min-width: 901px) and (max-width: 1199px) and (orientation: portrait) {
  .page-hero h1,
  .hero2 h1,
  .auto h1,
  .support h1 {
    font-size: clamp(52px, 5.5vw, 64px) !important;
  }
  .section-heading h2,
  .closing h2,
  .end h2,
  .last h2,
  .finish h2 {
    font-size: clamp(44px, 4.8vw, 56px) !important;
  }
  .intro,
  .lead,
  .section-heading > p,
  .box {
    font-size: 18px;
    line-height: 1.45;
  }
  .service-list h3,
  .cards h3,
  .flow h3,
  .rows h3 {
    font-size: 23px;
  }
  .service-list p,
  .cards p,
  .flow p,
  .rows p {
    font-size: 16px;
    line-height: 1.4;
  }
  .closing aside p,
  .end aside p,
  .panel p,
  .finish p {
    font-size: 18px;
    line-height: 1.45;
  }
}

@media (max-width: 700px) {
  main > .screen {
    min-height: 0;
    height: auto;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
    align-content: start;
  }
  main > .screen > .section-inner {
    min-height: 0;
    height: auto;
  }
  main > .screen:last-child {
    padding-bottom: 0;
  }
  main > .screen:last-child > .section-inner {
    padding-bottom: 52px;
  }
}

/* El pie replica el cierre claro de la landing y reserva siempre el bot?n flotante. */
main > .screen:last-child > .site-footer {
  color: var(--ink) !important;
  background: var(--paper) !important;
  border-top-color: rgb(12 13 12 / 16%) !important;
}
main > .screen:last-child > .site-footer::before {
  display: none;
}
main > .screen:last-child > .site-footer img {
  filter: invert(1) !important;
}
main > .screen:last-child > .site-footer .footer-legal {
  color: #50514f !important;
}
main > .screen:is(.closing, .finish) > .site-footer {
  color: var(--paper) !important;
  background: var(--panel) !important;
  border-top-color: rgb(245 242 233 / 22%) !important;
}
main > .screen:is(.closing, .finish) > .site-footer img {
  filter: none !important;
}
main > .screen:is(.closing, .finish) > .site-footer .footer-legal {
  color: rgb(245 242 233 / 62%) !important;
}
@media (max-width: 1199px) {
  main > .screen:last-child {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  main > .screen:last-child > .section-inner {
    align-self: center;
  }
  main > .screen:last-child > .site-footer {
    padding-bottom: max(86px, calc(66px + env(safe-area-inset-bottom)));
  }
}
/* Soporte: una referencia técnica visible y estable. */
.rows li {
  position: relative;
}
.rows li::after {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: '';
}
.rows li:nth-child(even)::after {
  background: var(--ink);
}
@media (max-width: 700px) {
  .rows li::after {
    top: 14px;
    right: 14px;
  }
}
/* La cinta de soporte no desplaza su etiqueta fuera del hero. */
body[data-service='soporte'] .service-page-ribbon span {
  width: auto;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  animation: none;
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  body[data-service='soporte'] .service-page-ribbon {
    justify-content: flex-start;
  }
  body[data-service='soporte'] .service-page-ribbon span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    animation: contained-service-ribbon-sweep 13s linear infinite alternate;
    animation-delay: 0s;
  }
}
