:root{
  --red: #E31C3D;
  --red-dark: #8E0E1C;
  --gold: #C08A2E;
  --black: #0D0D0D;
  --gray-bg: #F1F1F1;
  --ink: #1A1A1A;
  --radius-lg: 40px;
  --logo-size: 70px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Poppins', sans-serif;
  color:var(--ink);
  line-height:1.5;
  overflow-x:hidden;
  background:#fff;
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
p{text-align:justify;}
.container{max-width:1240px; margin:0 auto; padding:0 24px;}
h1,h2,h3{font-weight:700;}

/* ---------- Placeholder photography ---------- */
.ph-photo{
  background:linear-gradient(135deg,#3a3f47,#1c1f24);
  display:flex; align-items:flex-end; justify-content:flex-start;
  position:relative; overflow:hidden;
}
.ph-photo::after{
  content:attr(data-label);
  position:absolute; bottom:10px; left:10px;
  font-size:11px; color:rgba(255,255,255,.55);
  letter-spacing:.04em;
}
.ph-photo::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 30%, rgba(227,28,61,.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.06), transparent 55%);
}

/* ---------- Header ---------- */
body > header{
  position:sticky; top:0; z-index:100;
  background:#fff;
  padding:18px 0;
  box-shadow:0 2px 14px rgba(0,0,0,.06);
}
body > header .inner{display:flex; align-items:center; justify-content:space-between; gap:24px;}
.logo{display:flex; flex-direction:column; line-height:1;}
.logo .tap{
  font-size:30px; font-weight:800; letter-spacing:1px; color:var(--black);
  display:flex; align-items:flex-start; position:relative;
}
.dot-accent{
  position:relative; display:inline-block; width:0.2em;
}
.dot-accent::before{
  content:""; position:absolute; top:-0.1em; left:-0.07em;
  width:0.2em; height:0.2em; border-radius:50%; background:var(--red);
}
.dot-accent::after{
  content:""; position:absolute; top:0.3em; left:-0.2em;
  width:0; height:0; border-left:0.23em solid transparent; border-right:0.23em solid transparent;
  border-top:0.3em solid var(--red);
}
.logo small{font-size:9px; letter-spacing:2px; color:#555; font-weight:600;}
.logo .agility{font-size:10px; font-weight:800; font-style:italic; color:var(--black); margin-top:2px;}
.logo .people{font-size:10px; font-weight:700; letter-spacing:1px; color:var(--black);}
body > header .logo img{width:var(--logo-size); height:auto;}

nav.pill{
  background:linear-gradient(90deg,var(--red-dark),var(--red));
  border-radius:40px;
  padding:6px;
  display:flex; align-items:center; gap:4px;
  flex:1; justify-content:center; max-width:760px;
}
nav.pill a{
  color:#fff; font-size:14px; font-weight:500;
  padding:10px 18px; border-radius:30px; white-space:nowrap;
  transition:background .25s ease;
}
nav.pill a.active{background:#fff; color:var(--red); font-weight:600;}
nav.pill a:hover:not(.active){background:rgba(255,255,255,.15);}

.header-actions{display:flex; align-items:center; gap:12px;}
.header-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 18px; border-radius:999px;
  background:linear-gradient(90deg,var(--red-dark),var(--red));
  color:#fff; font-size:13px; font-weight:600; white-space:nowrap;
  box-shadow:0 8px 18px rgba(227,28,61,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover{transform:translateY(-1px); box-shadow:0 10px 22px rgba(227,28,61,.24);}

.lang-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:14px;
  font-weight:500;
  color:#6a6a6a;
}

.switch{
  width:58px;
  height:30px;
  border-radius:999px;
  background:#eceff3;
  border:1px solid #e3e6ea;
  position:relative;
  cursor:pointer;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
}
.switch::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%, #ff3a3a 0%, #d50000 58%, #9f0000 100%);
  border:1px solid #6f0000;
  box-shadow:0 1px 3px rgba(0,0,0,.32), inset 0 1px 1px rgba(255,255,255,.45);
  transition:left .25s ease;
}
.switch.on::after{left:30px;}
.menu-toggle{display:none; background:none; border:none; font-size:26px; cursor:pointer; color:var(--red);}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  width:100%;
  min-height:clamp(450px, 60vh, 700px);
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#111;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-6% -3% -10% -3%;
  background:
    radial-gradient(70% 85% at 82% 42%, rgba(255,195,120,.22), transparent 62%),
    radial-gradient(58% 76% at 23% 30%, rgba(255,122,85,.15), transparent 65%),
    linear-gradient(112deg, rgba(4,4,4,.6) 0%, rgba(4,4,4,.2) 52%, rgba(4,4,4,.35) 100%);
  mix-blend-mode:screen;
  pointer-events:none;
  z-index:2;
  animation:heroBurn 9s ease-in-out infinite alternate;
}
.hero-slides{
  position:absolute;
  inset:0;
  z-index:1;
}
.slide{
  position:absolute;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,0.35);
  cursor:pointer;
  transition:all 0.85s cubic-bezier(0.25, 1, 0.3, 1);
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.01);
  image-rendering:auto;
  backface-visibility:hidden;
  will-change:transform, filter;
  transition:transform 1.1s cubic-bezier(0.25, 1, 0.3, 1), filter 1.1s ease;
}
.slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.2) 100%);
  opacity:0;
  transition:opacity 0.85s;
  pointer-events:none;
}
.slide.slide-active{
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:100% !important;
  border-radius:0;
  box-shadow:none;
  z-index:1;
  cursor:default;
}
.slide.slide-active::after{
  opacity:1;
}
.slide.slide-active img{
  animation:heroDrift 8.2s ease-in-out infinite alternate;
  filter:saturate(1.06) contrast(1.04);
}
.slide.slide-next{
  width:clamp(180px, 20vw, 250px);
  height:clamp(132px, 14.6vw, 182px);
  top:62%;
  left:auto;
  right:6%;
  transform:translateY(-50%);
  z-index:5;
}
.slide.slide-next-next{
  width:clamp(180px, 20vw, 250px);
  height:clamp(132px, 14.6vw, 182px);
  top:62%;
  left:auto;
  right:calc(6% + clamp(180px, 20vw, 250px) + 18px);
  transform:translateY(-50%);
  z-index:4;
}
.slide.slide-next img,
.slide.slide-next-next img{
  object-fit:cover;
  background:transparent;
  padding:0;
  filter:contrast(1.03) saturate(1.03);
}
.hero-content{
  position:relative;
  z-index:4;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding-top:40px;
  padding-bottom:8vw;
  pointer-events:none; /* Let clicks pass through to the slides! */
}
.hero-text{
  flex:1;
  color:#fff;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  pointer-events:auto; /* Re-enable pointer events for text/buttons */
}
.hero-text h1{
  font-size:clamp(38px,4.5vw,58px); 
  line-height:1.1; 
  margin-bottom:18px;
  text-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.hero-text p{
  font-size:17px; 
  max-width:440px; 
  color:#eee;
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
}
.hero-images-placeholder{
  flex:1;
  max-width:550px;
  height:400px;
}
.shape-grey{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:8.6vw;
  background:#fff;
  clip-path:polygon(0 100%, 100% 58%, 100% 100%);
  z-index:2;
}
.shape-white{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:5.4vw;
  background:#fff;
  clip-path:polygon(0 100%, 100% 70%, 100% 100%);
  z-index:3;
}
.shape-white::before{
  content:"";
  position:absolute;
  top:-1px;
  left:0;
  width:100%;
  height:2px;
  background:linear-gradient(90deg, #4f79ff 0%, #6288ff 38%, rgba(98,136,255,.35) 100%);
  transform-origin:left center;
  transform:skewX(-11deg);
}

@keyframes heroDrift{
  from{transform:scale(1.01) translate3d(0, 0, 0);}
  to{transform:scale(1.07) translate3d(-1.3%, -0.9%, 0);}
}

@keyframes heroBurn{
  from{opacity:.65; transform:translate3d(0, 0, 0) scale(1);}
  to{opacity:.92; transform:translate3d(-1.2%, -1.3%, 0) scale(1.03);}
}

/* ---------- Logo video teaser ---------- */
.logo-video{
  display:flex; align-items:center; justify-content:center; gap:22px;
  padding:16px 24px 22px;
  margin-top:-12px;
  text-align:center;
}
.logo-video .mark{font-size:44px; font-weight:800;}
.logo-video .mark span{color:var(--red);}
.logo-video .arrow-line{
  display:flex; align-items:center; gap:0; cursor:pointer;
}
.logo-video .dot{width:10px; height:10px; border-radius:50%; background:var(--black);}
.logo-video .line{width:70px; height:2px; background:var(--black); position:relative;}
.logo-video .line::after{
  content:""; position:absolute; right:0; top:50%; transform:translateY(-50%);
  border:6px solid transparent; border-left-color:var(--black);
}
.logo-video small{font-size:13px; color:#555; margin-left:6px;}

.equipo-page .logo-video { gap: 40px; text-align: left; }
.equipo-page .logo-video-media { width: 220px; max-width: 30vw; height: auto; border-radius: 16px; }
.equipo-page .logo-video-divider { width: 1px; align-self: stretch; min-height: 80px; background: #ddd; }
.equipo-page .logo-video-text { max-width: 460px; font-size: 14px; line-height: 1.7; color: #333; margin: 0; }
@media (max-width: 700px) {
  .equipo-page .logo-video { flex-direction: column; text-align: center; }
  .equipo-page .logo-video-divider { width: 60%; min-height: 1px; height: 1px; }
}

/* ---------- PROFESIONALES (equipo.html) ---------- */
.equipo-page .profesionales { padding: 48px 0; }
.equipo-page .profesionales-grid { display: flex; align-items: center; gap: 36px; }
.equipo-page .profesionales-media { flex: 0 0 clamp(260px, 32vw, 360px); }
.equipo-page .profesionales-media img { width: 100%; height: auto; border-radius: 24px; display: block; }
.equipo-page .profesionales-content { flex: 0 0 auto; text-align: center; }
.equipo-page .profesionales-line { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.2; }
.equipo-page .profesionales-percent { font-size: clamp(40px, 5vw, 62px); font-weight: 800; color: var(--red); margin: 0; line-height: 1.05; }
.equipo-page .profesionales-divider { width: 1px; align-self: stretch; background: #5ad2f0; }
.equipo-page .profesionales-list { flex: 1; list-style: none; margin: 0 0 0 56px; padding: 0; display: flex; flex-direction: column; gap: 18px; }

.equipo-page .prof-toggle {
  display: inline-flex; align-items: center; background: none; border: none; padding: 0;
  cursor: pointer; position: relative;
}
.equipo-page .prof-icon { width: 56px; height: 56px; object-fit: contain; flex: none; position: relative; z-index: 2; }
.equipo-page .prof-pill {
  display: inline-flex; align-items: center; height: 40px; margin-left: -22px;
  border-radius: 999px; overflow: hidden; max-width: 0;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 8px 16px rgba(227, 28, 61, .25);
  transition: max-width .5s ease;
}
.equipo-page .prof-pill-text {
  padding: 0 20px 0 30px; color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap;
  opacity: 0; transition: opacity .3s ease;
}
.equipo-page .prof-toggle.is-open .prof-pill { max-width: 260px; }
.equipo-page .prof-toggle.is-open .prof-pill-text { opacity: 1; transition-delay: .15s; }

@media (max-width: 900px) {
  .equipo-page .profesionales-grid { flex-direction: column; text-align: center; }
  .equipo-page .profesionales-divider { width: 60%; height: 1px; align-self: center; }
  .equipo-page .profesionales-list { align-items: center; margin-left: 0; }
  .equipo-page .prof-toggle { margin: 0 auto; }
}

/* ---------- EQUIPO DE ACELERACION (equipo.html) ---------- */
.equipo-page .team { padding: 20px 0 56px; }
.equipo-page .team-title { text-align: center; color: var(--red); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0 0 40px; }
.equipo-page .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }

.equipo-page .team-card { perspective: 1400px; }
.equipo-page .team-card-inner {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 20px; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4, .2, .2, 1);
}
.equipo-page .team-card.is-flipped .team-card-inner { transform: rotateY(180deg); }

.equipo-page .team-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 20px; overflow: hidden; }

.equipo-page .team-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equipo-page .team-front-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff;
  display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}
.equipo-page .team-front-caption strong { font-size: 18px; font-weight: 700; }
.equipo-page .team-front-caption span { font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.9); }

.equipo-page .team-back {
  transform: rotateY(180deg); color: #fff;
  background: #191919 url('../img/team/fondo-team.png') center / cover no-repeat;
  padding: 24px 22px 20px; display: flex; flex-direction: column;
}
.equipo-page .team-back h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; text-align: center; }
.equipo-page .team-back p { font-size: 12px; line-height: 1.6; color: #ccc; margin: 0; flex: 1; }
.equipo-page .team-linkedin {
  width: 44px; height: 44px; border-radius: 10px; background: #0a66c2;
  display: flex; align-items: center; justify-content: center; margin: 14px auto 0;
}

@media (max-width: 900px) {
  .equipo-page .team-grid { max-width: 640px; }
}
@media (max-width: 700px) {
  .equipo-page .team-grid { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 560px) {
  .equipo-page .team-grid { gap: 12px; }
}

/* ---------- EQUIPO LISTO (equipo.html) ---------- */
.equipo-page .equipo-listo { padding: 0 0 56px; }
.equipo-page .equipo-listo-card {
  background: #eee url('../img/team/fondo-gris.jpeg') center / cover no-repeat;
  border-radius: 30px; padding: 40px 50px;
  display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: left; gap: 40px;
}
.equipo-page .equipo-listo-media { flex: none; }
.equipo-page .equipo-listo-media img { width: 80px; height: auto; display: block; }
.equipo-page .equipo-listo-divider { width: 1px; align-self: stretch; min-height: 110px; background: #5ad2f0; }
.equipo-page .equipo-listo-content h2 { font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; color: var(--red); line-height: 1.3; margin: 0 0 14px; }
.equipo-page .equipo-listo-content p { font-size: 13px; color: #333; margin: 0 0 20px; }
.equipo-page .btn-equipo-listo {
  display: inline-flex; align-items: center; justify-content: center;
  background: #101010; color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px;
  padding: 12px 26px; border-radius: 8px;
}

@media (max-width: 700px) {
  .equipo-page .equipo-listo-card { flex-direction: column; text-align: center; padding: 34px 24px; }
  .equipo-page .equipo-listo-divider { width: 60%; min-height: 1px; height: 1px; }
}

/* ---------- Intro / Más de TAP ---------- */
.intro{
  padding:20px 0 32px;
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
}
.intro h2{color:var(--red); font-size:clamp(24px,2.6vw,32px); line-height:1.25; margin-bottom:18px;}
.intro p{color:#333; max-width:480px; margin-bottom:30px; text-align:justify;}

.btn{
  display:inline-block; border:none; cursor:pointer;
  padding:14px 30px; border-radius:30px;
  font-family:inherit; font-weight:600; font-size:14px;
  background:var(--black); color:#fff;
  position:relative; transition:background .35s ease, transform .2s ease;
}
.btn-popup{
  position:relative;
  background:linear-gradient(90deg,var(--red-dark),var(--red));
}
.btn-popup .tip{
  position:absolute; bottom:calc(100% + 12px); left:50%; transform:translateX(-50%) translateY(6px);
  background:#fff; color:var(--ink); font-size:12px; font-weight:500;
  padding:10px 14px; border-radius:10px; white-space:nowrap;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease;
}
.btn-popup .tip::after{
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:#fff;
}
.btn-popup:hover .tip{opacity:1; transform:translateX(-50%) translateY(0);}
.btn-popup:hover, .btn-popup.clicked{
  background:linear-gradient(90deg,#333,var(--black));
}
.btn-popup.clicked{transform:scale(.97);}

/* .tap-card has been replaced by a direct image */

/* ---------- Services ---------- */
.services{padding:20px 0 34px;}
.services-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.9fr);
  gap:44px;
  align-items:center;
}
.services-gallery{min-width:0;}
.services-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
}
.services-copy h2{font-size:clamp(28px,3vw,40px); line-height:1.05; margin-bottom:18px;}
.services-copy p{color:#1f1f1f; max-width:380px; font-size:16px; line-height:1.45; text-align:justify;}
.services-copy .actions{display:flex; justify-content:flex-end; margin-top:34px;}
.btn-outline-dark{
  background:var(--black); color:#fff; border-radius:30px; padding:14px 26px;
  font-weight:600; font-size:14px; border:none; cursor:pointer;
}

.carousel-wrap{display:flex; flex-direction:column; gap:18px;}
.carousel{
  display:flex; gap:32px; overflow-x:auto; scroll-behavior:smooth;
  padding:26px 6px 42px;
  scrollbar-width:none;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
}
.carousel::-webkit-scrollbar{display:none;}
.service-card{
  flex:0 0 calc((100% - 32px) / 2);
  min-width:0;
  border-radius:24px; overflow:hidden;
  background:transparent; color:#fff;
  position:relative;
  box-shadow:0 18px 26px -14px rgba(0,0,0,.4), 0 8px 14px -8px rgba(0,0,0,.2);
  transition:transform .3s ease, box-shadow .3s ease;
  scroll-snap-align:start;
}
.service-card:hover{transform:translateY(-6px); box-shadow:0 24px 34px -14px rgba(0,0,0,.45), 0 10px 18px -8px rgba(0,0,0,.22);}
.service-card .service-media{
  position:relative;
  aspect-ratio:1.05 / 1;
  overflow:hidden;
}
.service-card .service-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.2);
  transition:transform .5s ease;
}
.service-card:hover .service-media img{transform:scale(1.26);}
.service-card .label{
  min-height:88px;
  padding:40px 16px 22px;
  text-align:center;
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  position:absolute;
  left:0; right:0; bottom:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,0) 100%);
}
.service-card .label::after{
  content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:92px; height:16px;
  background:linear-gradient(90deg,var(--red-dark),var(--red));
  border-radius:12px 12px 0 0;
}

.btn-popup-dark{position:relative; background:var(--black);}
.btn-popup-dark .tip{
  position:absolute; bottom:calc(100% + 12px); left:50%; transform:translateX(-50%) translateY(6px);
  background:#fff; color:var(--ink); font-size:12px; font-weight:500;
  padding:10px 14px; border-radius:10px; white-space:nowrap;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease;
  z-index: 10;
}
.btn-popup-dark .tip::after{
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:#fff;
}
.btn-popup-dark:hover .tip{opacity:1; transform:translateX(-50%) translateY(0);}
.btn-popup-dark:hover, .btn-popup-dark.clicked{
  background:linear-gradient(90deg,var(--red-dark),var(--red));
}
.btn-popup-dark.clicked{transform:scale(.97);}
.carousel-nav{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.arrow-btn{
  position:relative;
  width:44px; height:44px; border-radius:50%; border:none; padding:0;
  background:transparent; cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  transition:transform .25s ease;
}
.arrow-btn img{
  position:absolute; inset:0; width:100%; height:100%;
  border-radius:50%; object-fit:cover;
  transition:opacity .2s ease;
}
.arrow-btn img.icon-flip{transform:scaleX(-1);}
.arrow-btn img.icon-active{opacity:0;}
.arrow-btn:hover, .arrow-btn:active{transform:translateY(-1px) scale(.96);}
.arrow-btn:hover img.icon-active, .arrow-btn:active img.icon-active{opacity:1;}
.arrow-btn:hover img.icon-default, .arrow-btn:active img.icon-default{opacity:0;}
.carousel-nav .hint{font-size:13px; color:#666; margin-left:10px;}

/* ---------- Quote ---------- */
.quote-section{
  padding:34px 0 0;
  overflow:visible;
  position:relative;
  z-index:8;
  margin-bottom:-52px;
}
.quote-banner{
  background:linear-gradient(90deg,var(--red-dark),var(--red) 60%,#b3132c);
  color:#fff; text-align:center; font-weight:600;
  font-size:clamp(22px,2.5vw,38px);
  line-height:1.15;
  padding:18px 6vw;
  border-radius:0;
  width:100%;
  white-space:nowrap;
  transform:translateY(26px);
  transition:border-radius .6s ease, width .6s ease, margin .6s ease, padding .6s ease, font-size .6s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
.quote-banner.compact{
  width:min(920px, 84%);
  margin:0 auto;
  border-radius:999px;
  padding:14px 6vw;
}

/* ---------- Accreditation ---------- */
.accred{
  background:var(--gray-bg);
  padding:0;
  position:relative;
  clip-path:none;
  overflow:hidden;
}
.accred .container{
  max-width:none;
  padding:0;
}
.accred-inner{display:flex; justify-content:center;}
.accred-media{
  position:relative;
  width:100%;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
  min-height:clamp(430px, 45vw, 560px);
  background-image:url('../img/fondo-gris.jpeg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
}
.accred-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.68) 46%, rgba(255,255,255,.74) 100%);
  z-index:1;
}
.accred-media::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:84px;
  background:#fff;
  clip-path:polygon(0 28%, 100% 100%, 0 100%);
  z-index:1;
}
.accred-copy{
  position:relative;
  z-index:2;
  text-align:center;
  color:#111;
  width:min(92%, 780px);
  padding:40px 0;
}
.accred-badge-img{
  width:70px;
  height:auto;
  margin:0 auto 20px;
  display:block;
}
.accred-copy h3{
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.15;
  font-weight:700;
  margin-bottom:10px;
}
.accred-sub{
  font-size:clamp(20px, 2.1vw, 30px);
  font-weight:700;
  color:var(--red);
  margin-bottom:20px;
  text-align:center;
}
.accred-text{
  font-size:clamp(15px, 1.45vw, 31px);
  max-width:900px;
  margin:0 auto;
  line-height:1.24;
  color:#171717;
}
.accred-btn{
  display:inline-block;
  margin-top:28px;
  box-shadow:0 12px 24px rgba(0,0,0,.16);
  transition: background .25s ease !important;
}
.accred-btn:hover{
  background: #111 !important;
}

/* ---------- Clients marquee ---------- */
.clients{padding:30px 0 40px; text-align:center;}
.clients .alpaca-solo{width:60px; margin:0 auto 22px;}
.clients h4{font-size:clamp(20px,2.2vw,26px); margin-bottom:34px;}
.marquee-stack{display:flex; flex-direction:column; gap:52px;}
.marquee-viewport{
  overflow:hidden;
  width:100%;
  -webkit-mask-image:none;
  mask-image:none;
}
.marquee-track{display:flex; align-items:center; gap:24px; width:max-content; animation:scrollLogos 26s linear infinite;}
.marquee-track.reverse{animation-name:scrollLogosReverse;}
.marquee-viewport:hover .marquee-track{animation-play-state:paused;}
.partner-logo{
  flex:0 0 auto;
  width:clamp(128px, 14vw, 196px);
  height:72px;
  background:transparent;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  box-shadow:none;
}
.partner-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:none;
  opacity:1;
  transition:transform .25s ease;
}
.partner-logo:hover img{
  transform:scale(1.03);
}
@keyframes scrollLogos{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@keyframes scrollLogosReverse{
  from{transform:translateX(-50%);}
  to{transform:translateX(0);}
}

/* ---------- Footer ---------- */
footer{
  background:linear-gradient(105deg,#b5152d 0%, #d1112e 45%, #de0c2a 100%);
  color:#fff;
  padding:0;
}
footer .inner{
  min-height:116px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  padding-top:20px;
  padding-bottom:20px;
}
footer .footer-brand{display:flex; align-items:center;}
footer .footer-logo-img{width:96px; height:auto; display:block;}
footer .claim{font-size:clamp(20px,2.2vw,34px); font-weight:800; text-align:right; line-height:1.05;}
footer .copyright{
  margin:0;
  background:#fff;
  color:#7a7a7a;
  text-align:center;
  font-size:13px;
  line-height:1.2;
  padding:14px 16px;
}

/* ---------- Floating buttons ---------- */
.float-btns{
  position:fixed; right:26px; bottom:26px; z-index:200;
  display:flex; flex-direction:column; gap:14px;
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .3s ease, transform .3s ease;
}
.float-btns.show{opacity:1; pointer-events:auto; transform:translateY(0);}
.fab{
  width:52px; height:52px; border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.25); color:#fff; font-size:20px;
}
.fab.top{background:transparent; padding:0; overflow:hidden;}
.fab.top img{width:100%; height:100%; object-fit:contain; display:block;}
.fab.wsp{background:transparent; padding:0; overflow:hidden;}
.fab.wsp img{width:100%; height:100%; object-fit:contain; display:block;}
.fab:hover{filter:brightness(1.08);}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .container{padding:0 18px;}
  .quote-section,
  .accred,
  .clients{padding-left:16px; padding-right:16px;}
  nav.pill{display:none; position:absolute; top:70px; left:0; right:0; margin:0 16px;
    flex-direction:column; border-radius:20px; background:var(--red-dark);
  }
  nav.pill.open{display:flex;}
  nav.pill a{width:100%; text-align:center;}
  .menu-toggle{display:block;}
  .header-cta{display:none;}
  .hero{
    min-height:clamp(520px, 88vh, 720px);
    padding:22px 0 0;
  }
  .hero::before{
    inset:-8% -12% -10% -12%;
    opacity:.86;
  }
  .hero-content{flex-direction:column; padding-bottom:17vw; gap:16px;}
  .hero-images-placeholder{width:100%; height:260px;}
  .hero-text h1{font-size:clamp(32px, 11vw, 48px);}
  .hero-text p{font-size:16px; max-width:340px;}
  .slide.slide-next{
    width:38vw;
    height:28vw;
    top:auto;
    left:auto;
    right:5vw;
    bottom:19vw;
    transform:none;
  }
  .slide.slide-next-next{
    width:38vw;
    height:28vw;
    top:auto;
    left:auto;
    right:calc(5vw + 38vw + 3vw);
    bottom:19vw;
    transform:none;
  }
  .slide.slide-next img,
  .slide.slide-next-next img{
    padding:0;
  }
  .shape-grey{height:14vw; clip-path:polygon(0 100%, 100% 62%, 100% 100%);}
  .shape-white{height:9vw; clip-path:polygon(0 100%, 100% 72%, 100% 100%);}
  .shape-white::before{transform:skewX(-13deg);}
  .intro, .services-grid{grid-template-columns:1fr;}
  .services-copy{align-items:flex-start; text-align:left; order:-1;}
  .services-copy .actions{justify-content:flex-start; margin-top:14px;}
  .service-card{flex:0 0 calc((100% - 32px) / 2); min-width:0;}
  .quote-section{padding:24px 0 0; margin-bottom:-44px;}
  .quote-banner{font-size:clamp(20px, 4.4vw, 30px);}
  .quote-banner.compact{width:100%; padding:13px 8vw;}
  .accred-media{min-height:clamp(470px, 76vw, 700px);}
  .accred-media{border-radius:20px;}
  .accred-copy{width:min(92%, 680px);}
  .accred-copy h3{font-size:clamp(32px, 5vw, 44px);}
  .accred-sub{font-size:clamp(22px, 3.4vw, 30px);}
  .accred-text{font-size:clamp(20px, 2.4vw, 30px);}
  .accred-btn{bottom:20px;}
  .marquee-stack{gap:38px;}
  .partner-logo{width:clamp(120px, 26vw, 168px); height:62px;}
  footer .inner{
    min-height:94px;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    text-align:left;
    gap:16px;
    padding-top:14px;
    padding-bottom:14px;
  }
  footer .footer-logo-img{width:78px;}
  footer .claim{
    text-align:right;
    font-size:clamp(17px, 4.2vw, 26px);
    line-height:1.02;
    max-width:46%;
  }
  footer .copyright{font-size:13px;}
}

@media (max-width:560px){
  .container{padding:0 14px;}
  .quote-section,
  .accred,
  .clients{padding-left:12px; padding-right:12px;}
  .hero{
    min-height:clamp(560px, 92vh, 760px);
  }
  .hero-content{
    padding-bottom:20vw;
  }
  .slide{
    border-radius:16px;
  }
  .slide.slide-next{
    width:40vw;
    height:30vw;
    top:auto;
    left:auto;
    right:4vw;
    bottom:22vw;
    transform:none;
  }
  .slide.slide-next-next{
    width:40vw;
    height:30vw;
    top:auto;
    left:auto;
    right:calc(4vw + 40vw + 2vw);
    bottom:22vw;
    transform:none;
  }
  .service-card{flex:0 0 100%; min-width:0; max-width:none;}
  .quote-section{padding:18px 0 0; margin-bottom:-34px;}
  .quote-banner{font-size:clamp(18px, 5.3vw, 26px);}
  .quote-banner.compact{width:100%;}
  .accred-media{min-height:560px;}
  .accred-copy h3{font-size:clamp(30px, 5.8vw, 38px);}
  .accred-sub{font-size:clamp(22px, 4vw, 28px);}
  .accred-text{font-size:clamp(18px, 3.2vw, 24px);}
  .accred-btn{bottom:8px;}
  .marquee-stack{gap:30px;}
  .partner-logo{width:clamp(108px, 30vw, 152px); height:54px;}
  footer .inner{
    min-height:88px;
    padding-top:12px;
    padding-bottom:12px;
    gap:12px;
  }
  footer .footer-logo-img{width:66px;}
  footer .claim{font-size:clamp(15px, 4.8vw, 22px); max-width:52%;}
}

/* ============================================================
   NOSOTROS PAGE — styles migrated from nosotros.html <style>
   ============================================================ */

/* ---------- CSS Custom Properties (nosotros palette) ---------- */
.nosotros-page,
.nosotros-page :root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --gray-text: #4a4a4a;
  --line: rgba(17, 17, 17, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --red-rose: #ce2c4b;
  --red-bright: #e21b2f;
  --red-deep: #8a0000;
  --red-solid: #f50303;
  --grad-red: linear-gradient(120deg, #ce2c4b 0%, #8a0000 32%, #e21b2f 55%, #8a0000 78%, #ce2c4b 100%);
  --grad-red-h: linear-gradient(90deg, #8a0000, #e21b2f);
  --gold: #f2a927;
  --icon-green: #00cb33;
  --icon-teal: #05c0bb;
  --icon-red: #fe0000;
  --icon-orange: #fe9b18;
  --dark-0: #0a0a0a;
  --dark-1: #333333;
  --grad-dark: linear-gradient(100deg, #0a0a0a, #333333);
  --maxw: 1180px;
}

/* ---------- Nosotros page base reset ---------- */
.nosotros-page * { box-sizing: border-box; }
.nosotros-page { scroll-behavior: smooth; }
.nosotros-page body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nosotros-page h1,
.nosotros-page h2,
.nosotros-page h3,
.nosotros-page h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0;
}
.nosotros-page p { margin: 0; }
.nosotros-page img,
.nosotros-page svg { display: block; max-width: 100%; }
.nosotros-page a { color: inherit; text-decoration: none; }

/* ---------- Nosotros layout utilities ---------- */
.nosotros-page .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.nosotros-page .eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .nosotros-page * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- HERO ---------- */
.nosotros-page .hero {
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}
.nosotros-page .hero::before { display: none; }
.nosotros-page .hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px;
}
.nosotros-page .hero-inner {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nosotros-page .hero-visual {
  position: relative;
  height: clamp(300px, 56vw, 560px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
  isolation: isolate;
}
.nosotros-page .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: brightness(1.02) contrast(1.01) saturate(0.92);
  transform: scale(1.035);
  opacity: 0;
  transition: opacity .8s ease, transform 1.8s ease;
  z-index: 0;
}
.nosotros-page .hero-slide.is-active { opacity: 1; transform: scale(1.01); }
.nosotros-page .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,185,142,.14), transparent 34%),
    radial-gradient(circle at 78% 56%, rgba(255,214,166,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 42%);
  z-index: 1;
  pointer-events: none;
}
.nosotros-page .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.08) 44%, rgba(0,0,0,.28) 100%);
  z-index: 2;
  pointer-events: none;
}
.nosotros-page .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}
.nosotros-page .hero-copy h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(44px, 7.4vw, 68px);
  font-weight: 800;
  letter-spacing: .005em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.nosotros-page .hero-title-type {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255,255,255,.95);
}
.nosotros-page .hero-title-type.is-typing {
  animation: heroTyping 2s steps(9, end) forwards, heroCaret .7s step-end infinite;
}

/* Solo nosotros.html: ampliar ancho animado del titulo para que no se recorte. */
.nosotros-page body:not(.servicios-page):not(.equipo-page) .hero-title-type.is-typing {
  animation: heroTypingNosotros 2s steps(11, end) forwards, heroCaret .7s step-end infinite;
}

/* Servicios y Equipo: ancho dedicado para evitar recortes del titulo en desktop y mobile. */
.nosotros-page body.servicios-page .hero-title-type.is-typing {
  animation: heroTypingServicios 2s steps(18, end) forwards, heroCaret .7s step-end infinite;
}
.nosotros-page body.equipo-page .hero-title-type.is-typing {
  animation: heroTypingEquipo 2s steps(14, end) forwards, heroCaret .7s step-end infinite;
}
.nosotros-page body.clientes-page .hero-title-type.is-typing {
  animation: heroTypingClientes 2s steps(14, end) forwards, heroCaret .7s step-end infinite;
}
.nosotros-page body.contacto-page .hero-title-type.is-typing {
  animation: heroTypingContacto 2s steps(8, end) forwards, heroCaret .7s step-end infinite;
}

/* Clientes: mostrar titulo completo sin recorte. */
.nosotros-page body.clientes-page .hero-title-type,
.nosotros-page body.clientes-page .hero-title-type.is-typing {
  width: auto;
  overflow: visible;
  white-space: nowrap;
  border-right: none;
  animation: none;
}

.nosotros-page body.clientes-page .hero-copy h1 {
  font-size: clamp(24px, 5.8vw, 56px);
  line-height: 1.05;
}

/* Clientes: reducir espacios en blanco entre secciones. */
.nosotros-page body.clientes-page section:not(.hero) {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 900px) {
  .nosotros-page body.clientes-page section:not(.hero) {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ---------- CLIENTES: Alianzas que inspiran ---------- */
.clientes-page .alianzas {
  padding: 24px 0 20px;
}

.clientes-page .alianzas-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 34px;
  align-items: start;
}

.clientes-page .alianzas-copy h2 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.clientes-page .alianzas-copy p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  color: #171717;
}

.clientes-page .alianzas-copy p:last-child {
  margin-bottom: 0;
}

.clientes-page .alianzas-actions {
  position: relative;
  padding-top: 78px;
}

.clientes-page .alianzas-pop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #efefef;
  border-radius: 0;
  padding: 16px 18px;
  color: #111;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  opacity: 1;
  transform: translateY(0);
}

.clientes-page .alianzas-pop.is-rising {
  animation: alianzaRise .32s ease;
}

.clientes-page .alianzas-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clientes-page .alianzas-accordion {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.clientes-page .alianza-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease, padding .28s ease;
  background: #f5f5f5;
  border-radius: 0 0 18px 18px;
  font-size: 15px;
  color: #222;
  line-height: 1.55;
  padding: 0 18px;
  margin-top: -20px;
  padding-top: 0;
  position: relative;
  z-index: 0;
}

.clientes-page .alianza-item.is-active .alianza-body {
  max-height: 200px;
  padding: 28px 18px 16px;
}

.clientes-page .alianza-bar {
  width: 100%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #ff0000, #e00606);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  text-align: left;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
  position: relative;
  z-index: 1;
}

.clientes-page .alianza-bar .icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.clientes-page .alianza-bar:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.clientes-page .alianza-bar.is-active,
.clientes-page .alianza-item.is-active .alianza-bar {
  background: linear-gradient(90deg, #171717, #2b2b2b);
}

@keyframes alianzaRise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .clientes-page .alianzas-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .clientes-page .alianzas-actions {
    padding-top: 0;
  }
  .clientes-page .alianzas-pop {
    position: relative;
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .clientes-page .alianzas-copy h2 {
    font-size: clamp(24px, 9vw, 34px);
  }
  .clientes-page .alianzas-copy p {
    font-size: 15px;
    line-height: 1.45;
  }
  .clientes-page .alianza-bar {
    font-size: 18px;
    padding: 10px 13px;
  }
  .clientes-page .alianza-bar .icon {
    font-size: 30px;
  }
  .clientes-page .alianzas-pop {
    padding: 14px 14px;
    font-size: 15px;
  }
}

/* ---------- CLIENTES: Confianza / métricas ---------- */
.clientes-page .clientes-confianza {
  padding: 18px 0 28px;
  background: #f5f5f5 url('../img/fondo-gris.jpeg') center / cover no-repeat;
}

.clientes-page .confianza-wrap {
  max-width: 1220px;
}

.clientes-page .confianza-head {
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
  margin-bottom: 22px;
}

.clientes-page .confianza-head h2 {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: clamp(15px, 1.8vw, 26px);
  line-height: 1.05;
  font-weight: 800;
}

.clientes-page .confianza-head .line-black {
  color: #121212;
}

.clientes-page .confianza-head .line-red {
  color: var(--red);
}

.clientes-page .confianza-media {
  position: relative;
  margin: 0 auto 30px;
  width: min(1120px, 100%);
}

.clientes-page .confianza-photo {
  margin: 0;
  width: min(760px, 82%);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

.clientes-page .confianza-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.clientes-page .confianza-note {
  position: absolute;
  right: 10px;
  bottom: 22px;
  max-width: 540px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
  padding: 18px 20px;
}

.clientes-page .confianza-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: #141414;
}

.clientes-page .confianza-stats {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: linear-gradient(90deg, #0d0d0d, #313131);
  color: #fff;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 16px;
}

.clientes-page .confianza-stats .stat-item {
  text-align: center;
  padding: 6px 12px;
}

.clientes-page .confianza-stats .stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .42);
}

.clientes-page .confianza-stats strong {
  display: block;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 6px;
}

.clientes-page .confianza-stats span {
  display: block;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.2;
}

@media (max-width: 980px) {
  .clientes-page .confianza-head h2 {
    font-size: clamp(24px, 6vw, 42px);
  }
  .clientes-page .confianza-photo {
    width: 100%;
  }
  .clientes-page .confianza-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 14px auto 0;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .clientes-page .confianza-stats {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }
  .clientes-page .confianza-stats .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .36);
    padding-bottom: 12px;
    margin-bottom: 4px;
  }
  .clientes-page .confianza-stats strong {
    font-size: clamp(17px, 5vw, 25px);
  }
  .clientes-page .confianza-stats span {
    font-size: clamp(14px, 4.2vw, 18px);
  }
}

/* ---------- CLIENTES: carruseles de socios ---------- */
.clientes-page .clientes-socios {
  padding: 16px 0 30px;
  background: #fff;
}

.clientes-page .socios-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clientes-page .socios-row {
  overflow: hidden;
  position: relative;
}

.clientes-page .socios-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 38px;
  animation-duration: 26s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.clientes-page .row-left .socios-track {
  animation-name: sociosMarqueeLeft;
}

.clientes-page .row-right .socios-track {
  animation-name: sociosMarqueeRight;
}

.clientes-page .socios-track img {
  width: clamp(160px, 15vw, 230px);
  height: clamp(62px, 6.2vw, 88px);
  object-fit: contain;
  flex: none;
  filter: saturate(.98) contrast(1.01);
}

@keyframes sociosMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 19px)); }
}

@keyframes sociosMarqueeRight {
  0% { transform: translateX(calc(-50% - 19px)); }
  100% { transform: translateX(0); }
}

@media (max-width: 900px) {
  .clientes-page .socios-wrap {
    gap: 14px;
  }
  .clientes-page .socios-track {
    gap: 24px;
    animation-duration: 20s;
  }
  .clientes-page .socios-track img {
    width: clamp(96px, 24vw, 138px);
    height: clamp(40px, 9vw, 56px);
  }
  @keyframes sociosMarqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
  }
  @keyframes sociosMarqueeRight {
    0% { transform: translateX(calc(-50% - 12px)); }
    100% { transform: translateX(0); }
  }
}

/* ---------- CLIENTES: franja de frase ---------- */
.clientes-page .clientes-frase {
  padding: 8px 0 22px;
  background: #fff;
}

.clientes-page .frase-wrap {
  background: transparent;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.clientes-page .frase-wrap p {
  margin: 0;
  color: #111;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  text-align: justify;
}

@media (max-width: 700px) {
  .clientes-page .clientes-frase {
    padding: 8px 0 18px;
  }
  .clientes-page .frase-wrap {
    min-height: 40px;
    padding: 0 10px;
  }
  .clientes-page .frase-wrap p {
    font-size: clamp(14px, 4.5vw, 20px);
  }
}

/* ---------- CLIENTES: casos de transformación ---------- */
.clientes-page .clientes-casos {
  padding: 20px 0 34px;
  background: #fff;
}

.clientes-page .casos-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 34px;
  align-items: start;
}

.clientes-page .casos-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 56px;
}

.clientes-page .caso-tab {
  width: 100%;
  border: none;
  border-bottom: 3px solid #111;
  background: #ececec;
  color: #111;
  font-family: inherit;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  padding: 14px 12px 10px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.clientes-page .caso-tab:hover {
  transform: translateY(-1px);
}

.clientes-page .caso-tab.is-active {
  border-bottom-color: var(--red);
}

.clientes-page .casos-panel h2 {
  margin: 0 0 20px;
  color: var(--red);
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.1;
  text-align: left;
}

.clientes-page #casoDescripcion {
  margin: 0 0 18px;
  color: #111;
  font-size: 20px;
  line-height: 1.34;
  text-align: justify;
}

.clientes-page .casos-resultados-label {
  margin: 0 0 12px;
  color: #111;
  font-size: 21px;
  font-weight: 700;
  text-align: justify;
}

.clientes-page .casos-resultados {
  display: grid;
  gap: 14px;
}

.clientes-page .casos-resultados.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clientes-page .casos-resultados.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clientes-page .resultado-card {
  background: #ececec;
  border-radius: 26px;
  padding: 22px 24px;
}

.clientes-page .resultado-card p {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.28;
  text-align: justify;
}

.clientes-page .barra {
  margin-top: 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.clientes-page .barra i {
  width: 8px;
  height: 50px;
  background: #cfd2d6;
  display: block;
}

.clientes-page .barra i.on {
  background: #5aba42;
}

.clientes-page .resultado-card.valor {
  display: flex;
  min-height: 115px;
  flex-direction: column;
  justify-content: space-between;
}

.clientes-page .resultado-card.valor strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(32px, 3.15vw, 46px);
  line-height: .95;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 980px) {
  .clientes-page .casos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clientes-page .casos-nav {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .clientes-page .caso-tab {
    font-size: 16px;
  }
  .clientes-page #casoDescripcion {
    font-size: 16px;
  }
  .clientes-page .casos-resultados-label {
    font-size: 18px;
  }
  .clientes-page .casos-resultados.cols-2,
  .clientes-page .casos-resultados.cols-3 {
    grid-template-columns: 1fr;
  }
  .clientes-page .resultado-card {
    border-radius: 20px;
    padding: 18px;
  }
  .clientes-page .resultado-card p {
    font-size: 15px;
  }
  .clientes-page .barra i {
    height: 42px;
    width: 7px;
    gap: 4px;
  }
  .clientes-page .resultado-card.valor {
    min-height: 180px;
  }
  .clientes-page .resultado-card.valor strong {
    font-size: clamp(52px, 14vw, 74px);
  }
}

/* ---------- CLIENTES: testimonios ---------- */
.clientes-page .clientes-testimonios {
  padding: 22px 0 26px;
  background: #ffbf6f url('../img/clientes/fondo-naranja.png') center / cover no-repeat;
}

.clientes-page .testimonios-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.clientes-page .testimonios-side .mark-img {
  width: clamp(64px, 6.2vw, 96px);
  height: auto;
  display: block;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(8px);
  animation: markFadeIn .8s ease forwards;
}

.clientes-page .testimonios-side h2 {
  margin: -10px 0 14px;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: .95;
  color: #111;
}

.clientes-page .testimonios-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clientes-page .testimonios-arrows button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.26);
  background: rgba(255,255,255,.7);
  color: #111;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.clientes-page .testimonios-arrows button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.clientes-page .testimonios-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.clientes-page .testimonio-card {
  position: relative;
}

.clientes-page .testimonio-card > p {
  margin: 0;
  background: url('../img/clientes/globo.png') center / 100% 100% no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 20px 30px;
  font-size: 16px;
  line-height: 1.38;
  color: #111;
  min-height: 220px;
}

.clientes-page .testimonio-card > p::after {
  content: none;
}

.clientes-page .testimonio-persona {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
}

.clientes-page .testimonio-persona > div,
.clientes-page .testimonio-persona strong,
.clientes-page .testimonio-persona span {
  background: transparent;
}

.clientes-page .testimonio-persona .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  flex: none;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  display: block;
  overflow: hidden;
}

.clientes-page .testimonio-persona strong {
  display: block;
  color: #e3133f;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.clientes-page .testimonio-persona span {
  display: block;
  color: #111;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .clientes-page .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clientes-page .testimonios-side {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .clientes-page .testimonios-side .mark-img {
    width: clamp(56px, 14vw, 74px);
  }
  .clientes-page .testimonios-side h2 {
    font-size: clamp(13px, 4.2vw, 18px);
  }
  .clientes-page .testimonios-arrows {
    gap: 10px;
  }
  .clientes-page .testimonios-arrows button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .clientes-page .testimonios-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .clientes-page .testimonio-card > p {
    font-size: 15px;
    padding: 16px 16px 26px;
    min-height: 190px;
  }
  .clientes-page .testimonio-persona .avatar {
    width: 58px;
    height: 58px;
  }
}

  /* ---------- CLIENTES: carrusel de oficina ---------- */
  .clientes-page .clientes-oficina {
    padding: 24px 0 34px;
    background: #fff;
  }

  .clientes-page .oficina-wrap {
    max-width: 1240px;
  }

  .clientes-page .oficina-stage {
    position: relative;
    height: 280px;
    overflow: hidden;
  }

  .clientes-page .oficina-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(52vw, 410px);
    height: 244px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
    transition: transform .55s ease, opacity .55s ease, filter .45s ease;
    transform: translate(-50%, -50%) scale(.86);
    opacity: 0;
  }

  .clientes-page .oficina-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .clientes-page .oficina-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }

  .clientes-page .oficina-overlay span {
    color: #fff;
    text-align: center;
    font-size: clamp(18px, 2.05vw, 34px);
    line-height: 1.1;
    font-weight: 700;
  }

  .clientes-page .oficina-card.pos-0 {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 5;
  }

  .clientes-page .oficina-card.pos-1 {
    transform: translate(-18%, -50%) scale(.88);
    opacity: .95;
    z-index: 4;
  }

  .clientes-page .oficina-card.pos--1 {
    transform: translate(-82%, -50%) scale(.88);
    opacity: .95;
    z-index: 4;
  }

  .clientes-page .oficina-card.pos-2 {
    transform: translate(22%, -50%) scale(.72);
    opacity: .76;
    z-index: 3;
  }

  .clientes-page .oficina-card.pos--2 {
    transform: translate(-122%, -50%) scale(.72);
    opacity: .76;
    z-index: 3;
  }

  .clientes-page .oficina-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }

  .clientes-page .oficina-card.pos-0:hover .oficina-overlay,
  .clientes-page .oficina-card.pos-0:focus-within .oficina-overlay {
    opacity: 1;
  }

  .clientes-page .oficina-controls {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .clientes-page .oficina-controls button {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .clientes-page .oficina-controls button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .clientes-page .oficina-controls button:hover {
    transform: translateY(-1px);
    filter: brightness(.9);
  }

  .clientes-page .oficina-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  .clientes-page .oficina-modal.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .clientes-page .oficina-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .clientes-page .oficina-modal-figure {
    position: relative;
    margin: 0;
    width: min(92vw, 1080px);
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
  }

  .clientes-page .oficina-modal-figure img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    background: #111;
  }

  .clientes-page .oficina-modal-figure figcaption {
    margin: 0;
    padding: 10px 14px 14px;
    color: #fff;
    text-align: center;
    font-size: clamp(14px, 1.55vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    background: rgba(0, 0, 0, .55);
  }

  .clientes-page .oficina-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }

  .clientes-page.modal-open {
    overflow: hidden;
  }

  @media (max-width: 980px) {
    .clientes-page .oficina-stage {
      height: 246px;
    }
    .clientes-page .oficina-card {
      height: 210px;
      border-radius: 28px;
    }
    .clientes-page .oficina-card.pos-1 {
      transform: translate(-15%, -50%) scale(.84);
    }
    .clientes-page .oficina-card.pos--1 {
      transform: translate(-85%, -50%) scale(.84);
    }
  }

  @media (max-width: 760px) {
    .clientes-page .oficina-stage {
      height: 210px;
    }
    .clientes-page .oficina-card {
      width: min(90vw, 430px);
      height: 182px;
      border-radius: 22px;
    }
    .clientes-page .oficina-card.pos-0 {
      transform: translate(-50%, -50%) scale(1);
    }
    .clientes-page .oficina-card.pos-1,
    .clientes-page .oficina-card.pos--1,
    .clientes-page .oficina-card.pos-2,
    .clientes-page .oficina-card.pos--2 {
      opacity: 0;
      pointer-events: none;
    }
    .clientes-page .oficina-overlay span {
      font-size: clamp(15px, 4.6vw, 22px);
    }
    .clientes-page .oficina-modal-backdrop {
      padding: 14px;
    }
    .clientes-page .oficina-modal-figure {
      width: min(96vw, 560px);
      border-radius: 14px;
    }
    .clientes-page .oficina-modal-close {
      width: 34px;
      height: 34px;
      font-size: 26px;
    }
  }

@keyframes markFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Versiones EN: ancho por pagina para mantener títulos completos. */
.nosotros-page[lang="en"] body:not(.servicios-page):not(.equipo-page) .hero-title-type.is-typing {
  animation: heroTypingNosotrosEn 2s steps(10, end) forwards, heroCaret .7s step-end infinite;
}
.nosotros-page[lang="en"] body.servicios-page .hero-title-type.is-typing {
  animation: heroTypingServiciosEn 2s steps(12, end) forwards, heroCaret .7s step-end infinite;
}
.nosotros-page[lang="en"] body.equipo-page .hero-title-type.is-typing {
  animation: heroTypingEquipoEn 2s steps(8, end) forwards, heroCaret .7s step-end infinite;
}
@keyframes heroTyping {
  from { width: 0; }
  to   { width: 9ch; }
}
@keyframes heroTypingNosotros {
  from { width: 0; }
  to   { width: 11ch; }
}
@keyframes heroTypingServicios {
  from { width: 0; }
  to   { width: 18ch; }
}
@keyframes heroTypingEquipo {
  from { width: 0; }
  to   { width: 15ch; }
}
@keyframes heroTypingClientes {
  from { width: 0; }
  to   { width: 20ch; }
}
@keyframes heroTypingContacto {
  from { width: 0; }
  to   { width: 8ch; }
}

/* ============================================================
   CONTACTO PAGE
   ============================================================ */
.contacto-page .contacto-info {
  padding: 48px 0 64px;
  background: #fff;
}

.contacto-page .contacto-card-dark {
  max-width: 1100px;
  margin: 0 auto;
  background: #111;
  border-radius: 24px;
  padding: 48px 40px 52px;
}

.contacto-page .contacto-lead {
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 36px;
  line-height: 1.3;
}

.contacto-page .contacto-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* entrada escalonada por card usando --i */
@keyframes contactoItemIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contacto-page .contacto-item {
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  opacity: 0;
  animation: contactoItemIn .55s ease forwards;
  animation-delay: calc(var(--i) * 160ms + 200ms);
}

.contacto-page .contacto-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d80d1e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contacto-page .contacto-icon svg {
  width: 26px;
  height: 26px;
}

.contacto-page .contacto-item-label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.contacto-page .contacto-item-value {
  font-size: clamp(13px, 1.1vw, 15px);
  color: #111;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.contacto-page a.contacto-item-value:hover {
  color: #d80d1e;
}

@media (max-width: 768px) {
  .contacto-page .contacto-items {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .contacto-page .contacto-card-dark {
    padding: 36px 20px 40px;
    border-radius: 18px;
  }
}

/* --- Sección formulario --- */
.contacto-page .contacto-form-section {
  padding: 56px 0 72px;
  background: #fff;
}

.contacto-page .contacto-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

/* fade-in al entrar en viewport */
@keyframes contactoFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contacto-page .contacto-fade {
  opacity: 0;
}
.contacto-page .contacto-fade.in {
  animation: contactoFadeIn .65s ease forwards;
}
.contacto-page .contacto-form-right.in {
  animation-delay: 160ms;
}

.contacto-page .contacto-form-sup {
  margin: 0 0 4px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  color: #111;
}
.contacto-page .contacto-form-title {
  margin: 0 0 28px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  color: #d80d1e;
}
.contacto-page .contacto-form-promo {
  background: linear-gradient(135deg, #be001a, #e40f1f);
  border-radius: 18px;
  padding: 32px 28px;
}
.contacto-page .contacto-form-promo p {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

/* inputs */
.contacto-page .cform-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.contacto-page .cform-row--full { flex-direction: column; }
.contacto-page .cform-row--half { flex-direction: row; }
.contacto-page .cform-input {
  flex: 1;
  background: #f2f2f2;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: box-shadow .2s;
}
.contacto-page .cform-textarea {
  border-radius: 18px;
  resize: none;
}
.contacto-page .cform-input:focus {
  box-shadow: 0 0 0 2px #d80d1e44;
}
.contacto-page .cform-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.contacto-page .cform-btn:hover { background: #d80d1e; }
.contacto-page .cform-msg {
  margin: 8px 0 0;
  font-size: 14px;
  min-height: 20px;
}

@media (max-width: 820px) {
  .contacto-page .contacto-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contacto-page .cform-row--half { flex-direction: column; }
}

/* --- Mapa --- */
.contacto-page .contacto-mapa {
  padding: 0 24px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.contacto-page .contacto-mapa-iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 20px;
  display: block;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}

@keyframes heroTypingNosotrosEn {
  from { width: 0; }
  to   { width: 10ch; }
}
@keyframes heroTypingServiciosEn {
  from { width: 0; }
  to   { width: 12ch; }
}
@keyframes heroTypingEquipoEn {
  from { width: 0; }
  to   { width: 8ch; }
}
@keyframes heroCaret {
  50% { border-right-color: transparent; }
}
.nosotros-page .hero-visual .photo-burn {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.06) 38%, rgba(255,255,255,.18) 100%);
  mix-blend-mode: soft-light;
  z-index: 4;
  pointer-events: none;
}

/* ---------- BLOG: sección de reels ---------- */
.blog-page .blog-reels {
  padding: 26px 0 18px;
}

.blog-page .blog-reels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  min-height: 660px;
}

.blog-page .blog-reels-left {
  display: flex;
  flex-direction: column;
}

.blog-page .blog-reels-left h2 {
  margin: 0;
  color: #111;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.blog-page .blog-reels-left p {
  margin: 6px 0 14px;
  color: #e3133f;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 600;
}

.blog-page .blog-reel-cover {
  flex: 1;
  min-height: 0;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #2f53ff;
}

.blog-page .blog-reel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page .blog-reels-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

.blog-page .blog-reels-stage {
  position: relative;
  width: 100%;
  height: 640px;
}

.blog-page .blog-reel-card {
  position: absolute;
  top: 80px;
  right: 44px;
  width: 300px;
  height: 534px;
  border-radius: 28px;
  overflow: hidden;
  background: #ececec;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transition: transform .4s ease, opacity .4s ease;
}

.blog-page .blog-reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page .blog-reel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
}

.blog-page .blog-reel-card.pos-0 {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 5;
}

.blog-page .blog-reel-card.pos-0::before {
  opacity: 0;
}

.blog-page .blog-reel-card.pos-1 {
  transform: translate(26px, 22px) scale(.96);
  opacity: .82;
  z-index: 4;
}

.blog-page .blog-reel-card.pos-2 {
  transform: translate(50px, 44px) scale(.92);
  opacity: .64;
  z-index: 3;
}

.blog-page .blog-reel-card.is-hidden {
  opacity: 0;
  transform: translate(66px, 60px) scale(.9);
  z-index: 1;
}

.blog-page .blog-reel-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.blog-page .blog-reel-play::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid rgba(255, 255, 255, .86);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
}

.blog-page .blog-reel-card.pos-0:hover .blog-reel-play::before {
  border-left-color: #fff;
}

.blog-page .blog-reels-next {
  position: absolute;
  right: 0;
  top: 257px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(122, 122, 122, .35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 7;
}

.blog-page .blog-reels-next:hover {
  background: rgba(96, 96, 96, .7);
}

@media (max-width: 980px) {
  .blog-page .blog-reels-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-page .blog-reels-right {
    min-height: 480px;
  }
}

@media (max-width: 620px) {
  .blog-page .blog-reels-left h2 {
    font-size: clamp(22px, 8.2vw, 34px);
  }
  .blog-page .blog-reel-card {
    right: 42px;
    width: 210px;
    height: 374px;
    border-radius: 20px;
  }
  .blog-page .blog-reels-next {
    top: 165px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

.blog-page .blog-pdf {
  padding: 16px 0 24px;
}

.blog-page .blog-pdf-year-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-page .blog-pdf-year-label {
  color: #111;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-top: 5px;
}

.blog-page .blog-pdf-year-switch {
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #101010;
  background: #fff;
  border: 2px solid #d6d6d6;
  border-radius: 10px;
  padding: 6px 32px 6px 12px;
  cursor: pointer;
  appearance: auto;
}

.blog-page .blog-pdf-year-switch:focus {
  outline: 2px solid #2f53ff;
  outline-offset: 2px;
}

.blog-page .blog-pdf-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.blog-page .blog-pdf-card {
  display: block;
  min-height: 230px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #efefef;
  background: #f3f3f3;
  text-decoration: none;
}

.blog-page .blog-pdf-card .pdf-preview {
  position: relative;
  width: 100%;
  min-height: 230px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.blog-page .blog-pdf-card .pdf-preview canvas,
.blog-page .blog-pdf-card .pdf-preview img,
.blog-page .blog-pdf-card .pdf-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
}

.blog-page .blog-pdf-card .pdf-preview iframe {
  border: 0;
  pointer-events: none;
  background: #fff;
}

.blog-page .blog-pdf-card .pdf-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #101010;
  font-size: clamp(24px, 2.8vw, 44px);
  font-weight: 500;
}

.blog-page .blog-pdf-card .pdf-preview.has-thumb .pdf-preview-loading {
  display: none;
}

.blog-page .blog-pdf-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.blog-page .blog-pdf-card .placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #101010;
  font-size: clamp(24px, 2.8vw, 44px);
  font-weight: 500;
}

.blog-page .blog-pdf-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.blog-page .blog-pdf-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #7f7f7f;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.blog-page .blog-pdf-dot.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.blog-page .blog-pdf-empty {
  color: #666;
  font-size: 16px;
  padding: 10px 2px;
}

@media (max-width: 980px) {
  .blog-page .blog-pdf-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-page .blog-pdf-year-label {
    font-size: 22px;
  }
  .blog-page .blog-pdf-year-switch {
    width: 98px;
  }
  .blog-page .blog-pdf-year-btn {
    font-size: 16px;
    padding: 7px 8px;
  }
  .blog-page .blog-pdf-carousel {
    grid-template-columns: 1fr;
  }
  .blog-page .blog-pdf-card,
  .blog-page .blog-pdf-card img,
  .blog-page .blog-pdf-card .placeholder,
  .blog-page .blog-pdf-card .pdf-preview,
  .blog-page .blog-pdf-card .pdf-preview canvas,
  .blog-page .blog-pdf-card .pdf-preview img,
  .blog-page .blog-pdf-card .pdf-preview iframe {
    min-height: 210px;
  }
}

.blog-page .blog-news {
  margin-top: 8px;
  background: linear-gradient(135deg, #be001a, #e40f1f);
  padding: 28px 0 38px;
}

.blog-page .blog-news-head {
  text-align: center;
  margin-bottom: 16px;
}

.blog-page .blog-news-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}

.blog-page .blog-news-head p {
  text-align: center;
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
}

/* ----- Modal noticia completa ----- */
.noticia-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.noticia-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.noticia-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.noticia-modal-card {
  position: relative;
  width: min(700px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}

.noticia-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

/* altura explícita en vh — no depende de % sobre flex parent */
.noticia-modal-carrusel {
  flex-shrink: 0;
  height: 55vh;
}

/* especificidad aumentada para ganar a .blog-page .carrusel-container */
.noticia-modal .noticia-modal-carrusel .carrusel-container {
  position: relative;
  height: 55vh;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #fff;
  width: 100%;
  height: 100%;
}

/* fade entre slides del modal */
.noticia-modal .noticia-modal-carrusel .slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
}

.noticia-modal .noticia-modal-carrusel .slide.active {
  display: block;
  opacity: 1;
}

.noticia-modal .noticia-modal-carrusel .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* body scrollable con min-height: 0 para respetar el flex */
.noticia-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
}

.noticia-modal-body h3 {
  margin: 0 0 14px;
  color: var(--red, #d80d1e);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.noticia-modal-body p {
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  text-align: justify;
}

.noticia-modal-fecha {
  margin-top: 16px !important;
  color: #999 !important;
  font-size: 13px !important;
}

@media (max-width: 620px) {
  .noticia-modal-card { max-height: 96vh; }
  .noticia-modal-carrusel,
  .noticia-modal .noticia-modal-carrusel .carrusel-container { height: 40vh; }
  .noticia-modal-body { padding: 16px 16px 20px; }
}

/* ----- Contenedor noticias (grid de cards) ----- */
.blog-page .contenedor-noticias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.blog-page .card-noticia {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ----- Carrusel de imágenes dentro de cada card ----- */
.blog-page .carrusel-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #111;
}

.blog-page .slides-wrapper {
  height: 100%;
}

.blog-page .slide {
  display: none;
  height: 100%;
}

.blog-page .slide.active {
  display: block;
}

.blog-page .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page .btn-carrusel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.blog-page .btn-carrusel.prev { left: 8px; }
.blog-page .btn-carrusel.next { right: 8px; }

/* ----- Cuerpo de la card ----- */
.blog-page .card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-page .fecha-publicacion {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.blog-page .card-title {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.2;
}

.blog-page .card-contenido {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.4;
  flex: 1;
}

/* card-body hereda el fondo rojo de la sección */
.blog-page .card-noticia .card-body {
  background: #c8001a;
}

.blog-page .sin-noticias,
.blog-page .error-noticias {
  color: #fff;
  background: rgba(0,0,0,.25);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

@media (max-width: 980px) {
  .blog-page .contenedor-noticias { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .blog-page .blog-news { padding: 22px 0 30px; }
  .blog-page .blog-news-head h2 { font-size: clamp(24px, 9vw, 34px); }
  .blog-page .blog-news-head p { font-size: clamp(16px, 5.5vw, 22px); }
  .blog-page .contenedor-noticias { grid-template-columns: 1fr; }
}
.nosotros-page .hero-progress {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nosotros-page .hero-count {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.94);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
}
.nosotros-page .hero-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255,255,255,.86);
}
.nosotros-page .hero-dots { display: flex; align-items: center; gap: 10px; flex: none; }
.nosotros-page .hero-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: none;
  background: #fff;
  opacity: .9;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}
.nosotros-page .hero-dot.is-active { background: #111; opacity: 1; transform: scale(1.08); }

/* ---------- SECTION generic ---------- */
.nosotros-page section { padding: 72px 0; }
.nosotros-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.nosotros-page .section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.nosotros-page .section-num { font-size: 13px; color: #8a8a8a; font-weight: 600; letter-spacing: .08em; }

/* reveal utility */
.nosotros-page .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.nosotros-page .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- HISTORIA ---------- */
.nosotros-page .historia { background: var(--paper); }
.nosotros-page .historia-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
}
.nosotros-page .historia-text p { font-size: 16.5px; line-height: 1.5; color: var(--gray-text); margin-bottom: 18px; text-align: justify; font-weight: 400; }
.nosotros-page .historia-text p:first-of-type { font-size: 16.5px; color: var(--gray-text); font-weight: 400; line-height: 1.5; }
.nosotros-page .timeline {
  --timeline-dot-size: 10px;
  --timeline-line-x: 14px;
  position: relative;
  padding-left: 48px;
  height: 430px;
  overflow: hidden;
}
.nosotros-page .timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-line-x);
  top: 10px; bottom: 10px;
  width: 2px;
  background: var(--red-solid);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.nosotros-page .timeline.in::before { transform: scaleY(1); }
.nosotros-page .timeline-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(0);
  transition: transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.nosotros-page .t-item {
  position: relative;
  min-height: 76px;
  padding: 8px 12px 8px 6px;
  border-radius: 8px;
  background: var(--paper);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nosotros-page .t-item.active { background: var(--paper-2); padding: 10px 14px; border-radius: 4px; width: 82%; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.06); }
.nosotros-page .t-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * (46px - var(--timeline-line-x) - (var(--timeline-dot-size) / 2)));
  top: 14px;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red-solid);
  box-shadow: none;
  transform: scale(0);
  transition: transform .4s ease .3s, background .3s ease, box-shadow .3s ease;
}
.nosotros-page .t-item::after {
  content: "";
  position: absolute;
  left: calc(-1 * (46px - var(--timeline-line-x) - 6px));
  top: 29px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background .3s ease, transform .3s ease;
  transform: scale(.8);
}
.nosotros-page .t-item.in::before { transform: scale(1); }
.nosotros-page .t-item.active::before { background: var(--red-solid); box-shadow: inset 0 0 0 2px var(--paper); }
.nosotros-page .t-item.active::after { background: transparent; transform: scale(0); }
.nosotros-page .t-year { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 600; color: var(--red-solid); margin-bottom: 3px; line-height: 1; }
.nosotros-page .t-item p { font-size: 13.5px; color: var(--gray-text); line-height: 1.5; max-width: 380px; }

/* ---------- ENFOQUE CENTRAL ---------- */
.nosotros-page .enfoque { background: var(--paper); color: var(--ink); overflow: hidden; }
.nosotros-page .enfoque .eyebrow { color: var(--red-solid); }
.nosotros-page .enfoque .section-head { display: none; }
.nosotros-page .enfoque .section-head h2 { color: var(--ink); }
.nosotros-page .enfoque .section-num { color: #8a8a8a; }
.nosotros-page .enfoque-bar {
  height: 52px;
  width: min(100%, 760px);
  margin: 0 auto 56px;
  border-radius: 18px;
  background: linear-gradient(90deg,#7d0000 0%,#b10606 14%,#cf1212 50%,#b10606 86%,#7d0000 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(90,0,0,.24), inset 0 1px 0 rgba(255,255,255,.18);
  opacity: 1;
  transform: translateX(0);
  transition: clip-path 1.1s cubic-bezier(.16,.8,.2,1), opacity .45s ease, transform .7s cubic-bezier(.16,.8,.2,1);
}
.nosotros-page .enfoque-bar.in { animation: enfoqueSlideIn 1.15s cubic-bezier(.16,.8,.2,1) both; }
@keyframes enfoqueSlideIn {
  from { opacity: 1; transform: translateX(calc(-100% - 80px)); }
  to   { opacity: 1; transform: translateX(0); }
}
.nosotros-page .blocks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 34px; }
.nosotros-page .block { text-align: center; padding: 0; background: transparent; }
.nosotros-page .block-letter {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.nosotros-page .block-letter img { width: min(100%,132px); height: auto; display: block; margin: 0 auto; }
.nosotros-page .block.lego-in .block-letter { opacity: 1; transform: translateY(0) scale(1); }
.nosotros-page .block-body {
  margin-top: 12px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.nosotros-page .block.text-in .block-body { opacity: 1; transform: translateY(0); }
.nosotros-page .block h3 { font-size: 20px; margin-bottom: 4px; color: var(--ink); line-height: 1; }
.nosotros-page .block p { font-size: 20px; line-height: 1; color: var(--ink); }
.nosotros-page .block[data-order="1"] h3 { color: var(--red-solid); }
.nosotros-page .block ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nosotros-page .block li { font-size: 20px; color: var(--red-solid); font-weight: 600; line-height: 1.02; }
.nosotros-page .block li::before { display: none; }
.nosotros-page .block-letter,
.nosotros-page .block-body { transition-delay: var(--d, 0s); }

/* ---------- LICENCIA ---------- */
.nosotros-page .licencia {
  background:
    linear-gradient(rgba(255,255,255,.58),rgba(255,255,255,.58)),
    url('../img/fondo-registro.png') center/cover no-repeat;
}
.nosotros-page .licencia-quote { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.nosotros-page .licencia-insignia-top { width: 56px; height: auto; display: block; margin: 0 auto 18px; }
.nosotros-page .licencia-quote .eyebrow { display: block; text-align: center; margin-bottom: 14px; }
.nosotros-page .licencia-quote h2 { font-size: clamp(19px, 2.35vw, 25px); font-style: italic; font-weight: 500; line-height: 1.35; color: var(--ink); }
.nosotros-page .licencia-quote h2 em { color: var(--red-solid); font-style: normal; }
.nosotros-page .licencia-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; background: transparent; }
.nosotros-page .licencia-grid > div { padding: 44px 40px; }
.nosotros-page .licencia-grid .left { background: transparent; }
.nosotros-page .licencia-grid .left p { font-size: 15px; line-height: 1.75; color: var(--gray-text); }
.nosotros-page .licencia-grid .right { background: var(--grad-red); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.nosotros-page .licencia-insignia { width: 74px; height: auto; margin: 0 0 12px; }
.nosotros-page .licencia-grid .right p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.92); font-weight: 600; }
.nosotros-page .badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.nosotros-page .badge::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #141414; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }

/* ---------- IDENTIDAD ---------- */
.nosotros-page .identidad { background: var(--paper); }
.nosotros-page .identidad .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 8px; }
.nosotros-page .identidad .section-head h2 { color: var(--red-solid); font-family: 'Poppins', sans-serif; }
.nosotros-page .identidad .section-num { display: none; }
.nosotros-page .id-grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; background: transparent; border: none; border-radius: 0; overflow: visible; align-items: stretch; }
.nosotros-page .id-card {
  background: var(--paper);
  padding: 36px 24px;
  border: 2px solid #1a1a1a;
  border-radius: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nosotros-page .id-card.mid {
  background: linear-gradient(160deg,#8a0000 0%,#c81a2c 50%,#8a0000 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  border: none; padding: 36px 24px; border-radius: 20px; box-shadow: 0 12px 36px rgba(138,0,0,.30);
}
.nosotros-page .id-card .eyebrow { margin-bottom: 16px; display: block; color: var(--red-solid); font-weight: 700; }
.nosotros-page .id-card p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.nosotros-page .id-card.mid p { color: #fff; font-family: 'Poppins', sans-serif; font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.35; }
.nosotros-page .id-card.mid .eyebrow { color: #fff; font-weight: 700; }

/* ---------- PILARES ---------- */
.nosotros-page .pilares { background: var(--paper); padding: 56px 0; }
.nosotros-page .pilares-bar { display: flex; align-items: center; gap: 0; overflow: hidden; }
.nosotros-page .pilares-label { display: flex; align-items: center; gap: 14px; flex: none; padding-right: 40px; }
.nosotros-page .pilares-label::before { content: ''; display: block; width: 36px; height: 3px; background: var(--ink); border-radius: 2px; flex: none; }
.nosotros-page .pilares-label span { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nosotros-page .pilar-grid { display: flex; gap: 40px; align-items: flex-start; flex: 1; padding-left: 40px; overflow: visible; }
.nosotros-page .pilar {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: transparent; border: none; padding: 0; flex: 1;
  opacity: 0; transform: translateX(-120px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.nosotros-page .pilar.slide-in { opacity: 1; transform: translateX(0); }
.nosotros-page .pilar-img-wrap { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.nosotros-page .pilar:nth-child(1) .pilar-img-wrap { background: var(--icon-green); }
.nosotros-page .pilar:nth-child(2) .pilar-img-wrap { background: var(--icon-teal); }
.nosotros-page .pilar:nth-child(3) .pilar-img-wrap { background: var(--icon-red); }
.nosotros-page .pilar:nth-child(4) .pilar-img-wrap { background: var(--icon-orange); }
.nosotros-page .pilar-img-wrap img { width: 58px; height: 58px; object-fit: contain; }
.nosotros-page .pilar h4 { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); max-width: 110px; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.nosotros-page .pilar.text-visible h4 { opacity: 1; transform: translateY(0); }
.nosotros-page .pilar:nth-child(1) h4 { color: var(--icon-green); }
.nosotros-page .pilar:nth-child(2) h4 { color: var(--icon-teal); }
.nosotros-page .pilar:nth-child(3) h4 { color: var(--icon-red); }
.nosotros-page .pilar:nth-child(4) h4 { color: var(--icon-orange); }
@media (max-width: 900px) {
  .nosotros-page .pilares-bar { flex-direction: column; align-items: flex-start; gap: 32px; }
  .nosotros-page .pilar-grid { flex-wrap: wrap; padding-left: 0; gap: 28px; }
  .nosotros-page .pilar { flex: 0 0 calc(50% - 14px); }
}

/* ---------- PROPOSITO ---------- */
.nosotros-page .proposito { padding: 0; position: relative; overflow: visible; background: #111111; }
.nosotros-page .proposito-top { display: grid; grid-template-columns: 36% 64%; min-height: 280px; }
.nosotros-page .proposito-top-text { background: #fff; padding: 60px 48px 90px; display: flex; flex-direction: column; justify-content: center; }
.nosotros-page .proposito-top-text h2 { font-family: 'Poppins', sans-serif; font-size: clamp(28px,3.2vw,42px); font-weight: 700; line-height: 1.15; color: var(--red-solid, #e30613); margin-bottom: 20px; }
.nosotros-page .proposito-top-text p { font-size: clamp(16px,1.8vw,22px); line-height: 1.35; color: #111111; margin: 0; font-weight: 400; }
.nosotros-page .proposito-top-photo { position: relative; overflow: hidden; }
.nosotros-page .proposito-top-photo.reveal { opacity: 1; transform: none; transition: none; }
.nosotros-page .proposito-top-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transform: scale(1.25); opacity: 0; transition: transform 1.4s cubic-bezier(0.16,1,0.3,1), opacity 0.9s ease; }
.nosotros-page .proposito-top-photo.in img { transform: scale(1); opacity: 1; }
.nosotros-page .proposito-cards {
  --card-h: clamp(170px, 17vw, 240px);
  position: relative; z-index: 10;
  display: flex; justify-content: center; align-items: center;
  width: 64%; margin-left: 36%;
  margin-top: calc(var(--card-h) * -0.5);
  padding: 0 20px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.45));
}
.nosotros-page .proposito-card { height: var(--card-h); flex: 0 0 auto; position: relative; opacity: 0; transform: translateY(35px) scale(0.94); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.nosotros-page .proposito-cards.in .proposito-card { opacity: 1; transform: translateY(0) scale(1); }
.nosotros-page .proposito-cards.in .proposito-card:nth-child(1) { transition-delay: 0.1s; }
.nosotros-page .proposito-cards.in .proposito-card:nth-child(2) { transition-delay: 0.28s; }
.nosotros-page .proposito-cards.in .proposito-card:nth-child(3) { transition-delay: 0.46s; }
.nosotros-page .proposito-card img { height: 100%; width: auto; display: block; border-radius: 0; box-shadow: none; }
.nosotros-page .proposito-card:nth-child(1) { z-index: 1; }
.nosotros-page .proposito-card:nth-child(2) { margin-left: calc(var(--card-h) * -0.1473); z-index: 2; }
.nosotros-page .proposito-card:nth-child(3) { margin-left: calc(var(--card-h) * -0.1473); z-index: 3; }
.nosotros-page .proposito-cards.in .proposito-card:hover { transform: translateY(-8px) scale(1.02); transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), opacity 0.3s ease; transition-delay: 0s !important; z-index: 20; }
.nosotros-page .proposito-bottom { background: var(--grad-dark, #111111); padding: calc(var(--card-h) * 0.5 + 40px) 48px 72px; }
.nosotros-page .proposito-bottom-inner { max-width: 960px; margin: 0 auto; }
.nosotros-page .proposito-bottom p { font-size: 15px; line-height: 1.85; color: #ffffff; margin-bottom: 24px; }
.nosotros-page .proposito-bottom p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .nosotros-page .proposito-top { grid-template-columns: 1fr; }
  .nosotros-page .proposito-top-photo { min-height: 240px; }
  .nosotros-page .proposito-cards { width: 100%; margin-left: 0; justify-content: center; --card-h: clamp(110px,24vw,180px); margin-top: calc(var(--card-h) * -0.5); padding: 0 16px; }
  .nosotros-page .proposito-bottom { padding: calc(var(--card-h) * 0.5 + 32px) 24px 56px; }
}

/* ---------- ESTRUCTURA ORGANIZACIONAL ---------- */
.nosotros-page .estructura { background: var(--paper, #ffffff); padding: 38px 0 46px; }
.nosotros-page .estructura .section-head { text-align: center; justify-content: center; }
.nosotros-page .org-display { max-width: 760px; margin: 28px auto 0; position: relative; }
.nosotros-page .org-canvas { position: relative; width: 100%; padding-top: 67.15%; /* 1004/1495 aspect ratio */ }
.nosotros-page .org-base,
.nosotros-page .org-orbit,
.nosotros-page .org-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.nosotros-page .org-base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 2;
}
.nosotros-page .org-orbit {
  width: 78%;
  height: auto;
  z-index: 1;
  transform-origin: center center;
  animation: spinOrbit 25s linear infinite;
  animation-play-state: paused;
}
.nosotros-page .org-center { width: 23%; height: auto; z-index: 3; object-fit: contain; }
@keyframes spinOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ---- 6 Interactive Pill Buttons ---- */
.nosotros-page .org-pills {
  position: absolute;
  inset: 0;
  z-index: 9;
  transform-origin: center center;
  animation: spinButtons 28s linear infinite reverse;
  animation-play-state: paused;
}
@keyframes spinButtons {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.nosotros-page .org-btn {
  position: absolute; z-index: 10;
  padding: 8px 20px; border-radius: 46px;
  font-size: clamp(11px, 1.1vw, 13.5px); font-weight: 600; color: #ffffff;
  text-align: center; line-height: 1.25;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  cursor: pointer;
  opacity: 0; transform: scale(0.3) translateY(20px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.175,0.885,0.32,1.275);
  user-select: none;
}
.nosotros-page .org-btn.btn-1, .nosotros-page .org-btn.btn-3, .nosotros-page .org-btn.btn-5 { background: linear-gradient(135deg,#e30613 0%,#900000 100%); }
.nosotros-page .org-btn.btn-2, .nosotros-page .org-btn.btn-4, .nosotros-page .org-btn.btn-6 { background: linear-gradient(135deg,#2a2a2a 0%,#111111 100%); }
.nosotros-page .org-btn.btn-1 { top: 8%;  left: 52%; }
.nosotros-page .org-btn.btn-2 { top: 35%; left: 66%; }
.nosotros-page .org-btn.btn-3 { top: 70%; left: 57%; }
.nosotros-page .org-btn.btn-4 { top: 82%; left: 30%; }
.nosotros-page .org-btn.btn-5 { top: 52%; left: 6%; }
.nosotros-page .org-btn.btn-6 { top: 13%; left: 14%; }
.nosotros-page .org-display.in .org-btn { opacity: 1; transform: scale(1) translateY(0); }
.nosotros-page .org-display.in .org-btn.btn-1 { transition-delay: 0.20s; }
.nosotros-page .org-display.in .org-btn.btn-2 { transition-delay: 0.45s; }
.nosotros-page .org-display.in .org-btn.btn-3 { transition-delay: 0.70s; }
.nosotros-page .org-display.in .org-btn.btn-4 { transition-delay: 0.95s; }
.nosotros-page .org-display.in .org-btn.btn-5 { transition-delay: 1.20s; }
.nosotros-page .org-display.in .org-btn.btn-6 { transition-delay: 1.45s; }
.nosotros-page .org-display.in .org-orbit { animation-play-state: running; }
.nosotros-page .org-display.in .org-pills { animation-play-state: running; animation-delay: 1.55s; }

/* contra-rotación: cancela el giro del contenedor para que el texto siempre quede derecho */
@keyframes counterSpinBtn {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}
.nosotros-page .org-display.in .org-btn {
  animation: counterSpinBtn 28s linear infinite;
  animation-delay: 1.55s;
  animation-fill-mode: backwards;
}
.nosotros-page .org-display.in .org-btn:hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,0.42); transition-delay: 0s !important; }
.nosotros-page .org-dot { fill: var(--red-solid); }

/* ---------- ES MOMENTO ---------- */
.nosotros-page .momento { background: #ffffff; padding: 48px 0 56px; }
.nosotros-page .momento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nosotros-page .momento-text { text-align: left; }
.nosotros-page .momento-text h2 { font-size: clamp(22px,2.4vw,30px); font-weight: 800; color: var(--red-solid); margin: 0 0 24px; line-height: 1.2; font-style: normal; }
.nosotros-page .momento-blockquote { border-left: 4px solid var(--red-solid); padding-left: 18px; margin: 0 0 24px; font-size: clamp(15px,1.5vw,18px); font-weight: 600; color: #1a1a1a; font-style: normal; line-height: 1.4; }
.nosotros-page .momento-text p { font-size: clamp(13px,1.2vw,15px); line-height: 1.8; color: #444; text-align: justify; margin: 0; }
.nosotros-page .momento-visual { position: relative; border-radius: 8px; overflow: hidden; line-height: 0; }
.nosotros-page .momento-visual img.momento-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
@media (max-width: 768px) {
  .nosotros-page .momento-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Nosotros responsive ---------- */
@media (max-width: 900px) {
  .nosotros-page nav.links,
  .nosotros-page .nav-right .lang-switch { display: none; }
  .nosotros-page .hero-inner { grid-template-columns: 1fr; padding-top: 108px; }
  .nosotros-page .hero-visual { height: clamp(270px, 70vw, 400px); }
  .nosotros-page .hero-slide { transform: scale(1.015); }
  .nosotros-page .hero-slide.is-active { transform: scale(1); }
  .nosotros-page .hero-visual::after {
    background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.06) 44%, rgba(0,0,0,.22) 100%);
  }
  .nosotros-page .hero-copy h1 { font-size: clamp(34px, 10.4vw, 52px); }
  .nosotros-page .hero-progress { left: 14px; right: 14px; bottom: 14px; gap: 12px; }
  .nosotros-page .hero-count { width: 32px; height: 32px; font-size: 14px; }
  .nosotros-page .hero-dot { width: 12px; height: 12px; }
  .nosotros-page .historia-grid,
  .nosotros-page .proposito-grid,
  .nosotros-page .id-grid,
  .nosotros-page .licencia-grid,
  .nosotros-page .blocks { grid-template-columns: 1fr; }
  .nosotros-page .block { max-width: 280px; margin: 0 auto; }
  .nosotros-page .block h3, .nosotros-page .block p { font-size: 26px; }
  .nosotros-page .block li { font-size: 26px; }
  .nosotros-page .timeline { height: 390px; }
  .nosotros-page .id-grid { grid-template-columns: 1fr; }
  .nosotros-page .pilar-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-page section { padding: 48px 0; }
}

@media (max-width: 640px) {
  .nosotros-page .hero-inner { padding: 104px 0 64px; }
  .nosotros-page .hero-visual { width: 100vw; margin-left: calc(50% - 50vw); border-left: none; border-right: none; border-radius: 18px 18px 0 0; height: clamp(250px, 76vw, 360px); }
  .nosotros-page .hero-copy { padding: 18px; }

  /* Ajuste fino por página para evitar recortes fuertes en móvil. */
  .nosotros-page body:not(.servicios-page):not(.equipo-page) .hero-slide { object-position: center 40%; }
  .nosotros-page .servicios-page .hero-slide { object-position: center 38%; }
  .nosotros-page .equipo-page .hero-slide { object-position: center 30%; }
}

/* ---------- LINEAS DE ACCION (servicios.html) ---------- */
.servicios-page .lineas-accion { padding: 48px 0 56px; background: #fff; }
.servicios-page .lineas-header { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.servicios-page .lineas-title h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; color: var(--black); margin: 0 0 8px; }
.servicios-page .lineas-title .lineas-sub { font-style: italic; font-weight: 600; color: var(--red); font-size: clamp(14px, 1.3vw, 17px); }
.servicios-page .lineas-card {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 600; line-height: 1.5;
  padding: 22px 28px; border-radius: 22px;
  font-size: clamp(14px, 1.3vw, 16px);
  box-shadow: 0 16px 32px rgba(142, 14, 28, 0.28);
}

.servicios-page .lineas-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.servicios-page .lineas-tab {
  border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #2a2a2a, var(--black));
  color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 26px; border-radius: 40px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.servicios-page .lineas-tab:hover { transform: translateY(-2px); }
.servicios-page .lineas-tab.is-active { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.servicios-page .lineas-tab:disabled { opacity: 0.45; cursor: not-allowed; }
.servicios-page .lineas-tab:disabled:hover { transform: none; }

.servicios-page .lineas-content { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.servicios-page .lineas-arrow {
  position: absolute; left: -46px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--red); font-weight: 700;
}
.servicios-page .lineas-photo { position: relative; border-radius: 24px; overflow: hidden; line-height: 0; }
.servicios-page .lineas-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.servicios-page .lineas-text h3 { color: var(--red); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; margin: 0 0 14px; }
.servicios-page .lineas-text > p { color: var(--ink); line-height: 1.6; margin: 0 0 18px; }
.servicios-page .lineas-text ul { display: flex; flex-direction: column; gap: 10px; }
.servicios-page .lineas-text li { position: relative; padding-left: 28px; color: var(--ink); line-height: 1.5; font-size: 15px; }
.servicios-page .lineas-text li::before {
  content: '+'; position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: 13px; font-weight: 800; line-height: 18px; text-align: center;
}

@media (max-width: 900px) {
  .servicios-page .lineas-header { grid-template-columns: 1fr; }
  .servicios-page .lineas-content { grid-template-columns: 1fr; }
  .servicios-page .lineas-arrow { display: none; }
  .servicios-page .lineas-photo { min-height: 260px; }
}

/* ---------- NUESTRA ESTRATEGIA (servicios.html) ---------- */
.servicios-page .estrategia { --lucia-h: clamp(110px, 10vw, 150px); }
.servicios-page .estrategia-top {
  background: #ffffff url('../img/servicios/estrategia-fondo-negro.png') center / cover no-repeat;
  padding: 60px 0 48px; text-align: center; color: #fff;
}
.servicios-page .estrategia-top h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin: 0 0 14px; }
.servicios-page .estrategia-top p { max-width: 560px; margin: 0 auto; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); }

.servicios-page .estrategia-bottom { background: var(--gray-bg); padding: 0 0 56px; display: flow-root; }

.servicios-page .lucia-card {
  height: var(--lucia-h);
  max-width: 620px; margin-left: auto; margin-right: auto;
  display: flex; align-items: stretch; background: #fff; border-radius: 16px;
  margin-top: calc(var(--lucia-h) * -0.3); margin-bottom: 60px; position: relative; z-index: 5;
  box-shadow: 0 24px 48px rgba(0,0,0,.22);
  overflow: hidden;
}
.servicios-page .lucia-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 6px; text-align: center;
  border: none; background: #fff; font-family: inherit; cursor: pointer;
  transition: background 0.25s ease;
}
.servicios-page .lucia-item:hover { background: rgba(227,28,61,.06); }
.servicios-page .lucia-item img { height: clamp(26px, 3vw, 36px); width: auto; object-fit: contain; }
.servicios-page .lucia-item .lucia-label { font-size: 10.5px; font-weight: 600; color: #333; line-height: 1.25; }
.servicios-page .lucia-item.is-active { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.servicios-page .lucia-item.is-active:hover { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.servicios-page .lucia-item.is-active .lucia-label { color: #fff; }

.servicios-page .metodologia-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--black); line-height: 1.2; margin: 0 0 40px; }

.servicios-page .metodologia-track { position: relative; display: flex; justify-content: space-between; gap: 8px; }
.servicios-page .metodologia-track .track-line { position: absolute; top: 15px; left: 4%; right: 4%; height: 2px; background: #d6d6d6; z-index: 0; }
.servicios-page .step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.servicios-page .step .dot-wrap { height: 30px; display: flex; align-items: center; justify-content: center; }
.servicios-page .step .dot { width: 14px; height: 14px; border-radius: 50%; background: #c7c7c7; }
.servicios-page .step.is-active .dot { width: 24px; height: 24px; background: var(--red); box-shadow: 0 0 0 6px rgba(227,28,61,.15); }
.servicios-page .step-copy strong { display: block; font-size: 13px; font-weight: 700; color: #9a9a9a; margin-bottom: 6px; }
.servicios-page .step.is-active .step-copy strong { color: var(--red); }
.servicios-page .step-copy p { max-width: 150px; margin: 0 auto; font-size: 12.5px; line-height: 1.4; color: #9a9a9a; }
.servicios-page .step.is-active .step-copy p { color: #333; font-weight: 600; }

@media (max-width: 900px) {
  .servicios-page .lucia-card { height: auto; flex-wrap: wrap; margin-top: calc(var(--lucia-h) * -0.3); }
  .servicios-page .lucia-item { flex: 0 0 33.333%; }
  .servicios-page .metodologia-track { flex-wrap: wrap; row-gap: 30px; }
  .servicios-page .metodologia-track .track-line { display: none; }
  .servicios-page .step { flex: 0 0 33.333%; }
}
@media (max-width: 560px) {
  .servicios-page .lucia-item { flex: 0 0 50%; }
  .servicios-page .step { flex: 0 0 50%; }
}

/* ---------- LLAMA (servicios.html) ---------- */
.servicios-page .llama-quote { background: #fff; padding: 40px 0; text-align: center; }
.servicios-page .llama-quote p { font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; color: var(--ink); margin: 0 0 18px; }
.servicios-page .llama-quote img { margin: 0 auto; width: 90px; height: auto; }

/* ---------- SOLUCIONES ESTRATEGICAS (servicios.html) ---------- */
.servicios-page .soluciones { padding: 0 0 56px; }
.servicios-page .soluciones-card {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 32px; padding: 44px 40px 34px;
}
.servicios-page .soluciones-header { text-align: center; color: #fff; margin-bottom: 30px; }
.servicios-page .soluciones-header h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin: 0 0 10px; }
.servicios-page .soluciones-header p { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9); margin: 0; }

.servicios-page .soluciones-panel { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.22); }
.servicios-page .soluciones-track { position: relative; min-height: clamp(340px, 34vw, 420px); }

.servicios-page .soluciones-slide {
  position: absolute; inset: 0; padding: 30px 34px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.5s ease, visibility 0.6s;
}
.servicios-page .soluciones-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); z-index: 2; }
.servicios-page .soluciones-slide.is-prev { transform: translateX(-100%); }
.servicios-page .soluciones-slide.is-next { transform: translateX(100%); }

.servicios-page .soluciones-brand { margin-bottom: 18px; text-align: center; }
.servicios-page .soluciones-brand img { height: clamp(28px, 3vw, 40px); width: auto; display: block; margin: 0 auto; }
.servicios-page .soluciones-brand.brand-360 img { height: clamp(42px, 4.5vw, 64px); }

.servicios-page .soluciones-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.servicios-page .soluciones-text h3 {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0 0 14px;
  border-left: 3px solid var(--red); padding-left: 12px;
}
.servicios-page .soluciones-text > p { font-size: 13.5px; line-height: 1.6; color: #444; margin: 0 0 16px; }
.servicios-page .soluciones-label { font-size: 13.5px; font-weight: 700; color: var(--red); margin: 0 0 10px; }
.servicios-page .soluciones-text ul { display: flex; flex-direction: column; gap: 6px; }
.servicios-page .soluciones-text li { position: relative; padding-left: 16px; font-size: 13px; color: #333; line-height: 1.4; }
.servicios-page .soluciones-text li::before { content: '•'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.servicios-page .soluciones-media { position: relative; height: 100%; min-height: 160px; }
.servicios-page .video-placeholder {
  position: absolute; inset: 10px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, #2b2b2b, #0d0d0d);
  border: 1px solid #3a6df0; display: flex; align-items: center; justify-content: center;
}
.servicios-page .video-placeholder.video-360 { background: linear-gradient(160deg, #241a5e, #3a5bd9); }
.servicios-page .video-placeholder.video-centtra { background: linear-gradient(160deg, #c9151f, #7a0d14); }
.servicios-page .video-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.servicios-page .video-stars { position: absolute; top: 16px; right: 22px; display: flex; gap: 10px; color: #ffd54a; font-size: 16px; }
.servicios-page .video-icon { position: absolute; font-size: 42px; }
.servicios-page .video-play {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--red); font-size: 18px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.servicios-page .video-play.is-hidden { display: none; }
.servicios-page .video-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: #fff; font-size: 11px; z-index: 1;
}

.servicios-page .soluciones-nav { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.servicios-page .sol-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--red); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.servicios-page .sol-arrow:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 900px) {
  .servicios-page .soluciones-body { grid-template-columns: 1fr; }
  .servicios-page .soluciones-card { padding: 34px 22px 28px; }
  .servicios-page .soluciones-slide { padding: 24px 20px; position: relative; }
  .servicios-page .soluciones-track { min-height: 0; }
  .servicios-page .soluciones-media { min-height: 200px; }
  .servicios-page .video-placeholder { inset: 8px; }
}

/* ---------- CONTACTANOS (servicios.html) ---------- */
.servicios-page .contacto-cta { padding: 48px 0 56px; }
.servicios-page .contacto-top-actions { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.servicios-page .btn-contacto {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 10px 20px rgba(227, 28, 61, .3);
}
.servicios-page .contacto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.servicios-page .contacto-media img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.servicios-page .contacto-content h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--ink); line-height: 1.25; margin: 0 0 16px; }
.servicios-page .contacto-content p { font-size: 14px; line-height: 1.65; color: #444; max-width: 380px; margin: 0; }

@media (max-width: 900px) {
  .servicios-page .contacto-grid { grid-template-columns: 1fr; gap: 26px; }
  .servicios-page .contacto-content p { max-width: none; }
}

/* =========================
   BLOG - NOTICIAS (final)
   ========================= */

.blog-page .blog-news,
#blogNews {
  margin-top: 8px;
  background: linear-gradient(135deg, #be001a, #e40f1f);
  padding: 26px 0 34px;
}

.blog-page .blog-news .container,
#blogNews .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-page .blog-news-head,
#blogNews .blog-news-head {
  text-align: center;
  margin-bottom: 18px;
}

.blog-page .blog-news-head h2,
#blogNews .blog-news-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  font-weight: 800;
}

.blog-page .blog-news-head p,
#blogNews .blog-news-head p {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  text-align: center;
}

/* Carrusel horizontal */

.blog-page .noticias-carousel-wrap,
#blogNews .noticias-carousel-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.blog-page .contenedor-noticias,
#contenedor-noticias {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 24px 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.blog-page .noticias-carousel-wrap::after,
#blogNews .noticias-carousel-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(230, 15, 31, 0) 0%,
    rgba(230, 15, 31, .20) 24%,
    rgba(230, 15, 31, .78) 58%,
    rgba(230, 15, 31, 1) 100%
  );
}

.blog-page .contenedor-noticias::-webkit-scrollbar,
#contenedor-noticias::-webkit-scrollbar {
  display: none;
}

/* Tarjeta */
.blog-page .card-noticia,
#contenedor-noticias > .card-noticia {
  flex: 0 0 calc((100% - 42px - 72px) / 3);
  min-width: 320px;
  background: #fff !important;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Reemplaza cualquier bloque interno conflictivo */
.blog-page .card-noticia,
#contenedor-noticias > .card-noticia,
.blog-page #contenedor-noticias > .card-noticia {
  background: #fff !important;
}

/* Área de imagen */
.blog-page .card-noticia .carrusel-container,
#contenedor-noticias .carrusel-container {
  position: relative;
  height: 150px;
  background: #111;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.blog-page .card-noticia .slides-wrapper,
#contenedor-noticias .slides-wrapper {
  width: 100%;
  height: 100%;
}

.blog-page .card-noticia .slide,
#contenedor-noticias .slide {
  width: 100%;
  height: 100%;
  display: none;
}

.blog-page .card-noticia .slide.active,
#contenedor-noticias .slide.active {
  display: block;
}

.blog-page .card-noticia .slide img,
#contenedor-noticias .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.blog-page .card-noticia .btn-carrusel,
#contenedor-noticias .btn-carrusel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}

.blog-page .card-noticia .btn-carrusel.prev,
#contenedor-noticias .btn-carrusel.prev { left: 8px; }

.blog-page .card-noticia .btn-carrusel.next,
#contenedor-noticias .btn-carrusel.next { right: 8px; }

/* Cuerpo */
.blog-page .card-noticia .card-body,
#contenedor-noticias .card-body {
  background: #fff !important;
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color .25s ease, color .25s ease;
}

.blog-page .card-noticia:hover .card-body,
#contenedor-noticias > .card-noticia:hover .card-body {
  background: #111 !important;
}

.blog-page .card-noticia .card-title,
#contenedor-noticias .card-title {
  margin: 0;
  color: #111;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  display: inline-block;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color .25s ease, color .25s ease;
}

.blog-page .card-noticia:hover .card-title,
#contenedor-noticias > .card-noticia:hover .card-title {
  background: transparent;
  color: #fff;
}

.blog-page .card-noticia .fecha-publicacion,
#contenedor-noticias .fecha-publicacion {
  font-size: 11px;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.blog-page .card-noticia .card-contenido,
#contenedor-noticias .card-contenido {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
  flex: 1;
}

.blog-page .sin-noticias,
.blog-page .error-noticias,
#contenedor-noticias .sin-noticias,
#contenedor-noticias .error-noticias {
  color: #fff;
  background: rgba(0,0,0,.25);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
}

/* ---------- BLOG: carrusel tipo blog-en ---------- */
.blog-page .blog-news-shell {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  overflow: hidden; /* clip peek cards at shell edges */
}

.blog-page .blog-news-viewport {
  overflow: visible;
  width: 100%;
  /* solo difumina el borde derecho donde asoma la 4ª card */
  -webkit-mask-image: linear-gradient(to right, black 88%, transparent 112%);
  mask-image:         linear-gradient(to right, black 88%, transparent 112%);
}

.blog-page .blog-news-track {
  display: flex;
  gap: 12px;
  will-change: transform;
  transition: transform .45s ease;
  width: 100%; /* necesario: las cards usan % sobre este contenedor */
}

.blog-page .blog-news-card {
  flex: 0 0 calc((100% - 24px) / 3); /* 3 completas; la 4ª queda difuminada por el mask */
  min-width: 240px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-page .blog-news-card .media {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #111;
}

.blog-page .blog-news-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page .blog-news-card .body {
  padding: 14px 16px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 112px;
}

.blog-page .blog-news-card .body h3 {
  margin: 0;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: #111;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  transition: background-color .25s ease, color .25s ease;
}

.blog-page .blog-news-card:hover .body h3 {
  background: #111;
  color: #fff;
}

.blog-page .blog-news-empty {
  color: #fff;
  padding: 14px 16px;
  text-align: center;
}

.blog-page .blog-news-arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, .88);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  z-index: 2;
}

.blog-page .blog-news-arrow:hover {
  background: #000;
}

.blog-page .blog-news-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.blog-page .blog-news-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.blog-page .blog-news-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blog-page .blog-news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.blog-page .blog-news-modal-card {
  position: relative;
  width: min(700px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}

.blog-page .blog-news-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.blog-page .blog-news-modal-media {
  position: relative;
  flex-shrink: 0;
  height: 40vh;
  background: #fff;
  margin-top: 48px;
  padding: 0 16px;
}

.blog-page .blog-news-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.blog-page .blog-news-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.blog-page .blog-news-modal-nav.prev { left: 10px; }
.blog-page .blog-news-modal-nav.next { right: 10px; }

.blog-page .blog-news-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
}

.blog-page .blog-news-modal-body h3 {
  margin: 0 0 12px;
  color: #d80d1e;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.blog-page .blog-news-modal-body p {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  text-align: justify;
}

.blog-page .blog-news-modal-fecha {
  margin-top: 16px !important;
  color: #999 !important;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right !important;
}

@media (max-width: 980px) {
  .blog-page .blog-news-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .blog-page .blog-news-card {
    flex: 0 0 calc((100% - 12px) / 2); /* 2 completas + difuminada en tablet */
    min-width: 220px;
  }
}

@media (max-width: 620px) {
  .blog-page .blog-news-shell {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .blog-page .blog-news-arrow {
    width: 36px;
    height: 36px;
  }

  .blog-page .blog-news-card {
    flex: 0 0 calc(100% - 24px); /* 1 completa + difuminada en mobile */
    min-width: 0;
  }

  .blog-page .blog-news-modal-card {
    max-height: 96vh;
  }

  .blog-page .blog-news-modal-media {
    height: 40vh;
  }

  .blog-page .blog-news-modal-body {
    padding: 16px 16px 20px;
  }
}

/* ---------- BLOG: bloque final de contacto ---------- */
.blog-page .blog-contact {
  background: #fff;
  padding: 32px 0 52px;
}

.blog-page .blog-contact-card {
  max-width: 1120px;
  margin: 0 auto;
  background: #f0f0f0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 48px;
}

.blog-page .blog-contact-card h2 {
  margin: 0 0 22px;
  color: #ff0000;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  font-weight: 500;
}

.blog-page .blog-contact-card p {
  margin: 0 auto 22px;
  max-width: 760px;
  color: #101010;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.28;
  text-align: center;
}

.blog-page .blog-contact-card strong {
  color: #ff0000;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
}

@media (max-width: 620px) {
  .blog-page .blog-contact {
    padding: 24px 0 38px;
  }

  .blog-page .blog-contact-card {
    min-height: 210px;
    padding: 26px 18px;
  }

  .blog-page .blog-contact-card h2 {
    margin-bottom: 14px;
  }

  .blog-page .blog-contact-card p {
    margin-bottom: 16px;
    line-height: 1.35;
  }
}

@media (max-width: 980px) {
  .blog-page .card-noticia,
  #contenedor-noticias > .card-noticia {
    flex-basis: calc((100% - 28px - 56px) / 2);
    min-width: 260px;
  }
}

@media (max-width: 620px) {
  .blog-page .blog-news,
  #blogNews {
    padding: 22px 0 30px;
  }

  .blog-page .blog-news-head h2,
  #blogNews .blog-news-head h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .blog-page .blog-news-head p,
  #blogNews .blog-news-head p {
    font-size: clamp(14px, 4.8vw, 18px);
  }

  .blog-page .card-noticia,
  #contenedor-noticias > .card-noticia {
    flex-basis: 220px;
    min-width: 220px;
  }

  .blog-page .card-noticia .carrusel-container,
  #contenedor-noticias .carrusel-container {
    height: 142px;
  }

  .blog-page .contenedor-noticias,
  #contenedor-noticias {
    padding-right: 44px;
  }
}

.blog-page .noticias-carousel-btn,
#blogNews .noticias-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, .88);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.blog-page .noticias-carousel-btn.prev,
#blogNews .noticias-carousel-btn.prev {
  left: -6px;
}

.blog-page .noticias-carousel-btn.next,
#blogNews .noticias-carousel-btn.next {
  right: -6px;
}

.blog-page .noticias-carousel-btn:hover,
#blogNews .noticias-carousel-btn:hover {
  background: #000;
}


