/* ===== ATLAS Planes: carrusel + acordeón ===== */
.atlas-planes { --acc-blue: #669BC9; color: #fff; }

/* Neutraliza el reset.css de Hello Elementor que pinta los <button> de rosa (#c36) */
.atlas-planes button {
  background-color: transparent !important;
  border: 0 !important; color: inherit !important; border-radius: 0 !important;
}
.atlas-planes button:hover, .atlas-planes button:focus,
.atlas-planes button:focus-visible, .atlas-planes button:active {
  background-color: transparent !important; border: 0 !important; color: inherit !important;
}
.atlas-planes button, .atlas-planes [role="button"], .atlas-planes a {
  outline: 0 !important; box-shadow: none !important;
}

/* Precio con juego de pesos */
.atlas-price { margin: 0; line-height: 1.1; }
.atlas-price__big { font-size: 1em; font-weight: 600; color: #fff; letter-spacing: -.5px; }
.atlas-price__unit { font-size: .42em; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: 0; }

/* Línea divisoria */
.atlas-divider { display: block; height: 1px; background: rgba(255,255,255,.14); width: 100%; }

.atlas-planet, .atlas-card__planet { position: relative; display: inline-block; line-height: 0; }
.atlas-planet img, .atlas-card__planet img { display: block; width: 100%; height: auto; }
/* Acordeón: capa oscura horizontal abajo (el planeta "sale" de la oscuridad), como el Figma.
   Funde con el fondo de la sección (#000019). */
.atlas-planet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,25,0) 36%, rgba(0,0,25,.82) 64%, #000019 100%);
}
/* Tarjeta: esfera limpia con sombra suave (sin caja, porque el fondo de la tarjeta es translúcido) */
.atlas-card__planet img { filter: drop-shadow(0 16px 22px rgba(0,0,10,.6)); }

/* ---------- Carrusel ---------- */
.atlas-carousel-wrap { position: relative; }
.atlas-carousel {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* Sin scroll-behavior:smooth: animaba también el asentado del snap y el gesto
     táctil se sentía pastoso. Las flechas ya piden 'smooth' al hacer scrollBy. */
  overscroll-behavior-x: contain; /* el deslizamiento no se escapa a la página */
  -webkit-overflow-scrolling: touch; padding-bottom: 8px; cursor: grab;
}
.atlas-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.atlas-carousel::-webkit-scrollbar { height: 0; }
/* Sin padding lateral: con él, la primera tarjeta empezaba en x=4 y el snap
   arrancaba desplazado 4px al cargar (ese "salto" raro al entrar). */
.atlas-carousel__track { display: flex; gap: 24px; width: max-content; padding: 4px 0; }

.atlas-card {
  scroll-snap-align: start; flex: 0 0 auto;
  width: 360px; max-width: 80vw;
  background: rgba(125,125,125,.1);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 30px; padding: 30px 30px 26px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, background .4s ease;
}
.atlas-card:hover { transform: translateY(-6px); border-color: rgba(102,155,201,.5); background: rgba(102,155,201,.08); }
.atlas-card__planet { width: 92px; margin: 6px 0 18px; }
.atlas-card__title { font-size: 30px; font-weight: 500; letter-spacing: -.5px; margin: 0 0 16px; }
.atlas-card__subtitle { font-size: 14px; color: rgba(255,255,255,.55); margin: 0 0 6px; line-height: 1.4; }
.atlas-card__price { font-size: 26px; margin: 0 0 18px; }
.atlas-card .atlas-divider { margin: 0 0 18px; }
.atlas-card__desc { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.55; margin: 0 0 22px; min-height: 44px; }
.atlas-card__more {
  display: inline-block; width: 100%; text-align: center; padding: 13px 0; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 15px; font-weight: 500; color: #fff; transition: background .3s ease, border-color .3s ease;
}
.atlas-card:hover .atlas-card__more { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.atlas-card__contact {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Flechas de navegación.
   Se escriben como `.atlas-planes .atlas-carousel__nav` para ganarle en
   especificidad al reset de botones de arriba (`.atlas-planes button`), que
   si no les quita el círculo y deja que aparezcan en móvil. */
.atlas-planes .atlas-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50% !important;
  display: flex !important; align-items: center; justify-content: center;
  background: rgba(10,12,24,.6) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease, opacity .3s ease;
}
.atlas-planes .atlas-carousel__nav:hover { background: rgba(102,155,201,.9) !important; border-color: rgba(102,155,201,.95) !important; }
.atlas-planes .atlas-carousel__nav--prev { left: -20px; }
.atlas-planes .atlas-carousel__nav--next { right: -20px; }
.atlas-planes .atlas-carousel__nav[disabled] { opacity: .25; pointer-events: none; }

/* Puntos indicadores del carrusel (afordancia de "deslizable").
   Scoped bajo .atlas-planes para ganarle al reset de botones. En escritorio
   hay flechas, así que solo se muestran en móvil. */
.atlas-carousel__dots { display: none; justify-content: center; gap: 8px; margin-top: 22px; }
.atlas-planes .atlas-carousel__dot {
  width: 8px; height: 8px; padding: 0; cursor: pointer;
  border-radius: 50% !important; border: 0 !important;
  background: rgba(255,255,255,.25) !important;
  transition: background .3s ease, transform .3s ease, width .3s ease;
}
.atlas-planes .atlas-carousel__dot.is-active {
  background: #669BC9 !important; width: 22px; border-radius: 100px !important;
}
@media (max-width: 820px) {
  .atlas-carousel__dots { display: flex; }
}

/* ---------- Acordeón ---------- */
.atlas-acc__heading { font-size: clamp(30px,4vw,48px); font-weight: 600; letter-spacing: -1.5px; margin: 90px 0 36px; }
.atlas-accordion { border-top: 1px solid rgba(255,255,255,.12); }
.atlas-acc-item, .atlas-card { scroll-margin-top: 100px; }
.atlas-acc-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.atlas-acc-item__head {
  width: 100% !important; display: flex !important; align-items: center; gap: 28px; flex-wrap: nowrap;
  padding: 30px 6px; background: none; cursor: pointer; text-align: left; color: inherit;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.atlas-acc-item__num { font-size: clamp(24px,3vw,40px); font-weight: 600; color: #fff; min-width: 54px; }
.atlas-acc-item__title {
  font-size: clamp(26px,3.4vw,44px); font-weight: 400; letter-spacing: -1px;
  color: var(--acc-blue); text-transform: uppercase; white-space: nowrap;
}
.atlas-acc-item__meta { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 3px; transition: opacity .35s ease; }
.atlas-acc-item__sub { font-size: 14px; color: rgba(255,255,255,.5); }
.atlas-acc-item__meta .atlas-price { font-size: 18px; }
.atlas-acc-item__arrow { color: var(--acc-blue); display: inline-flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); transform: rotate(90deg); }
.atlas-acc-item.is-open .atlas-acc-item__arrow { transform: rotate(0deg); }
.atlas-acc-item.is-open .atlas-acc-item__meta { opacity: 0; }

.atlas-acc-item__body { overflow: hidden; height: 0; }
.atlas-acc-item.is-open .atlas-acc-item__body { height: auto; }
.atlas-acc-item__inner { display: flex; gap: 56px; align-items: center; padding: 10px 6px 60px; }
.atlas-acc-item__media { flex: 0 0 42%; max-width: 460px; text-align: center; }
.atlas-acc-item__content { flex: 1; max-width: 560px; }
.atlas-acc-item__topsub { font-size: 16px; color: rgba(255,255,255,.55); margin: 0 0 6px; }
.atlas-acc-item__topprice { font-size: 40px; margin: 0 0 26px; }
.atlas-acc-item__long { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.7); margin: 0 0 22px; }
.atlas-acc-item__highlight { font-size: 18px; font-weight: 600; line-height: 1.5; color: #fff; margin: 0 0 26px; }
.atlas-acc-item .atlas-divider--full { margin: 0 0 26px; }
.atlas-acc-item__bh { font-size: 22px; font-weight: 500; margin: 0 0 16px; color: #fff; }
.atlas-acc-item__benefits { list-style: none; padding: 0; margin: 0 0 30px; }
.atlas-acc-item__benefits li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 15px; color: rgba(255,255,255,.8); }
.atlas-acc-item__benefits li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc-blue); }
.atlas-acc-item__btn {
  display: inline-block; padding: 14px 28px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.28);
  font-size: 15px; color: #fff; transition: background .3s ease, border-color .3s ease;
}
.atlas-acc-item__btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* Focus accesible */
.atlas-acc-item__head:focus-visible, .atlas-card:focus-visible { outline: 2px solid rgba(102,155,201,.5) !important; outline-offset: 3px; border-radius: 6px; }

/* En el editor: mostrar todo abierto */
.elementor-editor-active .atlas-acc-item__body { height: auto; }

@media (max-width: 820px) {
  .atlas-carousel-wrap { padding: 0; }
  /* En móvil no hay flechas: se desliza con el dedo. !important + especificidad
     para ganarle al reset de botones. */
  .atlas-planes .atlas-carousel__nav { display: none !important; }
  .atlas-acc-item__head { gap: 16px; }
  .atlas-acc-item__meta { display: none; }
  .atlas-acc-item__inner { flex-direction: column; gap: 24px; align-items: flex-start; padding-bottom: 40px; }
  .atlas-acc-item__media { flex: none; max-width: 220px; }
  .atlas-acc-item__topprice { font-size: 32px; }
}
