/* =========================================================================
   Landing de servicio · optimizacion-y-velocidad

   Hoja ENTREGADA POR FERNANDO en la rama `landings`, traída tal cual desde
   landings/optimizacion.html. No se reinterpreta: es su maquetación, con su
   lateral, su contenedor y sus medidas, igual que se hizo con las landings
   de rubro que armó en las ramas punto y turismo.

   Va acotada bajo .opt, que es la clase envoltorio que imprime
   page-servicio.php. Solo se carga en esta página.
   ========================================================================= */

.opt {
  --opt-nav: 232px;

  background: var(--bg);
  color: var(--ink);
}

.opt [id] { scroll-margin-top: 2rem; }

.opt .btn {
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
}

.opt .btn .opt__ico {
  width: 18px;
  height: 18px;
}

.opt .btn:hover,
.opt .btn:active { transform: none; }

/* AJUSTE POSTERIOR A SU ENTREGA: el lateral va dentro del ancho del sitio.
   En su archivo el marco medía --wrap MÁS el lateral, porque --wrap eran 1140.
   Al subir el contenedor general a 1400 para que todas las páginas midan igual,
   el reparto se invierte: el marco mide --wrap y el contenido se queda con lo
   que sobra tras el lateral, que son los mismos 1140 de su maquetación. */
.opt__marco {
  display: grid;
  grid-template-columns: var(--opt-nav) minmax(0, 1fr);
  gap: var(--sp-4);
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding-block: var(--sp-5) var(--sp-6);
  align-items: start;
}

.opt__lateral {
  position: sticky;
  top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.opt__indice {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.opt__indice-titulo {
  margin-bottom: var(--sp-2);
  padding-inline: .6rem;
  color: var(--brand);
  font-family: var(--f-display);
  font-size: var(--step--1);
  font-weight: 700;
}

.opt__indice ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: opt;
}

.opt__indice a {
  display: flex;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.opt__indice a::before {
  counter-increment: opt;
  content: counter(opt, decimal-leading-zero) ".";
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: .78em;
  padding-top: .15em;
}

.opt__indice a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.opt__indice a.esta-aqui {
  background: var(--brand-tint);
  color: var(--ink);
  font-weight: 600;
}

.opt__indice a.esta-aqui::before { color: var(--brand); }

.opt__aviso {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.opt__aviso .opt__ico {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto var(--sp-2);
  color: var(--brand);
}

.opt__aviso b {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--step-0);
  line-height: 1.3;
}

.opt__seccion { padding-block: 40px 0; }
.opt__seccion:first-child { padding-top: 0; }

.opt__titulo {
  margin-bottom: var(--sp-4);
  color: var(--brand);
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
}

.opt__ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.opt__caja {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.opt__hero-arte {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

.opt__hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: var(--sp-4);
  align-items: center;
  padding-block: 40px var(--sp-4);
}

.opt__hero .eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
}

.opt__hero .eyebrow::before { content: none; }

.opt__hero h1 {
  margin-bottom: var(--sp-3);
  font-size: clamp(var(--step-2), 2.6vw, var(--step-3));
}

.opt__hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.opt__hero .lede {
  margin-bottom: var(--sp-4);
  font-size: var(--step-0);
}

.opt__sellos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: 0;
  list-style: none;
}

.opt__sellos li {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: .78rem;
  line-height: 1.3;
}

.opt__sellos .opt__ico {
  width: 18px;
  height: 18px;
  margin-top: .05rem;
  color: var(--brand);
}

.opt__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.opt__acciones .btn { flex: 1 1 0; }

.opt__cifras {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: var(--sp-4) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  list-style: none;
}

.opt__cifra {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 .6rem;
  align-items: start;
  padding-inline: var(--sp-3);
}

.opt__cifra + .opt__cifra { border-left: 1px solid var(--line); }

.opt__cifra .opt__ico {
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  color: var(--brand);
}

.opt__cifra b {
  display: block;
  margin-bottom: .25rem;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--step-1);
  line-height: 1.2;
}

.opt__cifra span {
  color: var(--ink-3);
  font-size: .78rem;
  line-height: 1.35;
}

.opt__cifra--texto b {
  font-size: var(--step-0);
  line-height: 1.2;
}

.opt__incluye {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: var(--sp-4) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  list-style: none;
  text-align: center;
}

.opt__incluye li { padding-inline: var(--sp-3); }

.opt__incluye li + li { border-left: 1px solid var(--line); }

.opt__incluye .opt__ico {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto var(--sp-2);
  color: var(--brand);
}

.opt__incluye h3 {
  margin-bottom: .4rem;
  font-size: .92rem;
  line-height: 1.25;
}

.opt__incluye p {
  color: var(--ink-3);
  font-size: .78rem;
  line-height: 1.45;
}

.opt__beneficios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}

.opt__beneficios li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 .9rem;
  align-items: start;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}

.opt__beneficios .opt__ico {
  width: 50px;
  height: 50px;
  grid-row: 1 / span 2;
  color: var(--brand);
}

.opt__beneficios h3 {
  margin-bottom: .25rem;
  font-size: var(--step-0);
  line-height: 1.2;
}

.opt__beneficios p {
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1.45;
}

.opt__proceso {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
  counter-reset: paso;
  text-align: center;
}

.opt__paso { position: relative; }

.opt__paso::before {
  counter-increment: paso;
  content: counter(paso);
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-2);
  background: var(--brand);
  border-radius: var(--r-full);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
}

.opt__paso::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  border-top: 1px dashed var(--brand-deep);
}

.opt__paso:last-child::after { content: none; }

.opt__paso h3 {
  margin-bottom: .4rem;
  font-size: var(--step-0);
}

.opt__paso p {
  color: var(--ink-3);
  font-size: var(--step--1);
  line-height: 1.45;
}

.opt__doble {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.opt__herramientas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  padding: 0;
  list-style: none;
}

.opt__herramientas li {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .7rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .78rem;
  line-height: 1.25;
}

.opt__herramientas .opt__ico {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.opt__metricas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  padding: 0;
  list-style: none;
  text-align: center;
}

.opt__metricas li {
  padding: var(--sp-3) .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.opt__metricas b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--step-1);
}

.opt__metricas span {
  color: var(--ink-3);
  font-size: .78rem;
}

.opt__resultados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}

.opt__resultado h3 {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .4rem;
  font-size: var(--step-0);
}

.opt__resultado .opt__ico { color: var(--brand); }

.opt__resultado > p {
  margin-bottom: var(--sp-3);
  color: var(--ink-3);
  font-size: .8rem;
  line-height: 1.45;
}

.opt__saltos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.opt__saltos b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--step-1);
  line-height: 1.15;
}

.opt__saltos span {
  color: var(--ink-3);
  font-size: .78rem;
}

.opt__sube b { color: var(--ok); }
.opt__baja b { color: var(--brand); }

.opt__saltos b .opt__antes,
.opt__saltos b .opt__despues { font-size: inherit; }

.opt__saltos b .opt__antes { color: var(--brand); }
.opt__saltos b .opt__despues { color: var(--ok); }

.opt__faq {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.opt__faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.opt__faq summary {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.opt__faq summary .opt__ico {
  width: 18px;
  height: 18px;
  color: var(--brand);
  transition: transform .2s ease;
}

.opt__faq details[open] summary .opt__ico { transform: rotate(180deg); }

.opt__faq p {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.6;
}

@property --opt-giro {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.opt__cierre {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
}

.opt__cierre::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--opt-giro), transparent 0deg, transparent 250deg, var(--brand-deep) 305deg, var(--brand) 340deg, var(--brand-hi) 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: opt-girar-borde 4.5s linear infinite;
  pointer-events: none;
}

@keyframes opt-girar-borde {
  to { --opt-giro: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .opt__cierre::before { animation: none; }
}

.opt__cierre .opt__ico {
  width: 80px;
  height: 80px;
  flex: none;
  align-self: flex-start;
  color: var(--brand);
}

.opt__cierre-texto {
  flex: 1 1 18rem;
  min-width: 0;
}

.opt__cierre h2 {
  margin-bottom: .35rem;
  font-size: 1.6rem;
  width: 90%;
}

.opt__cierre p {
  color: var(--ink-3);
  font-size: var(--step--1);
}

@media (max-width: 1100px) {
  .opt__cifras { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-4); }
  .opt__cifra:nth-child(3n+1) { border-left: 0; }
  .opt__incluye { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-4); }
  .opt__incluye li:nth-child(3n+1) { border-left: 0; }
  .opt__resultados { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .opt__marco {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .opt__lateral { display: none; }

  .opt__hero { grid-template-columns: minmax(0, 1fr); }

  .opt__proceso { grid-template-columns: repeat(2, 1fr); }

  .opt__paso::after { content: none; }

  .opt__doble { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .opt__hero { text-align: center; }

  .opt__hero h1 { font-size: 1.9rem; }

  .opt__hero .lede { font-size: 1rem; }

  .opt__acciones { justify-content: center; }

  .opt__acciones .btn { flex: 0 1 auto; }

  .opt__sellos { display: none; }

  .opt__cifras { display: none; }

  .opt__incluye { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }

  .opt__incluye li:nth-child(3) { display: none; }

  .opt__incluye li { border-left: 0; }

  .opt__incluye li:nth-child(2),
  .opt__incluye li:nth-child(5) { border-left: 1px solid var(--line); }

  .opt__beneficios,
  .opt__proceso { grid-template-columns: minmax(0, 1fr); }

  .opt__herramientas { grid-template-columns: repeat(2, 1fr); }

  .opt__cierre {
    justify-content: center;
    text-align: center;
  }

  .opt__cierre h2 { width: auto; }

  .opt .btn {
    justify-content: center;
    text-align: center;
  }
}
