:root{
  --blue-950:#061a33;
  --blue-900:#08244a;
  --blue-800:#0a3470;
  --blue-700:#0c4da2;
  --blue-600:#1467d8;
  --blue-500:#2d7df0;
  --blue-100:#eaf3ff;
  --ink:#0b1830;
  --muted:#5d6b82;
  --line:#dbe6f4;
  --white:#ffffff;
  --surface:#f6f9fe;
  --shadow:0 20px 50px rgba(8,36,74,.12);
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
button{cursor:pointer}

.container{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(219,230,244,.8);
}
.nav{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:900;
  letter-spacing:.06em;
}
.brand-logo{
  width:auto;
  height:46px;
  display:block;
  object-fit:contain;
}
.brand-mark{
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:white;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.3) 49% 51%, transparent 52%),
    linear-gradient(var(--blue-600),var(--blue-800));
  box-shadow:0 10px 22px rgba(20,103,216,.24);
  border:2px solid rgba(255,255,255,.4);
}
.brand small{
  display:block;
  font-weight:650;
  letter-spacing:.02em;
  color:var(--muted);
  font-size:.69rem;
  margin-top:-2px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  font-weight:700;
  color:#34435a;
}
.nav-links a{position:relative}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:3px;
  border-radius:10px;
  background:var(--blue-600);
  transition:.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after{width:100%}
.menu-btn{
  display:none;
  border:0;
  background:var(--blue-100);
  color:var(--blue-800);
  width:44px;
  height:44px;
  border-radius:14px;
  font-size:1.25rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  padding:0 20px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  transition:.22s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
  background:linear-gradient(135deg,var(--blue-600),var(--blue-800));
  color:white;
  box-shadow:0 14px 30px rgba(20,103,216,.24);
}
.btn-secondary{
  background:white;
  color:var(--blue-800);
  border-color:var(--line);
}
.btn-ghost{
  background:transparent;
  color:var(--blue-800);
  border-color:rgba(255,255,255,.3);
}

.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 76px;
  background:
    radial-gradient(circle at 85% 15%, rgba(45,125,240,.18), transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,#fff 100%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:auto -8% -55% auto;
  width:620px;
  aspect-ratio:1;
  border:2px solid rgba(20,103,216,.1);
  border-radius:50%;
  box-shadow:inset 0 0 0 65px rgba(20,103,216,.025);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:56px;
  align-items:center;
}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:var(--blue-100);
  color:var(--blue-800);
  font-size:.8rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kicker::before{
  content:"";
  width:8px;
  height:8px;
  background:var(--blue-600);
  border-radius:50%;
}
.hero h1{
  font-size:clamp(3rem,6vw,5.9rem);
  line-height:.94;
  letter-spacing:-.06em;
  margin:24px 0 22px;
  max-width:860px;
}
.hero h1 span{color:var(--blue-600)}
.hero-copy{
  max-width:650px;
  font-size:1.13rem;
  color:var(--muted);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:31px}
.hero-note{margin-top:18px;color:#718096;font-size:.9rem}

.hero-card{
  position:relative;
  min-height:500px;
  border-radius:34px;
  background:linear-gradient(155deg,var(--blue-900),var(--blue-700));
  box-shadow:var(--shadow);
  padding:26px;
  overflow:hidden;
  color:white;
}
.pitch{
  position:absolute;
  inset:22px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:24px;
}
.pitch::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  border-left:1px solid rgba(255,255,255,.18);
}
.pitch::after{
  content:"";
  position:absolute;
  width:145px;
  height:145px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.tactic-card{
  position:absolute;
  background:rgba(255,255,255,.94);
  color:var(--ink);
  border-radius:20px;
  padding:18px;
  box-shadow:0 20px 35px rgba(0,0,0,.18);
  width:235px;
}
.tactic-card strong{display:block;font-size:1.05rem}
.tactic-card p{margin:5px 0 0;color:var(--muted);font-size:.87rem}
.tc-1{top:48px;left:46px;transform:rotate(-4deg)}
.tc-2{right:38px;top:190px;transform:rotate(4deg)}
.tc-3{left:72px;bottom:50px;transform:rotate(-2deg)}
.ball{
  position:absolute;
  right:55px;
  bottom:48px;
  width:54px;
  height:54px;
  border-radius:50%;
  background:white;
  color:var(--blue-900);
  display:grid;
  place-items:center;
  font-size:1.45rem;
  box-shadow:0 12px 24px rgba(0,0,0,.22);
}

.logo-strip{
  padding:24px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.logo-strip-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px 18px;
}
.logo-chip{
  padding:10px 15px;
  border-radius:999px;
  background:white;
  border:1px solid var(--line);
  color:#41506a;
  font-weight:800;
  font-size:.88rem;
}

.section{padding:92px 0}
.section.alt{background:var(--surface)}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:40px;
}
.section-head h2{
  margin:10px 0 0;
  font-size:clamp(2.1rem,4vw,3.8rem);
  line-height:1;
  letter-spacing:-.045em;
}
.section-head p{max-width:580px;color:var(--muted);margin:0}

.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.service-card{
  position:relative;
  min-height:260px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  overflow:hidden;
  transition:.25s ease;
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  border-color:#bdd4f6;
}
.service-number{
  color:var(--blue-600);
  font-weight:950;
  font-size:.82rem;
  letter-spacing:.1em;
}
.service-card h3{font-size:1.45rem;margin:38px 0 10px}
.service-card p{margin:0;color:var(--muted)}
.service-card::after{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  border:18px solid var(--blue-100);
  border-radius:50%;
  right:-35px;
  bottom:-35px;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.process-step{
  padding:28px;
  border-radius:var(--radius);
  background:var(--blue-950);
  color:white;
}
.process-step:nth-child(2){background:var(--blue-800)}
.process-step:nth-child(3){background:var(--blue-600)}
.process-step span{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  background:rgba(255,255,255,.14);
  border-radius:50%;
  font-weight:900;
}
.process-step h3{font-size:1.42rem;margin:28px 0 8px}
.process-step p{color:rgba(255,255,255,.74);margin:0}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:30px;
}
.stat{
  border-left:4px solid var(--blue-600);
  padding:8px 0 8px 18px;
}
.stat strong{display:block;font-size:2rem;letter-spacing:-.04em}
.stat span{color:var(--muted)}

.cta{
  position:relative;
  overflow:hidden;
  padding:60px;
  border-radius:34px;
  color:white;
  background:linear-gradient(135deg,var(--blue-950),var(--blue-700));
}
.cta::after{
  content:"";
  position:absolute;
  width:330px;
  height:330px;
  border:65px solid rgba(255,255,255,.06);
  border-radius:50%;
  right:-120px;
  top:-130px;
}
.cta h2{
  position:relative;
  z-index:1;
  margin:0 0 14px;
  font-size:clamp(2.2rem,5vw,4.2rem);
  line-height:1;
  letter-spacing:-.05em;
  max-width:760px;
}
.cta p{position:relative;z-index:1;color:rgba(255,255,255,.74);max-width:620px}
.cta .hero-actions{position:relative;z-index:1}

.page-hero{
  padding:78px 0 54px;
  background:
    radial-gradient(circle at 85% 10%,rgba(45,125,240,.18),transparent 25%),
    var(--surface);
  border-bottom:1px solid var(--line);
}
.page-hero h1{
  margin:16px 0;
  font-size:clamp(2.8rem,6vw,5.5rem);
  line-height:.96;
  letter-spacing:-.055em;
}
.page-hero p{max-width:700px;color:var(--muted);font-size:1.08rem}

.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:30px;
}
.filter-btn{
  border:1px solid var(--line);
  background:white;
  color:#40506a;
  padding:11px 16px;
  border-radius:999px;
  font-weight:850;
}
.filter-btn.active{
  background:var(--blue-700);
  color:white;
  border-color:var(--blue-700);
}
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.project-card{
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:white;
  transition:.24s ease;
}
.project-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.project-cover{
  min-height:210px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:white;
  background:
    linear-gradient(135deg,rgba(6,26,51,.25),rgba(6,26,51,.05)),
    linear-gradient(135deg,var(--blue-800),var(--blue-500));
}
.project-card:nth-child(3n+2) .project-cover{
  background:linear-gradient(135deg,#0b325d,#19a1b8);
}
.project-card:nth-child(3n+3) .project-cover{
  background:linear-gradient(135deg,#15224d,#6f63e8);
}
.project-initials{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  border-radius:18px;
  font-weight:950;
  font-size:1.2rem;
  backdrop-filter:blur(8px);
}
.project-tag{font-size:.78rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.project-body{padding:22px}
.project-body h3{margin:0 0 8px;font-size:1.25rem}
.project-body p{margin:0;color:var(--muted);font-size:.94rem}
.project-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:18px;
  color:var(--blue-700);
  font-size:.83rem;
  font-weight:900;
}

.contact-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:28px;
  align-items:start;
}
.contact-panel{
  padding:34px;
  border-radius:28px;
  background:linear-gradient(155deg,var(--blue-950),var(--blue-700));
  color:white;
}
.contact-panel h2{font-size:2.25rem;line-height:1;margin:0 0 14px}
.contact-panel p{color:rgba(255,255,255,.72)}
.contact-list{display:grid;gap:12px;margin-top:26px}
.contact-item{
  padding:15px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
}
.contact-item small{display:block;color:rgba(255,255,255,.62);margin-bottom:3px}
.contact-form{
  padding:34px;
  border-radius:28px;
  border:1px solid var(--line);
  background:white;
  box-shadow:var(--shadow);
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.field{display:grid;gap:7px}
.field.full{grid-column:1/-1}
label{font-weight:800;font-size:.9rem}
input,textarea,select{
  width:100%;
  border:1px solid #cedbed;
  border-radius:13px;
  padding:13px 14px;
  color:var(--ink);
  background:#fbfdff;
  outline:none;
}
input:focus,textarea:focus,select:focus{
  border-color:var(--blue-500);
  box-shadow:0 0 0 4px rgba(45,125,240,.12);
}
textarea{min-height:145px;resize:vertical}
.form-note{color:var(--muted);font-size:.82rem;margin:12px 0 0}

.site-footer{
  padding:40px 0;
  background:var(--blue-950);
  color:white;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:center;
}
.footer-links{display:flex;flex-wrap:wrap;gap:18px;color:rgba(255,255,255,.72)}
.footer-note{color:rgba(255,255,255,.56);font-size:.85rem;margin-top:6px}

.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:60;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#20c765;
  color:white;
  font-weight:950;
  box-shadow:0 16px 30px rgba(0,0,0,.22);
  transition:.2s ease;
}
.whatsapp-float:hover{transform:translateY(-4px) scale(1.03)}

.modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(5,17,34,.72);
}
.modal.open{display:grid}
.modal-card{
  width:min(660px,100%);
  max-height:85vh;
  overflow:auto;
  border-radius:26px;
  background:white;
  padding:30px;
  box-shadow:0 30px 80px rgba(0,0,0,.3);
}
.modal-close{
  float:right;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid var(--line);
  background:white;
}
.modal-card h2{font-size:2rem;margin:18px 0 10px}
.modal-card p{color:var(--muted)}
.modal-services{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.modal-services span{
  background:var(--blue-100);
  color:var(--blue-800);
  padding:8px 11px;
  border-radius:999px;
  font-weight:850;
  font-size:.82rem;
}

@media (max-width:960px){
  .hero-grid,.contact-grid{grid-template-columns:1fr}
  .hero-card{min-height:430px}
  .service-grid,.portfolio-grid{grid-template-columns:repeat(2,1fr)}
  .process-grid{grid-template-columns:1fr}
  .section-head{align-items:start;flex-direction:column}
}
@media (max-width:720px){
  .container{width:min(100% - 28px,1180px)}
  .nav-links{
    position:absolute;
    top:74px;
    left:14px;
    right:14px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:18px;
    background:white;
    box-shadow:var(--shadow);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:12px}
  .nav-links a::after{display:none}
  .nav .btn{display:none}
  .menu-btn{display:block}
  .hero{padding-top:62px}
  .hero h1{font-size:clamp(3rem,16vw,4.7rem)}
  .hero-card{min-height:390px}
  .tactic-card{width:190px;padding:14px}
  .tc-1{left:25px}
  .tc-2{right:20px}
  .tc-3{left:38px}
  .service-grid,.portfolio-grid,.stats{grid-template-columns:1fr}
  .section{padding:68px 0}
  .cta{padding:38px 26px}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .footer-grid{align-items:flex-start;flex-direction:column}
}


/* QUIÉNES SOMOS */
.about-page-hero{background:radial-gradient(circle at 88% 15%,rgba(45,125,240,.2),transparent 26%),linear-gradient(180deg,#f4f8ff 0%,#fff 100%)}
.founder-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:64px;align-items:center}
.founder-photo-wrap{position:relative}
.founder-photo-placeholder,.founder-photo{width:100%;min-height:590px;border-radius:32px;overflow:hidden}
.founder-photo{object-fit:cover;object-position:center;box-shadow:var(--shadow)}
.founder-photo-placeholder{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:42px;text-align:center;color:white;background:linear-gradient(145deg,rgba(6,26,51,.18),rgba(6,26,51,.05)),linear-gradient(145deg,var(--blue-950),var(--blue-600));border:1px solid rgba(255,255,255,.18);box-shadow:var(--shadow)}
.founder-photo-placeholder::before,.founder-photo-placeholder::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.15);border-radius:50%}
.founder-photo-placeholder::before{width:260px;height:260px}.founder-photo-placeholder::after{width:390px;height:390px}
.photo-placeholder-icon,.founder-photo-placeholder strong,.founder-photo-placeholder span{position:relative;z-index:1}
.photo-placeholder-icon{width:84px;height:84px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);font-size:2.6rem}
.founder-photo-placeholder strong{font-size:1.35rem}.founder-photo-placeholder span{max-width:260px;color:rgba(255,255,255,.7);font-size:.9rem}
.founder-caption{position:absolute;right:-20px;bottom:32px;min-width:235px;padding:18px 20px;border-radius:18px;background:white;border:1px solid var(--line);box-shadow:var(--shadow)}
.founder-caption span{display:block;color:var(--blue-600);font-size:.77rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.founder-caption strong{display:block;margin-top:4px;font-size:1.15rem}
.founder-copy h2{margin:18px 0 24px;max-width:680px;font-size:clamp(2.25rem,4.8vw,4.35rem);line-height:1;letter-spacing:-.05em}.founder-copy p{color:var(--muted);font-size:1.04rem;max-width:720px}
.signature-line{display:flex;flex-direction:column;margin-top:28px;padding-left:18px;border-left:4px solid var(--blue-600)}.signature-line span{font-size:1.5rem;font-weight:900;font-style:italic}.signature-line small{color:var(--muted)}
.values-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.value-card{min-height:235px;padding:28px;border-radius:24px;border:1px solid var(--line);background:white}.value-card span{color:var(--blue-600);font-weight:950;letter-spacing:.08em}.value-card h3{margin:36px 0 10px;font-size:1.35rem}.value-card p{margin:0;color:var(--muted)}
.about-story-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.about-story-card,.about-highlight{padding:38px;border-radius:30px}.about-story-card{border:1px solid var(--line);background:white}.about-story-card h2{margin:17px 0;font-size:clamp(2.2rem,4vw,3.7rem);line-height:1;letter-spacing:-.045em}.about-story-card p{color:var(--muted);font-size:1.03rem}
.about-highlight{display:flex;flex-direction:column;justify-content:center;color:white;background:linear-gradient(145deg,var(--blue-950),var(--blue-700))}.about-highlight-number{font-size:clamp(4rem,8vw,7rem);line-height:.9;font-weight:950;letter-spacing:-.07em}.about-highlight strong{margin-top:16px;font-size:1.25rem}.about-highlight p{color:rgba(255,255,255,.7)}.about-highlight .btn{align-self:flex-start;margin-top:14px}
.home-about{background:radial-gradient(circle at 15% 50%,rgba(45,125,240,.1),transparent 24%),white}.home-about-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:42px;align-items:center;padding:34px;border:1px solid var(--line);border-radius:30px;background:var(--surface)}
.home-about-photo{min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:24px;color:white;background:linear-gradient(145deg,var(--blue-950),var(--blue-600))}.home-about-initials{width:104px;height:104px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);font-size:2rem;font-weight:950}.home-about-photo span{color:rgba(255,255,255,.68);font-size:.82rem}
.home-about-grid h2{margin:16px 0;font-size:clamp(2rem,4vw,3.4rem);line-height:1;letter-spacing:-.045em}.home-about-grid p{max-width:650px;color:var(--muted);font-size:1.03rem}
@media (max-width:960px){.founder-grid,.about-story-grid,.home-about-grid{grid-template-columns:1fr}.founder-photo-placeholder,.founder-photo{min-height:520px}.founder-caption{right:18px}}
@media (max-width:720px){.values-grid{grid-template-columns:1fr}.founder-grid{gap:38px}.founder-photo-placeholder,.founder-photo{min-height:430px}.founder-caption{position:relative;right:auto;bottom:auto;margin:-32px 18px 0}.about-story-card,.about-highlight{padding:28px}.home-about-grid{padding:20px}}


/* FICHAS DETALLADAS DE CLIENTES */
.project-card{
  cursor:pointer;
}
.project-card:focus-visible{
  outline:4px solid rgba(45,125,240,.22);
  outline-offset:4px;
}
.project-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.project-status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}
.project-status-actual{color:#087a45}
.project-status-anterior{color:#6b7280}

.project-modal{
  align-items:center;
  overflow-y:auto;
}
.project-modal-card{
  width:min(1080px,100%);
  padding:0;
  overflow:hidden;
  max-height:92vh;
}
.project-modal-header{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:20px;
  padding:30px 72px 28px 34px;
  color:white;
  background:
    radial-gradient(circle at 88% 10%,rgba(255,255,255,.15),transparent 24%),
    linear-gradient(135deg,var(--blue-950),var(--blue-700));
}
.project-modal-card .modal-close{
  position:absolute;
  top:22px;
  right:22px;
  z-index:2;
  color:white;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.22);
}
.modal-brand-mark{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.2);
  font-size:1.35rem;
  font-weight:950;
}
.project-modal-sector{
  color:rgba(255,255,255,.68);
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.project-modal-card h2{
  margin:5px 0 10px;
  color:white;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1;
  letter-spacing:-.045em;
}
.project-modal-status-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}
.project-modal-status,
.project-modal-period{
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:0 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:850;
}
.project-modal-status{
  background:white;
}
.project-modal-status.status-actual{color:#087a45}
.project-modal-status.status-anterior{color:#5f6673}
.project-modal-period{
  color:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);
}
.project-modal-layout{
  display:grid;
  grid-template-columns:1.55fr .75fr;
  gap:0;
}
.project-modal-main{
  padding:34px;
  overflow:auto;
}
.project-modal-aside{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:28px;
  background:var(--surface);
  border-left:1px solid var(--line);
}
.project-modal-section + .project-modal-section{
  margin-top:34px;
  padding-top:30px;
  border-top:1px solid var(--line);
}
.modal-section-label{
  display:block;
  margin-bottom:12px;
  color:var(--blue-700);
  font-size:.76rem;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.project-modal-description{
  margin:0;
  color:#34435a!important;
  font-size:1.05rem;
  line-height:1.7;
}
.project-work-list{
  display:grid;
  gap:11px;
  margin:0;
  padding:0;
  list-style:none;
}
.project-work-list li{
  position:relative;
  padding:13px 14px 13px 42px;
  border:1px solid var(--line);
  border-radius:14px;
  color:#34435a;
  background:white;
}
.project-work-list li::before{
  content:"✓";
  position:absolute;
  left:14px;
  top:12px;
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:var(--blue-600);
  font-size:.72rem;
  font-weight:950;
}
.project-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.project-gallery-item{
  min-height:155px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:16px;
  overflow:hidden;
  border-radius:18px;
  color:white;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.16),transparent 24%),
    linear-gradient(145deg,var(--blue-900),var(--blue-500));
}
.project-gallery-item:nth-child(2){background:linear-gradient(145deg,#0a335c,#14a2b8)}
.project-gallery-item:nth-child(3){background:linear-gradient(145deg,#17254c,#7568e7)}
.project-gallery-item span{
  margin-bottom:auto;
  color:rgba(255,255,255,.55);
  font-size:.76rem;
  font-weight:900;
}
.project-gallery-item strong{font-size:.94rem}
.project-gallery-item small{color:rgba(255,255,255,.65)}
.project-gallery-note{
  margin:10px 0 0!important;
  color:var(--muted)!important;
  font-size:.78rem;
}
.project-info-box{
  padding:19px;
  border:1px solid var(--line);
  border-radius:18px;
  background:white;
}
.project-info-box p{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}
.project-info-box .modal-services{
  margin-top:0;
}
.project-socials{
  display:grid;
  gap:9px;
}
.project-social-link{
  display:grid;
  grid-template-columns:1fr auto;
  gap:1px 12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:13px;
  transition:.2s ease;
}
.project-social-link:hover{
  border-color:#b9d0f3;
  transform:translateY(-2px);
}
.project-social-link span{
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
}
.project-social-link strong{
  grid-column:1;
  color:var(--blue-800);
  font-size:.87rem;
}
.project-social-link b{
  grid-column:2;
  grid-row:1/3;
  color:var(--blue-600);
}
.project-social-placeholder{
  display:grid;
  gap:5px;
  padding:12px;
  border:1px dashed #b9c9df;
  border-radius:13px;
}
.project-social-placeholder strong{
  font-size:.87rem;
}
.project-social-placeholder span{
  color:var(--muted);
  font-size:.76rem;
}
.project-contact-btn{
  width:100%;
  margin-top:auto;
  text-align:center;
}

@media (max-width:900px){
  .project-modal-card{max-height:none}
  .project-modal-layout{grid-template-columns:1fr}
  .project-modal-aside{border-left:0;border-top:1px solid var(--line)}
}
@media (max-width:650px){
  .project-modal{padding:0}
  .project-modal-card{
    min-height:100vh;
    border-radius:0;
  }
  .project-modal-header{
    grid-template-columns:1fr;
    padding:76px 22px 24px;
  }
  .modal-brand-mark{width:58px;height:58px}
  .project-modal-main,
  .project-modal-aside{padding:22px}
  .project-gallery{grid-template-columns:1fr}
  .project-gallery-item{min-height:135px}
}


/* AJUSTE DE SCROLL Y PREVISUALIZACIÓN */
.project-modal{
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:20px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.project-modal.open{
  display:flex;
}
.project-modal-card{
  position:relative;
  margin:auto 0;
  max-height:calc(100dvh - 40px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
.project-modal-main,
.project-modal-aside{
  overflow:visible;
}
.modal-client-logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.project-gallery-item{
  position:relative;
  aspect-ratio:4 / 5;
  min-height:0;
}
.project-gallery-item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.instagram-preview{
  display:grid;
  gap:12px;
  margin-bottom:12px;
}
.instagram-preview .instagram-media{
  border-radius:14px!important;
  overflow:hidden;
}
.instagram-preview-placeholder{
  display:grid;
  gap:6px;
  padding:14px;
  border:1px dashed #b9c9df;
  border-radius:13px;
  background:var(--surface);
}
.instagram-preview-placeholder strong{
  color:var(--ink);
  font-size:.88rem;
}
.instagram-preview-placeholder span{
  color:var(--muted);
  font-size:.77rem;
  line-height:1.45;
}
.instagram-preview-placeholder code{
  padding:2px 5px;
  border-radius:5px;
  background:var(--blue-100);
  color:var(--blue-800);
}
@media (max-width:900px){
  .project-modal-card{
    margin:0;
    max-height:calc(100dvh - 24px);
  }
}
@media (max-width:650px){
  .project-modal{
    padding:0;
  }
  .project-modal-card{
    width:100%;
    min-height:100dvh;
    max-height:100dvh;
    margin:0;
    border-radius:0;
  }
}


/* CORRECCIÓN DEFINITIVA DEL SCROLL DE LAS FICHAS */
.project-modal{
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:20px;
}

.project-modal-card{
  width:min(1080px, 100%);
  height:min(860px, calc(100dvh - 40px));
  max-height:none;
  margin:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.project-modal-header{
  flex:0 0 auto;
}

.project-modal-layout{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:var(--blue-600) #e8eef7;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}

.project-modal-layout::-webkit-scrollbar{
  width:10px;
}

.project-modal-layout::-webkit-scrollbar-track{
  background:#e8eef7;
}

.project-modal-layout::-webkit-scrollbar-thumb{
  background:var(--blue-600);
  border:2px solid #e8eef7;
  border-radius:999px;
}

.project-modal-main,
.project-modal-aside{
  min-width:0;
}

@media (max-width:900px){
  .project-modal{
    align-items:stretch;
    padding:12px;
  }

  .project-modal-card{
    width:100%;
    height:calc(100dvh - 24px);
  }

  .project-modal-layout{
    display:block;
  }
}

@media (max-width:650px){
  .project-modal{
    padding:0;
  }

  .project-modal-card{
    height:100dvh;
    min-height:0;
    max-height:none;
    border-radius:0;
  }

  .project-modal-layout{
    height:auto;
  }
}
.project-gallery-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:45%;
  padding:16px;
  color:#fff;
  background:linear-gradient(
    to top,
    rgba(6,26,51,.94),
    rgba(6,26,51,.55),
    transparent
  );
}

.project-gallery-caption span{
  color:rgba(255,255,255,.65);
  font-size:.72rem;
  font-weight:900;
}

.project-gallery-caption strong{
  margin-top:3px;
  color:#fff;
  font-size:.95rem;
}

.project-gallery-caption small{
  color:rgba(255,255,255,.7);
}
.project-card-logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}


/* LOGOS UNIFICADOS: TARJETA Y FICHA ABIERTA */
.project-initials,
.modal-brand-mark{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  padding:9px;
  overflow:hidden;
  flex-shrink:0;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  border-radius:18px;
  font-weight:950;
  font-size:1.2rem;
  color:#fff;
  backdrop-filter:blur(8px);
}

.project-card-logo,
.modal-client-logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
}

/* Mantiene centradas las iniciales cuando todavía no hay logo */
.project-initials:not(:has(.project-card-logo)),
.modal-brand-mark:not(:has(.modal-client-logo)){
  padding:0;
}

@media (max-width:650px){
  .project-initials,
  .modal-brand-mark{
    width:58px;
    height:58px;
    padding:8px;
    border-radius:16px;
  }
}


/* PORTFOLIO: INSTAGRAM Y GALERÍAS AUTOMÁTICAS */
.project-instagram-showcase{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:start;
}

.instagram-embed-slot{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.instagram-embed-slot .instagram-media{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
}

.instagram-link-placeholder{
  min-height:330px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px;
  border:1px dashed #abc2e2;
  border-radius:18px;
  background:
    radial-gradient(circle at 80% 15%,rgba(45,125,240,.15),transparent 24%),
    linear-gradient(145deg,#f8fbff,#eaf3ff);
}

.instagram-link-placeholder span{
  margin-bottom:auto;
  color:var(--blue-600);
  font-size:.75rem;
  font-weight:950;
  letter-spacing:.08em;
}

.instagram-link-placeholder strong{
  color:var(--blue-950);
  font-size:1rem;
}

.instagram-link-placeholder small{
  margin-top:6px;
  color:var(--muted);
  line-height:1.45;
}

.project-gallery-item-missing{
  background:
    radial-gradient(circle at 80% 15%,rgba(255,255,255,.14),transparent 24%),
    linear-gradient(145deg,var(--blue-900),var(--blue-600));
}

.project-gallery-path{
  display:block;
  margin-top:6px;
  overflow-wrap:anywhere;
  color:rgba(255,255,255,.7)!important;
  font-size:.67rem!important;
  line-height:1.35;
}

@media (max-width:1050px){
  .project-instagram-showcase{
    grid-template-columns:1fr;
  }

  .instagram-embed-slot{
    width:min(540px,100%);
    margin-inline:auto;
  }

  .instagram-link-placeholder{
    min-height:220px;
  }
}

@media (max-width:650px){
  .project-instagram-showcase{
    grid-template-columns:1fr;
  }

  .instagram-link-placeholder{
    min-height:190px;
  }
}


/* AJUSTES VISUALES FINALES DEL PORTFOLIO */
.project-contact-btn{
  width:100%;
  margin-top:0!important;
  text-align:center;
}

.project-gallery-note,
.instagram-link-placeholder,
.project-social-placeholder,
.project-gallery-path{
  display:none!important;
}

@media (min-width:901px){
  .project-modal-layout{
    align-items:start;
  }

  .project-modal-aside{
    position:sticky;
    top:0;
    align-self:start;
    z-index:2;
  }
}

@media (max-width:900px){
  .project-modal-aside{
    position:static;
  }
}


/* BOTONES VISIBLES SOBRE BLOQUES CTA OSCUROS */
.cta .btn-ghost{
  background:transparent;
  color:#ffffff;
  border-color:rgba(255,255,255,.28);
}

.cta .btn-ghost:hover{
  background:rgba(255,255,255,.08);
  color:#ffffff;
  border-color:rgba(255,255,255,.42);
}

.cta .btn-ghost:visited{
  color:#ffffff;
}


/* FOTOS DEL FUNDADOR */
.home-about-photo{
  min-height:270px;
  overflow:hidden;
  padding:0;
}

.home-about-image{
  width:100%;
  height:100%;
  min-height:270px;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:24px;
}

.founder-photo{
  display:block;
  width:100%;
  min-height:590px;
  object-fit:cover;
  object-position:center;
  border-radius:32px;
  box-shadow:var(--shadow);
}

@media (max-width:960px){
  .home-about-image{
    min-height:340px;
  }

  .founder-photo{
    min-height:520px;
  }
}

@media (max-width:720px){
  .home-about-image{
    min-height:300px;
  }

  .founder-photo{
    min-height:430px;
  }
}
