:root{
  --navy:#0C3E84;
  --cerulean:#1186C0;
  --sky:#4AA0D9;
  --text:#223548;
  --muted:#617588;
  --bg:#F4F7FA;
  --line:#D8E2EB;
  --white:#FFFFFF;
  --soft:#EAF1F7;
  --radius-lg:28px;
  --radius-md:18px;
  --shadow:0 14px 35px rgba(15,53,102,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter", sans-serif;
  color:var(--text);
  background:#fff;
}
img{max-width:100%; display:block}
a{text-decoration:none; color:inherit}

.container{
  width:min(1200px, calc(100% - 48px));
  margin-inline:auto;
}

h1,h2,h3,h4{
  font-family:"Montserrat", sans-serif;
  margin:0 0 12px;
  color:var(--navy);
}
p{margin:0 0 12px; line-height:1.7; color:var(--muted)}

.eyebrow{
  display:inline-block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--cerulean);
  text-transform:uppercase;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  border-radius:18px;
  font-weight:700;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:var(--navy);
  color:#fff;
}
.btn-secondary{
  border:1.5px solid var(--navy);
  color:var(--navy);
  background:#fff;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:86px;
}
.brand-logo{
  height:40px;
  width:auto;
}
.site-nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.site-nav a{
  font-weight:500;
  color:var(--text);
}
.site-nav a:hover{color:var(--navy)}

/* Hero */
.hero{
  padding:48px 0 54px;
  background:linear-gradient(180deg, #F5F8FB 0%, #F0F5F9 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:44px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(50px, 8vw, 88px);
  line-height:.94;
  letter-spacing:-.03em;
  max-width:650px;
}
.hero-copy p{
  max-width:760px;
  font-size:21px;
  margin-top:18px;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:28px;
}

.core-card-preview{
  background:#fff;
  border:1px solid var(--line);
  border-radius:34px;
  padding:28px;
  box-shadow:var(--shadow);
}
.core-grid-preview{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-bottom:24px;
}
.core-grid-preview .cell{
  aspect-ratio:1/1;
  border-radius:18px;
  background:#DDE7EE;
}
.core-grid-preview .active.navy{background:var(--navy)}
.core-grid-preview .active.cerulean{background:var(--cerulean)}
.core-grid-preview .active.sky{background:var(--sky)}
.core-grid-preview .muted{background:#DCE6ED}
.core-card-caption h3{
  font-size:20px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:10px;
}

/* Sections */
.section{padding:88px 0}
.section-light{background:#F7FAFC}
.section-white{background:#fff}
.section-head{
  max-width:760px;
  margin-bottom:28px;
}
.section-head h2{
  font-size:clamp(32px, 4vw, 48px);
  line-height:1.05;
}
.section-head p{
  font-size:18px;
}

/* Cards */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}
.event-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.event-card__top{
  padding:24px 24px 14px;
}
.event-card__type{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.event-card__type.live{color:var(--cerulean)}
.event-card__type.capacitacion{color:var(--navy)}
.event-card__title{
  font-size:26px;
  line-height:1.12;
  margin-bottom:10px;
}
.event-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  font-size:14px;
  color:var(--muted);
}
.event-card__body{
  padding:0 24px 18px;
}
.event-card__price{
  font-weight:700;
  color:var(--navy);
  margin-top:8px;
}
.event-card__footer{
  padding:18px 24px 24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.event-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  color:var(--muted);
  background:#F7FAFC;
}

/* Interest */
.interest-box{
  background:var(--navy);
  color:#fff;
  border-radius:36px;
  padding:42px 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.interest-box h2,
.interest-box p,
.interest-box .eyebrow{color:#fff}
.interest-box p{opacity:.92}
.interest-box .btn{
  background:#fff;
  color:var(--navy);
}

/* Steps */
.steps-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:20px;
}
.step-card{
  padding:24px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
}
.step-number{
  display:inline-block;
  font-family:"Montserrat", sans-serif;
  font-weight:800;
  color:var(--cerulean);
  margin-bottom:18px;
}
.step-card h3{
  font-size:22px;
  margin-bottom:8px;
}

/* Brand core block */
.core-info-layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:34px;
  align-items:stretch;
}
.core-grid-block{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  align-content:start;
}
.core-cell{
  aspect-ratio:1/1;
  border-radius:22px;
  border:none;
  cursor:default;
  transition:transform .18s ease, box-shadow .18s ease;
  background:#DFE8EF;
}
.core-cell.active{
  cursor:pointer;
}
.core-cell.active:hover,
.core-cell.active.is-active{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(10,61,132,.18);
}
.core-cell.navy{background:var(--navy)}
.core-cell.cerulean{background:var(--cerulean)}
.core-cell.sky{background:var(--sky)}
.core-cell.muted{background:#DEE7EE}

.hover-panel{
  position:relative;
  min-height:420px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
}
.hover-card{
  display:none;
  height:100%;
}
.hover-card.active{
  display:block;
}
.hover-card h3{
  font-size:28px;
  margin-bottom:12px;
}
.mini-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
}
.locations-map{
  margin-top:12px;
  width:100%;
  height:310px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
}

/* Leaflet popup */
.leaflet-popup-content-wrapper{
  border-radius:14px;
}
.leaflet-popup-content{
  font-family:"Inter", sans-serif;
  font-size:14px;
  line-height:1.5;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 0 28px;
  background:#fff;
}
.footer-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.footer-logo{
  height:28px;
  width:auto;
}
.footer-socials{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-socials a{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  color:var(--navy);
  transition:.18s ease;
}
.footer-socials a:hover{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

/* Empty state */
.empty-state{
  border:1px dashed var(--line);
  border-radius:22px;
  background:#fff;
  padding:28px;
}
.empty-state h3{
  font-size:24px;
  margin-bottom:8px;
}

/* Responsive */
@media (max-width: 1080px){
  .hero-grid,
  .core-info-layout{
    grid-template-columns:1fr;
  }

  .cards-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .steps-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .site-nav{
    display:none;
  }
}

@media (max-width: 720px){
  .container{
    width:min(100% - 28px, 1000px);
  }

  .cards-grid,
  .steps-grid{
    grid-template-columns:1fr;
  }

  .hero-copy h1{
    font-size:56px;
  }

  .hero-copy p{
    font-size:18px;
  }

  .interest-box{
    padding:28px;
    flex-direction:column;
    align-items:flex-start;
  }

  .core-grid-block{
    max-width:320px;
  }

  .footer-wrap{
    flex-direction:column;
    align-items:flex-start;
  }
}