:root{
  --bg: #fbfcff;
  --bg2:#f3f6ff;
  --text:#12162b;
  --muted:#4f5678;

  --card:#ffffffcc;
  --stroke:#d8ddf6;

  --accent:#34c6ff;
  --accent2:#ff6cc9;
  --accent3:#7bff7a;
  --accent4:#ffd36b;

  --shadow: 0 18px 60px rgba(20,24,60,.14);
  --radius: 18px;
  --radius2: 26px;
  --pad: clamp(16px, 3vw, 28px);
  --max: 1120px;
}

:root.dark{
  --bg: #0b0c10;
  --bg2:#121528;
  --text:#f2f4ff;
  --muted:#a6abcc;
  --card:#121528cc;
  --stroke:#2a2f55;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background:
    radial-gradient(900px 600px at 12% 10%, rgba(52,198,255,.18), transparent 55%),
    radial-gradient(900px 600px at 88% 16%, rgba(255,108,201,.14), transparent 58%),
    radial-gradient(900px 600px at 70% 88%, rgba(123,255,122,.14), transparent 60%),
    radial-gradient(900px 600px at 25% 86%, rgba(255,211,107,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:.95em; }

.bg{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.blob{
  position:absolute; filter: blur(44px);
  opacity:.55; border-radius:999px;
  animation: float 11s ease-in-out infinite;
}
.b1{
  width:520px; height:520px; left:-220px; top:100px;
  background: radial-gradient(circle at 30% 30%, rgba(52,198,255,.65), rgba(52,198,255,0));
}
.b2{
  width:520px; height:520px; right:-220px; top:220px;
  background: radial-gradient(circle at 40% 35%, rgba(255,108,201,.55), rgba(255,108,201,0));
  animation-duration: 13s;
}
.b3{
  width:560px; height:560px; left:30%; bottom:-320px;
  background: radial-gradient(circle at 40% 35%, rgba(123,255,122,.40), rgba(123,255,122,0));
  animation-duration: 14s;
}
.grain{
  position:absolute; inset:-20%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.25;
}

@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(18px,-14px) scale(1.03); }
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.50));
  border-bottom:1px solid rgba(10,14,40,.08);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px var(--pad);
}
:root.dark .topbar{
  background: linear-gradient(180deg, rgba(10,10,14,.75), rgba(10,10,14,.35));
  border-bottom:1px solid rgba(255,255,255,.06);
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.08em; }
.brandMark{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:12px;
  background: radial-gradient(circle at 30% 30%, rgba(52,198,255,.35), rgba(255,108,201,.25));
  border:1px solid rgba(10,14,40,.10);
}
:root.dark .brandMark{ border-color: rgba(255,255,255,.10); }
.brandText{ font-size:.95rem; }

.nav{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.nav a{ color:var(--muted); font-weight:750; }
.nav a:hover{ color:var(--text); }

.btn{
  border:1px solid rgba(10,14,40,.10);
  background: rgba(255,255,255,.55);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  display:inline-flex; align-items:center; gap:10px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
:root.dark .btn{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(10,14,40,.18); }
:root.dark .btn:hover{ border-color: rgba(255,255,255,.22); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn.primary{
  border:0;
  background: linear-gradient(90deg, rgba(52,198,255,.95), rgba(255,108,201,.90));
  color:#07080f;
  font-weight:950;
}
.btn.secondary{
  background: rgba(255,255,255,.70);
  border-color: rgba(52,198,255,.30);
}
:root.dark .btn.secondary{
  background: rgba(255,255,255,.06);
  border-color: rgba(52,198,255,.30);
}
.btn.ghost{ background: transparent; }

main{ width:min(var(--max), calc(100% - 2*var(--pad))); margin:0 auto; }

.hero{
  padding: clamp(26px, 6vw, 66px) 0 28px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}

.kicker{
  color:var(--muted);
  font-weight:900;
  letter-spacing:.1em;
  text-transform: uppercase;
  font-size:.82rem;
  margin:0 0 10px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.0rem);
  line-height: 1.06;
}
.gradientText{
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip:text;
  color:transparent;
}

.about{ margin-top: 6px; }
.lead{
  color:var(--muted);
  font-size:1.03rem;
  line-height:1.65;
  margin: 0 0 12px;
}

.heroActions{ display:flex; gap:12px; flex-wrap:wrap; margin: 14px 0 16px; }

.stats{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 8px; }
.stat{
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(10,14,40,.10);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 120px;
  box-shadow: 0 12px 30px rgba(20,24,60,.08);
}
:root.dark .stat{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.statNum{ font-size:1.25rem; font-weight:950; }
.statLabel{ color:var(--muted); font-weight:750; font-size:.9rem; }

.heroCard{
  position:relative;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(10,14,40,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}
:root.dark .heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.10);
}
.cardGlow{
  position:absolute; inset:-40%;
  background:
    radial-gradient(circle at 30% 35%, rgba(52,198,255,.22), transparent 55%),
    radial-gradient(circle at 70% 45%, rgba(255,108,201,.20), transparent 55%),
    radial-gradient(circle at 40% 80%, rgba(255,211,107,.18), transparent 60%);
  transform: rotate(10deg);
}
.heroCardInner{ position:relative; padding: 22px; }
.miniTitle{
  color:var(--muted);
  font-weight:950;
  letter-spacing:.14em;
  text-transform: uppercase;
  font-size:.78rem;
}
.miniHeadline{ margin:10px 0 10px; font-weight:950; font-size:1.25rem; }
.miniBody{ margin:0 0 14px; color:var(--muted); line-height:1.6; }
.miniBadges{ display:flex; gap:8px; flex-wrap:wrap; }
.badge{
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid rgba(10,14,40,.10);
  background: rgba(255,255,255,.65);
  font-weight:850;
  font-size:.88rem;
}
:root.dark .badge{
  border-color: rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.section{ padding: 22px 0 16px; }
.sectionHead{ margin-bottom: 12px; }
.sectionHead h2{ margin:0 0 8px; font-size: 1.6rem; }
.sectionIntro{
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(10,14,40,.10);
  box-shadow: 0 10px 24px rgba(20,24,60,.06);
  color: var(--muted);
  line-height: 1.65;
}
:root.dark .sectionIntro{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.feature{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.70);
  border:1px solid rgba(10,14,40,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}
:root.dark .feature{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
@media (max-width: 900px){ .feature{ grid-template-columns: 1fr; } }

.featureMedia{
  border-radius: 20px;
  min-height: 260px;
  overflow:hidden;
  position:relative;
  border: 1px solid rgba(10,14,40,.10);
  background: linear-gradient(135deg, rgba(52,198,255,.18), rgba(255,108,201,.12), rgba(255,211,107,.14));
}
:root.dark .featureMedia{ border-color: rgba(255,255,255,.10); }
.featureMedia img{ width:100%; height:100%; object-fit:cover; display:block; }
.featureMedia .mediaOverlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  display:flex; align-items:flex-end; padding: 16px;
  color:white;
}
.featureMedia .mediaOverlay .bigTitle{ font-weight: 950; font-size: 1.25rem; }

.featureInfo{ padding: 4px 4px 8px; }
.featureInfo h3{ margin:0 0 8px; font-size: 1.8rem; line-height: 1.1; }
.featureInfo p{ margin:0 0 12px; color:var(--muted); line-height:1.65; }
.pillRow{ display:flex; gap:8px; flex-wrap:wrap; margin: 12px 0 14px; }
.pill{
  padding:7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border:1px solid rgba(10,14,40,.10);
  font-weight:900;
  font-size:.86rem;
}
:root.dark .pill{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.12);
}
.featureActions{ display:flex; gap:12px; flex-wrap:wrap; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  background: rgba(255,255,255,.70);
  border:1px solid rgba(10,14,40,.10);
  overflow:hidden;
  box-shadow: 0 12px 40px rgba(20,24,60,.10);
  transition: transform .14s ease, border-color .14s ease;
  cursor:pointer;
}
:root.dark .card{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.card:hover{ transform: translateY(-3px); border-color: rgba(52,198,255,.35); }
.card:active{ transform: translateY(-1px) scale(.995); }

@media (max-width: 980px){ .card{ grid-column: span 6; } }
@media (max-width: 620px){ .card{ grid-column: span 12; } }

.thumb{
  height: 170px;
  background: linear-gradient(135deg, rgba(52,198,255,.18), rgba(255,108,201,.12), rgba(255,211,107,.14));
  border-bottom: 1px solid rgba(10,14,40,.08);
  position:relative;
  display:flex; align-items:flex-end;
}
:root.dark .thumb{ border-bottom-color: rgba(255,255,255,.10); }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb .corner{
  position:absolute; top:10px; left:10px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.80);
  border:1px solid rgba(10,14,40,.10);
  font-weight:950;
  font-size:.82rem;
}
:root.dark .thumb .corner{
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.16);
  color:white;
}

.cardBody{ padding: 12px 12px 14px; }
.cardTitle{ font-weight:950; margin: 2px 0 6px; letter-spacing:.01em; }
.cardMeta{
  display:flex; gap:8px; flex-wrap:wrap;
  color:var(--muted);
  font-weight:800;
  font-size:.9rem;
  margin-bottom: 8px;
}
.cardDesc{
  color:var(--muted);
  line-height:1.55;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.tagRow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tag{
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(10,14,40,.10);
  background: rgba(255,255,255,.70);
  font-weight:900;
  font-size:.82rem;
}
:root.dark .tag{
  border-color: rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.contactCard{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.70);
  border:1px solid rgba(10,14,40,.10);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  box-shadow: var(--shadow);
}
:root.dark .contactCard{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.contactLinks{ display:flex; gap:10px; flex-wrap:wrap; }

.footer{
  padding: 26px 0 40px;
  display:flex; gap:10px; align-items:center; justify-content:center;
  color:var(--muted);
}
.dot{ opacity:.7; }

.modal{
  width: min(980px, 92vw);
  border: 1px solid rgba(10,14,40,.12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  color: var(--text);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 0;
}
:root.dark .modal{
  border-color: rgba(255,255,255,.12);
  background: rgba(10,12,18,.78);
  color: var(--text);
}
.modal::backdrop{ background: rgba(0,0,0,.45); }

.modalHeader{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 14px 10px;
  border-bottom:1px solid rgba(10,14,40,.10);
}
:root.dark .modalHeader{ border-bottom-color: rgba(255,255,255,.10); }
.modalTitle{ font-weight:950; font-size: 1.05rem; }

.modalBody{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  padding: 14px;
}
@media (max-width: 900px){ .modalBody{ grid-template-columns: 1fr; } }

.modalMedia{
  border-radius: 18px;
  border:1px solid rgba(10,14,40,.10);
  background: rgba(255,255,255,.70);
  overflow:hidden;
  min-height: 260px;
}
:root.dark .modalMedia{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.modalMedia iframe{ width:100%; height: 340px; border:0; display:block; }
.modalMedia img{ width:100%; height:100%; object-fit:cover; display:block; }

.modalInfo{ padding: 2px; }
.metaRow{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 10px; }
.modalDesc{ margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.modalActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

/* La portada del modal es clicable */
.modalMedia.clickable {
  cursor: pointer;
}

.modalMedia.clickable:hover {
  border-color: rgba(52,198,255,.45);
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Ajustes específicos para tarjetas de podcast */
.podcastCard{
  cursor: default;
}

.podcastThumb{
  padding: 0;
  height: auto;
  background: none;
  border-bottom: none;
}

.podcastThumb iframe{
  display: block;
  width: 100%;
  border: none;
  border-radius: 14px 14px 0 0;
}

/* Evita hover raro en podcasts */
.podcastCard:hover{
  transform: none;
  border-color: rgba(10,14,40,.10);
}
