/* REVEAL animations */
.reveal,.reveal-left,.reveal-right,.reveal-scale{
  opacity:0;
  transition:opacity .6s ease,transform .6s ease;
}
.reveal{transform:translateY(30px)}
.reveal-left{transform:translateX(-40px)}
.reveal-right{transform:translateX(40px)}
.reveal-scale{transform:scale(0.92)}
.reveal.visible,.reveal-left.visible,.reveal-right.visible,.reveal-scale.visible{
  opacity:1;transform:none;
}

/* Steps */
/* CTA Section */
.cta-section{
  padding:6rem 1.75rem 8rem;
}
.cta-box{
  max-width:900px;margin:0 auto;
  background:linear-gradient(135deg,#0B0F14,#101318);
  border-radius:28px;
  padding:4.5rem 2.5rem;
  text-align:center;
  color:#fff;
  position:relative;overflow:hidden;
}
.cta-box::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 30% 30%,rgba(59,130,246,.15),transparent 50%);
  pointer-events:none;
}
.cta-box .eyebrow{color:#93c5fd;margin-bottom:1rem}
.cta-box h2{font-size:clamp(1.6rem,4vw,2.4rem);margin-bottom:1rem;position:relative;z-index:1}
.cta-box>p{font-size:1.1rem;opacity:.9;max-width:560px;margin:0 auto;position:relative;z-index:1}

/* Buttons */
.hero-cta-btn{
  display:inline-flex;align-items:center;gap:.6rem;
  background:var(--blue-500);
  color:#fff;
  padding:.95rem 1.7rem;
  border-radius:12px;
  font-family:'Poppins',sans-serif;
  font-weight:600;
  font-size:1rem;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  box-shadow:0 4px 20px rgba(37,99,235,.25);
  animation:heroBtnIn 0.6s ease-out 0.7s forwards;
  opacity:0;transform:translateY(20px);
}
@keyframes heroBtnIn{
  to{opacity:1;transform:translateY(0)}
}
.hero-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(37,99,235,.35);
  background:var(--blue-600);
}
.hero-cta-secondary{
  display:inline-flex;align-items:center;
  background:transparent;
  color:var(--slate-700);
  padding:.95rem 1.7rem;
  border-radius:12px;
  font-family:'Poppins',sans-serif;
  font-weight:600;
  font-size:1rem;
  text-decoration:none;
  border:1.5px solid var(--slate-300);
  transition:all .2s ease;
  animation:heroBtnIn 0.6s ease-out 0.85s forwards;
  opacity:0;transform:translateY(20px);
}
.hero-cta-secondary:hover{
  border-color:var(--blue-400);
  color:var(--blue-500);
  background:rgba(59,130,246,.04);
}

/* Footer */
.footer-full{
  background:var(--slate-900);
  color:#cbd5e1;
  padding:4rem 1.75rem 2rem;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-grid{
  max-width:1180px;margin:0 auto;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:2.5rem 2rem;
  margin-bottom:3rem;
  justify-items:start;
}
.footer-brand{grid-column:span 1}
.footer-brand .brand--footer{margin-bottom:1rem}
.footer-brand>p{font-size:.95rem;color:#94a3b8;line-height:1.7;margin-bottom:1.25rem}
.footer-contact-info{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.footer-contact-info>div{display:flex;align-items:center;gap:.6rem}
.footer-contact-info span,.footer-contact-info a{font-size:.85rem;color:var(--slate-400);text-decoration:none;transition:color .2s}
.footer-contact-info a:hover{color:#3b82f6}
.footer-socials{display:flex;gap:.75rem}
.footer-socials a{
  width:36px;height:36px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);
  color:#cbd5e1;
  transition:background .2s ease,color .2s ease;
}
.footer-socials a:hover{background:rgba(255,255,255,.15);color:#fff}
.footer-col h4{
  font-family:'Poppins',sans-serif;
  font-size:.85rem;font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#f8fafc;
  margin-bottom:1rem;
}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.45rem}
.footer-col a{color:#94a3b8;text-decoration:none;font-size:.92rem}
.footer-col a:hover{color:#fff}
.footer-badges{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.25rem}
.footer-badge{
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.75rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;
  color:#94a3b8;
  background:rgba(255,255,255,.08);
  padding:.35rem .55rem;border-radius:8px;
}
.brand{font-family:'Poppins',sans-serif;font-weight:800;letter-spacing:-0.04em;font-size:1.6rem;display:inline-flex;align-items:center}
.b-1{color:#e2e8f0}.b-2{color:#3b82f6}.b-3{color:#e2e8f0}

/* Back to top */
.back-to-top{
  position:fixed;bottom:1.75rem;left:1.75rem;
  width:50px;height:50px;border-radius:50%;
  background:#fff;
  color:var(--slate-700);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  z-index:200;
  cursor:pointer;
  border:none;
  opacity:0;visibility:hidden;
  transform:translateY(10px);
  transition:opacity .3s ease,transform .3s ease,visibility .3s ease,box-shadow .25s;
}
.back-to-top.visible{
  opacity:1;visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{
  box-shadow:0 6px 16px rgba(0,0,0,.2);
  transform:translateY(-2px);
}
.back-to-top svg{
  width:22px;height:22px;
}
@media(max-width:680px){
  .back-to-top{width:44px;height:44px;bottom:1.25rem;left:1.25rem}
  .back-to-top svg{width:20px;height:20px}
}

/* Modals */
.modal-overlay{
  position:fixed;inset:0;z-index:150;
  background:rgba(15,23,42,.55);
  display:flex;align-items:center;justify-content:center;
  padding:1rem;
  opacity:0;pointer-events:none;
  transition:opacity .3s ease;
}
.modal-overlay.open{opacity:1;pointer-events:auto}
.modal-box{
  background:#fff;border-radius:20px;
  max-width:600px;width:100%;
  max-height:80vh;overflow-y:auto;
  padding:2rem;
  position:relative;
}
.modal-close{
  position:absolute;top:1rem;right:1rem;
  width:36px;height:36px;border-radius:50%;
  background:var(--slate-100);border:none;
  color:var(--slate-600);font-size:1.5rem;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.modal-close:hover{background:var(--slate-200);color:var(--slate-900)}
.modal-box h2{margin-bottom:1rem;color:var(--slate-900)}
.modal-box p{color:var(--slate-600);line-height:1.7}

/* Responsive */
@media(max-width:980px){
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .footer-full{
    padding:2.25rem 1.25rem 1.5rem;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:1.25rem;
    margin-bottom:1.75rem;
    justify-items:stretch;
    text-align:left;
  }
  .footer-brand,
  .footer-col{
    text-align:left!important;
    width:100%;
    margin-left:0!important;
    margin-right:0!important;
    padding-top:.35rem;
  }
  .footer-brand>p{margin-bottom:.85rem}
  .footer-contact-info{margin-top:.75rem}
  .footer-col h3,
  .footer-col h4{
    margin-bottom:.5rem;
  }
  .footer-col ul{gap:.3rem}
  .footer-col a{font-size:.88rem;line-height:1.45}
}
@media(max-width:680px){
  .section{padding:3.5rem 1.1rem}
  .cta-section{padding:2.5rem 1.1rem 4rem}
  .cta-box{padding:3rem 1.25rem}
}
@media(max-width:420px){
}

/* TIMELINE */
.timeline-wrap{position:relative;max-width:700px;margin:0 auto}
.timeline-track{
  position:absolute;left:50%;transform:translateX(-50%);
  top:0;bottom:0;width:2px;
  background:rgba(59,130,246,.12);
  z-index:0;
}
.timeline-fill{
  position:absolute;left:50%;transform:translateX(-50%);
  top:0;width:2px;height:0%;
  background:var(--blue-500);
  box-shadow:0 0 8px rgba(11,27,54,.40);
  z-index:1;
  will-change:height;
  transition:none;
}
.timeline-steps{position:relative;z-index:2}
.timeline-step{
  display:grid;grid-template-columns:1fr 40px 1fr;
  gap:1.5rem;align-items:center;
  padding:1.5rem 0;
}
.timeline-step-spacer{}
.timeline-node{
  width:16px;height:16px;border-radius:50%;
  background:rgba(59,130,246,.15);
  border:2px solid rgba(59,130,246,.3);
  transition:background .3s,border-color .3s,box-shadow .3s;
  justify-self:center;
}
.timeline-node.active{
  background:var(--blue-500);
  border-color:var(--blue-500);
  box-shadow:0 0 0 4px rgba(11,27,54,.28),0 0 12px rgba(11,27,54,.40);
}
.timeline-step-content{
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--slate-200);
  border-radius:20px;
  padding:1.75rem;
  opacity:.4;
  transform:translateY(8px);
  transition:opacity .4s ease,transform .4s ease,border-color .3s,box-shadow .3s;
}
.timeline-step-content.active{
  opacity:1;transform:translateY(0);
  border-color:#93c5fd;
  box-shadow:0 8px 30px rgba(59,130,246,.08);
}
.timeline-step-content h3{font-size:1.1rem;font-weight:700;color:var(--slate-900);margin-bottom:.4rem;letter-spacing:-0.02em}
.timeline-step-content p{font-size:.92rem;color:var(--slate-600);line-height:1.7;margin:0}
.timeline-step-num{font-family:'Poppins',sans-serif;font-size:2rem;font-weight:700;color:var(--blue-500);line-height:1;margin-bottom:.5rem}
.timeline-left{text-align:right}
.timeline-right{text-align:left}
@media(max-width:680px){
  .timeline-track,.timeline-fill{left:1.5rem;transform:none}
  .timeline-step{grid-template-columns:32px 1fr;gap:1rem}
  .timeline-step .timeline-step-spacer{display:none}
  .timeline-left{text-align:left}
  .timeline-step .timeline-node{grid-column:1;grid-row:1;justify-self:center}
  .timeline-step .timeline-step-content{grid-column:2;grid-row:1;min-width:0}
}
@media(max-width:680px){
  #garantia .garantia-card{flex-direction:column;text-align:center;padding:1.35rem 1.2rem}
}

@media(max-width:768px){
  .hero-title{font-size:clamp(2.2rem,8vw,3.2rem)}
  .hero-sub{font-size:1rem;white-space:normal}
  .hero-cta-btn{font-size:.9rem;padding:.78rem 1.35rem}
  .pain-grid{grid-template-columns:1fr}
  .metrics-bar{grid-template-columns:repeat(2,1fr)}
  .calc-card{padding:1.35rem .95rem}
  .calc-result{grid-template-columns:1fr!important}
  .calc-result-num{font-size:2rem}
  .testimonial-card{width:220px}
  .timeline-wrap{padding:0 .5rem}
  .timeline-step{grid-template-columns:32px 1fr;gap:.75rem}
  .timeline-step .timeline-step-spacer{display:none}
  .timeline-left{text-align:left}
  .timeline-step .timeline-node{grid-column:1;grid-row:1;justify-self:center}
  .timeline-step .timeline-step-content{grid-column:2;grid-row:1;min-width:0}
  .cta-box{padding:2.75rem 1.1rem}
  .cta-box h2{font-size:1.5rem}
  #sobre-mi .container>div{grid-template-columns:1fr!important;gap:2rem!important}
  .about-photo{width:100%!important;height:200px!important}
  .caso-card{padding:1.25rem}
  .caso-metrics{grid-template-columns:repeat(3,1fr)}
  .faq-btn{font-size:.88rem;padding:.92rem 1rem}
  .wa-fab{width:50px;height:50px;bottom:18px;right:18px}
  .back-to-top{width:42px;height:42px;bottom:18px;left:18px}
}

@media(max-width:480px){
  .section{padding:3rem .9rem}
  .metric-num{font-size:22px}
  .caso-metrics{grid-template-columns:repeat(3,1fr)}
  .caso-metric-num{font-size:.86rem}
  .modal-box{padding:1.25rem}
}

/* Legal modals (override fondo blanco de .modal-box) */
.modal-box.modal-box--legal{
  background-color:#101318;
  background-image:linear-gradient(135deg,#0B0F14 0%,#101318 100%);
  background-attachment:local;
  border:1px solid rgba(59,130,246,.22);
}
#modalLegal.modal-overlay.open,
#modalPrivacidad.modal-overlay.open,
#modalCookies.modal-overlay.open,
#modalTerminos.modal-overlay.open{
  background:rgba(15,23,42,.62);
}
.modal-box.modal-box--legal h2{color:#fff}
.modal-box.modal-box--legal h3{color:rgba(255,255,255,.92)}
.modal-box.modal-box--legal p,
.modal-box.modal-box--legal li{color:rgba(255,255,255,.65)}
.modal-box.modal-box--legal .modal-close{
  background:#101318;
  color:rgba(255,255,255,.75);
}
.modal-box.modal-box--legal .modal-close:hover{color:#fff}
