:root{
  --bg1:#2f175d;  /* morado oscuro (similar al póster) */
  --bg2:#432d78;  /* morado medio */
  --bg3:#64548e;  /* lila */
  --card: rgba(255,255,255,.10);
  --card2: rgba(255,255,255,.14);
  --stroke: rgba(255,255,255,.18);
  --text:#f6f2ff;
  --muted: rgba(246,242,255,.78);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(199,122,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 40%, var(--bg3));
}

a{color:inherit}
img{max-width:100%;display:block}
.container{width:min(1120px, calc(100% - 32px)); margin:0 auto}
.section{padding:58px 0}
.section__head{margin-bottom:18px}
.section__head h2{margin:0 0 6px; font-size: clamp(22px, 2.4vw, 34px)}
.muted{color:var(--muted)}
.small{font-size: 13px}
.sr{position:absolute;left:-9999px}
.skip{position:absolute;left:-9999px; top:auto}
.skip:focus{left:12px; top:12px; z-index:10000; background:#000; color:#fff; padding:10px 12px; border-radius:12px}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(16px);
  background: rgba(18,6,38,.65);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{
  width:44px;height:44px;border-radius:14px; overflow:hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  display:grid; place-items:center;
}
.brand__logo img{width:100%;height:100%;object-fit:contain}
.brand__title{font-weight:800; letter-spacing:.5px}
.brand__subtitle{font-size:12px; color:var(--muted)}

.nav{display:flex; align-items:center; gap:14px}
.nav a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  color: rgba(246,242,255,.92);
}
.nav a:hover{background: rgba(255,255,255,.10)}

.navbtn{
  display:none;
  border:0; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding:10px 12px;
}
.navbtn__bar{display:block;width:20px;height:2px;background:#fff;margin:4px 0;opacity:.9}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{background: transparent}
.btn--sm{padding: 9px 12px; border-radius: 14px; font-weight:700}

/* Hero */
.hero{
  position: relative;
  overflow: hidden;
  padding:34px 0 18px;
}

/* Fondo con blur del póster detrás del hero */
.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image: url("../assets/poster_medigen.png");
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.1);
  opacity: .22;
  transform: scale(1.05);
  z-index:-1;
}

.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.hero__card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  padding: 22px;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  margin:0 0 12px;
}
.hero__title{margin:0; font-size: clamp(34px, 4vw, 54px); line-height:1.02}
.hero__lead{margin:10px 0 18px; color:var(--muted); font-size: 16px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap}
.hero__note{margin-top:16px; color: rgba(246,242,255,.85); font-size: 13px}

/* ✅ Póster completo sin recorte */
.hero__poster{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  padding: 10px;
}
.hero__poster img{
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  border-radius: 16px;
}

/* Cards / Glass */
.glass{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  padding: 18px;
}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:16px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  padding: 14px;
  min-height: 110px;
}
.card__kicker{font-weight:800; letter-spacing:.6px; font-size:12px}
.card__body{color:var(--muted); margin-top:8px; font-size:13px}
.card__footer{margin-top:10px; font-size:12px; color: rgba(246,242,255,.85)}

.chips{display:flex; flex-wrap:wrap; gap:10px}
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-weight:600;
  font-size: 13px;
}

/* Tabs */
.tabs{
  display:flex; gap:10px; flex-wrap:wrap;
  margin: 14px 0 12px;
}
.tab{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(246,242,255,.92);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
}
.tab.is-active{background: rgba(255,255,255,.16)}
.panel{display:none}
.panel.is-active{display:block}

.tablewrap{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}
.table{width:100%; border-collapse:collapse}
.table th, .table td{padding: 12px 12px; text-align:left; font-size: 14px}
.table thead th{
  background: rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.table tbody tr:not(:last-child) td{border-bottom: 1px solid rgba(255,255,255,.10)}

.callout{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  padding: 16px;
}

/* Logos strip */
.logos{
  display:flex;
  gap: 14px;
  overflow:auto;
  padding: 10px 2px 6px;
  scroll-snap-type: x mandatory;
}
.logo{
  flex: 0 0 auto;
  width: 150px;
  height: 90px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  scroll-snap-align: start;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.5px;
  color: rgba(246,242,255,.9);
}

/* Map */
.map{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.map iframe{width:100%; height:100%; min-height: 320px; border:0}

/* Form */
.form{padding:18px}
.form__grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-bottom: 12px}
.field span{display:block; font-weight:700; margin-bottom:8px}
.field input{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  padding: 12px 12px;
  color: var(--text);
  outline:none;
}
.field input:focus{border-color: rgba(255,255,255,.35)}
.error{display:block; color: #ffd2f1; min-height: 16px; margin-top: 6px}

/* Footer */
.footer{
  padding: 26px 0 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(12,4,24,.55);
}
.footer__inner{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap}
.footer__title{font-weight:900; letter-spacing:.8px}
.footer__bottom{margin-top: 12px; opacity:.85}
.social{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.social__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}

.social__link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}

.social__icon{
  width:28px;height:28px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}
.social a{text-decoration:none; padding:8px 10px; border-radius: 999px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06)}
.social a:hover{background: rgba(255,255,255,.12)}

/* Helpers */
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}

/* Responsive */
@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr 1fr}
}
@media (max-width: 760px){
  .navbtn{display:inline-block}
  .nav{display:none; position:absolute; right:16px; top:66px; width:min(320px, calc(100% - 32px));
       flex-direction:column; padding:12px; border-radius:18px;
       background: rgba(18,6,38,.92); border: 1px solid rgba(255,255,255,.14)}
  .nav.is-open{display:flex}
  .grid-2{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .form__grid{grid-template-columns: 1fr}
}
