/* Modo embed: contenido de INFO / PRECIOS / ACADEMY dentro del index SPA */

html.gnia-embed,
html.gnia-embed body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  color-scheme: dark;
}

html.gnia-embed,
html.gnia-embed body,
html.gnia-embed main {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  background-attachment: scroll !important;
  min-height: 100%;
}

html.gnia-embed body {
  padding-top: 0 !important;
}

html.gnia-embed section,
html.gnia-embed .features-section,
html.gnia-embed .tabs-section,
html.gnia-embed .post-hero-gallery-section,
html.gnia-embed .highlight-video-section,
html.gnia-embed .chefs-developed-section,
html.gnia-embed main > .container,
html.gnia-embed main .container:not(.footer-grid) {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* Quitar header viejo y menú móvil — el index ya tiene navegación */
html.gnia-embed .main-header,
html.gnia-embed .mobile-menu-drawer,
html.gnia-embed .mobile-nav-toggle,
html.gnia-embed .gnia-preloader,
html.gnia-embed .whatsapp-float-wrap {
  display: none !important;
}

/* ---------- ACADEMY: sin margen del header viejo ---------- */

html.gnia-embed main > .hero-section.academy-page-hero,
html.gnia-embed main > .hero-section:not(#hero) {
  margin-top: 0 !important;
  min-height: min(72vh, 680px) !important;
  height: auto !important;
  padding-top: 0 !important;
}

html.gnia-embed main > .hero-section.academy-page-hero > .container,
html.gnia-embed main > .hero-section:not(#hero) > .container,
html.gnia-embed .academy-page-hero-inner {
  min-height: min(72vh, 680px) !important;
  height: auto !important;
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

html.gnia-embed .academy-hero {
  padding: 28px 0 40px !important;
}

/* Plan pages en iframe: sin margen del header viejo */
html.gnia-embed .hero-section:not(#hero) {
  margin-top: 0 !important;
}

html.gnia-embed main > .hero-section:not(#hero) {
  min-height: min(70vh, 640px) !important;
}

/* ---------- INFO hero (#hero.qe-hero): glass + núcleo + órbita ---------- */

html.gnia-embed #hero.hero-section,
html.gnia-embed #hero,
html.gnia-embed #hero.qe-hero {
  display: flex !important;
  position: relative !important;
  min-height: auto !important;
  height: auto !important;
  margin-top: 0 !important;
  padding: 12px 16px 28px !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html.gnia-embed #hero > picture,
html.gnia-embed #hero .hero-video,
html.gnia-embed #hero .hero-overlay,
html.gnia-embed #hero .hero-title,
html.gnia-embed #hero .hero-tagline-row,
html.gnia-embed #hero .hero-actions-row,
html.gnia-embed #hero .hero-container-grid,
html.gnia-embed #hero .hero-text-col,
html.gnia-embed #hero .hero-catalog-col {
  display: none !important;
}

html.gnia-embed .qe-hero-inner {
  width: 100%;
  max-width: min(1520px, 96vw);
}

html.gnia-embed .qe-hero-intro,
html.gnia-embed .qe-hero-copy {
  display: flex;
}

html.gnia-embed .qe-hero-intro {
  flex-direction: column;
}

/* CTA solo en embed (también en .qe-hero-actions) */
.info-embed-cta {
  display: none;
}

html.gnia-embed .info-embed-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading, "Orbitron", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: linear-gradient(120deg, #b8860b 0%, #ffd700 45%, #fff4b0 55%, #ffd700 100%);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.gnia-embed .info-embed-cta:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 215, 0, 0.38);
}

html.gnia-embed .qe-hero-actions .chefs-cta-levitate {
  display: none !important;
}

html.gnia-embed .qe-hero-actions .info-embed-cta {
  display: inline-flex !important;
}

/* ---------- Precios: quitar margen fantasma del header en embed ---------- */

html.gnia-embed #pricing.features-section,
html.gnia-embed #pricing {
  margin-top: 0 !important;
  padding-top: 4px !important;
}

html.gnia-embed #pricing > .container {
  padding-top: 4px !important;
}

html.gnia-embed #pricing .hero-title {
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

html.gnia-embed #pricing .intro-title {
  margin-bottom: 18px !important;
}

@media (max-width: 900px) {
  html.gnia-embed #pricing.features-section,
  html.gnia-embed #pricing,
  html.gnia-lab-standalone #pricing.features-section,
  html.gnia-lab-standalone #pricing {
    margin-top: 0 !important;
    padding-top: 36px !important;
  }

  html.gnia-embed #pricing > .container,
  html.gnia-lab-standalone #pricing > .container {
    padding-top: 0 !important;
  }
}

/* ---------- Footer: opaco, títulos visibles, redes legibles ---------- */

html.gnia-embed .main-footer,
html.gnia-lab-standalone .main-footer {
  position: relative;
  z-index: 5;
  isolation: isolate;
  margin-top: 48px;
  margin-bottom: 0;
  padding-top: 48px;
  padding-bottom: 16px;
  background: #020617 !important;
  background-color: #020617 !important;
  background-image: none !important;
  opacity: 1 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.gnia-embed .main-footer .container,
html.gnia-embed .main-footer .container.footer-grid,
html.gnia-lab-standalone .main-footer .container,
html.gnia-lab-standalone .main-footer .container.footer-grid {
  background: transparent !important;
  background-image: none !important;
}

html.gnia-embed .main-footer .footer-title,
html.gnia-lab-standalone .main-footer .footer-title,
.main-footer .footer-title {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffd700 !important;
  color: #ffd700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.gnia-embed .main-footer .social-icon,
html.gnia-lab-standalone .main-footer .social-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.gnia-embed .main-footer .social-icon.whatsapp,
html.gnia-lab-standalone .main-footer .social-icon.whatsapp {
  background: rgba(11, 61, 46, 0.95) !important;
  border-color: rgba(37, 211, 102, 0.55) !important;
  color: #25d366 !important;
}

html.gnia-embed .main-footer .footer-bottom,
html.gnia-lab-standalone .main-footer .footer-bottom {
  background: #020617 !important;
}

html.gnia-embed .main-footer .container.footer-grid,
html.gnia-embed .main-footer .footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 32px !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px !important;
  padding-left: 4vw;
  padding-right: 4vw;
  align-items: start;
}

html.gnia-embed .main-footer .footer-col,
html.gnia-embed .main-footer .footer-contact-col {
  width: 100%;
  min-width: 0;
  align-items: flex-start !important;
  text-align: left !important;
}

html.gnia-embed .footer-contact-btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

html.gnia-embed .footer-bottom {
  padding-left: 4vw;
  padding-right: 4vw;
}

html.gnia-embed .academy-hero,
html.gnia-embed #pricing,
html.gnia-embed .features-section {
  padding-top: 16px !important;
}

html.gnia-embed .chefs-developed-section {
  padding-top: 20px !important;
}

@media (max-width: 900px) {
  html.gnia-embed .main-footer .container.footer-grid,
  html.gnia-embed .main-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  html.gnia-embed .main-footer .container.footer-grid,
  html.gnia-embed .main-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }

  html.gnia-embed .main-footer .footer-col,
  html.gnia-embed .main-footer .footer-contact-col {
    align-items: center !important;
    text-align: center !important;
  }
}

/* Página suelta (no iframe): misma barra y fondo que el SPA */
html.gnia-lab-standalone .main-header,
html.gnia-lab-standalone .mobile-menu-drawer,
html.gnia-lab-standalone .mobile-nav-toggle,
html.gnia-lab-standalone .gnia-preloader,
html.gnia-lab-standalone .whatsapp-float-wrap {
  display: none !important;
}

/* Evitar que selectores/tabs de la página se mezclen con el menú lab */
html.gnia-lab-standalone .mobile-feature-selector,
html.gnia-embed .mobile-feature-selector {
  z-index: 5 !important;
}

html.gnia-lab-standalone .mobile-feature-selector .selector-dropdown,
html.gnia-embed .mobile-feature-selector .selector-dropdown {
  z-index: 6 !important;
}

html.gnia-lab-standalone .center-tab-mode .feature-tabs-container,
html.gnia-embed .center-tab-mode .feature-tabs-container {
  z-index: 4 !important;
}

/* Neutralizar el hero 110vh / navy del landing anterior */
html.gnia-embed .hero-section,
html.gnia-lab-standalone .hero-section {
  background-color: transparent !important;
}

html.gnia-lab-standalone,
html.gnia-lab-standalone body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  color-scheme: dark;
}

html.gnia-lab-standalone {
  background: #060a16 !important;
}

/* Por si quedó is-page de una versión anterior del boot */
html.gnia-lab-standalone body.is-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

html.gnia-lab-standalone body {
  padding-top: 52px !important;
  background: transparent !important;
  background-image: none !important;
  min-height: 0 !important;
}

html.gnia-lab-standalone .main-footer {
  margin-bottom: 0;
  padding-bottom: 16px;
  background: #020617 !important;
  background-image: none !important;
}

@media (max-width: 900px) {
  html.gnia-lab-standalone .main-footer {
    padding-bottom: 20px;
  }
}

html.gnia-lab-standalone #particle-bg {
  z-index: 0;
}

/* Evitar margen doble (header SPA + margen antiguo del hero) */
html.gnia-lab-standalone #pricing.features-section,
html.gnia-lab-standalone #pricing,
html.gnia-lab-standalone main > .hero-section.academy-page-hero,
html.gnia-lab-standalone main > .hero-section:not(#hero),
html.gnia-lab-standalone .hero-section:not(#hero),
html.gnia-lab-standalone .agente-hero-nucleus,
html.gnia-lab-standalone #hero.qe-hero,
html.gnia-lab-standalone body.gnia-lab-standalone #hero.qe-hero {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  html.gnia-lab-standalone #hero.qe-hero,
  html.gnia-lab-standalone body.gnia-lab-standalone #hero.qe-hero,
  html.gnia-embed #hero.qe-hero {
    padding-top: 36px !important;
  }
}

html.gnia-lab-standalone .agente-hero-nucleus {
  padding-top: 12px;
}

html.gnia-lab-standalone main > .hero-section.academy-page-hero,
html.gnia-lab-standalone main > .hero-section:not(#hero) {
  min-height: min(72vh, 680px) !important;
  height: auto !important;
  padding-top: 0 !important;
}

/* Título ↔ tarjetas de servicios: menos scroll vertical */
.qe-services-title-wrap {
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  position: relative;
  z-index: 10;
}

.qe-services-title {
  font-size: clamp(1.5rem, 4vw, 2.875rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.2;
}

.services-animated-section#services {
  padding: 12px 0 40px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .qe-services-title-wrap {
    margin-top: 18px !important;
    margin-bottom: 6px !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-animated-section#services {
    padding: 6px 0 28px;
  }
}

