/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 11
   Extraida de `tokens.css` en la Iteracion 07.7 (Regla #011).
   El ORDEN de carga en `app-shell.html` reproduce el del archivo original:
   la cascada CSS depende de el y no debe alterarse.
   -------------------------------------------------------------------------- */

.fx-price-amount small {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.85;
}

.fx-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.fx-price-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fx-ink-body);
}

.fx-price-card.is-featured .fx-price-features li {
  color: #041016;
  font-weight: 600;
}

.fx-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fx-cyan);
  color: #041016;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.fx-price-card.is-featured .fx-check-circle {
  background: var(--bg-surface);
  color: var(--fx-bg);
}

.fx-price-card .fx-btn-outline {
  width: 100%;
}

/* 5. GALERÍA DEL ESTUDIO (3 COLUMNAS HORIZONTALES) */
.fx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.fx-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--fx-border-subtle);
  background: var(--fx-surface);
  position: relative;
}

.fx-gallery-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fx-gallery-item:hover .fx-gallery-img {
  transform: scale(1.04);
}

.fx-gallery-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* 6. NUESTROS ESPECIALISTAS (4 COLUMNAS CON RETRATO, BIO Y CONTACTO) */
.fx-trainers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.fx-trainer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-trainer-photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--fx-border-subtle);
  background: var(--fx-surface);
}

.fx-trainer-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.25) contrast(1.08);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.fx-trainer-card:hover .fx-trainer-img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.05);
}

.fx-trainer-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--fx-ink);
  margin: 4px 0 0;
}

.fx-trainer-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fx-cyan);
}

.fx-trainer-bio {
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--fx-ink-muted);
  margin: 0;
}

/* 7. TARJETAS OSCURAS INTERNAS (IDENTIDAD E IMPI, MULTI-ROL, PREGUNTAS FRECUENTES) */
.fx-dark-panel {
  background: var(--fx-card);
  border: 1px solid var(--fx-border-subtle);
  border-radius: 14px;
  padding: 36px;
}

.fx-dark-panel .ace-kpi-box,
.fx-dark-panel .ace-faq-item {
  background: var(--fx-surface);
  border-color: var(--fx-border-subtle);
  color: var(--fx-ink);
}

.fx-dark-panel .ace-kpi-label,
.fx-dark-panel .ace-kpi-sub,
.fx-dark-panel .ace-faq-body {
  color: var(--fx-ink-body);
}

.fx-dark-panel .ace-faq-summary,
.fx-dark-panel .ace-card-title,
.fx-dark-panel .ace-section-title {
  color: var(--fx-ink);
}

.fx-dark-panel .ace-input {
  background: var(--fx-surface);
  border-color: var(--fx-border);
  color: var(--fx-ink);
}

/* 8. TARJETA DE CONTACTO Y MAPA */
.fx-contact-card {
  background: var(--fx-card);
  border: 1px solid var(--fx-border-subtle);
  border-radius: 18px;
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.fx-contact-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fx-ink-muted);
  margin: 0 0 24px;
}

.fx-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.fx-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--fx-ink);
  font-weight: 500;
}

.fx-contact-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fx-cyan);
  color: #041016;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.fx-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fx-border-subtle);
  background: #eef2f6;
}

.fx-map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 9. PIE DE PÁGINA MINIMALISTA */
.fx-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 64px 48px;
  border-top: 1px solid var(--fx-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fx-ink-muted);
}

.fx-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fx-footer-link {
  background: transparent;
  border: none;
  color: var(--fx-ink-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease;
}

.fx-footer-link:hover {
  color: var(--fx-cyan);
}

/* ============================================================================
   MENÚS DESPLEGABLES (DROPDOWNS) EN TOPBAR Y NAVHEADER DEL ESTUDIO
   ============================================================================ */
.ace-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ace-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.ace-dropdown-caret {
  font-size: 11px;
  opacity: 0.78;
  transition: transform 0.18s ease;
  display: inline-block;
}

.ace-nav-dropdown.is-open .ace-dropdown-caret {
  transform: rotate(180deg);
  color: var(--fx-cyan);
}

.ace-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 276px;
  background: var(--bg-surface);
  border: 1px solid var(--border-med);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1100;
}

.ace-nav-dropdown.ace-dropdown-right .ace-dropdown-menu {
  left: auto;
  right: 0;
}

.ace-dropdown-menu-compact {
  min-width: 230px;
  padding: 12px;
  gap: 8px;
}

.ace-nav-dropdown.is-open .ace-dropdown-menu {
  display: flex;
}

@media (hover: hover) and (min-width: 981px) {
  .ace-nav-dropdown:hover .ace-dropdown-menu {
    display: flex;
  }

  .ace-nav-dropdown:hover .ace-dropdown-caret {
    transform: rotate(180deg);
  }

  /* Puente invisible para que el cursor no cierre el menú al bajar */
  .ace-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}

.ace-dropdown-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 10px 4px;
}

.ace-dropdown-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}

.ace-dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ace-dropdown-item strong {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
}

.ace-dropdown-item span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.35;
}

.ace-dropdown-item:hover {
  background: var(--bg-subtle);
  border-color: var(--border-soft);
  color: var(--jade);
}

/* MODO PORTADA Y AUTH OSCURO SEBADAM PARA LOS DROPDOWNS DEL TOPBAR */
body[data-active-page="landing"] .ace-topbar .ace-dropdown-trigger.ace-btn,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-trigger.ace-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.18);
  height: 36px;
  padding: 6px 12px;
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-trigger.ace-btn:hover,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-trigger.ace-btn:hover {
  border-color: var(--fx-cyan);
  color: var(--fx-cyan);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-menu,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-menu {
  background: var(--fx-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.78);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-label,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-label {
  color: var(--fx-cyan);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-item,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-item {
  color: var(--bg-studio);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-item span,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-item span {
  color: var(--fx-ink-muted);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-item:hover,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-item:hover {
  background: rgba(34, 199, 240, 0.12);
  border-color: rgba(34, 199, 240, 0.32);
  color: var(--fx-cyan);
}

body[data-active-page="landing"] .ace-topbar .ace-dropdown-item:hover span,
body[data-active-page^="auth"] .ace-topbar .ace-dropdown-item:hover span {
  color: var(--fx-ink-body);
}
