/* =========================================================
   GNIO – Capa de refinamiento para landings de tratamientos
   Se carga DESPUÉS de tailwind.css para afinar sus utilidades
   sin reescribir cada página: tipografía, tarjetas, rejillas,
   hero con parallax, logos y botón flotante.
   ========================================================= */

/* ---------- Márgenes laterales iguales al home ----------
   Tailwind redefine .container (width:100% + max-width por breakpoint) y las
   secciones suman px-6; así el header y el contenido llegaban al borde.
   Se restaura el ancho del sitio: 1200px máx. con 20px de aire por lado. */
body.lp .container {
  width: min(100% - 2.5rem, var(--container));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* Contenedores angostos a propósito (FAQ, textos) conservan su tope */
body.lp .container.max-w-3xl { max-width: 48rem; }
body.lp .container.max-w-4xl { max-width: 56rem; }
body.lp .container.max-w-6xl { max-width: 72rem; }

/* ---------- Tipografía: Google Sans en todo ---------- */
body.lp,
body.lp .font-poppins,
body.lp .section-title,
body.lp .section-subtitle,
body.lp h1,
body.lp h2,
body.lp h3,
body.lp h4 {
  font-family: var(--font-body);
}

body.lp {
  color: var(--color-text);
  background: #fff;
}

body.lp main h2 {
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--color-heading);
}

body.lp main .text-white h2,
body.lp main h2.text-white {
  color: #fff;
}

body.lp main h3 {
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

body.lp main h3.text-2xl,
body.lp main h3.text-3xl {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

body.lp main .text-lg {
  font-size: 1.04rem;
  line-height: 1.75;
}

body.lp .font-extrabold {
  font-weight: 600;
}

body.lp .neurognio-blue-dark,
body.lp .text-neurognio-blue-dark {
  color: var(--color-heading);
}

body.lp .neurognio-blue-light,
body.lp .checkmark-icon {
  color: var(--color-primary-ink);
}

body.lp .bg-gray-100 {
  background-color: var(--color-bg-alt);
}

/* Secciones: un poco menos de aire vertical en móvil */
body.lp main>section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

body.lp main>section h2.mb-12 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- Hero ---------- */
body.lp .hero-section {
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

body.lp .hero-overlay {
  background:
    radial-gradient(circle at 85% 10%, rgba(44, 191, 217, .35), transparent 50%),
    linear-gradient(115deg, rgba(10, 28, 52, .92) 0%, rgba(19, 41, 75, .82) 55%, rgba(19, 41, 75, .7) 100%);
}

/* El logo ya está en la cabecera: no se repite dentro del hero */
body.lp .hero-content .logo-header {
  display: none;
}

body.lp .hero-content h1 {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 18ch;
  margin-inline: auto;
}

body.lp .hero-content>p {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

/* Viñetas del hero: chips de cristal en lugar de cajas */
body.lp .hero-bullet-point {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  box-shadow: none;
  padding: .6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.lp .hero-bullet-point p,
body.lp .hero-bullet-point h3 {
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
}

body.lp .hero-content .grid:has(.hero-bullet-point) {
  gap: .6rem;
  max-width: 56rem;
}

/* ---------- Tarjetas de padecimientos (antes cajas a lo ancho) ---------- */
body.lp [class*="border-t-4"].rounded-xl {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

body.lp [class*="border-t-4"].rounded-xl::before {
  /* acento fino en lugar del borde superior de 4px */
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(1.5rem, 3vw, 2rem);
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gradient-brand);
}

body.lp [class*="border-t-4"].rounded-xl:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

body.lp [class*="border-t-4"].rounded-xl> :last-child,
body.lp [class*="border-t-4"].rounded-xl p.mb-6:last-child {
  margin-bottom: 0;
}

/* Rejilla de 2 columnas en escritorio; las tarjetas con sub-rejilla ocupan todo */
@media (min-width: 1024px) {

  #padecimientos-tratados>.container,
  #tumores-tratados>.container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: stretch;
  }

  #padecimientos-tratados>.container>*,
  #tumores-tratados>.container>* {
    grid-column: 1 / -1;
  }

  #padecimientos-tratados>.container>[class*="border-t-4"],
  #tumores-tratados>.container>[class*="border-t-4"] {
    grid-column: auto;
  }

  #padecimientos-tratados>.container>[class*="border-t-4"]:has(.grid),
  #tumores-tratados>.container>[class*="border-t-4"]:has(.grid) {
    grid-column: 1 / -1;
  }
}

/* Sub-tarjetas grises dentro de tarjetas */
body.lp .bg-gray-50.rounded-lg {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Ítems con check: lista ligera en lugar de cajas con sombra */
body.lp .flex.items-start.rounded-xl.shadow-md {
  box-shadow: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition), background var(--transition);
}

body.lp .flex.items-start.rounded-xl.shadow-md:hover {
  border-color: rgba(44, 191, 217, .5);
  background: #fbfeff;
  box-shadow: none;
}

/* ---------- Credenciales: filas editoriales sin caja gris ---------- */
body.lp #credenciales .bg-gray-50.rounded-xl,
body.lp #credenciales .bg-white.rounded-xl.shadow-lg {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

body.lp #credenciales .grid.items-center {
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* Fotos: proporción fija en lugar de height:256px inline (evita deformar) */
body.lp main img.rounded-lg.object-cover,
body.lp main img.rounded-xl.object-cover {
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* "Más razones": tarjetas finas compactas con aire interno; el icono
   queda en su propia columna para que el texto no se pegue al borde */
body.lp .space-y-6>.rounded-lg.shadow-md {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.1rem 1.4rem;
  transition: border-color var(--transition);
}

body.lp .space-y-6>.rounded-lg.shadow-md:hover {
  border-color: rgba(44, 191, 217, .5);
  box-shadow: none;
}

body.lp .space-y-6>.rounded-lg.shadow-md>p {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: .5rem;
  align-items: baseline;
}

body.lp .space-y-6>.rounded-lg.shadow-md>p>i {
  grid-row: span 2;
  margin: 0;
}

body.lp .space-y-6>.rounded-lg.shadow-md>p>strong {
  display: block;
}

body.lp .space-y-6.text-lg {
  max-width: 48rem;
}

body.lp .space-y-6>.rounded-lg.shadow-md+.rounded-lg.shadow-md {
  margin-top: .75rem;
}

/* ---------- Certificaciones ---------- */
/* Si el slider no se inicializa, los logos se muestran en fila ordenada */
.logo-slider:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.logo-slider img {
  filter: grayscale(1);
  opacity: .7;
  transition: filter var(--transition), opacity var(--transition);
}

.logo-slider img:hover {
  filter: none;
  opacity: 1;
}

/* ---------- Proceso (pasos) ---------- */
body.lp #proceso {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .18), transparent 45%),
    var(--gradient-brand);
}

body.lp #proceso .grid>div {
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -20px rgba(10, 40, 70, .45);
  transform: none;
  padding: 1.75rem;
}

body.lp #proceso .grid>div:hover {
  transform: translateY(-4px);
}

body.lp #proceso .text-5xl {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Quita el "zoom" (scale-105) que mueve el layout */
body.lp .hover\:scale-105:hover,
body.lp .hover\:scale-110:hover {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

/* ---------- Testimonios ---------- */
body.lp #testimonios .rounded-xl {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: none;
}

/* ---------- FAQ ---------- */
body.lp #faq-accordion>div,
body.lp #faq .space-y-4>div {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

body.lp .accordion-button {
  font-size: 1.02rem;
  font-weight: 500;
}

/* ---------- Botones ---------- */
body.lp .whatsapp-green.rounded-lg {
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  padding: .9rem 1.6rem;
  gap: .25rem;
  box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .8);
}

/* Botón flotante de WhatsApp: más compacto, no tapa contenido */
body.lp .floating-whatsapp-button {
  height: auto;
  min-height: 3.25rem;
  padding: .55rem 1.1rem .55rem .9rem;
  bottom: 1rem;
  right: 1rem;
  gap: .5rem;
  box-shadow: 0 12px 30px -10px rgba(10, 60, 30, .45);
}

body.lp .floating-whatsapp-button i {
  font-size: 1.6rem;
}

body.lp .floating-whatsapp-button .whatsapp-text {
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
  margin-left: 0;
}

body.lp .floating-whatsapp-button:hover {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translateY(-2px);
}

/* El botón "volver arriba" se apila sobre el de WhatsApp */
body.lp .back-to-top {
  bottom: 5.25rem;
  right: 1.25rem;
}

/* ---------- CTA final ---------- */
body.lp .final-cta-dark-gradient {
  background:
    radial-gradient(circle at 85% 0%, rgba(44, 191, 217, .25), transparent 50%),
    linear-gradient(120deg, #0d2236, var(--color-navy));
}

/* ---------- Móvil ---------- */
@media (max-width: 639px) {
  body.lp .whatsapp-green.rounded-lg {
    font-size: .92rem;
    width: 100%;
    justify-content: center;
    min-width: 0 !important;
  }

  body.lp .hero-bullet-point {
    border-radius: var(--radius);
  }
}
