/* ============================================================
   DESIGN TOKENS  (from Figma · Web-Extech-2026)
   ============================================================ */
:root{
  --dark:#0F1729;
  --orange:#FC6847;
  --yellow:#FDA739;
  --red:#FC3453;
  --white:#FFFFFF;
  --page:#EEF1F5;
  --text:#0F1729;
  --grad: linear-gradient(-45.61deg, #FDA739 22.44%, #FC3453 98.94%);
  --grad-soft: linear-gradient(-45.61deg, #FDA739 0%, #FC3453 100%);
  --shadow-card: 0px 4px 10px rgba(16,16,16,0.10);
  --shadow-soft: 0px 4px 20px rgba(16,16,16,0.10);
  --shadow-process: 0px 10px 20px rgba(79,88,119,0.20);
  --maxw:1440px;
  --pad:120px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
html, body{
  overflow-x:hidden;
  width:100%;
}
body{
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--page);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit;}
img{display:block;max-width:100%;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

.page{
  overflow-x:hidden;
  width:100%;
}
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);width:100%;}

/* Utility: gradient text + gradient button */
.g-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
.btn-primary{
  display:inline-flex;align-items:center;justify-content:center;
  height:52px;padding:14.5px 40px;border-radius:40px;
  background:var(--grad);
  color:#fff;font-weight:600;font-size:16px;white-space:nowrap;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(252,104,71,.35);filter:saturate(1.05);}

/* shared SVG brand gradient holder */
.svg-defs{position:absolute;width:0;height:0;overflow:hidden;}

/* ============================================================
   HEADER  (fixed · transparent over hero → white on scroll)
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;width:100%;z-index:100;
  background:transparent;
  transition:background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header .container{
  height:77px;display:flex;align-items:center;justify-content:space-between;
}
.header-nav{display:flex;align-items:center;gap:42px;}
.nav-links{display:flex;align-items:center;gap:43px;}
.nav-links a{font-size:14px;font-weight:400;color:#fff;transition:color .35s ease;position:relative;display:inline-flex;align-items:center;gap:7px;}
.nav-links a.active{color:var(--orange);}
.nav-links a .caret{width:8px;height:5px;transition:transform .25s ease;}
.nav-links a:hover .caret{transform:translateY(2px);}
.btn-outline{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 24px;border-radius:40px;
  border:1px solid #fff;color:#fff;font-size:14px;font-weight:400;white-space:nowrap;
  transition:background .3s ease,color .3s ease,border-color .3s ease;
}
.btn-outline:hover{background:#fff;color:var(--dark);}

/* scrolled state */
.site-header.scrolled,
.site-header.solid.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.scrolled .nav-links a,
.site-header.solid.scrolled .nav-links a {
  color: #fff;
}
.site-header.scrolled .nav-links a.active,
.site-header.solid.scrolled .nav-links a.active {
  color: var(--orange);
}
.site-header.scrolled .btn-outline,
.site-header.solid.scrolled .btn-outline {
  border-color: #fff;
  color: #fff;
}
.site-header.scrolled .btn-outline:hover,
.site-header.solid.scrolled .btn-outline:hover {
  background: #fff;
  color: var(--dark);
}
.site-header.scrolled .logo-name,
.site-header.solid.scrolled .logo-name {
  color: #fff;
}
.site-header.scrolled .nav-links a .caret path,
.site-header.solid.scrolled .nav-links a .caret path {
  fill: #fff;
}

/* LOGO (rebuilt as vector so it adapts to light/dark) */
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.logo img{height:40px;width:auto;display:block;max-width:100%;object-fit:contain;}
.logo-mark{width:34px;height:34px;flex:none;}
.logo-text{display:flex;flex-direction:column;line-height:1;}
.logo-name{font-size:24px;font-weight:600;letter-spacing:.2px;color:#fff;transition:color .35s ease;}
.logo-sub{font-size:8.5px;font-weight:400;letter-spacing:1.5px;color:#9aa3b2;margin-top:2px;}

/* ============================================================
   HERO
   ============================================================ */
.hero{position:relative;min-height:700px;background:var(--dark);overflow:hidden;display:flex;}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-media img,.hero-media video{width:100%;height:100%;object-fit:cover;}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg, rgba(15,23,41,.88) 0%, rgba(15,23,41,.55) 34%, rgba(15,23,41,.12) 68%, rgba(15,23,41,0) 100%);
}
.hero-glow{position:absolute;z-index:1;left:40px;top:150px;width:430px;height:260px;border-radius:50%;
  background:radial-gradient(closest-side, rgba(252,104,71,.42), rgba(252,52,83,.10) 60%, transparent 75%);
  filter:blur(28px);pointer-events:none;}
.hero .container{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;padding-top:120px;padding-bottom:90px;}
.hero-content{max-width:620px;display:flex;flex-direction:column;gap:24px;}
.hero-title{font-size:52px;line-height:58px;font-weight:600;color:#fff;}
.hero-title .g-text{display:inline;}
.hero-cta{width:250px;}
/* hero floating scroll/play cue */
.hero-cue{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:3;
  width:52px;height:52px;display:flex;align-items:center;justify-content:center;
  animation:cueBob 2.4s ease-in-out infinite;}
.hero-cue img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease, opacity .3s ease;}
.hero-cue:hover img{transform:scale(1.1);opacity:0.85;}
@keyframes cueBob{0%,100%{transform:translateX(-50%) translateY(0);}50%{transform:translateX(-50%) translateY(7px);}}

/* ============================================================
   PROCESS
   ============================================================ */
.process{padding:48px 0;}
.process-card{
  background:#fff;border-radius:24px;box-shadow:var(--shadow-process);
  padding:70px 152px 77px;max-width:1200px;margin:0 auto;
  position:relative;
}
.process-card::before,
.process-card::after {
  content:"";position:absolute;
  top:20%;bottom:20%;width:1px;
  background:transparent;pointer-events:none;z-index:-1;
}
.process-card::before {
  left:0;
  box-shadow:-20px 0 45px 15px rgba(252, 104, 71, 0.18);
}
.process-card::after {
  right:0;
  box-shadow:20px 0 45px 15px rgba(252, 104, 71, 0.18);
}
.process-head{max-width:530px;margin:0 auto;text-align:center;display:flex;flex-direction:column;gap:24px;}
.process-head h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);}
.process-head p{font-size:14px;line-height:18px;color:var(--dark);max-width:501px;margin:0 auto;}
.process-steps{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:42px;}
.step{display:flex;flex-direction:column;align-items:center;gap:18px;width:150px;text-align:center;position:relative;}
.step.lower{margin-top:36px;}            /* zig-zag offset */
.step.label-top{flex-direction:column-reverse;}
.step.label-top.lower{margin-top:36px;}
.step-arrow{flex:none;display:flex;justify-content:center;align-items:center;opacity:0.85;}
.step-arrow img{width:38px;height:68px;object-fit:contain;}
.step-label{font-size:14px;line-height:18px;color:var(--dark);font-weight:600;}
.step-icon{
  width:100px;height:100px;border-radius:50%;flex:none;
  background:var(--grad);display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 22px rgba(252,104,71,.28);
  transition:transform .3s ease, box-shadow .3s ease;
}
.step-icon svg, .step-icon img{width:100%;height:100%;object-fit:contain;}
.step-icon:hover{transform:scale(1.06);box-shadow:0 14px 30px rgba(252,104,71,.45), 0 0 0 8px rgba(252,104,71,.10);}

/* ============================================================
   SERVICES
   ============================================================ */
.services{padding:40px 0 0;position:relative;}
.page-services{padding-top:100px;}
.section-title{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);text-align:center;}
.services .section-title{margin:40px 0;}
.services .section-title span{background:none;-webkit-background-clip:initial;background-clip:initial;color:#FC3453;}
.services-grid{display:grid;grid-template-columns:repeat(4,276px);gap:32px;justify-content:center;padding:32px 0;}
.svc-card{
  background:#fff;border-radius:24px;box-shadow:var(--shadow-card);overflow:hidden;
  display:flex;flex-direction:column;padding-bottom:24px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(252,104,71,.22), 0 0 0 1px rgba(252,104,71,.18);}
.svc-img{height:140px;width:100%;overflow:hidden;background:#dfe5ec;cursor:pointer;}
.svc-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.svc-card:hover .svc-img img{transform:scale(1.05);}
.svc-body{padding:16px 20px 0;display:flex;flex-direction:column;gap:20px;flex:1;}
.svc-text{display:flex;flex-direction:column;gap:10px;}
.svc-text h3{font-size:20px;font-weight:600;color:var(--dark);}
.svc-text p{font-size:14px;line-height:18px;color:var(--dark);}
.svc-link{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--dark);align-self:flex-start;cursor:pointer;}
.svc-link svg{width:18px;height:14px;}
.svc-link:hover{gap:12px;}
.svc-link span{transition:gap .25s;}

/* ============================================================
   PROJECTS  (carousel)
   ============================================================ */
.projects{
  padding:64px 0;position:relative;overflow:hidden;
  background:url('../img/background-nuestrosproyectos.png') center/cover no-repeat;
}
.proj-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;z-index:0;pointer-events:none;overflow:hidden;}
.proj-blob.a{width:560px;height:330px;left:-180px;top:120px;background:rgba(252,104,71,.14);max-width:100%;}
.proj-blob.b{width:640px;height:430px;right:-200px;bottom:-80px;background:rgba(253,167,57,.14);max-width:100%;}
.projects .section-title{margin-bottom:40px;position:relative;z-index:1;}
.projects .section-title .g-text{
  background:linear-gradient(90deg, #FDA739 0%, #FC3453 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.carousel{max-width:1200px;margin:0 auto;position:relative;z-index:1;}
.carousel-viewport{overflow:hidden;border-radius:24px;}
.carousel-track{display:flex;transition:transform .6s cubic-bezier(.65,.05,.36,1);}
.slide{min-width:100%;}
.banner{
  position:relative;height:593px;border-radius:24px;overflow:hidden;background:#1c2740;
}
.banner-bg{position:absolute;inset:0;z-index:0;}
.banner-bg img{width:100%;height:100%;object-fit:cover;}
.banner-person{position:absolute;right:31px;bottom:0;height:522px;z-index:1;}
.banner-person img{height:100%;width:auto;object-fit:contain;object-position:bottom;}
.banner-filter{position:absolute;inset:0;z-index:2;
  background:linear-gradient(90deg, #0F1729 4%, rgba(15,23,41,.72) 36%, rgba(15,23,41,.30) 58%, rgba(15,23,41,0) 78%);}
.banner-content{position:absolute;left:102px;top:52px;z-index:3;width:557px;color:#fff;display:flex;flex-direction:column;gap:60px;}
.tag-pill{align-self:flex-start;border:1px solid #fff;border-radius:40px;padding:10px 16px;font-size:14px;}
.banner-inner{display:flex;flex-direction:column;gap:42px;}
.banner-copy{display:flex;flex-direction:column;gap:16px;}
.banner-logo{height:48px;}
.banner-logo img{height:100%;width:auto;}
.banner-copy p{font-size:14px;line-height:18px;color:#fff;}
.banner-nav{display:flex;align-items:center;gap:38px;}
.nav-arrows{display:flex;gap:16px;}
.nav-arrow{width:54px;height:54px;border-radius:50%;border:1.5px solid #fff;display:flex;align-items:center;justify-content:center;color:#fff;transition:background .25s,color .25s;}
.nav-arrow:hover{background:#fff;color:var(--dark);}
.nav-arrow svg{width:20px;height:20px;}
.nav-dots{display:flex;gap:8px;}
.dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:background .25s,width .25s;}
.dot.active{background:var(--orange);width:8px;}

/* ============================================================
   CLIENTS  (two infinite marquees)
   ============================================================ */
.clients{padding:40px 0;background:var(--page);}
.clients-head{text-align:center;display:flex;flex-direction:column;gap:24px;align-items:center;padding:24px 0;}
.clients-head p{font-size:14px;line-height:18px;color:var(--dark);max-width:494px;}
.marquees{display:flex;flex-direction:column;gap:24px;padding:40px 0;}
.marquee{overflow:hidden;width:100%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);}
.marquee-track{display:flex;align-items:center;gap:90px;width:max-content;}
.marquee-track img{height:58px;max-width:123px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.62;transition:filter .3s,opacity .3s;}
.marquee-track img:hover{filter:grayscale(0);opacity:1;}
.marquee.ltr .marquee-track{animation:scrollLeft 38s linear infinite;}
.marquee.rtl .marquee-track{animation:scrollRight 38s linear infinite;}
.marquee:hover .marquee-track{animation-play-state:paused;}
@keyframes scrollLeft{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@keyframes scrollRight{from{transform:translateX(-50%);}to{transform:translateX(0);}}

/* ============================================================
   TEAM
   ============================================================ */
.team{padding:72px 0;}
.team .container{display:flex;align-items:center;justify-content:center;gap:50px;}
.team-text{width:488px;display:flex;flex-direction:column;gap:32px;}
.team-text h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);}
.team-text p{font-size:14px;line-height:18px;color:var(--dark);max-width:428px;}
.team-photo-wrap{position:relative;width:662px;height:415px;flex:none;}
.team-glow{position:absolute;border-radius:50%;filter:blur(46px);z-index:0;pointer-events:none;}
.team-glow.g1{width:419px;height:271px;right:-40px;top:-40px;background:rgba(252,104,71,.40);animation:floatA 9s ease-in-out infinite;max-width:100%;}
.team-glow.g2{width:419px;height:153px;left:-40px;bottom:-30px;background:rgba(253,167,57,.38);animation:floatB 11s ease-in-out infinite;max-width:100%;}
@keyframes floatA{0%,100%{transform:translate(0,0);}50%{transform:translate(14px,-12px);}}
@keyframes floatB{0%,100%{transform:translate(0,0);}50%{transform:translate(-12px,10px);}}
.team-photo{position:relative;z-index:1;width:100%;height:100%;border-radius:24px;overflow:hidden;background:#d9d9d9;box-shadow:0 20px 50px rgba(15,23,41,.18);}
.team-photo img{width:100%;height:100%;object-fit:cover;}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages{padding:40px 0 120px;}
.advantages .section-title{margin-bottom:40px;}
.adv-wrap{display:flex;align-items:center;justify-content:center;gap:30px;}
.adv-list{width:584px;display:grid;grid-template-columns:1fr 1fr;column-gap:32px;row-gap:50px;}
.adv-item{display:flex;flex-direction:column;gap:18px;}
.adv-icon{height:44px;display:flex;align-items:flex-end;}
.adv-icon svg,.adv-icon img{height:44px;width:auto;max-width:100%;object-fit:contain;}
.adv-item h3,.adv-item h4{font-size:20px;font-weight:600;color:var(--dark);line-height:1.1;}
.adv-cards{width:584px;padding:10px 71px;display:grid;grid-template-columns:1fr 1fr;gap:40px 47px;}
.adv-card{background:#fff;border-radius:24px;box-shadow:var(--shadow-soft);height:153px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;}
.adv-num{font-size:60px;line-height:48px;font-weight:700;}
.adv-card p{font-size:14px;line-height:18px;color:var(--dark);}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{position:relative;min-height:500px;display:flex;align-items:center;background:#0c1322;overflow:hidden;}
.contact-bg{position:absolute;inset:0;z-index:0;}
.contact-bg img{width:100%;height:100%;object-fit:cover;}
.contact-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(12,19,34,.55),rgba(12,19,34,.35));}
.contact .container{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:100px;padding-top:8px;}
.contact-text{width:513px;color:#fff;display:flex;flex-direction:column;gap:32px;padding:72px 0 0 71px;}
.contact-text h2{font-size:32px;line-height:36px;font-weight:700;}
.contact-text .sub p{font-size:14px;line-height:18px;}
.form-card{
  width:584px;border-radius:24px;background:rgba(255,255,255,.10);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  padding:39px 33px;
}
.contact-form{display:flex;flex-direction:column;gap:20px;}
.form-row{display:flex;gap:20px;}
.field{
  flex:1;min-width:0;height:48px;border-radius:40px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.5);
  padding:10px 20px;font-size:14px;color:#fff;font-family:inherit;
  display:flex;align-items:center;
}
.field::placeholder{color:rgba(255,255,255,.85);}
.field:focus{outline:none;border-color:#fff;background:rgba(255,255,255,.16);}
textarea.field{height:74px;align-items:flex-start;resize:none;padding-top:13px;line-height:18px;}
.select-wrap{position:relative;flex:1;min-width:0;}
select.field{width:100%;appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:42px;}
select.field option{color:#0F1729;}
.select-wrap .caret-ico{position:absolute;right:18px;top:50%;transform:translateY(-50%);pointer-events:none;color:#fff;}
.form-submit{width:100%;justify-content:center;}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:var(--dark);color:#fff;}
.site-footer .container{display:flex;align-items:center;justify-content:space-between;gap:60px;min-height:191px;padding-top:50px;padding-bottom:50px;}
.foot-left{display:flex;flex-direction:column;gap:23px;width:345px;}
.foot-left .logo-sub{color:#9aa3b2;}
.foot-copy{font-size:12px;font-weight:300;color:#fff;}
.foot-cols{display:flex;gap:134px;}
.foot-col h5{font-size:16px;font-weight:600;margin-bottom:12px;}
.foot-col .lines{display:flex;flex-direction:column;gap:7px;}
.foot-col .lines p,.foot-col .lines a{font-size:14px;line-height:18px;color:#fff;}
.foot-col .lines a:hover{color:var(--orange);}
.socials{display:flex;gap:32px;margin-top:17px;}
.socials a{color:#fff;transition:color .25s,transform .25s;}
.socials a:hover{color:var(--orange);transform:translateY(-2px);}
.socials svg{width:20px;height:20px;}

/* floating whatsapp */
.whatsapp-float{position:fixed;right:30px;bottom:28px;z-index:120;width:54px;height:54px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(37,211,102,.45);transition:transform .25s;}
.whatsapp-float:hover{transform:scale(1.08);}
.whatsapp-float img{width:100%;height:100%;object-fit:contain;}

/* reveal animation */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1;transform:none;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1280px){
  :root{--pad:64px;}
  .process-card{padding:60px 64px 64px;}
}
@media (max-width:1100px){
  .services-grid{grid-template-columns:repeat(2,276px);}
  .adv-wrap{flex-direction:column;gap:50px;}
  .adv-list{
    width:100%;max-width:600px;padding-left:0;padding-right:0;
    grid-template-columns:1fr 1fr;column-gap:16px;row-gap:32px;
    justify-items:center;text-align:center;
  }
  .adv-item{align-items:center;}
  .adv-icon{justify-content:center;}
  .adv-cards{width:100%;max-width:600px;padding-left:0;padding-right:0;}
  .team .container{flex-direction:column;}
  .team-text,.team-photo-wrap{width:100%;max-width:620px;}
  .team-photo-wrap{height:auto;aspect-ratio:662/415;}
  .contact .container{flex-direction:column;gap:40px;padding:50px 0;}
  .contact-text,.form-card{width:100%;max-width:584px;padding-left:0;padding-right:0;}
  .contact-text{padding:0;}
  .form-card{padding:30px;}
}
@media (max-width:860px){
  :root{--pad:32px;}
  .nav-links{display:none;}
  .site-header .btn-outline{display:none;} /* Hide desktop button on mobile to prevent squishing the logo */
  .nav-toggle{display:flex;} /* Ensure toggle is visible on mobile */
  .hero-title{font-size:40px;line-height:46px;}
  .proj-intro{padding:140px 0 70px;}
  .proj-intro h1{font-size:38px;line-height:46px;}
  .proj-intro h1 br{display:none;}
  .proj-page .section-title{margin-top:50px;margin-bottom:12px;}
  .case-hero{padding:20px 0 60px;}
  .case-hero h1{font-size:34px;line-height:42px;}
  .back-link{margin-bottom:24px;}
  .case-intro p{font-size:15px;line-height:24px;}
  .case-section .container{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-section.reverse .case-text{
    grid-column: 1;
  }
  .case-section.reverse .case-img{
    grid-column: 1;
    grid-row: auto;
  }
  .case-text{
    max-width: 100%;
  }
  .case-img{
    max-width: 100%;
    height: 320px;
  }
  .challenge-section .container,
  .results-section .container{flex-direction:column-reverse;gap:40px;}
  .challenge-section .case-text,
  .results-section .case-text{text-align:center;align-items:center;max-width:100%;margin-left:0;}
  .process-steps{flex-wrap:wrap;justify-content:center;gap:40px 50px;}
  .step-arrow{display:none;}
  .step.lower,.step.label-top{margin-top:0;}
  .step.label-top{flex-direction:column;}
  .banner-person{opacity:.35;right:-40px;}
  .banner-content{width:auto;right:32px;}
  .foot-cols{flex-direction:column;gap:32px;}
  .site-footer .container{flex-direction:column;align-items:flex-start;gap:36px;}
}
@media (max-width:620px){
  .services-grid{grid-template-columns:repeat(1,minmax(0,320px));}
  .process-card{padding:40px 24px 48px;}
  .hero-title{font-size:32px;line-height:40px;}
  .proj-intro{padding:120px 0 60px;}
  .proj-intro h1{font-size:30px;line-height:38px;}
  .proj-page .section-title{margin-top:40px;margin-bottom:8px;}
  .case-hero{padding:20px 0 50px;}
  .case-hero h1{font-size:28px;line-height:36px;}
  .case-intro p{font-size:14px;line-height:22px;}
  .section-title,.process-head h2,.team-text h2,.contact-text h2{font-size:26px;line-height:32px;}
  .form-row{flex-direction:column;}
  .adv-cards{grid-template-columns:1fr;}
  .banner{height:auto;min-height:560px;}
  .banner-content{position:relative;left:0;top:0;padding:40px 24px;width:100%;}
  .banner-person{display:none;}
}

/* ============================================================
   INNER-PAGE ADDITIONS
   ============================================================ */

/* Inner pages: header is solid white from the start (no dark hero behind) */
.site-header.solid{background:#fff;box-shadow:0 6px 24px rgba(15,23,41,.08);}
.site-header.solid .nav-links a{color:var(--dark);}
.site-header.solid .nav-links a.active{color:var(--orange);}
.site-header.solid .btn-outline{border-color:var(--dark);color:var(--dark);}
.site-header.solid .btn-outline:hover{background:var(--dark);color:#fff;}
.site-header.solid .logo-name{color:var(--dark);}
.site-header.solid .nav-links a .caret path{fill:var(--dark);}
/* page wrapper pushes content below the fixed 77px header (inner pages) */
main.page{padding-top:77px;}
/* home: hero goes edge-to-edge under the transparent header */
body[data-header="transparent"] main.page{padding-top:0;}
/* Barra de administración de WordPress (solo usuarios logueados): baja el header fijo */
body.admin-bar .site-header{top:32px;}
@media screen and (max-width:782px){body.admin-bar .site-header{top:46px;}}

/* ---------- Services dropdown (flyout under "Servicios") ---------- */
.has-dropdown{position:relative;}
.dropdown{
  position:absolute;top:calc(100% + 18px);left:50%;transform:translateX(-50%) translateY(8px);
  width:200px;background:#fff;border-radius:16px;padding:10px;
  box-shadow:0 18px 40px rgba(15,23,41,.16);
  display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;transition:opacity .25s ease, transform .25s ease;z-index:60;
}
.dropdown::before{content:"";position:absolute;top:-16px;left:0;right:0;height:16px;}
.has-dropdown:hover .dropdown,.has-dropdown:focus-within .dropdown{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.dropdown a{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 14px;border-radius:10px;font-size:14px;color:var(--dark);transition:background .2s,color .2s;}
.site-header.scrolled .nav-links .dropdown a,
.site-header.solid.scrolled .nav-links .dropdown a{color:var(--dark);}
.site-header.scrolled .nav-links .dropdown a:hover,
.site-header.solid.scrolled .nav-links .dropdown a:hover{color:var(--orange);}
.dropdown a svg{width:16px;height:14px;opacity:0;transform:translateX(-4px);transition:opacity .2s,transform .2s;color:var(--orange);}
.dropdown a:hover{background:#f5f3ef;color:var(--orange);}
.dropdown a:hover svg{opacity:1;transform:translateX(0);}

/* ---------- Mobile menu ---------- */
.nav-toggle{display:none;width:42px;height:42px;border-radius:10px;align-items:center;justify-content:center;color:#fff;}
.site-header.solid .nav-toggle{color:var(--dark);}
.site-header.scrolled .nav-toggle,.site-header.solid.scrolled .nav-toggle{color:#fff;}
.nav-toggle svg{width:24px;height:24px;}
.mobile-menu{position:fixed;inset:77px 0 auto 0;background:#fff;z-index:90;
  box-shadow:0 20px 40px rgba(15,23,41,.14);padding:14px 32px 26px;
  display:flex;flex-direction:column;gap:4px;transform:translateY(-12px);opacity:0;visibility:hidden;
  transition:opacity .25s ease, transform .25s ease;max-height:calc(100vh - 77px);overflow-y:auto;}
.mobile-menu.open{opacity:1;visibility:visible;transform:none;}
.mobile-menu a{font-size:16px;color:var(--dark);padding:12px 4px;border-bottom:1px solid #eef0f3;}
.mobile-menu a.active{color:var(--orange);}
.mobile-menu .sub{padding-left:16px;font-size:14px;color:#5a6577;}
.mobile-menu .btn-outline{margin-top:14px;border-color:var(--dark);color:var(--dark);align-self:flex-start;}

/* ============================================================
   PAGE HERO BANNER  (Nosotros / Detalle / Services photo banners)
   ============================================================ */
.page-hero{position:relative;height:567px;overflow:hidden;background:var(--dark);}
.page-hero-media{position:absolute;inset:0;z-index:0;}
.page-hero-media img{width:100%;height:100%;object-fit:cover;}
.page-hero-overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(90.7deg, rgba(0,0,0,.82) 12%, rgba(0,0,0,.47) 62%, rgba(0,0,0,0) 96%);}
.page-hero .container{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;}
.page-hero-content{max-width:520px;color:#fff;display:flex;flex-direction:column;gap:24px;}
.page-hero-content h1{font-size:40px;line-height:44px;font-weight:700;}
.page-hero-content p{font-size:14px;line-height:18px;color:rgba(255,255,255,.92);max-width:430px;}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about{background:#fff;padding:80px 0;}
.about .container{display:flex;gap:104px;align-items:flex-start;}
.about-left{width:545px;flex:none;display:flex;flex-direction:column;gap:40px;}
.about-left h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);}
.about-left .body{font-size:14px;line-height:18px;color:var(--dark);display:flex;flex-direction:column;gap:14px;}
.about-right{flex:1;display:flex;flex-direction:column;gap:48px;}
.partner-group{display:flex;flex-direction:column;gap:24px;}
.partner-group >span{font-size:14px;color:var(--dark);}
.partner-logos{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px;width:100%;}
.partner-logos img{flex:1 1 0;min-width:0;height:28px;max-height:28px;width:100%;object-fit:contain;}

.values{background:#fff;padding:48px 0 64px;}
.values h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);text-align:center;margin-bottom:64px;}
.values-row{display:flex;justify-content:center;align-items:flex-start;gap:0;max-width:900px;margin:0 auto;position:relative;}
.value{display:flex;flex-direction:column;align-items:center;gap:18px;width:180px;text-align:center;position:relative;z-index:1;}
.value-icon{width:92px;height:92px;border-radius:50%;background:var(--dark);display:flex;align-items:center;justify-content:center;
  position:relative;transition:transform .3s, box-shadow .3s;}
.value-icon::after{content:"";position:absolute;inset:-6px;border-radius:50%;padding:1.5px;
  background:var(--grad);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;}
.value-icon svg,.value-icon img{width:42px;height:auto;max-height:48px;object-fit:contain;}
.value:hover .value-icon{transform:scale(1.06);box-shadow:0 14px 30px rgba(252,104,71,.32);}
.value span{font-size:20px;font-weight:600;color:var(--dark);}
.values-row::before{content:"";position:absolute;top:46px;left:14%;right:14%;height:0;
  border-top:2px dotted rgba(252,104,71,.55);z-index:0;}

.statement{background:#fff;position:relative;padding:90px 0 70px;overflow:hidden;}
.statement .blob{position:absolute;border-radius:50%;filter:blur(80px);opacity:.5;z-index:0;pointer-events:none;}
.statement .blob.a{width:560px;height:430px;right:-120px;top:-60px;background:rgba(252,104,71,.14);max-width:100%;}
.statement .blob.b{width:368px;height:340px;left:-160px;bottom:-40px;background:rgba(253,167,57,.16);max-width:100%;}
.statement .container{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:32px;text-align:center;}
.statement h2{max-width:1144px;font-weight:800;font-size:32px;line-height:40px;color:var(--dark);text-transform:uppercase;letter-spacing:.3px;}
.statement .q{font-size:20px;font-weight:600;color:var(--dark);}

/* ============================================================
   PROYECTOS (listing) + related cards
   ============================================================ */
.proj-page{background:#fff;}
.proj-intro{
  padding:100px 0 100px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
}
.proj-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.proj-bg-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.proj-trama{
  position:absolute;
  top:0;
  right:0;
  width:250px;
  height:250px;
  object-fit:contain;
  pointer-events:none;
}
.proj-intro .container{
  position:relative;
  z-index:1;
  width:100%;
}
.proj-intro h1{
  font-size:52px;
  line-height:62px;
  font-weight:700;
  color:var(--dark);
  max-width:920px;
  text-align:left;
}
.proj-page .section-title{
  margin-top: 80px;
  margin-bottom: 16px;
}
.proj-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px 32px;padding:48px 0 90px;}
.proj-card{display:flex;flex-direction:column;gap:16px;}
.proj-card-img{height:321px;border-radius:24px;overflow:hidden;background:#dfe5ec;box-shadow:var(--shadow-card);margin-bottom:4px;}
.proj-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.proj-card:hover .proj-card-img img{transform:scale(1.04);}
.proj-card .desc{font-size:16px;line-height:22px;color:#0F1729;font-family:'Montserrat', sans-serif;font-weight:400;}
.proj-card .client{font-size:14px;color:#0F1729;font-family:'Montserrat', sans-serif;font-weight:400;}
.proj-card-link{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#0F1729;font-family:'Montserrat', sans-serif;font-weight:400;align-self:flex-start;margin-top:4px;}
.proj-card-link svg{width:16px;height:14px;}
.proj-card-link:hover{gap:12px;color:var(--orange);}

/* ============================================================
   PROYECTO DETALLE (case study)
   ============================================================ */
.case-hero{position:relative;background:var(--dark);overflow:hidden;color:#fff;padding:20px 0 130px;}
.case-hero-media{position:absolute;inset:0;z-index:0;}
.case-hero-media img{width:100%;height:100%;object-fit:cover;}
.case-hero::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(15,23,41,.85),rgba(15,23,41,.55) 55%,rgba(15,23,41,.2));}
.case-hero .container{position:relative;z-index:2;}
.back-link{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#fff;margin-bottom:48px;opacity:.9;}
.back-link svg{width:14px;height:14px;}
.back-link:hover{opacity:1;gap:12px;}
.case-hero-content{display:flex;flex-direction:column;align-items:flex-start;gap:24px;}
.case-hero-logo img{height:54px;width:auto;display:block;}
.case-hero h1{font-size:48px;line-height:58px;font-weight:700;max-width:760px;margin:0;}
.case-hero h1 .g-highlight{color:#FC3453;}
.case-tag{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.4);
  border-radius:40px;padding:6px 16px;font-size:13px;margin:0;}
.case-intro{background:linear-gradient(90deg, #FC3453 0%, #FDA739 100%);padding:48px 0;text-align:center;}
.case-intro p{font-size:18px;line-height:28px;color:#fff;max-width:1140px;margin:0 auto;font-weight:500;}
.case-section{padding:60px 0;background:#fff;}
.case-section .container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:center;
}
.case-section.reverse .container{
  /* standard grid order, we handle column placement via grid-column */
}
.case-section.reverse .case-text{
  grid-column: 2;
}
.case-section.reverse .case-img{
  grid-column: 1;
  grid-row: 1;
}
.challenge-section .case-pill,
.challenge-section .case-pill,
.solution-section .case-pill,
.results-section .case-pill{
  background:#000;
  color:#FDA739;
}
.challenge-section .case-text,
.results-section .case-text{
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.case-pill{display:inline-block;background:var(--grad);color:#fff;font-size:24px;font-weight:700;
  border-radius:16px;padding:8px 24px;margin-bottom:24px;}
.case-text{
  width:100%;
  max-width:83.33%; /* 5 of 6 sub-columns (83.33% of the 50% grid column) */
}
.case-section:not(.reverse) .case-text {
  justify-self: end; /* Aligns text block to the right of the left column, closer to the center */
}
.case-section.reverse .case-text {
  justify-self: start; /* Aligns text block to the left of the right column, closer to the center */
}
.challenge-section .case-text {
  justify-self: end; /* Aligns El Reto text block to the right of the left column, closer to the center */
}
.results-section .case-text {
  justify-self: end; /* Aligns Los Resultados text block to the right of the left column, closer to the center */
}
.case-text .lead{font-size:20px;font-weight:600;color:var(--dark);line-height:28px;margin-bottom:20px;}
.case-text p{font-size:14px;line-height:22px;color:var(--dark);}
.case-img{
  width:100%;
  max-width:83.33%; /* 5 of 6 sub-columns (83.33% of the 50% grid column) */
  height:420px;
  border-radius:24px;
  overflow:hidden;
  background:#dfe5ec;
  box-shadow:var(--shadow-card);
}
.case-section:not(.reverse) .case-img {
  justify-self: start; /* Aligns image to the left of the right column, closer to the center */
}
.case-section.reverse .case-img {
  justify-self: end; /* Aligns image to the right of the left column, closer to the center */
}
.challenge-section .case-img {
  justify-self: start; /* Aligns El Reto image to the left of the right column, closer to the center */
}
.results-section .case-img {
  justify-self: start; /* Aligns Los Resultados image to the left of the right column, closer to the center */
}
.case-img img{width:100%;height:100%;object-fit:cover;}
.case-related{padding:70px 0 90px;background:#EEF1F5;}
.case-related h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);text-align:center;margin-bottom:48px;}
.case-related .proj-grid{padding:0;max-width:1200px;margin:0 auto;}

/* ============================================================
   CONTACTO page
   ============================================================ */
.contact-hero{position:relative;background:var(--dark);overflow:hidden;color:#fff;min-height:597px;display:flex;align-items:center;}
.contact-hero-media{position:absolute;inset:0;z-index:0;}
.contact-hero-media img{width:100%;height:100%;object-fit:cover;opacity:.5;}
.contact-hero::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(120deg,rgba(12,19,34,.7),rgba(12,19,34,.4));}
.contact-hero .container{position:relative;z-index:2;display:flex;gap:100px;align-items:center;padding-top:90px;padding-bottom:90px;}
.contact-hero-text{width:513px;flex:none;display:flex;flex-direction:column;gap:28px;}
.contact-hero-text h1{font-size:44px;line-height:52px;font-weight:700;}
.contact-hero-text .sub{font-size:14px;line-height:18px;color:rgba(255,255,255,.9);max-width:447px;}
.contact-info{display:flex;flex-direction:column;gap:14px;margin-top:8px;}
.contact-info a,.contact-info p{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:18px;color:#fff;}
.contact-info svg{width:16px;height:18px;flex:none;margin-top:1px;color:var(--orange);}
.contact-hero .form-card{flex:none;}

/* ============================================================
   SERVICE PAGE template
   ============================================================ */
.svc-hero{position:relative;background:var(--dark);overflow:hidden;color:#fff;padding:130px 0 80px;}
.svc-hero-bg{position:absolute;inset:0;z-index:0;}
.svc-hero-bg img{width:100%;height:100%;object-fit:cover;}
.svc-hero .container{position:relative;z-index:2;display:flex;flex-direction:column;gap:28px;padding-bottom:60px;}
.svc-hero-logo{height:60px;display:flex;align-items:center;}
.svc-hero-logo--img{height:96px;}
.svc-hero-logo img{height:100%;width:auto;}
.svc-hero-logo .name{font-size:34px;font-weight:700;}
.svc-hero h1{font-size:28px;line-height:36px;font-weight:600;max-width:560px;}
.svc-hero .tagline{font-size:14px;line-height:20px;color:rgba(255,255,255,.9);max-width:526px;}
.svc-hero .btn-primary{align-self:flex-start;width:250px;}
.svc-hero-img{position:relative;z-index:2;height:567px;margin-top:10px;overflow:hidden;}
.svc-hero-img img{width:100%;height:100%;object-fit:cover;}

.svc-about{padding:80px 0;background:#fff;}
.svc-about .container{display:flex;gap:90px;align-items:center;}
.svc-about-text{flex:1;display:flex;flex-direction:column;gap:24px;}
.svc-about-visual{flex:none;width:570px;max-width:100%;}
.svc-about-visual img{width:100%;height:auto;display:block;}
.svc-about-list{margin-top:4px;}
.svc-about-list .check-item{align-items:center;gap:12px;line-height:24px;}
.svc-about-list .check-item .chk{width:14px;height:24px;background:none;border-radius:0;display:block;flex:none;}
.svc-about-list .check-item .chk img{width:14px;height:auto;display:block;}
.svc-about-text h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);}
.svc-about-text .feature-list{font-size:14px;line-height:24px;color:var(--dark);white-space:pre-line;}
.svc-about-phones{width:353px;flex:none;height:432px;display:flex;align-items:flex-end;gap:-20px;position:relative;}
.svc-about-phones img{position:absolute;border-radius:18px;box-shadow:0 16px 40px rgba(15,23,41,.22);}
.svc-about-phones img:first-child{left:0;bottom:0;width:181px;}
.svc-about-phones img:last-child{right:0;top:0;width:180px;}

.svc-why{padding:80px 0;background:#fff;}
.svc-why-banner{
  position:relative;border-radius:32px;overflow:hidden;
  background:url('../img/fondoelegirabrobrain.png') center/cover no-repeat;
  padding:77px 72px;min-height:336px;
}
.svc-why-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px 64px;align-items:start;}
.svc-why-banner h2{font-size:32px;line-height:36px;font-weight:700;color:#fff;margin:0;text-align:left;align-self:start;}
.svc-why-list{gap:20px;}
.svc-why-list .check-item{align-items:center;gap:12px;font-size:14px;line-height:22px;color:#fff;}
.svc-why-list .check-item .chk{width:14px;height:auto;background:none;border-radius:0;display:block;flex:none;}
.svc-why-list .check-item .chk img{width:14px;height:auto;display:block;}
.svc-why-cta{display:flex;justify-content:center;margin-top:48px;}
.svc-why-cta .modules-demo-btn{width:250px;}
.check-list{display:flex;flex-direction:column;gap:18px;}
.check-item{display:flex;align-items:flex-start;gap:14px;font-size:14px;line-height:20px;color:var(--dark);}
.check-item .chk{width:24px;height:24px;border-radius:50%;background:var(--grad);flex:none;display:flex;align-items:center;justify-content:center;}
.check-item .chk svg{width:13px;height:13px;color:#fff;}

.svc-modules{padding:70px 0;background:#fff;}
.svc-modules h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);text-align:left;margin-bottom:48px;}
.modules-explorer{display:grid;grid-template-columns:240px minmax(280px,1fr) 340px;gap:48px;align-items:start;max-width:1200px;margin:0 auto;}
.modules-explorer.is-layout-stacked{grid-template-columns:240px minmax(0,1fr);}
.modules-explorer.is-layout-stacked .modules-preview{display:none;}
.modules-explorer.is-layout-stacked .modules-panels{grid-column:2;min-height:0;}
.module-panel--stacked.is-active{display:flex;flex-direction:column;align-items:center;gap:32px;}
.module-panel-visual{position:relative;margin:0;width:100%;display:flex;align-items:center;justify-content:center;}
.module-panel-visual::before{
  content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:0;pointer-events:none;
  width:min(640px,108%);height:min(380px,88%);border-radius:50%;
  background:radial-gradient(
    ellipse 100% 100% at center,
    rgba(251,183,95,0) 0%,
    rgba(251,183,95,0) 34%,
    rgba(251,183,95,.58) 48%,
    rgba(251,183,95,.32) 62%,
    rgba(251,183,95,0) 78%
  );
  filter:blur(26px);
}
.module-panel-visual img{position:relative;z-index:1;width:100%;max-width:100%;height:auto;display:block;}
.module-panel--stacked .module-features{width:100%;max-width:560px;text-align:left;align-self:center;}
.modules-cta{display:flex;justify-content:center;margin-top:48px;}
.modules-demo-btn{
  width:250px;justify-content:center;
  background:linear-gradient(101deg,#FC3453 0%,#FDA739 100%);
}

/* Agrobrain · funcionalidades */
.svc-func{padding:80px 0;background:#fff;overflow:visible;}
.svc-func-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;}
.svc-func-main{
  padding-left:max(var(--pad),calc((100vw - var(--maxw))/2 + var(--pad)));
  padding-right:48px;max-width:760px;
}
.svc-func-main h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);}
.func-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 56px;margin-top:48px;}
.func-item{display:flex;flex-direction:column;gap:14px;}
.func-item > img{width:44px;height:auto;display:block;}
.func-item h3{font-size:18px;line-height:22px;font-weight:700;color:var(--dark);}
.func-item p{font-size:14px;line-height:20px;color:#56617a;max-width:260px;}
.svc-func-media{
  position:relative;margin:0;padding:0;margin-right:0;justify-self:end;align-self:center;
  display:flex;align-items:center;justify-content:flex-end;overflow:visible;
}
.svc-func-media img{
  position:relative;z-index:1;display:block;width:auto;max-width:min(52vw,640px);height:auto;margin-right:0;
}

.modules-tabs{display:flex;flex-direction:column;gap:6px;}
.module-tab{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;
  padding:14px 16px 14px 18px;border:none;border-left:3px solid transparent;border-radius:0 12px 12px 0;
  background:transparent;font-family:inherit;font-size:13px;line-height:18px;font-weight:500;color:#56617a;cursor:pointer;
  transition:color .25s ease,border-color .25s ease;
}
.module-tab::after{
  content:'';flex:none;width:18px;height:14px;opacity:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none'%3E%3Cpath d='M1 7h18m0 0-5-5m5 5-5 5' stroke='%23FC6847' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:opacity .25s ease;
}
.module-tab:hover{color:var(--dark);}
.module-tab.is-active{color:var(--orange);font-weight:600;background:transparent;border-left-color:var(--orange);}
.module-tab.is-active::after{opacity:1;}
.module-tab.is-active:hover{color:var(--orange);}
.modules-preview{position:relative;margin:0;min-height:320px;display:flex;align-items:center;justify-content:center;background:transparent;overflow:visible;}
.modules-preview::before,
.svc-func-media::before{
  content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:0;pointer-events:none;
  width:min(640px,108%);height:min(380px,88%);border-radius:50%;
  background:radial-gradient(
    ellipse 100% 100% at center,
    rgba(251,183,95,0) 0%,
    rgba(251,183,95,0) 34%,
    rgba(251,183,95,.58) 48%,
    rgba(251,183,95,.32) 62%,
    rgba(251,183,95,0) 78%
  );
  filter:blur(26px);
}
.modules-preview img{position:relative;z-index:1;width:100%;max-width:520px;height:auto;display:block;background:transparent;box-shadow:none;border-radius:0;transition:opacity .3s ease;}
.modules-preview img.is-fading{opacity:0;}
.modules-panels{position:relative;min-height:280px;}
.module-panel{display:none;animation:moduleFade .35s ease;}
.module-panel.is-active{display:block;}
.module-panel h3{font-size:22px;line-height:28px;font-weight:700;color:var(--dark);margin-bottom:24px;}
.module-panel--aside.is-active{display:flex;align-items:center;min-height:320px;}
.module-features{list-style:none;display:flex;flex-direction:column;gap:16px;}
.module-features li{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:22px;color:var(--dark);}
.module-features li img{width:14px;height:auto;flex:none;margin-top:4px;}
@keyframes moduleFade{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
.modules-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1200px;margin:0 auto;}
.module-card{background:#fff;border-radius:24px;box-shadow:var(--shadow-card);padding:32px 24px;display:flex;flex-direction:column;gap:16px;
  transition:transform .3s,box-shadow .3s;}
.module-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(252,104,71,.2);}
.module-card .m-icon{width:56px;height:56px;border-radius:14px;background:rgba(252,104,71,.1);display:flex;align-items:center;justify-content:center;}
.module-card .m-icon svg{width:30px;height:30px;color:var(--orange);}
.module-card h4{font-size:18px;font-weight:600;color:var(--dark);}
.module-card p{font-size:13px;line-height:19px;color:#5a6577;}

.other-solutions{padding:70px 0 90px;background:#F2F6F7;overflow:hidden;}
.other-solutions .container{margin-bottom:48px;}
.other-solutions h2{font-size:32px;line-height:36px;font-weight:700;color:var(--dark);text-align:center;margin:0;}
.other-slider{
  --other-offset:max(var(--pad),calc((100vw - var(--maxw))/2 + var(--pad)));
  --other-gap:24px;
  --other-visible:3.4;
  --other-gap-count:4;
  width:100%;
}
.other-slider-viewport{
  overflow-x:auto;overflow-y:hidden;
  cursor:grab;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:100%;
}
.other-slider-viewport::-webkit-scrollbar{display:none;}
.other-slider-viewport.is-dragging{cursor:grabbing;user-select:none;}
.other-slider-track{display:flex;align-items:stretch;gap:var(--other-gap);width:max-content;padding-right:var(--other-gap);}
.other-slider-lead{flex:0 0 var(--other-offset);width:var(--other-offset);pointer-events:none;}
.other-slide{
  flex:0 0 calc((100vw - var(--other-offset) - var(--other-gap) * var(--other-gap-count))/var(--other-visible));
  min-width:0;max-width:calc((100vw - var(--other-offset) - var(--other-gap) * var(--other-gap-count))/var(--other-visible));
  display:flex;flex-direction:column;align-self:stretch;
}
.other-solutions .svc-card{
  width:100%;flex:1;display:flex;flex-direction:column;text-align:center;min-height:100%;
}
.other-solutions .svc-img{height:160px;min-height:160px;flex:none;}
.other-solutions .svc-body{align-items:center;text-align:center;padding:20px 20px 24px;flex:1;display:flex;flex-direction:column;gap:16px;}
.other-solutions .svc-text{align-items:center;flex:1;display:flex;flex-direction:column;gap:10px;}
.other-solutions .svc-text h3{font-size:18px;flex:none;}
.other-solutions .svc-text p{font-size:13px;line-height:19px;color:#5a6577;flex:1;margin:0;}
.other-solutions .svc-link{align-self:center;justify-content:center;color:var(--orange);margin-top:auto;flex:none;}
.other-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;max-width:1100px;margin:0 auto;}
.other-card{background:#fff;border-radius:24px;box-shadow:var(--shadow-card);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .3s,box-shadow .3s;}
.other-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(252,104,71,.2);}
.other-card .oc-img{height:130px;background:#dfe5ec;overflow:hidden;}
.other-card .oc-img img{width:100%;height:100%;object-fit:cover;}
.other-card .oc-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1;}
.other-card h4{font-size:18px;font-weight:600;color:var(--dark);}
.other-card p{font-size:13px;line-height:19px;color:#5a6577;flex:1;}
.other-card .svc-link{margin-top:6px;}

/* responsive for inner pages */
@media (max-width:1100px){
  .about .container{flex-direction:column;gap:48px;}
  .about-left{width:100%;}
  .case-section .container,.svc-about .container,.contact-hero .container{flex-direction:column;gap:40px;}
  .svc-why-inner{grid-template-columns:1fr;gap:32px;}
  .svc-why-banner{padding:58px 40px;min-height:302px;}
  .case-img,.contact-hero-text,.contact-hero .form-card,.svc-about-visual{width:100%;}
  .contact-hero-text{padding-left:var(--pad);padding-right:var(--pad);}
  .modules-grid{grid-template-columns:repeat(2,1fr);}
  .modules-explorer{grid-template-columns:1fr;gap:32px;}
  .modules-explorer.is-layout-stacked{grid-template-columns:1fr;}
  .modules-explorer.is-layout-stacked .modules-panels{grid-column:1;}
  .modules-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;}
  .svc-func-wrap{grid-template-columns:1fr;gap:48px;}
  .svc-func-main{padding-left:var(--pad);padding-right:var(--pad);max-width:none;}
  .svc-func-media{justify-self:center;}
  .svc-func-media img{max-width:100%;}
  .func-grid{grid-template-columns:1fr;}
  .module-tab{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;text-align:center;padding:12px 8px;
    border-left:none;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;
    font-size:13px;line-height:17px;
  }
  .module-tab.is-active{
    border-left-color:transparent;
    border-bottom-color:var(--orange);
    background:rgba(252,104,71,0.04);
  }
  .other-grid{grid-template-columns:repeat(2,1fr);}
  .other-slider{--other-visible:2.2;--other-gap-count:3;}
}
@media (max-width:860px){
  .nav-toggle{display:flex;}
  .proj-grid{grid-template-columns:1fr;}
  .values-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
    justify-items: center;
  }
  .value{
    width: 100%;
    max-width: 180px;
  }
  .values-row::before{display:none;}
  .page-hero-content h1,.case-hero h1,.contact-hero-text h1{font-size:32px;line-height:40px;}
  .statement h2{font-size:24px;line-height:32px;}
}
@media (max-width:620px){
  .modules-grid,.other-grid{grid-template-columns:1fr;}
  .other-slider{--other-visible:1.15;--other-gap-count:2;}
  .case-pill{font-size:20px;}
}


/* ===== self-contained additions ===== */
.partner-chip{display:inline-flex;align-items:center;height:32px;padding:0 16px;border-radius:9px;
  background:#fff;border:1px solid #e3e7ee;font-size:14px;font-weight:600;color:#56617a;
  box-shadow:0 2px 8px rgba(16,16,16,.05);letter-spacing:.2px;}
img{background:transparent;}
.svc-about-phones img{border-radius:18px;}


/* ===== SPA views ===== */
.view{display:none;}
.view.active{display:block;animation:viewIn .45s ease;}
@keyframes viewIn{from{opacity:.0;}to{opacity:1;}}

/* =========================================================
   SERVICIOS · campos dinámicos (CPT "servicio")
   ========================================================= */
.svc-hero .svc-hero-title{font-size:56px;line-height:1.1;font-weight:600;max-width:680px;color:#fff;margin-bottom:16px;}
.svc-hero .tagline{white-space:normal;}
.module-desc{line-height:1.6;margin-bottom:16px;}
.module-desc p + p{margin-top:8px;}
.module-panel--stacked .module-desc{margin-top:16px;}

/* Otros Servicios: sub-servicios en pestañas */
.svc-subservices{padding:96px 0 80px;}
.svc-subservices > .container > h2{text-align:center;margin-bottom:32px;}
.subsvc-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-bottom:72px;}
.subsvc-tab{min-width:150px;max-width:210px;padding:12px 24px;border-radius:40px;background:#EEF0F4;color:#1E1E2D;font-size:13px;line-height:1.3;border:2px solid transparent;transition:background .2s,border-color .2s,color .2s;}
.subsvc-tab:hover{border-color:var(--primary-color);}
.subsvc-tab.is-active{background:#14142B;color:#fff;border-color:var(--primary-color);}
.subsvc-panel{display:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px 64px;align-items:center;}
.subsvc-panel.is-active{display:grid;}
.subsvc-text h3{font-size:28px;line-height:1.25;font-weight:600;margin-bottom:20px;}
.subsvc-text .module-features{margin-bottom:16px;}
.subsvc-text .btn-primary{margin-top:16px;}
.subsvc-media{margin:0;}
.subsvc-media img{display:block;width:100%;height:auto;}

/* Destacados (Rendify): fondo morado con imagen al centro */
.svc-highlights{background:linear-gradient(180deg,#5A3FE8 0%,#4A30D8 100%);color:#fff;padding:88px 0;}
.svc-highlights h2{text-align:center;color:#fff;margin-bottom:56px;}
.hl-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:40px 56px;align-items:center;}
.hl-grid--noimg{grid-template-columns:repeat(2,minmax(0,1fr));}
.hl-col{display:flex;flex-direction:column;gap:40px;}
.hl-col--left{text-align:right;}
.hl-item h3{font-size:18px;line-height:1.3;font-weight:700;color:#fff;margin-bottom:8px;}
.hl-item p{font-size:14px;line-height:1.55;color:rgba(255,255,255,.85);}
.hl-media{margin:0;}
.hl-media img{display:block;width:100%;max-width:320px;height:auto;}
.svc-highlights .modules-cta{margin-top:48px;text-align:center;}

@media (max-width:991px){
  .svc-hero .svc-hero-title{font-size:40px;}
  .subsvc-panel.is-active{grid-template-columns:1fr;}
  .subsvc-media{order:-1;}
  .hl-grid,.hl-grid--noimg{grid-template-columns:1fr;}
  .hl-col--left{text-align:left;}
  .hl-media{order:-1;justify-self:center;}
}
/* Logo del hero de servicios: ancho máx. como en Figma (≈350px) */
.svc-hero .svc-hero-logo--img{height:auto;max-width:360px;}
.svc-hero .svc-hero-logo--img img{width:100%;height:auto;max-height:96px;object-fit:contain;object-position:left center;}
@media (max-width:767px){.svc-hero .svc-hero-logo--img{max-width:260px;}}