/*
  componente_wifi_mesh_pro (mobile-first)
  - Used by templates/paragraph--wifi-mesh-pro.html.twig. Mismo look de
    tarjeta redondeada con ola de gradiente al pie que
    componente_imagen_video_slider. De un lado titulo + subtitulo + imagen
    del equipo (apoyada sobre la ola), del otro la calculadora de torres:
    un Swiper con un slide por pregunta. Al calcular, la vista de resultado
    (tarjeta con seleccion + recomendacion y tarjeta de contacto) reemplaza
    a todo el bloque.
  - Mismos 2 breakpoints reales que el resto del theme: mobile y tablet-v
    (760px) apilan todo centrado (texto, calculadora, equipo), tablet-h
    (996px) y desktop (1366px) pasan a fila (texto + equipo a la izquierda,
    calculadora a la derecha) — el query de 1366px es intencionalmente un
    no-op.
*/

.componente_wifi_mesh_pro {
  --wmp-gray: var(--Gris, #7B828C);
  --wmp-line: #A9B0BA;
  --wmp-pink: var(--iplan-pink, #fd006e);
  --wmp-blue: #398AFF;
  --wmp-gradient: linear-gradient(135deg, #FF006E 0%, #398AFF 100%);
  background: var(--iplan-bg-soft);
  padding-top: 32px;
  margin:0 16px;
}

.componente_wifi_mesh_pro_inner {
  --wmp-wave-h: 92px;
  position: relative;
  overflow: hidden;
  background: var(--iplan-bg-soft);
  max-width: 1308px;
  margin: 0 auto;
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.componente_wifi_mesh_pro_wave {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--wmp-wave-h);
  z-index: 0;
  opacity: 0.6;
}

.componente_wifi_mesh_pro_content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 16px 24px;
  text-align: center;
  width: 100%;
}

/* ---------- Columna de texto + equipo ---------- */

.componente_wifi_mesh_pro_info {
  display: contents;
}

.componente_wifi_mesh_pro .componente_wifi_mesh_pro_title {
  width: 100%;
  margin: 0;
  text-align: center;
}

.componente_wifi_mesh_pro_subtitle {
  width: 100%;
  max-width: 560px;
  margin: -16px auto 0;
  color: var(--wmp-gray);
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.componente_wifi_mesh_pro_subtitle b {
  font-weight: 700;
}

/* En mobile el equipo va ultimo, apoyado sobre la ola. */
.componente_wifi_mesh_pro_media {
  order: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.componente_wifi_mesh_pro_img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18));
}

/* ---------- Calculadora ---------- */

/* Tarjeta tipo vidrio: fondo claro semitransparente sobre la ola. */
.componente_wifi_mesh_pro_panel {
  order: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  padding: 24px 0 16px;
  border-radius: 24px;
  background: rgba(238, 243, 251, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 0 12px rgba(0, 0, 0, 0.04);
}

.componente_wifi_mesh_pro_inner[hidden],
.componente_wifi_mesh_pro_result[hidden] {
  display: none !important;
}

.componente_wifi_mesh_pro_swiper {
  width: 100%;
  overflow: hidden;
}

.componente_wifi_mesh_pro_step {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  height: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: 0;
}

.componente_wifi_mesh_pro_question {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--wmp-gray);
  text-align: center;
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.componente_wifi_mesh_pro_options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* Pill / circulo: borde rosa; seleccionado con el gradiente del theme. */
.componente_wifi_mesh_pro_option {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.componente_wifi_mesh_pro_radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.componente_wifi_mesh_pro_option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--wmp-pink);
  border-radius: 999px;
  background: transparent;
  color: var(--wmp-pink);
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.componente_wifi_mesh_pro_option--texto span {
  padding: 0 12px;
}

.componente_wifi_mesh_pro_option:hover span {
  background: color-mix(in srgb, var(--wmp-pink) 10%, transparent);
}

.componente_wifi_mesh_pro_radio:focus-visible + span {
  outline: 2px solid var(--wmp-pink);
  outline-offset: 2px;
}

.componente_wifi_mesh_pro_radio:checked + span {
  border-color: transparent;
  background: var(--wmp-gradient);
  color: #fff;
  font-weight: 700;
}

/* Planos: imagenes mesh_1/2/3 (pasos 1 a 3) y SVG en el paso 4, todos con
   la misma altura. */
.componente_wifi_mesh_pro_plan {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 104px;
}

.componente_wifi_mesh_pro_plan img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.componente_wifi_mesh_pro_plan svg {
  display: block;
  width: auto;
  height: 100%;
  overflow: visible;
}

.componente_wifi_mesh_pro_plan rect,
.componente_wifi_mesh_pro_plan path {
  fill: none;
  stroke: var(--wmp-line);
  stroke-width: 2;
}

.componente_wifi_mesh_pro_plan text {
  fill: var(--wmp-line);
  font-family: Inter;
  font-size: 10px;
  text-anchor: middle;
}

.componente_wifi_mesh_pro_dots.swiper-pagination {
  position: static;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.componente_wifi_mesh_pro_dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(123, 130, 140, 0.25);
  opacity: 1;
}

/* Paso bloqueado (falta responder uno anterior): sin click. */
.componente_wifi_mesh_pro_dots .swiper-pagination-bullet.is-locked {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
}

.componente_wifi_mesh_pro_dots .swiper-pagination-bullet-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(123, 130, 140, 0.3);
}

/* ---------- Botones ---------- */

/* Overrides el look sitewide de .button_mercury (mayusculas, padding chico)
   para que coincida con el pill del mockup. */
.componente_wifi_mesh_pro_btn {
  padding: 12px 28px;
  border-radius: 999px;
  background-color: var(--wmp-pink);
  color: #fff;
  font-family: var(--font-family-mont);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--wmp-pink);
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  background: var(--iplan-pink);
    color: var(--iplan-white);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: normal;
}

.componente_wifi_mesh_pro_btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Resultado ---------- */

/* Reemplaza al bloque principal: tarjeta de resultado + tarjeta de
   contacto. Mobile/tablet-v apiladas, desde 996px lado a lado. */
.componente_wifi_mesh_pro_result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1308px;
  margin: 0 auto;
  font-family: Inter;
}

.componente_wifi_mesh_pro_result_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 24px 32px;
  border-radius: 16px;
  background: var(--iplan-bg-soft, #EEF3FB);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.componente_wifi_mesh_pro_result_badge {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--wmp-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* Mobile: imagen arriba, texto abajo. */
.componente_wifi_mesh_pro_result_body {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.componente_wifi_mesh_pro_result_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 360px;
  color: var(--wmp-gray);
}

.componente_wifi_mesh_pro_result_title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.componente_wifi_mesh_pro_result_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.componente_wifi_mesh_pro_result_list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.2;
}

.componente_wifi_mesh_pro_result_list svg {
  flex: 0 0 16px;
  width: 16px;
  height: 12px;
}

.componente_wifi_mesh_pro_result_list path {
  fill: none;
  stroke: var(--wmp-pink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.componente_wifi_mesh_pro_result_subtitle {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.componente_wifi_mesh_pro_result_reco {
  margin: 0 0 28px;
  color: var(--wmp-pink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.componente_wifi_mesh_pro_reset {
  padding: 6px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--wmp-gray);
  color: #fff;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  background: var(--iplan-pink);
    color: var(--iplan-white);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: normal;
}

.componente_wifi_mesh_pro_result_media {
  width: 100%;
  max-width: 200px;
}

.componente_wifi_mesh_pro_result_media img {
  display: block;
  width: 100%;
  height: auto;
}

.componente_wifi_mesh_pro_contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3D8BFF 0%, #398AFF 45%, #0BD3EC 100%);
  text-align: center;
}

.componente_wifi_mesh_pro_contact_title {
  max-width: 240px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.componente_wifi_mesh_pro_contact_btn {
  display: inline-block;
  min-width: 175px;
  padding: 5px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--wmp-gray);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

.componente_wifi_mesh_pro_contact_btn:hover,
.componente_wifi_mesh_pro_contact_btn:focus {
  color: var(--wmp-gray);
  text-decoration: none;
}

/* Tablet vertical — layout identico a mobile; la ola y el equipo crecen un
   poco. */
@media (min-width: 760px) {
  .componente_wifi_mesh_pro_inner {
    --wmp-wave-h: 105px;
  }

  .componente_wifi_mesh_pro_img {
    max-width: 200px;
  }

  .componente_wifi_mesh_pro_result_media {
    max-width: 240px;
  }
}

/* Tablet horizontal — texto + equipo a la izquierda, calculadora a la
   derecha. */
@media (min-width: 996px) {
  .componente_wifi_mesh_pro_inner {
    --wmp-wave-h: 160px;
  }

  .componente_wifi_mesh_pro_content {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    padding: 48px 64px 56px;
    text-align: left;
  }

  .componente_wifi_mesh_pro_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 0;
    min-width: 0;
  }

  .componente_wifi_mesh_pro .componente_wifi_mesh_pro_title {
    text-align: left;
  }

  .componente_wifi_mesh_pro_subtitle {
    max-width: none;
    margin: 0;
    font-size: 20px;
    text-align: left;
  }

  /* El equipo baja al pie de la columna, sobre la ola. */
  .componente_wifi_mesh_pro_media {
    margin-top: auto;
    padding-top: 24px;
  }

  .componente_wifi_mesh_pro_img {
    max-width: 220px;
  }

  .componente_wifi_mesh_pro_panel {
    flex: 0 0 44%;
    max-width: 520px;
    margin-top: 40px;
    padding: 32px 0 20px;
  }

  .componente_wifi_mesh_pro_question {
    font-size: 20px;
  }

  .componente_wifi_mesh_pro_plan {
    height: 112px;
  }

  /* Resultado: tarjeta a la izquierda (texto + imagen en fila), contacto a
     la derecha con ancho fijo. */
  .componente_wifi_mesh_pro_result {
    flex-direction: row;
    align-items: stretch;
  }

  .componente_wifi_mesh_pro_result_card {
    flex: 1 1 0;
    min-width: 0;
    padding: 36px 54px 36px;
  }

  .componente_wifi_mesh_pro_result_body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .componente_wifi_mesh_pro_result_text {
    flex: 1 1 0;
    max-width: none;
  }

  .componente_wifi_mesh_pro_result_media {
    flex: 0 0 262px;
    max-width: 262px;
  }

  .componente_wifi_mesh_pro_contact {
    flex: 0 0 345px;
  }

  .componente_wifi_mesh_pro_contact_title {
    font-size: 28px;
  }
}

/* Desktop — intentionally identical to tablet-h, no overrides here. */
@media (min-width: 1366px) {
}
