/* =========================================================
   UpSpeak — Landing Page
  Paleta: crema #FAF5EC · verde principal #15393D · naranja #D6872E
   ========================================================= */

:root{
  --cream: #FAF6EE;
  --cream-2: #F3ECDF;
  --teal: #15393D;
  --teal-2: #102D31;
  --teal-soft: #3F6B5F;
  --orange: #D6872E;
  --orange-dark: #C0741F;
  --text: #22312D;
  --text-soft: #5B6B65;
  --white: #FFFFFF;
  --line: rgba(27,59,55,0.14);
  --shadow: 0 20px 45px rgba(20,48,43,0.12);
  --radius: 14px;
  --content-width: 1440px;
  --section-space: clamp(3.5rem, 6vw, 5.5rem);
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;scroll-padding-top:100px;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:var(--sans);color:var(--teal);margin:0 0 .5em;line-height:1.15;text-wrap:balance;}
p{margin:0 0 1em;text-align:left;text-wrap:pretty;}
ul{margin:0;padding:0;list-style:none;}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px;}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:600;font-size:.85rem;
  letter-spacing:.04em;text-transform:uppercase;
  padding:.95em 2em;border-radius:999px;border:2px solid transparent;
  cursor:pointer;transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary{background:var(--orange);color:var(--white);}
.btn-primary:hover{background:var(--orange-dark);transform:translateY(-2px);box-shadow:0 12px 24px rgba(214,135,46,.35);}
.btn:active{transform:translateY(1px);}
.btn-block{width:100%;}

.section-title{
  text-align:center;font-size:clamp(2.2rem,3.5vw,3.1rem);
  position:relative;padding-bottom:.5em;margin-bottom:1.25em;
}
.section-title::after{
  content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:64px;height:3px;background:var(--orange);border-radius:3px;
}
.section-title.light{color:var(--white);}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:#15393d;
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.16);
}
.header-inner{
  max-width:var(--content-width);margin:0 auto;padding:.7rem 2rem;
  display:flex;align-items:center;gap:1.5rem;
}
.logo{display:flex;align-items:center;gap:.6rem;flex-shrink:0;}
.logo-badge{
  width:148px;height:76px;
  display:flex;align-items:center;justify-content:center;
}
.logo-badge img{width:100%;height:100%;object-fit:contain;}
.logo-text{display:flex;flex-direction:column;line-height:1.05;}
.logo-title{font-family:var(--sans);font-weight:500;font-size:1.2rem;color:var(--teal);}
.logo-title strong{font-weight:700;}
.logo-sub{font-size:.55rem;letter-spacing:.18em;color:var(--orange-dark);font-weight:600;text-transform:uppercase;}

.main-nav{display:flex;align-items:center;gap:1.6rem;margin-left:auto;flex-wrap:wrap;}
.main-nav a{
  font-size:.83rem;font-weight:500;color:var(--white);
  position:relative;padding:.3em 0;transition:color .2s ease;
  white-space:nowrap;
}
.main-nav a::after{
  content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;
  background:var(--orange);transition:width .25s ease;
}
.main-nav a:hover{color:var(--orange);}
.main-nav a:hover::after{width:100%;}

.btn-nav{margin-left:.5rem;padding:.7em 1.6em;font-size:.75rem;flex-shrink:0;}

.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;background:none;border:0;cursor:pointer;padding:6px;}
.nav-toggle span{width:24px;height:2px;background:var(--white);border-radius:2px;}

/* ---------- HERO ---------- */
.hero{
  background:linear-gradient(rgba(21,57,61,.76),rgba(21,57,61,.76)),url("imagenes/Inicio.png") center/cover no-repeat;
  padding-top:2.6rem;
}
.hero-inner{
  max-width:var(--content-width);margin:0 auto;padding:0 2rem 3rem;
  display:grid;grid-template-columns:minmax(0,820px);min-height:470px;align-items:center;
}
.hero-copy h1{font-size:clamp(2.1rem,3.6vw,3.1rem);color:var(--white);}
.hero-copy .accent{color:#da801d;}
.hero-sub{color:rgba(255,255,255,.86);font-size:1.05rem;line-height:1.65;max-width:58ch;margin-bottom:1.7em;text-align:left;}

.badges-bar{background:#15393d;}
.badges-inner{
  max-width:var(--content-width);margin:0 auto;padding:1.4rem 2rem;
  display:grid;grid-template-columns:repeat(5,1fr);gap:1.2rem;
}
.badge{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--white);
  font-size:.78rem;font-weight:500;letter-spacing:.01em;flex:1 1 150px;
  text-align:center;
}
.badge svg{color:var(--orange);flex-shrink:0;}

/* ---------- FRENAR ---------- */
.frenar{padding:var(--section-space) 1.6rem;}
.frenar-inner{
  max-width:var(--content-width);margin:0 auto;display:grid;
  grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center;
}
.frenar-copy h2{font-size:clamp(2.2rem,3.6vw,3.1rem);}
.check-list{margin:1.6em 0;}
.check-list li{
  display:flex;gap:.8rem;align-items:flex-start;margin-bottom:1.1em;
  color:var(--text-soft);font-size:1rem;
}
.check-ico{
  flex-shrink:0;width:22px;height:22px;border-radius:50%;
  background:var(--orange);color:var(--white);font-size:.75rem;
  display:flex;align-items:center;justify-content:center;margin-top:2px;
  font-weight:700;
}
.frenar-highlight{font-weight:700;color:var(--teal);font-size:1.05rem;}
.frenar-media img{border-radius:var(--radius);box-shadow:var(--shadow);aspect-ratio:4/3;object-fit:cover;}

/* ---------- WHY CARDS ---------- */
.why{background:var(--white);padding:var(--section-space) 1.6rem;}
.why .section-title{color:var(--teal);}
.why-grid{
  max-width:var(--content-width);margin:0 auto;display:grid;
  grid-template-columns:repeat(4,1fr);gap:1.4rem;
}
.why-card{
  position:relative;border-radius:var(--radius);overflow:hidden;
  aspect-ratio:3/4;box-shadow:var(--shadow);isolation:isolate;
}
.why-card img{
  width:100%;height:100%;object-fit:cover;
}
.why-overlay{
  position:absolute;inset:0;
  background:rgba(218,128,29,.72);
  opacity:0;
  display:flex;align-items:center;padding:1.6rem;
  transition:opacity .3s ease;
}
.why-overlay p{
  color:var(--white);font-weight:500;font-size:.95rem;margin:0;text-align:center;
}
.why-label{
  position:absolute;left:0;right:0;bottom:0;
  background:var(--orange);color:var(--white);
  font-weight:700;font-size:.85rem;letter-spacing:.02em;
  text-align:center;padding:.85em .5em;
  transition:background .3s ease;
}
.why-card:hover .why-label{background:var(--orange-dark);}
.why-card:hover .why-overlay,.why-card:focus-within .why-overlay{opacity:1;}

.why + .how{border-top:1px solid rgba(255,255,255,.12);}

/* ---------- HOW WE WORK ---------- */
.how{background:linear-gradient(rgba(21,57,61,.48),rgba(16,45,49,.58)),url("imagenes/comot.png") center/cover no-repeat;padding:var(--section-space) 1.6rem;}
.how-inner{max-width:var(--content-width);margin:0 auto;}
.how-steps{
  display:flex;align-items:flex-start;justify-content:center;gap:.6rem;flex-wrap:wrap;
}
.step{
  flex:1 1 200px;max-width:230px;text-align:center;color:var(--white);
}
.step-icon{
  width:64px;height:64px;border-radius:50%;
  background:rgba(21,57,61,.66);border:1.5px solid rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1em;
  color:var(--white);box-shadow:0 8px 20px rgba(0,0,0,.2);
}
.step h3{color:#da801d;font-size:1.15rem;margin-bottom:.4em;}
.step p{color:rgba(255,255,255,.72);font-size:.9rem;margin:0;text-align:center;}
.step-arrow{color:var(--white);align-self:center;margin-top:22px;flex-shrink:0;filter:drop-shadow(0 3px 5px rgba(0,0,0,.25));}

/* ---------- TESTIMONIOS ---------- */
.testimonios{padding:var(--section-space) 1.6rem calc(var(--section-space) + 1rem);border-top:42px solid #15393d;}
.testi-grid{
  max-width:var(--content-width);margin:0 auto;display:grid;
  grid-template-columns:repeat(4,1fr);gap:1.4rem;
}
.testi-card{
  background:var(--white);border-radius:var(--radius);padding:1.9rem;
  box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.4rem;
}
.testi-avatar{width:100%;aspect-ratio:16/9;border-radius:10px;margin-bottom:.6rem;overflow:hidden;background:var(--cream-2);}
.testi-avatar img{width:100%;height:100%;object-fit:cover;}
.testi-avatar-edicom{background:var(--white);}
.testi-avatar-edicom img{object-fit:contain;padding:.7rem;}
.testi-avatar-adrian img,.testi-avatar-alvaro img{object-position:center 4%;}
.testi-quote{font-size:.86rem;color:var(--text-soft);font-style:italic;flex:1;}
.testi-name{font-weight:700;color:var(--teal);font-size:.88rem;margin:0;}
.testi-role{font-size:.78rem;color:var(--orange-dark);margin:0;}

/* ---------- PROGRAMAS ---------- */
.programas{max-width:var(--content-width);margin:0 auto;padding:2rem 2rem 5rem;display:flex;flex-direction:column;gap:4.5rem;}
.programa{display:grid;grid-template-columns:1.05fr .95fr;gap:4rem;align-items:center;position:relative;}
.programa::before{content:"";position:absolute;left:0;right:0;bottom:-2.25rem;height:1px;background:var(--orange);}
.programa:last-child::before{display:none;}
.programa.reverse .programa-media{order:2;}
.programa.reverse .programa-copy{order:1;}
.programa-media{position:relative;}
.programa-media::after{content:"";position:absolute;inset:14px -14px -14px 14px;border:2px solid #da801d;border-radius:var(--radius);z-index:-1;}
.programa-media img{border-radius:var(--radius);box-shadow:var(--shadow);aspect-ratio:16/10;object-fit:cover;position:relative;z-index:1;}
.programa-copy{padding:1rem 0;}
.programa-kicker{color:#da801d!important;font-size:.76rem!important;font-weight:700;letter-spacing:.15em;text-transform:uppercase;margin-bottom:.65rem!important;}
.programa-copy h3{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:.55em;}
.programa-copy p{color:var(--text-soft);max-width:44ch;}

/* ---------- SOBRE NOSOTROS ---------- */
.sobre{
  max-width:var(--content-width);margin:0 auto 5rem;padding:0 2rem;
  display:grid;grid-template-columns:minmax(190px,.8fr) minmax(360px,1.4fr) minmax(190px,.8fr);gap:1.5rem;
  align-items:stretch;
}
.sobre-persona{position:relative;min-height:390px;overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow);background:var(--teal);}
.sobre-persona img{width:100%;height:100%;min-height:390px;object-fit:cover;}
.sobre-persona-name{position:absolute;right:0;bottom:0;background:#da801d;color:var(--white);padding:.75rem 1.1rem;font-weight:700;font-size:.9rem;border-radius:10px 0 0 0;}
.sobre-copy{background:var(--white);padding:3.2rem 3.4rem;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow);border-radius:var(--radius);}
.sobre-copy h2{position:relative;padding-bottom:.55em;margin-bottom:1em;font-size:clamp(2rem,3.2vw,2.8rem);font-weight:700;}
.sobre-copy h2::after{content:"";position:absolute;left:0;bottom:0;width:72px;height:4px;background:#da801d;border-radius:4px;}
.sobre-copy p{color:var(--text-soft);}

/* ---------- CONTACTO ---------- */
.contacto{
  background:linear-gradient(rgba(21,57,61,.82),rgba(16,45,49,.88)),url("imagenes/f.jpg") center/cover no-repeat;
  padding:var(--section-space) 1.6rem;
}
.contacto-inner{
  max-width:var(--content-width);margin:0 auto;display:grid;
  grid-template-columns:.9fr 1.1fr;gap:3.5rem;align-items:center;
}
.contacto-copy h2{color:var(--white);font-size:clamp(1.8rem,3vw,2.3rem);}
.contacto-copy p{color:rgba(255,255,255,.75);max-width:40ch;}
.social-row{display:flex;gap:.8rem;margin-top:2rem;}
.social-row a{
  width:42px;height:42px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);
  display:flex;align-items:center;justify-content:center;color:var(--white);
  transition:background .25s ease,border-color .25s ease;
}
.social-row a:hover{background:var(--orange);border-color:var(--orange);}

.contacto-form{
  background:var(--white);border-radius:var(--radius);padding:2.2rem;box-shadow:var(--shadow);
}
.contacto-form h3{font-size:1.2rem;margin-bottom:1em;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.field{margin-bottom:1rem;}
.field label{display:block;font-size:.78rem;font-weight:600;color:var(--teal);margin-bottom:.35em;}
.field input,.field textarea{
  width:100%;padding:.75em .9em;border:1.5px solid var(--line);border-radius:8px;
  font-family:var(--sans);font-size:.92rem;color:var(--text);background:var(--cream);
  transition:border-color .2s ease;
}
.field input:focus,.field textarea:focus{border-color:var(--orange);outline:none;}
.form-note{font-size:.8rem;color:var(--text-soft);margin-top:.8em;text-align:center;}

/* ---------- FOOTER ---------- */
.site-footer{background:var(--teal-2);padding:2.4rem 1.6rem;}
.footer-inner{
  max-width:var(--content-width);margin:0 auto;display:flex;justify-content:space-between;
  align-items:center;flex-wrap:wrap;gap:1rem;
}
.footer-logo .logo-title{color:var(--white);}
.footer-inner p{color:rgba(255,255,255,.55);font-size:.8rem;margin:0;}

/* ---------- MODAL: NUESTRA FILOSOFÍA ---------- */
.modal-backdrop{
  position:fixed;inset:0;z-index:200;
  background:rgba(20,48,43,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;padding:2rem 1rem;
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;
}
.modal-backdrop.open{opacity:1;visibility:visible;}
body.modal-open{overflow:hidden;}
body.modal-open .site-header,
body.modal-open .hero,
body.modal-open .frenar,
body.modal-open .why,
body.modal-open .how,
body.modal-open .testimonios,
body.modal-open .programas,
body.modal-open .sobre,
body.modal-open .contacto,
body.modal-open .site-footer{
  filter:blur(6px);
  transition:filter .3s ease;
}

.modal-card{
  background:var(--cream);border-radius:18px;max-width:720px;width:100%;
  max-height:86vh;box-shadow:0 30px 70px rgba(0,0,0,.35);position:relative;
  border-top:5px solid var(--orange);
  transform:translateY(16px) scale(.98);opacity:0;transition:transform .35s ease,opacity .35s ease;
}
.modal-backdrop.open .modal-card{transform:translateY(0) scale(1);opacity:1;}
.modal-scroll{max-height:86vh;overflow-y:auto;padding:3rem 3rem 2.6rem;}
.filosofia-image{width:100%;height:auto;display:block;}
.modal-close{
  position:absolute;top:1.1rem;right:1.3rem;z-index:2;
  width:38px;height:38px;border-radius:50%;border:none;
  background:var(--white);color:var(--teal);font-size:1.5rem;line-height:1;
  cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.15);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.modal-close:hover{background:var(--orange);color:var(--white);transform:rotate(90deg);}
.modal-hola{font-family:var(--sans);font-size:3rem;color:var(--teal);margin:0;}
.modal-rule{border:none;border-top:2px solid var(--orange);width:70px;margin:.8em 0 1.4em;}
.modal-bold{font-weight:700;color:var(--teal);}
.modal-scroll p{color:var(--text-soft);font-size:.98rem;}
.modal-signature{font-family:var(--sans);font-size:2.1rem;color:var(--teal);margin:.2em 0 0;}
.modal-role{font-weight:700;color:var(--teal);font-size:.85rem;border-top:2px solid var(--teal);display:inline-block;padding-top:.4em;}
.modal-quote{
  font-family:var(--sans);font-size:1.7rem;color:var(--teal);
  text-align:right;line-height:1.25;margin-top:2rem;
}

/* ---------- DESKTOP SCALE ---------- */
@media (min-width:1101px){
  body{font-size:17px;}
  .header-inner{padding-top:.9rem;padding-bottom:.9rem;}
  .main-nav{gap:1.8rem;}
  .main-nav a{font-size:.9rem;}
  .hero-inner{min-height:520px;}
  .hero-copy h1{font-size:clamp(2.6rem,4.2vw,3.8rem);}
  .hero-sub{font-size:1.12rem;max-width:62ch;}
  .badge{font-size:.86rem;}
  .section-title{font-size:clamp(2.5rem,3.8vw,3.5rem);}
  .frenar-copy h2{font-size:clamp(2.5rem,3.8vw,3.5rem);}
  .why-overlay p{font-size:1.02rem;}
  .step h3{font-size:1.25rem;}
  .step p{font-size:1rem;}
}

/* ---------- RESPONSIVE ---------- */
@media (min-width:561px) and (max-width:1080px){
  .badges-inner{grid-template-columns:repeat(6,1fr);}
  .badges-inner .badge{grid-column:span 2;}
  .badges-inner .badge:nth-child(4){grid-column:2 / 4;}
  .badges-inner .badge:nth-child(5){grid-column:4 / 6;}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .testi-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:900px){
  .header-inner{padding-left:1rem;padding-right:1rem;}
  .hero-inner{grid-template-columns:1fr;}
  .hero-media{order:-1;}
  .frenar-inner{grid-template-columns:1fr;}
  .programa,.programa.reverse{grid-template-columns:1fr;}
  .programa.reverse .programa-media{order:0;}
  .programa.reverse .programa-copy{order:0;}
  .sobre{grid-template-columns:1fr;}
  .contacto-inner{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .programa,.programa.reverse{gap:2.5rem;}
}

@media (max-width:820px){
  .main-nav{
    position:fixed;top:100px;left:0;right:0;bottom:auto;width:auto;max-height:calc(100vh - 100px);
    background:var(--teal);flex-direction:column;align-items:center;
    justify-content:flex-start;padding:2rem 1.8rem;gap:1.4rem;
    transform:translateY(-120%);transition:transform .3s ease;
    z-index:1;box-shadow:0 14px 32px rgba(0,0,0,.22);
    overflow-y:auto;
  }
  .main-nav.open{transform:translateY(0);}
  .main-nav a{font-size:1.05rem;}
  .nav-toggle{display:flex;margin-left:auto;position:relative;z-index:2;}
  .btn-nav{display:none;}
  .why-grid{grid-template-columns:1fr 1fr;}
  .why-card{aspect-ratio:1/1.1;}
}

@media (min-width:561px) and (max-width:1080px){
  .why-overlay{
    opacity:1;align-items:center;padding:1.25rem 1rem 3.8rem;
    background:linear-gradient(rgba(21,57,61,.28),rgba(21,57,61,.88));
  }
  .why-overlay p{font-size:.95rem;line-height:1.5;text-shadow:0 1px 2px rgba(0,0,0,.35);}
  .step{min-height:185px;}
}

@media (max-width:560px){
  :root{--mobile-gap:1.25rem;}
  .header-inner{gap:.75rem;}
  .logo-badge{width:150px;height:70px;}
  .hero{padding-top:1.5rem;}
  .hero-inner,.frenar,.why,.how,.testimonios,.contacto{padding-left:1rem;padding-right:1rem;}
  .hero-inner{padding-bottom:2rem;gap:2rem;}
  .hero-sub{font-size:.94rem;line-height:1.55;max-width:100%;}
  .section-title{font-size:clamp(1.9rem,8vw,2.35rem);}
  .frenar-copy h2{font-size:clamp(2rem,8vw,2.5rem);}
  .badges-inner{padding-left:1rem;padding-right:1rem;display:grid;grid-template-columns:1fr;gap:var(--mobile-gap);}
  .badge{min-width:0;min-height:3.5rem;font-size:.72rem;justify-content:center;}
  .badge svg{width:22px;height:22px;}
  p{font-size:.94rem;line-height:1.55;text-align:left;}
  .why-overlay p,.step p{text-align:center;}
  .why-grid{grid-template-columns:1fr;gap:var(--mobile-gap);}
  .why-card{aspect-ratio:auto;min-height:280px;}
  .why-overlay{
    opacity:1;align-items:center;padding:1.25rem 1rem 4.2rem;
    background:linear-gradient(rgba(21,57,61,.28),rgba(21,57,61,.88));
  }
  .why-overlay p{font-size:.95rem;line-height:1.5;text-shadow:0 1px 2px rgba(0,0,0,.35);}
  .testi-grid{grid-template-columns:1fr;}
  .testi-avatar{aspect-ratio:4/3;}
  .testi-grid{gap:var(--mobile-gap);}
  .programas{padding-left:1rem;padding-right:1rem;gap:var(--mobile-gap);}
  .programa-media::after{inset:10px -8px -8px 8px;}
  .how-steps{flex-direction:column;align-items:center;gap:var(--mobile-gap);}
  .step{width:100%;max-width:320px;min-height:185px;}
  .step-arrow{display:none;}
  .badges-inner{justify-content:flex-start;}
  .modal-scroll{padding:2.2rem 1.5rem 2rem;}
  .modal-hola{font-size:2.3rem;}
}
