:root{
  --brand: #E1E06A ;          /* tu amarillo pastel 1 prueba #e3df6c*/
  --ink: #1f332d;			/* #1f332d VERDE OSCURO		 #1b1f24 EL QUE PUSO	CASI NEGRO		*/
  --muted: #5b6672;
  --bg: #ffffff;
  --alt: #f6f7f9;
  --card: #ffffff;
  --border: #e6e9ee;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --improvisapp-green: #22C55E;
 /*  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;  FUENTE ORIGINAL*/
	--font: 'Work Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Topbar */
.topbar{
   /* background: var(--improvisapp-green); */
  background: var(--brand);  /*EL COLOR DE IMPROVISAPP*/
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.05);
  
}

/* Desktop: 3 zonas iguales (izq/centro/dcha) */
.topbar__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 115px; /* tu altura */
}
/* Rail a ancho completo: 3 zonas (izq / centro / dcha) */
.topbar__rail{
  min-height: 115px;
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--max)) 1fr;
  align-items: center;
}

/* Centro: el container ya centra el nav */
.topbar__center{
  display: flex;
  justify-content: center;
}

/* Izquierda: logo centrado en su hueco */
.topbar__rail .brand{
  justify-self: center;
}

/* Derecha: botones centrados en su hueco */
.topbar__rail .topbar__cta{
  justify-self: center;
  justify-content: center;
}

/* Nav: quita el flex:1 que empujaba cosas */
.topbar__rail .nav{
  flex: initial;
  margin-left: 0;
}

/* Burger: mantenlo a la derecha */
.topbar__rail .burger{
  justify-self: end;
  margin-right: 24px;
}

/* Mobile: vuelve a tu comportamiento */
@media (max-width: 980px){
  .topbar__rail{
    display: flex;
  }
}


/* Centrar dentro del “hueco” izquierdo */
.brand{
  justify-self: center;
}

/* Menú centrado */
.nav{
  justify-self: center;
  margin-left: 0;   /* quita el empuje lateral */
  flex: initial;    /* no estirar como antes */
}

/* Centrar botones dentro del “hueco” derecho */
.topbar__cta{
  justify-self: center;
  justify-content: center;
}

/* Mobile: vuelve al comportamiento que ya tenías */
@media (max-width: 980px){
  .topbar__inner{
    display: flex;
  }
  .brand{
    justify-self: auto;
  }
  .topbar__cta{
    justify-self: auto;
  }
}


.topbar__cta{
  margin-right: calc((100% - min(var(--max), 100%)) / 2);
}
.brand{
  text-decoration:none;
  color: var(--ink);
  display:flex;
  /*align-items:center;
  gap: 10px; */
  justify-self: center;
}
.brand__mark{
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 20px;
/*  text-transform: lowercase; */
}
.brand__mark--footer{
  font-size: 18px;
}

.brand__logo {
  height: 52px;      /* ajusta según header */
  width: auto;
  display: block;
}

.brand--edge{
  position: static;
  left: auto;
  top: auto;
  transform: none;
}

.nav{
  /*display:flex;
  gap: 14px;
  margin-left: 10px;
  flex: 1;*/
   justify-self: center;
  margin-left: 0;   /* quita el empuje lateral */
  flex: initial;    /* no estirar como antes */
}
.nav__link{
  text-decoration:none;
  /*color: rgba(0,0,0,.72); /*Color negro original */
  color: rgba(255,255,255,0.9); 
  font-size: 20px;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav__link:hover{ background: rgba(255,255,255,.35); }
.nav__link--active{ background: rgba(255,255,255,.55); }
/*
.topbar__cta{
  display:flex;
  gap: 10px;
}
*/

/* Centrar botones dentro del “hueco” derecho */
.topbar__cta{
  justify-self: center;
  justify-content: center;
}

.btn{
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease;
  user-select:none;
  background: #fff; /*  #1f332d */
  color: var(--ink);
}
.btn:active{ transform: translateY(1px); }

.btn--solid{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--solid:hover{ background: #0f1318; }

.btn--ghost{
  background: rgba(255,255,255,.75);
}
.btn--ghost:hover{ background: rgba(255,255,255,.95); }

.burger{
  display:none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 10px;
}
.burger span{
  display:block;
  width: 22px;
  height: 2px;
  background: rgba(0,0,0,.75);
  margin: 5px 0;
}

/* Mobile menu */
.mobile{
  background: var(--brand);
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 10px 0 18px;
}
.mobile__inner{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.mobile__inner a{
  text-decoration:none;
  color: rgba(0,0,0,.82);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.35);
}
.mobile__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hero */
.hero{
  /*
  padding: 44px 0 26px;
  background: linear-gradient(180deg, rgba(227,223,108,.35), rgba(255,255,255,0)); /*  background: linear-gradient(180deg, rgba(227,223,108,.35), rgba(255,255,255,0));  GRADIENTE AMARILLO A BLANCO */                     */
 	position: relative;
	background-color: #ffffff;
   background-image:
   url("assets/img/Improvisapp_marca_agua_clara.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: top center, center;
  background-size:  1200px auto;

  padding: 6rem 2rem;
}


.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.hero__actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.hero__stats{
  display:flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pill{
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  border-radius: 999px;
  padding: 10px 12px;
  display:flex;
  gap: 8px;
  align-items: baseline;
}
.pill strong{ font-size: 16px; }
.pill span{ color: var(--muted); font-weight: 700; font-size: 13px; }

.hero__card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero__card h2{ margin: 0 0 6px; font-size: 18px; }
.muted{ color: var(--muted); }
.search{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.search input{
  flex:1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  font-weight: 650;
}
.search input:focus{
  border-color: rgba(0,0,0,.25);
}

.chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--alt);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover{ background: #fff; }

/* Sections */
.section{
  padding: 34px 0;
}
.section--alt{ 
	

background: var(--alt);
	}
.section__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section__head h2{ margin: 0; font-size: 24px; }

.grid{
  display:grid;
  gap: 14px;
}
.grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card h3{ margin: 0 0 6px; }
.card p{ margin: 0; line-height: 1.5; }

/* Accordion */
.accordion{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.acc{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.acc__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}
.acc__title{
  font-weight: 850;
  margin: 0;
}
.acc__meta{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.acc__chev{
  width: 34px; height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--alt);
  border: 1px solid var(--border);
  font-weight: 900;
}
.acc__body{
  padding: 0 16px 16px;
  display:none;
}
.acc[data-open="true"] .acc__body{ display:block; }
.acc[data-open="true"] .acc__chev{ transform: rotate(180deg); }

.vlist{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.vcard{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
}
.vcard__top{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items:flex-start;
}
.vcard__title{
  margin: 0 0 6px;
  font-weight: 900;
}
.vcard__desc{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}
.vcard__actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tag{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(227,223,108,.35);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 850;
  font-size: 12px;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 100;
}
.modal[aria-hidden="false"]{ display:block; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.modal__panel{
  position: relative;
  width: min(980px, calc(100% - 26px));
  margin: 6vh auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow:hidden;
}
.modal__head{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(227,223,108,.45), rgba(255,255,255,0));
}
.modal__kicker{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.modal__title{
  margin: 4px 0 0;
  font-size: 18px;
}
.iconbtn{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.modal__body{ padding: 0 16px 16px; }
.modal__foot{
  display:flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
}

.videoWrap{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.videoWrap iframe, .videoWrap video{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  align-items:flex-start;
}
.footer__links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__links a{
  color: var(--muted);
  font-weight: 800;
  text-decoration:none;
}
.footer__links a:hover{ color: var(--ink); }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .vlist{ grid-template-columns: 1fr; }
  .nav, .topbar__cta{ display:none; }
  .burger{ display:block; margin-left: auto; }
  .topbar__inner{
    display: flex;
  }
  .brand{
    justify-self: auto;
  }
  .topbar__cta{
    justify-self: auto;
  }
}

/* ====== FIX: logo centrado en móvil en la topbar ====== */
@media (max-width: 980px){

  /* Mantén el rail como contenedor relativo */
  .topbar__rail{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* centra el contenido "base" */
    padding: 12px 16px;
    min-height: 115px; /* tu altura actual */
  }

  /* Logo centrado REAL (independiente del burger) */
  .topbar__rail .brand{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  /* Tamaño del logo en móvil (ajústalo si quieres) */
  .topbar__rail .brand__logo{
    height: 42px; /* antes 52px, suele encajar mejor en móvil */
    width: auto;
  }

  /* Burger fijo a la derecha */
  .topbar__rail .burger{
    position: absolute;
    right: 16px;
    left: auto;
    margin: 0;          /* quita margin-right:24px del desktop */
    top: 50%;
    transform: translateY(-50%);
    justify-self: auto; /* por si hereda algo del grid */
  }

  /* Asegura que el nav/cta están ocultos en móvil (ya lo tienes, esto refuerza) */
  .topbar__center,
  .topbar__cta{
    display: none !important;
  }
}
