/* ============================
   e-gym — Mini landing profesores públicos
   Scope: body.eg-prof-public
   ============================ */

body.eg-prof-public {
  --egp-bg: #010203;
  --egp-bg-alt: #030506;
  --egp-surface: #06080B;
  --egp-surface-2: #090C10;
  --egp-primary: #14B8A6;
  --egp-primary-ink: #042F2E;
  --egp-text: #F8FAFC;
  --egp-muted: #9CA3AF;
  --egp-soft: #6B7280;
  --egp-border: rgba(255, 255, 255, 0.07);
  --egp-border-strong: rgba(255, 255, 255, 0.12);
  --egp-container: 1120px;
  --egp-radius: 12px;
  --egp-font: "Manrope", "Inter", system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  font-family: var(--egp-font);
  color: var(--egp-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(20, 184, 166, 0.05), transparent 50%),
    linear-gradient(180deg, var(--egp-bg) 0%, var(--egp-bg-alt) 100%);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body.eg-prof-public * { box-sizing: border-box; }

.egp-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.egp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--egp-border);
  background: rgba(1, 2, 3, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.egp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--egp-text);
}

.egp-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.egp-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.egp-brand-name span { color: var(--egp-primary); }

.egp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.egp-link {
  color: var(--egp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.egp-link:hover { color: var(--egp-primary); }

.egp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.egp-btn:hover { transform: translateY(-1px); }

.egp-btn-primary {
  background: var(--egp-primary);
  color: var(--egp-primary-ink);
}

.egp-btn-primary:hover { background: #12a899; }

.egp-btn-ghost {
  background: transparent;
  color: var(--egp-text);
  border-color: var(--egp-border-strong);
}

.egp-btn-ghost:hover {
  border-color: rgba(20, 184, 166, 0.45);
  color: var(--egp-primary);
}

.egp-btn-wa {
  background: #25D366;
  color: #fff;
}

.egp-btn-wa:hover { background: #1fbe5a; }

.egp-main {
  flex: 1;
  width: 100%;
  max-width: var(--egp-container);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
}

/* ---- Listado ---- */
.egp-hero {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  animation: egp-in 0.55s ease both;
}

.egp-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.egp-hero-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.egp-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--egp-primary);
}

.egp-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--egp-text);
}

.egp-hero h1 em {
  font-style: normal;
  color: var(--egp-primary);
}

.egp-hero p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--egp-muted);
}

.egp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  animation: egp-in 0.65s ease 0.08s both;
}

@media (min-width: 640px) {
  .egp-grid { gap: 1.15rem; }
}

@media (min-width: 960px) {
  .egp-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.egp-prof-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 1rem 0.9rem 0.95rem;
  border-radius: var(--egp-radius);
  border: 1px solid var(--egp-border);
  background:
    linear-gradient(165deg, rgba(20, 184, 166, 0.06) 0%, transparent 42%),
    var(--egp-surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

@media (min-width: 640px) {
  .egp-prof-tile {
    min-height: 220px;
    padding: 1.35rem 1.25rem 1.2rem;
  }
}

.egp-prof-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.egp-prof-tile:hover {
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-3px);
  background:
    linear-gradient(165deg, rgba(20, 184, 166, 0.1) 0%, transparent 45%),
    var(--egp-surface-2);
}

.egp-prof-tile:hover::after { opacity: 1; }

.egp-prof-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.egp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(20, 184, 166, 0.35);
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .egp-avatar {
    width: 72px;
    height: 72px;
  }
}

.egp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.egp-avatar-letter {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--egp-primary);
}

.egp-prof-tile .material-symbols-outlined {
  color: var(--egp-soft);
  font-size: 1.35rem;
  transition: color 0.2s, transform 0.2s;
}

.egp-prof-tile:hover .material-symbols-outlined {
  color: var(--egp-primary);
  transform: translateX(3px);
}

.egp-prof-tile h2 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--egp-text);
}

@media (min-width: 640px) {
  .egp-prof-tile h2 { font-size: 1.15rem; }
}

.egp-prof-tile:hover h2 { color: var(--egp-primary); }

.egp-gym {
  margin: 0;
  font-size: 0.88rem;
  color: var(--egp-muted);
}

.egp-tile-cta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--egp-primary);
}

.egp-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--egp-border-strong);
  border-radius: var(--egp-radius);
  background: rgba(6, 8, 11, 0.6);
}

.egp-empty .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--egp-soft);
}

.egp-empty p {
  margin: 0.75rem 0 0;
  color: var(--egp-muted);
}

.egp-foot {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--egp-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--egp-soft);
  font-size: 0.9rem;
  animation: egp-in 0.6s ease 0.15s both;
}

.egp-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--egp-muted);
  text-decoration: none;
  font-weight: 700;
}

.egp-foot-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

/* ---- Detalle (mini landing cinematográfica) ---- */
.egp-main--detail {
  max-width: 1180px;
  padding-top: 1.25rem;
}

.egp-btn-lg {
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
}

.egp-hero-detail {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  animation: egp-in 0.55s ease both;
}

@media (min-width: 900px) {
  .egp-hero-detail {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: stretch;
    min-height: min(72vh, 640px);
  }
}

.egp-hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--egp-border-strong);
  background: #070a0e;
  isolation: isolate;
}

@media (min-width: 900px) {
  .egp-hero-media {
    min-height: 100%;
    border-radius: 22px;
  }
}

.egp-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: egp-photo 1.2s ease both;
}

.egp-hero-fallback {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.28), transparent 45%),
    linear-gradient(160deg, #0a1018, #030506);
}

.egp-hero-fallback span {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: rgba(20, 184, 166, 0.85);
  letter-spacing: -0.06em;
}

.egp-hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(1, 2, 3, 0.55) 100%),
    linear-gradient(90deg, rgba(1, 2, 3, 0.15), transparent 40%);
  pointer-events: none;
}

.egp-hero-media-glow {
  position: absolute;
  width: 55%;
  height: 45%;
  right: -8%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: egp-glow 4.5s ease-in-out infinite alternate;
}

.egp-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0 0.5rem;
  animation: egp-in 0.65s ease 0.1s both;
}

.egp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.08);
  color: var(--egp-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.egp-hero-kicker img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.egp-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--egp-text);
}

.egp-hero-gym {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 1.15rem;
  color: var(--egp-primary);
  font-weight: 700;
  font-size: 1rem;
}

.egp-hero-gym .material-symbols-outlined {
  font-size: 1.15rem;
}

.egp-hero-lead {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--egp-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.egp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.egp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.egp-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--egp-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--egp-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.egp-meta-chip:hover {
  color: var(--egp-primary);
  border-color: rgba(20, 184, 166, 0.4);
}

.egp-meta-chip .material-symbols-outlined {
  font-size: 1rem;
  flex-shrink: 0;
}

.egp-plans-block {
  scroll-margin-top: 88px;
  animation: egp-in 0.6s ease 0.18s both;
}

.egp-plans-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.egp-plans-head .egp-eyebrow {
  margin-bottom: 0.55rem;
}

.egp-plans-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.egp-plans-head p {
  margin: 0;
  color: var(--egp-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.egp-plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .egp-plans { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (min-width: 1100px) {
  .egp-plans.egp-plans--3 { grid-template-columns: repeat(3, 1fr); }
}

.egp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--egp-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--egp-surface);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.egp-plan:hover {
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.egp-plan.is-popular {
  border-color: rgba(20, 184, 166, 0.6);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.12) 0%, transparent 45%),
    var(--egp-surface);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.12), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.egp-plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 0 15px 0 12px;
  background: var(--egp-primary);
  color: var(--egp-primary-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.egp-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.egp-plan h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.egp-plan-price {
  text-align: right;
  flex-shrink: 0;
}

.egp-plan-price strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--egp-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.egp-plan-price-soft {
  font-size: 1.15rem !important;
}

.egp-plan-price span {
  font-size: 0.8rem;
  color: var(--egp-soft);
}

.egp-plan-preview {
  margin: 0;
  color: var(--egp-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.egp-plan-detail {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.egp-plan-detail li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--egp-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.egp-plan-detail .material-symbols-outlined {
  color: var(--egp-primary);
  font-size: 1.05rem;
  margin-top: 0.1rem;
}

.egp-plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--egp-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.egp-plan-cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

.egp-plan-cta .egp-btn {
  width: 100%;
}

.egp-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--egp-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--egp-border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.egp-social:hover {
  color: var(--egp-primary);
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.08);
}

.egp-social svg { width: 18px; height: 18px; }

.egp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--egp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.egp-back:hover { color: var(--egp-primary); }

.egp-back .material-symbols-outlined { font-size: 1.15rem; }

.egp-hidden { display: none !important; }

@keyframes egp-photo {
  from { transform: scale(1.1); opacity: 0.7; }
  to { transform: scale(1.04); opacity: 1; }
}

@keyframes egp-glow {
  from { opacity: 0.45; transform: translate(0, 0); }
  to { opacity: 0.85; transform: translate(-8%, -6%); }
}

@keyframes egp-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .egp-hero,
  .egp-grid,
  .egp-foot,
  .egp-hero-detail,
  .egp-hero-copy,
  .egp-plans-block,
  .egp-prof-tile,
  .egp-plan,
  .egp-btn,
  .egp-hero-media img,
  .egp-hero-media-glow {
    animation: none !important;
    transition: none !important;
  }
  .egp-hero-media img { transform: none; }
}

