:root{
  --black:#1D1D1B;
  --seashell:#EAE4DA;
  --lavender:#808BC5;
  --tea:#245E55;
  --mustard:#EAC119;
  --pink:#EAA7C7;
  --sky:#9ED6DF;
  --tangerine:#ED773C;
  --red:#C63F3E;

  --ink:var(--black);
  --paper:var(--seashell);
  --white:#FFFFFF;
  --green:var(--tea);
  --yellow:var(--mustard);
  --muted:#66635E;
  --line:rgba(29,29,27,.18);

  --radius:18px;
  --max:1240px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"DM Sans",Arial,Helvetica,sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header{
  min-height:82px;
  max-width:var(--max);
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:0 28px;
  border-bottom:1px solid var(--line);
}

.brand-logo{
  display:flex;
  align-items:center;
  width:118px;
  height:58px;
  flex:0 0 auto;
}

.brand-logo img{
  width:100%;
  height:auto;
  max-height:58px;
  object-fit:contain;
}

.site-header nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:24px;
  font-size:13px;
}

.site-header nav a{
  position:relative;
  padding:30px 0;
}

.site-header nav a.active{
  font-weight:700;
}

.site-header nav a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:20px;
  height:2px;
  background:var(--mustard);
}


/* ==========================================================
   PÃGINA INDIVIDUAL DE EVENTO
   ========================================================== */

.event-hero{
  max-width:var(--max);
  margin:40px auto 90px;
  padding:0 28px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:50px;
  align-items:stretch;
}

.hero-image{
  min-height:640px;
  border-radius:var(--radius);
  overflow:hidden;
  background:#ddd;
}

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

.hero-copy{
  padding:28px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
}

.eyebrow{
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:700;
  margin:0 0 18px;
}

.hero-copy .eyebrow{
  position:static;
}

.pill,
.hero-copy .pill{
  position:static;
  display:inline-flex;
  align-self:flex-start;
  width:auto;
  padding:9px 14px;
  margin:0 0 28px;
  border-radius:999px;
  background:var(--pink);
  color:var(--black);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero-copy h1{
  position:static;
  max-width:780px;
  margin:0 0 28px;
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(58px,7.4vw,112px);
  line-height:.86;
  letter-spacing:-6px;
}

.hero-copy .lead,
.lead{
  max-width:600px;
  margin:0;
  font-size:20px;
  line-height:1.45;
  color:#383632;
}

.hero-meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:42px 0;
}

.hero-meta > div{
  border-top:1px solid var(--ink);
  padding-top:12px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.hero-meta small{
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:700;
}

.hero-meta strong{
  font-size:16px;
}

.hero-meta span{
  font-size:13px;
  color:var(--muted);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.cta{
  display:inline-flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  max-width:280px;
  margin:0;
  padding:17px 21px;
  border-radius:999px;
  background:var(--black);
  color:var(--seashell);
  font-weight:700;
  transition:background .2s ease,transform .2s ease;
}

.cta:hover{
  background:var(--tea);
  transform:translateY(-2px);
}

.cta span{
  font-size:22px;
}


/* ==========================================================
   CONTENIDO DEL EVENTO
   ========================================================== */

.content-grid{
  max-width:var(--max);
  margin:0 auto 110px;
  padding:0 28px;
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:70px;
}

.article-copy{
  max-width:760px;
  font-size:19px;
  line-height:1.65;
}

.article-copy h2{
  margin:65px 0 22px;
  font-family:"Space Grotesk",sans-serif;
  font-size:52px;
  line-height:.95;
  letter-spacing:-2px;
}

.article-copy p{
  margin:0 0 24px;
}

.info-card{
  align-self:start;
  position:sticky;
  top:24px;
  padding:34px;
  border-radius:var(--radius);
  background:var(--sky);
}

.info-card ul{
  list-style:none;
  padding:0;
  margin:0;
}

.info-card li{
  padding:14px 0;
  border-bottom:1px solid rgba(23,23,23,.2);
  font-size:15px;
}

.info-card .second{
  margin-top:48px;
}


/* ==========================================================
   INSTRUCTORES
   ========================================================== */

.instructor-section{
  max-width:var(--max);
  margin:0 auto 110px;
  padding:0 28px;
}

.instructor-section > div{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px;
}

.instructor-section .eyebrow{
  grid-column:1 / -1;
  margin-bottom:0;
}

.instructor-item{
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}

.instructor-photo{
  width:180px;
  height:180px;
  flex:0 0 180px;
  border-radius:50%;
  overflow:hidden;
  background:var(--mustard);
}

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

.instructor-item h2{
  margin:0 0 10px;
  font-family:"Space Grotesk",sans-serif;
  font-size:42px;
  line-height:.95;
  letter-spacing:-2px;
}

.instructor-item p{
  margin:0;
  font-size:18px;
  color:var(--muted);
}


/* ==========================================================
   INSCRIPCIÃ“N
   ========================================================== */

.registration{
  max-width:var(--max);
  margin:0 auto 110px;
  padding:0 28px;
}

.registration-head{
  padding:44px 48px;
  display:grid;
  grid-template-columns:1fr .6fr;
  gap:30px;
  align-items:end;
  border-radius:var(--radius) var(--radius) 0 0;
  background:var(--tangerine);
  color:var(--black);
}

.registration-head h2{
  margin:0;
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(48px,6vw,80px);
  line-height:.9;
  letter-spacing:-4px;
}

.registration-head > p{
  margin:0;
  font-size:16px;
  line-height:1.5;
}

.form-frame{
  min-height:850px;
  overflow:hidden;
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 var(--radius) var(--radius);
  background:#fff;
}

.form-frame iframe{
  display:block;
  width:100%;
  height:850px;
  border:0;
}


/* ==========================================================
   LISTADO DE EVENTOS
   ========================================================== */

.listing-wrap{
  max-width:var(--max);
  margin:72px auto 110px;
  padding:0 28px;
}

.listing-header{
  margin-bottom:78px;
}

.listing-wrap h1{
  max-width:900px;
  margin:0 0 25px;
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(64px,9vw,128px);
  line-height:.85;
  letter-spacing:-7px;
}

.listing-intro{
  max-width:620px;
  margin:0;
  font-size:20px;
  line-height:1.5;
}

.events-section{
  padding:58px 0 20px;
  border-top:1px solid var(--line);
}

.events-section + .events-section{
  margin-top:90px;
}

.events-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:34px;
}

.events-section-head h2{
  margin:0;
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(40px,5vw,64px);
  line-height:.95;
  letter-spacing:-3px;
}

.events-section-head > p{
  max-width:320px;
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.event-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.event-card{
  overflow:hidden;
  position:relative;
  border:1px solid var(--line);
  border-top:7px solid var(--mustard);
  border-radius:var(--radius);
  background:#F5F0E8;
  transition:transform .2s ease,box-shadow .2s ease;
}

.event-card:nth-child(4n+2){
  border-top-color:var(--pink);
}

.event-card:nth-child(4n+3){
  border-top-color:var(--sky);
}

.event-card:nth-child(4n+4){
  border-top-color:var(--tangerine);
}

.event-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(29,29,27,.08);
}

.event-card-image{
  height:360px;
  overflow:hidden;
  position:relative;
  background:#ddd;
}

.event-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:filter .25s ease,transform .35s ease;
}

.event-card:hover .event-card-image img{
  transform:scale(1.02);
}

.event-card-copy{
  padding:28px;
}

.event-card-copy .pill{
  margin-bottom:18px;
}

.event-card-copy h2{
  margin:0 0 14px;
  font-family:"Space Grotesk",sans-serif;
  font-size:42px;
  line-height:.95;
  letter-spacing:-2px;
}

.event-card-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.event-card-meta{
  margin-top:24px;
  font-size:13px;
  font-weight:700;
}

.events-empty{
  padding:42px;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  color:var(--muted);
}


/* EVENTOS PASADOS */

.events-section--past{
  opacity:.94;
}

.event-card--past{
  background:#E5DFD5;
  border-top-color:#A7A096 !important;
  opacity:.72;
}

.event-card--past:hover{
  opacity:.9;
  transform:translateY(-2px);
}

.event-card--past .event-card-image img{
  filter:grayscale(.55) saturate(.45) contrast(.92);
}

.event-card--past .pill{
  background:#C9C1B6;
}

.event-finished{
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  padding:8px 12px;
  border-radius:999px;
  background:var(--black);
  color:var(--seashell);
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}

.event-card-state{
  display:inline-flex;
  margin-top:20px;
  padding:7px 11px;
  border:1px solid rgba(29,29,27,.22);
  border-radius:999px;
  color:#5D5953;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.7px;
}


/* ==========================================================
   FOOTER SIMPLE DE EVENTOS
   ========================================================== */

.site-footer{
  max-width:var(--max);
  margin:auto;
  padding:30px 28px 60px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:13px;
}

.site-footer p{
  margin:0;
  color:var(--muted);
}


/* ==========================================================
   WHATSAPP FLOTANTE
   ========================================================== */

.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  z-index:999;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
  transition:transform .2s ease,box-shadow .2s ease;
}

.whatsapp-float:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.whatsapp-float svg{
  width:30px;
  height:30px;
  fill:currentColor;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:850px){

  .site-header{
    min-height:74px;
    padding:8px 18px;
    align-items:center;
  }

  .brand-logo{
    width:96px;
    height:52px;
  }

  .brand-logo img{
    max-height:52px;
  }

  .site-header nav{
    gap:14px;
    font-size:12px;
  }

  .site-header nav a{
    padding:10px 0;
  }

  .site-header nav a.active::after{
    bottom:3px;
  }

  .event-hero{
    grid-template-columns:1fr;
    padding:0 18px;
    margin-top:20px;
    gap:30px;
  }

  .hero-image{
    min-height:420px;
  }

  .hero-copy{
    padding:10px 0 25px;
  }

  .hero-copy h1{
    font-size:64px;
    letter-spacing:-4px;
  }

  .hero-meta{
    grid-template-columns:1fr;
  }

  .content-grid{
    grid-template-columns:1fr;
    padding:0 18px;
  }

  .info-card{
    position:static;
  }

  .instructor-section{
    padding:0 18px;
  }

  .instructor-section > div{
    grid-template-columns:1fr;
    gap:28px;
  }

  .instructor-section .eyebrow{
    grid-column:auto;
  }

  .instructor-item{
    gap:18px;
  }

  .instructor-photo{
    width:130px;
    height:130px;
    flex-basis:130px;
  }

  .instructor-item h2{
    font-size:34px;
  }

  .registration{
    padding:0 18px;
  }

  .registration-head{
    grid-template-columns:1fr;
    padding:32px;
  }

  .registration-head h2{
    font-size:52px;
  }

  .form-frame iframe{
    height:900px;
  }

  .listing-wrap{
    padding:0 18px;
  }

  .listing-wrap h1{
    font-size:72px;
    letter-spacing:-4px;
  }

  .events-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .event-grid{
    grid-template-columns:1fr;
  }

  .event-card-image{
    height:300px;
  }

  .site-footer{
    padding:28px 18px;
    flex-direction:column;
  }
}

@media(max-width:650px){

  .site-header{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .site-header nav{
    width:100%;
    justify-content:flex-start;
    gap:16px;
    overflow-x:auto;
  }

  .listing-wrap{
    margin-top:48px;
  }

  .listing-header{
    margin-bottom:55px;
  }

  .listing-wrap h1{
    font-size:58px;
    letter-spacing:-3px;
  }

  .listing-intro{
    font-size:17px;
  }

  .events-section{
    padding-top:40px;
  }

  .events-section + .events-section{
    margin-top:65px;
  }

  .events-section-head h2{
    font-size:40px;
    letter-spacing:-2px;
  }

  .event-card-copy h2{
    font-size:34px;
  }

  .whatsapp-float{
    right:16px;
    bottom:16px;
    width:54px;
    height:54px;
  }

  .whatsapp-float svg{
    width:28px;
    height:28px;
  }
}
/* ==========================================================
   EVENTO FINALIZADO
   ========================================================== */

.pill-finished{
  background:#A7A096;
  color:var(--seashell);
}

.cta-disabled{
  background:#8E8981;
  color:#EAE4DA;
  cursor:default;
  opacity:.7;
}

.cta-disabled:hover{
  background:#8E8981;
  transform:none;
}

.registration-closed{
  opacity:.82;
}

.registration-head-closed{
  background:#D3CDC3;
  color:#5A5752;
  border-radius:var(--radius);
}

.registration-head-closed .eyebrow{
  color:#77716A;
}

.registration-closed-copy{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:flex-start;
}

.registration-closed-copy p{
  margin:0;
  line-height:1.5;
}

.closed-events-link{
  display:inline-flex;
  padding-bottom:4px;
  border-bottom:1px solid currentColor;
  font-weight:700;
  font-size:14px;
}

.closed-events-link:hover{
  opacity:.65;
}

/* ==========================================================
   CASA CUBO — JERARQUÍA VISUAL DE LA AGENDA
   ========================================================== */

/* Encabezado principal */

.listing-page .listing-wrap {
  margin-top: 64px;
}

.listing-page .listing-wrap > .eyebrow {
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 2.4px;
}

.listing-page .listing-wrap > h1 {
  max-width: 1000px;
  margin: 0 0 24px;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.listing-page .listing-intro {
  max-width: 700px;
  margin-bottom: 36px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  color: #55514B;
}

/* Mensaje cuando no hay próximos eventos */

.listing-page [data-event-empty] {
  max-width: 700px;
  margin: 0 0 68px;
  padding: 22px 26px;
  border-left: 4px solid var(--mustard);
  border-radius: 0 12px 12px 0;
  background: #F5F0E8;
  color: #514D47;
  font-size: 16px;
  line-height: 1.5;
}

/* Archivo de experiencias anteriores */

.listing-page .archive-section {
  margin-top: 76px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.listing-page .archive-section > .eyebrow {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 2.2px;
  color: #66615A;
}

.listing-page .archive-section > h2 {
  max-width: 850px;
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.listing-page .archive-section > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.55;
  color: #66615A;
}

/* Respetar los elementos ocultos por JavaScript */

.listing-page [hidden] {
  display: none !important;
}

/* Adaptación para celulares */

@media (max-width: 650px) {
  .listing-page .listing-wrap {
    margin-top: 42px;
  }

  .listing-page .listing-wrap > h1 {
    font-size: clamp(42px, 10vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .listing-page .listing-intro {
    margin-bottom: 28px;
    font-size: 17px;
  }

  .listing-page [data-event-empty] {
    margin-bottom: 48px;
    padding: 18px 20px;
    font-size: 15px;
  }

  .listing-page .archive-section {
    margin-top: 52px;
    padding-top: 34px;
  }

  .listing-page .archive-section > h2 {
    font-size: clamp(34px, 8vw, 44px);
  }

  .listing-page .archive-section > p:not(.eyebrow) {
    font-size: 16px;
  }
}
