/* ==========================================================================
   FAQ
   Bloque de preguntas frecuentes reutilizable de la portada.
   ========================================================================== */

/* =========================
   FAQ
========================= */

.faq {
background: #000000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.faq__wrapper {
display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 22px;
  align-items: start;
}

.faq__intro {
position: sticky;
  top: 112px;
  display: grid;
  align-content: start;
  min-height: 560px;
  justify-items: start;
}

.faq__title {
max-width: 7.4ch;
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--text);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.faq__assistant {
display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  overflow: visible;
}

.faq__bubble {
display: inline-flex;
  width: clamp(190px, 19vw, 255px);
  flex: 0 0 auto;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  align-self: center;
  margin-left: 0;
  margin-top: 0;
  transform: none;
}


.faq__bubble::after {
content: none;
}


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


.faq__character {
margin-top: 0;
  width: min(100%, 560px);
  flex: 0 0 auto;
  flex-shrink: 0;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
  transform: none;
}

.faq__character img {
width: 100%;
  max-width: none;
  transform: translate(-128px, 64px) scale(1.42);
  transform-origin: center bottom;
}

.faq__content {
display: grid;
  gap: 8px;
  padding-top: 6px;
  min-width: 0;
}

.faq-item {
position: relative;
  border: 0;
  border-bottom: 4px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  overflow: visible;
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
}


.faq-item::after {
content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1ea7ff 0%, #7ed6ff 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}


.faq-item:hover {
border-bottom-color: rgba(34, 184, 240, 0.6);
}


.faq-item__question {
position: relative;
  width: 100%;
  min-height: auto;
  padding: 14px 40px 14px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-family: var(--font-heading);
  font-size: clamp(0.94rem, 1vw, 1rem);
  font-weight: 800;
  line-height: 1.22;
  cursor: pointer;
  transition: color var(--transition-base);
}


.faq-item__question::after {
content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
background: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  transform: translateY(-50%) scale(1);
  transform-origin: center;
  opacity: 0.62;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    filter var(--transition-base);
}


.faq-item.active .faq-item__question::after {
background-image: url("../../svg/wifi_active.svg");
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}


.faq-item.active .faq-item__question {
color: var(--text);
}


.faq-item.active {
border-bottom-color: rgba(255, 255, 255, 0.18);
}


.faq-item.active::after {
transform: scaleX(1);
}


.faq-item__question:hover::after {
filter: brightness(1.08);
}




.faq-item__answer {
display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  transition:
    grid-template-rows var(--transition-base),
    opacity var(--transition-base);
  opacity: 0.72;
}


.faq-item__answer[hidden] {
display: none;
}


.faq-item__answer p {
overflow: visible;
  max-width: 100%;
  padding: 0 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}


.faq-item.active .faq-item__answer {
grid-template-rows: 1fr;
  opacity: 1;
}


.faq-item.active .faq-item__answer p {
padding-bottom: 18px;
}


/* FAQ DARK */
.faq__title,
.faq-item__question {
color: #eef7ff;
}


.faq-item__answer p {
color: rgba(238, 247, 255, 0.82);
}


.faq-item {
border-bottom-color: rgba(255, 255, 255, 0.34);
}


.faq-item:hover {
border-bottom-color: rgba(255, 255, 255, 0.52);
}


.faq-item.active {
border-bottom-color: rgba(255, 255, 255, 0.18);
}


.faq-item.active .faq-item__question {
color: #ffffff;
}


.faq-item__question::after {
background: none;
  background-color: #ffffff;
-webkit-mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  opacity: 0.9;
}


.faq-item.active .faq-item__question::after {
background: none;
  background-color: #ffffff;
-webkit-mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
  opacity: 1;
}


.faq {
background: #020916;
}

  .faq__title,
.faq-item__question {
color: #eef7ff;
}


  .faq-item__answer p {
color: rgba(238, 247, 255, 0.82);
}


  .faq-item {
border-bottom-color: rgba(255, 255, 255, 0.34);
}


  .faq-item:hover {
border-bottom-color: rgba(255, 255, 255, 0.52);
}


  .faq-item.active {
border-bottom-color: rgba(255, 255, 255, 0.18);
}


  .faq-item.active .faq-item__question {
color: #ffffff;
}


  .faq-item__question::after {
background: none;
    background-color: #ffffff;
-webkit-mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
    opacity: 0.9;
}


  .faq-item.active .faq-item__question::after {
background: none;
    background-color: #ffffff;
-webkit-mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
    opacity: 1;
}










@media (max-width: 1500px) {
.faq__wrapper {
grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    gap: 34px;
    align-items: start;
}

  .faq__intro {
min-height: 520px;
    align-content: start;
    justify-items: start;
    padding-top: 6px;
}

  .faq__title {
max-width: 6.8ch;
    font-size: clamp(2.5rem, 3.4vw, 4.1rem);
    line-height: 0.9;
    margin: 0 0 22px;
}

  .faq__assistant {
gap: 18px;
    align-items: flex-end;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 0;
}

  .faq__bubble {
width: clamp(170px, 15vw, 250px);
}

  .faq__character {
width: min(100%, 360px);
}

  .faq__character img {
transform: translate(-44px, 18px) scale(1.08);
}

  .faq__content {
width: 100%;
    max-width: min(100%, 620px);
    min-width: 0;
    padding-right: 18px;
    justify-self: start;
    box-sizing: border-box;
}

  .faq-item {
width: 100%;
    max-width: 620px;
    padding-right: 18px;
}

  .faq-item__question {
max-width: 100%;
    padding: 13px 72px 13px 0;
    font-size: 0.96rem;
    line-height: 1.2;
    letter-spacing: 0;
}

  .faq-item__question::after {
right: 8px;
    width: 30px;
    height: 30px;
}

  .faq-item__answer p {
max-width: 100%;
    padding-right: 18px;
    font-size: 0.88rem;
    line-height: 1.44;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}
}














/* FAQ wifi visual override */
.faq-item {
border-bottom-width: 4px;
}

.faq-item::after {
bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, #1f9fff 0%, #4fc3ff 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

.faq-item.active::after {
transform: scaleX(1);
}

.faq-item__question {
padding-right: 52px;
}

.faq-item__question::after {
right: 6px;
  width: 30px;
  height: 30px;
  opacity: 0.55;
  filter: none;
}

.faq-item.active .faq-item__question::after {
opacity: 1;
  filter: drop-shadow(0 0 6px rgba(79, 195, 255, 0.35));
}

.faq-item__question::after {
background: none;
  background-color: rgba(255, 255, 255, 0.68);
-webkit-mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
mask: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
}

.faq-item.active .faq-item__question::after {
background: none;
  background-color: #ffffff;
-webkit-mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
mask: url("../../svg/wifi_active.svg") center / contain no-repeat;
}


/* FAQ wifi final visible */
.faq-item__question {
padding-right: 42px;
}

.faq-item__question::after {
content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 18px;
  height: 18px;
background: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  transform: translateY(-50%);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

.faq-item.active .faq-item__question::after {
background: url("../../svg/wifi_active.svg") center / contain no-repeat;
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(79,195,255,0.45));
}

/* FAQ layout final */
@media (max-width: 1500px) {
.faq__wrapper {
grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
    align-items: start;
}

  .faq__intro {
min-height: 640px;
    padding-top: 10px;
}

  .faq__title {
max-width: 6.6ch;
    font-size: clamp(3.1rem, 4vw, 4.8rem);
    line-height: 0.88;
    margin: 0 0 26px;
}

  .faq__assistant {
gap: 20px;
    margin-top: 24px;
}

  .faq__bubble {
width: clamp(210px, 18vw, 300px);
}

  .faq__character {
width: min(100%, 420px);
}

  .faq__character img {
transform: translate(-50px, 16px) scale(1.12);
}

  .faq__content {
width: 100%;
    max-width: min(100%, 960px);
    padding-right: 6px;
    justify-self: stretch;
    box-sizing: border-box;
}

  .faq-item {
width: 100%;
    max-width: none;
    padding-right: 0;
}

  .faq-item__question {
padding: 14px 64px 14px 0;
    font-size: 0.98rem;
    line-height: 1.18;
}

  .faq-item__question::after {
right: 10px;
    width: 18px;
    height: 18px;
}

  .faq-item__answer p {
width: 100%;
    max-width: 54ch;
    padding: 4px 34px 0 0;
    font-size: 0.95rem;
    line-height: 1.58;
}
}


/* FAQ wifi final alignment */
.faq__content,
.faq-item,
.faq-item__question {
overflow: visible;
}

.faq-item__question {
position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  padding: 14px 0;
}

.faq-item__question::after {
content: "";
  position: static;
  top: auto;
  right: auto;
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 260px;
background: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: none;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,0.32));
}

.faq-item.active .faq-item__question::after {
background: url("../../svg/wifi_active.svg") center / contain no-repeat;
  filter: brightness(0) invert(1) drop-shadow(0 0 7px rgba(79,195,255,0.42));
}

.faq-item::after {
width: 100%;
}

.faq-item.active::after {
transform: scaleX(1);
}






/* FAQ wifi 100 percent desktop fix */
@media (min-width: 1200px) and (max-width: 1500px) {
.faq-item__question {
display: block;
    position: relative;
    padding: 14px 140px 14px 0;
}

  .faq-item__question::after {
position: absolute;
    top: 50%;
    right: 112px;
    margin-right: 0;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}
}



/* FAQ assistant bubble beside robot */
.faq__assistant {
align-items: center;
  gap: 6px;
}

.faq__bubble {
align-self: center;
  margin-right: -82px;
}

.faq__character {
margin-left: -12px;
}

/* Final FAQ wifi alignment and active bar */
.faq__content,
.faq-item {
overflow: visible;
}

.faq-item__question {
display: block;
  position: relative;
  width: 100%;
  padding: 14px 42px 14px 0;
}

.faq-item__question::after {
content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  margin: 0;
background: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  opacity: 0.95;
  visibility: visible;
  transform: translateY(-50%);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,0.28));
  z-index: 3;
}

.faq-item.active .faq-item__question::after {
background: url("../../svg/wifi_active.svg") center / contain no-repeat;
  transform: translateY(-50%) scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(79,195,255,0.42));
}

.faq-item::after {
width: 100%;
  transform: scaleX(0);
}

.faq-item.active::after {
transform: scaleX(1);
}

/* Final FAQ wifi inside line alignment */
.faq-item {
padding-right: 0;
}

.faq-item__question {
padding-right: 32px;
}

.faq-item__question::after {
right: 6px;
  width: 18px;
  height: 18px;
}

/* FAQ final cleanup
   Mantiene un solo patrón de icono, espaciado y barra activa. */
.faq__content,
.faq-item {
  overflow: visible;
}

.faq-item {
  width: 100%;
  max-width: none;
  padding-right: 0;
}

.faq-item__question {
  display: block;
  position: relative;
  width: 100%;
  padding: 14px 32px 14px 0;
}

.faq-item__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: url("../../svg/wifi_inactive.svg") center / contain no-repeat;
  opacity: 0.95;
  transform: translateY(-50%);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.28));
}

.faq-item.active .faq-item__question::after {
  background-image: url("../../svg/wifi_active.svg");
  transform: translateY(-50%) scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(79, 195, 255, 0.42));
}

.faq-item::after {
  width: 100%;
  transform: scaleX(0);
}

.faq-item.active::after {
  transform: scaleX(1);
}

