/* ===================== VARIABLES ===================== */
:root{
  --navy: #0d2c44;
  --navy-deep: #09202f;
  --green: #8eac4d;
  --green-deep: #5b7a38;
  --tan: #cdb596;
  --gold: #ab8650;
  --cream: #fdf2ee;
  --ink: #16324a;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(13,44,68,0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--white);
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Poppins', sans-serif;
  margin:0;
  color:var(--navy);
}
p{margin:0; line-height:1.55;}
a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block;}
.section-inner{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}
.title-on-dark{color:var(--white);}

/* ===================== NAV ===================== */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:var(--navy);
  box-shadow:0 2px 14px rgba(0,0,0,0.25);
}
.nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-logo{
  display:flex; align-items:center;
}
.nav-logo-img{
  height:44px;
  width:auto;
  display:block;
  object-fit:contain;
}
.nav-links{display:flex; gap:30px;}
.nav-links a{
  font-weight:600;
  font-size:0.95rem;
  color:var(--white);
  position:relative;
  padding:6px 0;
  transition:color .25s var(--ease);
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background:var(--green);
  transition:width .3s var(--ease);
}
.nav-links a:hover{color:var(--green);}
.nav-links a:hover::after{width:100%;}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:24px; height:2.5px;
  background:var(--white);
  border-radius:2px;
  transition:.3s var(--ease);
}

/* ===================== HERO ===================== */
.hero{
  padding:140px 28px 80px;
  background:var(--navy);
  text-align:left;
}
.hero-inner{max-width:1180px; margin:0 auto; padding:0 28px;}
.hero h1{
  font-size:3.4rem;
  font-weight:800;
  line-height:1.15;
  color:var(--white);
  margin-bottom:22px;
}
.hero-sub{
  font-size:1.1rem;
  color:#b8ccd8;
  max-width:480px;
  line-height:1.55;
}

/* ===================== QUÉ NOS MOTIVA ===================== */
.motiva{
  background:var(--navy);
  padding:70px 0 90px;
}
.motiva h2{
  text-align:left;
  font-size:2.5rem;
  margin-bottom:30px;
}
.motiva-panel{
  background:var(--navy-deep);
  border-radius:var(--radius-lg);
  padding:34px;
  display:flex;
  flex-direction:column;
  gap:26px;
  max-width:760px;
}
.motiva-card{
  display:flex;
  align-items:flex-start;
  gap:20px;
  padding:10px;
  border-radius:14px;
  transition:background .3s var(--ease);
}
.motiva-card:hover{background:rgba(255,255,255,0.04);}
.motiva-icon{
  flex-shrink:0;
  width:64px; height:64px;
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor:pointer;
}
.icon-green{background:var(--green-deep);}
.icon-lightgreen{background:var(--green);}
.icon-tan{background:var(--tan);}
.motiva-card:hover .motiva-icon,
.motiva-icon:focus{
  transform:scale(1.14);
  box-shadow:0 10px 24px rgba(0,0,0,0.3);
}
.motiva-text h3{
  color:var(--white);
  font-size:1.15rem;
  margin-bottom:6px;
}
.motiva-text p{
  color:#cdd9e2;
  font-size:0.93rem;
}

/* ===================== QUIÉNES SOMOS ===================== */
.quienes{
  background:var(--cream);
  padding:80px 0;
}
.quienes-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}
.quienes-text h2{font-size:2rem; margin-bottom:18px;}
.quienes-text p{font-size:1rem; color:#3b5063;}
.quienes-cards{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.quienes-card{
  background:var(--navy);
  color:var(--white);
  border-radius:18px;
  padding:22px 26px;
  cursor:pointer;
  transition:transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.quienes-card:nth-child(2){background:var(--navy-deep);}
.quienes-card:nth-child(3){background:#143b54;}
.quienes-card h3{color:var(--white); font-size:1.15rem; margin-bottom:6px;}
.quienes-card p{color:#cfdbe4; font-size:0.92rem;}
.quienes-card:hover{
  transform:scale(1.045);
  background:var(--gold);
  box-shadow:0 16px 30px rgba(171,134,80,0.35);
}

/* ===================== AUDIENCIAS ===================== */
.audiencias{padding:90px 0; background:var(--white);}
.audiencias-grid{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:50px;
}
.audiencias-panel{
  background:var(--green);
  border-radius:var(--radius-lg);
  padding:50px 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:24px;
  text-align:center;
  cursor:pointer;
  min-height:420px;
  position:relative;
  overflow:hidden;
}
.audiencias-panel h3{
  color:var(--white);
  font-size:1.4rem;
  line-height:1.3;
}
.aud-img{transition:opacity .35s var(--ease), transform .35s var(--ease);}
.aud-img--hover{position:absolute; opacity:0; transform:scale(0.85);}
.aud-img--default{opacity:1;}
.audiencias-panel:hover .aud-img--default{opacity:0; transform:scale(0.85);}
.audiencias-panel:hover .aud-img--hover{opacity:1; transform:scale(1);}

.audiencias-list{
  display:flex;
  flex-direction:column;
  gap:26px;
}
.aud-row{
  display:flex;
  gap:18px;
  align-items:flex-start;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.aud-row.visible{opacity:1; transform:translateY(0);}
.aud-icon{
  flex-shrink:0;
  width:75px; height:75px;
  border-radius:50%;
  background:var(--navy);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  cursor:pointer;
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.aud-icon .ic-default, .aud-icon .ic-hover{
  position:absolute;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.aud-icon .ic-hover{opacity:0; transform:rotate(-12deg) scale(0.8);}
.aud-row:hover .ic-default{opacity:0; transform:rotate(12deg) scale(0.8);}
.aud-row:hover .ic-hover{opacity:1; transform:rotate(0) scale(1);}
.aud-text h4{font-size:1.08rem; margin-bottom:5px;}
.aud-text p{font-size:0.9rem; color:#46606f;}

/* ===================== PORTAFOLIO ===================== */
.portafolio{padding:90px 0; background:#fff;}
.portafolio h2{margin-bottom:34px;}
.slider{
  position:relative;
  overflow:hidden;
}
.slider-track{
  display:flex;
  gap:24px;
  transition:transform .55s var(--ease);
}
.slide{
  flex:0 0 78%;
  max-width:78%;
}
.slide-img{
  width:100%;
  height:500px;
  border-radius:var(--radius-lg);
  background-size:cover;
  background-position:center;
  margin-bottom:18px;
  box-shadow:var(--shadow);
}
.slide h3{font-size:1.25rem; margin-bottom:8px;}
.slide p{color:#3b5063; max-width:560px;}
.slider-controls{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:24px;
}
.slider-bar{
  flex:1;
  max-width:240px;
  height:5px;
  background:#dfe6e3;
  border-radius:4px;
  overflow:hidden;
}
.slider-bar span{
  display:block;
  height:100%;
  background:var(--navy);
  border-radius:4px;
  transition:width .5s var(--ease);
}
.slider-dots{display:flex; gap:8px;}
.slider-dots .dot{
  width:9px; height:9px;
  border-radius:50%;
  background:#bcd398;
  cursor:pointer;
  transition:background .3s, transform .3s;
}
.slider-dots .dot.active{background:var(--green); transform:scale(1.25);}

/* ===================== DÓNDE ACTUAMOS ===================== */
.actuamos{padding:90px 0; background:#faf4f0;}
.actuamos h2{margin-bottom:50px;}
.flower{
  position:relative;
  width:100%;
  max-width:820px;
  margin:0 auto 20px;
}
.flower svg{display:block; width:100%; height:auto;}

.actuamos-list{display:none; flex-direction:column; gap:22px;}
.actuamos-list .aud-icon.static-ico{background:var(--navy); cursor:default;}
.actuamos-list .aud-row{opacity:1; transform:none;}

/* ===================== CÓMO LO IMPLEMENTAMOS ===================== */
.implementamos{background:var(--navy); padding:80px 0;}
.implementamos h2{margin-bottom:50px;}
.impl-slider{
  display:flex;
  align-items:center;
  gap:18px;
}
.impl-track-wrap{flex:1; overflow:hidden;}
.impl-track{
  display:flex;
  transition:transform .5s var(--ease);
}
.impl-page{
  flex:0 0 100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  position:relative;
}
.impl-page::before{
  content:'';
  position:absolute;
  top:38px;
  left:12px;
  width:calc(50% + 25px);
  height:2px;
  background:rgba(255,255,255,0.25);
}
.impl-step{
  padding-top:26px;
  position:relative;
}
.impl-dotline{
  display:block;
  width:24px; height:24px;
  border-radius:50%;
  background:var(--green);
  margin-bottom:18px;
  position:relative;
  z-index:1;
}
.impl-step h3{color:var(--white); font-size:1.3rem; margin-bottom:10px;}
.impl-step p{color:#cdd9e2; max-width:520px;}
.impl-arrow{
  flex-shrink:0;
  width:42px; height:42px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.4);
  background:transparent;
  color:var(--white);
  font-size:1.4rem;
  cursor:pointer;
  transition:background .3s, border-color .3s;
}
.impl-arrow:hover{background:var(--green); border-color:var(--green);}
.impl-dots{display:flex; gap:8px; margin-top:28px; justify-content:center;}
.impl-dots .dot{
  width:9px; height:9px;
  border-radius:50%;
  background:rgba(255,255,255,0.3);
  cursor:pointer;
  transition:background .3s, transform .3s;
}
.impl-dots .dot.active{background:var(--green); transform:scale(1.25);}

/* ===================== EN QUÉ TRADUCIMOS ===================== */
.traducimos{padding:90px 0; background:var(--cream);}
.traducimos h2{margin-bottom:40px;}
.traducimos-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.trad-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:30px 26px;
  box-shadow:0 6px 18px rgba(13,44,68,0.06);
  cursor:pointer;
  transition:background .35s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
.trad-ico{
  display: block;
  height: 100px;
}
.trad-ico .ic-default, .trad-ico .ic-hover{
  position:absolute; top:0; left:0;
  transition:opacity .3s var(--ease);
}
.trad-ico .ic-hover{opacity:0;}
.trad-card h3{font-size:1.08rem; margin-bottom:8px; transition:color .3s var(--ease);}
.trad-card p{font-size:0.9rem; color:#46606f; transition:color .3s var(--ease);}
.trad-card:hover{
  background:var(--navy);
  transform:translateY(-6px);
  box-shadow:0 18px 32px rgba(13,44,68,0.25);
}
.trad-card:hover .ic-default{opacity:0;}
.trad-card:hover .ic-hover{opacity:1;}
.trad-card:hover h3{color:var(--white);}
.trad-card:hover p{color:#cdd9e2;}

/* ===================== BENEFICIOS ===================== */
.beneficios{background:var(--green); padding:80px 0;}
.beneficios h2{color:var(--white); margin-bottom:34px;}
.beneficios-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}
.beneficio-card{
  background:var(--navy);
  border-radius:var(--radius-lg);
  padding:34px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
  cursor:pointer;
}
.beneficio-card:hover{
  transform:scale(1.045);
  box-shadow:0 22px 40px rgba(0,0,0,0.28);
  z-index:2;
}
.beneficio-card h3{color:var(--green); font-size:1.15rem; margin:18px 0 16px;}
.beneficio-card ul{margin:0; padding-left:20px; color:var(--white);}
.beneficio-card li{margin-bottom:8px; font-size:0.94rem;}

/* ===================== CONFIANZA ===================== */
.confianza{background:var(--navy-deep); padding:80px 0;}
.confianza h2{color:var(--white); font-size:2.5rem; max-width:760px; margin:0 auto 18px;}
.confianza p{color:#cdd9e2; max-width:760px; margin:0 auto;}

/* ===================== CONTACTO ===================== */
.contacto{padding:90px 0;}
.contacto h2{margin-bottom:34px;}
.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.form-col{display:flex; flex-direction:column; gap:16px;}
.contact-form label{
  display:flex; flex-direction:column;
  gap:6px;
  font-size:0.9rem;
  font-weight:600;
  color:var(--navy);
}
.contact-form input, .contact-form textarea{
  border:1.5px solid #d7c9b3;
  border-radius:10px;
  padding:12px 14px;
  font-family:'Inter',sans-serif;
  font-size:0.95rem;
  resize:vertical;
  transition:border-color .25s, box-shadow .25s;
}
.contact-form textarea{height:100%;}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(142,172,77,0.2);
}
.btn-enviar{
  grid-column:2;
  justify-self:end;
  background:var(--navy);
  color:var(--white);
  border:none;
  padding:13px 34px;
  border-radius:10px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.btn-enviar:hover{background:var(--green-deep); transform:translateY(-2px);}

/* ===================== FOOTER ===================== */
.footer{background:var(--navy); padding:24px 0; text-align:center;}
.footer p{color:#9fb3c2; font-size:0.85rem;}

/* ===================== REVEAL ON SCROLL (generic) ===================== */
.reveal{opacity:0; transform:translateY(24px); transition:opacity .6s var(--ease), transform .6s var(--ease);}
.reveal.visible{opacity:1; transform:translateY(0);}

/* ===================== RESPONSIVE ===================== */
@media (max-width:980px){
  .quienes-grid{grid-template-columns:1fr;}
  .audiencias-grid{grid-template-columns:1fr;}
  .traducimos-grid{grid-template-columns:repeat(2,1fr);}
  .beneficios-grid{grid-template-columns:1fr;}
  .flower{display:none;}
  .actuamos-list{display:flex;}
}

@media (max-width:760px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--navy);
    flex-direction:column;
    padding:18px 28px;
    gap:16px;
    box-shadow:0 12px 18px rgba(0,0,0,0.25);
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-toggle{display:flex;}
  .hero{padding:140px 22px 60px;}
  .hero h1{font-size:1.5rem;}
  .traducimos-grid{grid-template-columns:1fr;}
  .contact-form{grid-template-columns:1fr;}
  .btn-enviar{grid-column:1; justify-self:stretch;}
  .slide{flex:0 0 86%; max-width:86%;}
  .motiva-card{flex-direction:column; align-items:flex-start; gap:14px;}
  .impl-page{grid-template-columns:1fr; gap:28px;}
  .impl-page::before{display:none;}
  .impl-slider{flex-wrap:wrap; justify-content:center;}
  .impl-track-wrap{flex:0 0 100%; order:1;}
  .impl-prev{order:2; margin-top:20px;}
  .impl-next{order:3; margin-top:20px;}
}

/* ===== PREVENCIÓN ===== */
.prevencion {
  background: #ffffff;
  padding: 48px 28px;
  border-top: 3px solid var(--navy);
}

.prevencion .hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.prevencion .hero-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.prevencion .hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prevencion h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

.prevencion h1 span {
  color: var(--navy);
}

/* Mobile */
@media (max-width: 600px) {
  .prevencion .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .prevencion h1 {
    font-size: 1.6rem;
  }
}

.audiencias-panel {
  background: var(--green);
  transition: background 0.35s cubic-bezier(.22,.61,.36,1);
}

.audiencias-panel:hover {
  background: var(--navy);
}