:root{
  --teal: #344C4C;
  --coral: #E5765C;
  --turquoise: #8CBEBF;
  --spring: #DFE0C3;
  --cream: #F6F5EF;
  --sage: #F2F6F4;
  --white: #FFFFFF;
  --ink: #17211F;

  --serif: 'Boska', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Switzer', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* HEADER / NAVBAR */
.site-header{
  padding: 20px 20px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar{
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 10px 12px 22px;
  box-shadow: 0 2px 16px rgba(23,33,31,0.08);
}
.wordmark{
  display: block;
  height: 32px;
  width: auto;
}
.navbar .wordmark{ height: 44px; }
.footer-inner .wordmark{ height: 52px; }
.nav-links{
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a{
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav-links a:hover{ color: var(--coral); }
.nav-cta{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover{ background: var(--coral); }
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg{ width: 22px; height: 22px; display: block; }
.nav-mobile-menu{
  display: none;
  flex-direction: column;
  gap: 4px;
  max-width: 620px;
  margin: 8px auto 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23,33,31,0.12);
  padding: 8px;
}
.nav-mobile-menu.open{ display: flex; }
.nav-mobile-menu a{
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
}
.nav-mobile-menu a:hover{ background: #F2F6F4; }
@media (max-width: 640px){
  .nav-links{ display: none; }
  .nav-toggle{ display: inline-flex; }
}

/* HERO */
.hero{
  position: relative;
  padding: 56px 0 420px;
  text-align: center;
  overflow: hidden;
  background-image: url('../assets/img/Hero.jpg');
  background-size: cover;
  background-position: center top;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 38%, rgba(246,245,239,0) 78%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}
.hero-eyebrow{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 18px;
}
.hero-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 auto 26px;
}
.hero-sub{
  font-size: 20px;
  max-width: 42ch;
  color: #3A4644;
  margin: 0 auto 36px;
  text-wrap: balance;
}
.hero-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-actions .btn-outline{
  background: var(--white);
}
@media (max-width: 600px){
  .hero-actions{ margin-bottom: 36px; }
  .hero{ padding-bottom: 280px; }
  .hero-title{ font-size: 38px; }
  .hero::before{
    background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 55%, rgba(246,245,239,0) 85%);
  }
}

.btn{
  display: inline-block;
  padding: 14px 26px;
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover{ background: var(--coral); }
.btn-outline{
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover{
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

/* SECTION generic */
.section{
  padding: 72px 0;
}
.section-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-lead{
  font-size: 19px;
  color: #3A4644;
  max-width: 62ch;
  margin: 0 0 40px;
}
.section-price-note{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal);
  margin: -24px 0 32px;
}

/* PROBLEMA */
.problema{
  background: var(--teal);
  color: var(--white);
  padding: 80px 0;
}
.problema-inner{
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.problema-text{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45;
  margin: 0;
  color: #B9C8C2;
  flex: 1 1 320px;
}
.problema-text strong{
  font-weight: 700;
  color: var(--spring);
}
.problema-visual{
  flex: 1.2 1 380px;
  align-self: stretch;
  min-height: 260px;
  border-radius: 4px;
  background-image: url('../assets/img/Mapa.png');
  background-size: cover;
  background-position: center;
}
@media (max-width: 720px){
  .problema-inner{ flex-direction: column; gap: 20px; }
  .problema-text{ flex-basis: auto; }
  .problema-visual{ flex-basis: auto; min-height: 200px; }
}

/* SERVICIOS */
.servicios{
  background: var(--sage);
}
.services-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-card{
  background: var(--white);
  border: 1px solid #E1E7E3;
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(23,33,31,0.1);
  border-color: var(--teal);
}
.service-card:hover .service-icon{
  background: var(--teal);
  color: var(--white);
}
.service-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(52,76,76,0.08);
  color: var(--teal);
  margin-bottom: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-icon svg{ width: 22px; height: 22px; }
.service-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}
.service-text{
  font-size: 15px;
  line-height: 1.5;
  color: #445250;
  margin: 0;
}
.servicios-asesoria{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #DCE3DF;
}
.asesoria-content{ flex: 1 1 480px; }
.asesoria-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 0 0 10px;
}
.asesoria-text{
  font-size: 15px;
  line-height: 1.55;
  color: #445250;
  margin: 0;
  max-width: 74ch;
}
.asesoria-price{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 220px;
  padding: 22px 34px;
  background: var(--white);
  border: 1px solid #E1E7E3;
  border-radius: 10px;
}
.asesoria-price-label{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6B7975;
}
.asesoria-price-amount{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  color: var(--teal);
}
.asesoria-price-amount small{ font-size: 13px; font-weight: 700; }
.asesoria-price-note{
  font-size: 12px;
  color: #6B7975;
}
@media (max-width: 700px){
  .servicios-asesoria{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .asesoria-content{ flex-basis: auto; }
}
@media (max-width: 640px){
  .services-cards{ grid-template-columns: 1fr; }
}

/* CASOS */
.cases-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card{
  background: var(--white);
  border: 1px solid #E1E1D2;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23,33,31,0.1);
}
.case-media{
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-media::after{
  content: "Ver caso completo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(23,33,31,0.6);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.case-card:hover .case-media::after{ opacity: 1; }
.case-media--video{
  background-color: var(--teal);
  background-image: linear-gradient(135deg, var(--teal), #1F2E2D);
  color: var(--spring);
}
.case-media--placeholder{
  background-image: repeating-linear-gradient(45deg, #ECEBDE, #ECEBDE 10px, #E2E1D2 10px, #E2E1D2 20px);
}
.case-media--stat{
  flex-direction: column;
  gap: 18px;
  background-color: var(--teal);
  background-image: linear-gradient(135deg, var(--teal), #1F2E2D);
  padding: 24px;
}
.case-media--stat::after{ content: none; }
.case-stat-label{
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
  color: #B9C8C2;
  text-align: center;
}
.case-stat-progress{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.case-stat-progress span{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: #B9C8C2;
}
.case-stat-arrow{
  font-weight: 400;
  opacity: 0.5;
}
.case-stat-highlight{
  font-size: 30px !important;
  color: var(--spring) !important;
}
.case-play-icon{
  width: 46px;
  height: 46px;
  opacity: 0.9;
}
.case-media--embed{
  background: var(--ink);
  cursor: default;
}
.case-media--embed::after{ content: none; }
.case-media--embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.case-body{
  padding: 28px;
}
.case-badge{
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--coral);
  font-size: 12px;
  margin: 0 0 10px;
}
.case-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.case-text{
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: #445250;
}
@media (max-width: 760px){
  .cases-grid{ grid-template-columns: 1fr; }
}

/* PROCESO */
.proceso{
  background: var(--sage);
}
.proceso-steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.proceso-step{
  position: relative;
}
.proceso-step:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  width: calc(100% - 40px + 32px);
  height: 1px;
  background: rgba(52,76,76,0.2);
}
.proceso-step-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--sage);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.proceso-step-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
}
.proceso-step-text{
  font-size: 14.5px;
  line-height: 1.55;
  color: #445250;
  margin: 0;
}
@media (max-width: 760px){
  .proceso-steps{ grid-template-columns: 1fr; gap: 28px; }
  .proceso-step::after{ display: none; }
}

/* CTA CONTACTO */
.cta-diagnostico{
  background: var(--teal);
  padding: 96px 0;
}
.cta-diagnostico-inner{
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-diagnostico-title{
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--white);
}
.cta-diagnostico .btn-primary{
  background: var(--white);
  color: var(--teal);
}
.cta-diagnostico .btn-primary:hover{
  background: var(--coral);
  color: var(--white);
}

/* FOOTER */
.site-footer{
  padding: 40px 0 56px;
  border-top: 1px solid #C9CABB;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.footer-inner a{
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.footer-inner a:hover{ color: var(--coral); border-color: var(--coral); }

@media (max-width: 600px){
  .section{ padding: 52px 0; }
  .hero{ padding: 48px 0 60px; }
  .problema{ padding: 56px 0; }
}
