:root {
  --bg-1: #250a3d;
  --bg-2: #5b0fa6;
  --bg-3: #9b4fd9;
  --accent: #9b4fd9;
  --icon-pink: #ffa6d1;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-bg-hover: rgba(255, 255, 255, 0.14);
  --card-border: rgba(255, 255, 255, 0.16);
  --text-primary: #fff8f2;
  --text-secondary: rgba(255, 248, 242, 0.72);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-1);
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 15%, var(--bg-3) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, var(--bg-2) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-1), #14051f 80%);
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 56px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Perfil ---- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  overflow: hidden;
}

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

.name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.tagline {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ig-pill:hover,
.ig-pill:focus-visible {
  background: var(--card-bg-hover);
  transform: translateY(-1px);
}

.ig-pill-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  color: var(--icon-pink);
}

.ig-pill-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- Lista de enlaces ---- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--text-secondary);
  flex: none;
}

/* Bloque agrupado: Mujer es Evolución */

.group-card {
  width: 100%;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  backdrop-filter: blur(6px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-logo {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff8f2;
  object-fit: contain;
  padding: 5px;
}

.group-heading {
  min-width: 0;
}

.group-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}

.group-description {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.group-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.sub-link:hover,
.sub-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.sub-link-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--icon-pink);
}

.sub-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sub-link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sub-link-title {
  font-size: 14px;
  font-weight: 600;
}

.sub-link-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tarjetas de marca: MIA / NextFlight / InCruises */

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-2px);
  background: var(--card-bg-hover);
}

.brand-logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff8f2;
  object-fit: contain;
  padding: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-description {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Footer ---- */

.footer {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.copy {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 380px) {
  .page {
    padding: 40px 16px 24px;
  }
}

/* ---- Foto compacta (tarjeta de Vero Reyna) ---- */

.brand-logo.brand-photo {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  border: 2px solid var(--accent);
}

/* ---- Podcast ---- */

.podcast { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.podcast-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.section-title { margin: 0; font-size: 17px; font-weight: 700; }
.section-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }

.arrows { display: flex; gap: 6px; flex: none; }
.arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.arrow:hover, .arrow:focus-visible { background: var(--card-bg-hover); }

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.episode {
  flex: none;
  width: 190px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 12px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.episode:hover, .episode:focus-visible { background: var(--card-bg-hover); }

.episode-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; margin-bottom: 4px; }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 248, 242, 0.92);
  color: #250a3d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play svg { width: 18px; height: 18px; }

.episode-time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 10.5px;
  font-weight: 600;
}

.episode-number { padding: 0 4px; font-size: 11px; font-weight: 600; color: var(--icon-pink); }
.episode-title { padding: 0 4px; font-size: 13px; font-weight: 600; line-height: 1.3; }

.podcast-all { align-self: center; font-size: 13px; font-weight: 600; color: var(--text-primary); text-decoration: none; opacity: 0.9; }
.podcast-all:hover { text-decoration: underline; }

/* ---- Botón de acción en tarjetas ---- */

.brand-cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0630;
  font-size: 12.5px;
  font-weight: 700;
}

/* ---- Podcast dentro de la tarjeta de Mujer es Evolución ---- */

.group-card .podcast {
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.group-card .section-title { font-size: 15px; }
.group-card .episode { background: rgba(255, 255, 255, 0.06); }

/* ---- Descripción de perfil ---- */

.bio {
  margin: 0 0 16px;
  max-width: 400px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
