/* ===============================
   BASE
   =============================== */
:root{
  --navbar-h: 56px;
  --hero-h-desktop: 320px;
  --hero-h-mobile: 300px;

  --brand: #0d6efd;
  --ink: #0f172a;

  /* avatar (desktop/tablet/móvil) */
  --avatar-size-d: 180px;
  --avatar-size-t: 140px;
  --avatar-size-m: 120px;

  /* safe areas para botones flotantes */
  --safe-right: max(16px, env(safe-area-inset-right));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));

  --avatar-left: clamp(16px, 4vw, 64px); /* separación desde el borde izquierdo */
  --avatar-size: 180px;   
}
@media (max-width: 768px){
  :root{ --avatar-size: 160px; }         /* tamaño del círculo en móvil/tablet */
}

/* Empuja el contenido para no quedar bajo el círculo */
.cta-inline .container{
  padding-left: calc(var(--avatar-left) + var(--avatar-size) + 24px);
}

*{box-sizing:border-box}
html,body{height:100%}
body{scroll-behavior:smooth}
img{max-width:100%;height:auto;display:block}
footer{background:#1a1a1a;color:#fff}

/* ===============================
   HERO
   =============================== */
.hero-cover{
  position:relative;
  color:#fff;
  height:var(--hero-h-desktop);
  padding-top: calc(var(--navbar-h) + 8px);
  overflow: visible;
}

/* tablet y abajo */
@media (max-width: 991.98px){
  .hero-cover{ height: var(--hero-h-tablet); }
}

/* móvil */
@media (max-width: 575.98px){
  .hero-cover{ height: var(--hero-h-mobile); }
}

.hero-cover::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.36) 60%, rgba(0,0,0,.18) 100%);
}

/* base (desktop) */
.hero-text{
  position:absolute; z-index:4;      /* subimos a 4 para ir sobre el avatar */
  left: clamp(20px, 6vw, 64px);
  bottom: var(--hero-top-desktop);   /* desktop sigue anclado por bottom */
  max-width: 720px;
}

.brand-title{
  font-weight: 800; line-height:1.1;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.75);
}
.brand-tagline{
  opacity:.95;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.75);
}

/* Avatar (desktop por defecto: mitad/mitad usando tamaño desktop) */
.hero-avatar{
  position:absolute; z-index:5;
  left: clamp(16px, 4vw, 64px);
  bottom: calc(-1 * var(--avatar-size-d) / 2); /* mitad fuera del hero */
  width: var(--avatar-size-d);
  height: var(--avatar-size-d);
  border-radius: 50%;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  overflow:hidden;
}
.hero-avatar img{width:100%;height:100%;object-fit:cover}

/* Tablet: mitad/mitad con tamaño tablet, apoyado en el borde y bajado 50% */
@media (min-width: 576px) and (max-width: 991.98px){
  .hero-avatar{
    left: 24px;
    width: var(--avatar-size-t);
    height: var(--avatar-size-t);
    bottom: 0;
    transform: translateY(50%);
  }
  .hero-cover + .cta-inline{
    padding-top: calc(var(--avatar-size-t)/2 + 16px);
  }
}

/* Móvil: mitad/mitad con tamaño móvil */
@media (max-width: 575.98px){
  .hero-text{
    left: 16px; right: 16px;
    bottom: 120px;
    max-width: none;
  }
  .brand-title{
    font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    line-height: 1.15;
  }
  .brand-tagline{
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.35;
    margin-top: .35rem;
  }
  
  .hero-text > .d-flex .btn{
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 14px;
  }

  .hero-avatar{
    left: 16px;
    width: var(--avatar-size-m);
    height: var(--avatar-size-m);
    bottom: 0;
    transform: translateY(50%);
  }
  .hero-cover + .cta-inline{
    padding-top: calc(var(--avatar-size-m)/2 + 16px);
  }
}

/* ===============================
   NAV SECUNDARIA (tabs)
   =============================== */
.section-tabs{
  position:sticky; top:var(--navbar-h); z-index:3;
  background:#fff; border-bottom:1px solid rgba(0,0,0,.08);
}
.section-tabs .container{ padding:.6rem 0; }

.tabs-desktop .tab-link{
  padding:.4rem .75rem; text-decoration:none;
  color: var(--brand); border-bottom:2px solid transparent; white-space:nowrap;
  font-weight:500;
}
.tabs-desktop .tab-link:hover{ border-bottom-color: var(--brand); }

/* Tabs móvil: botón “pastilla” flotante a la derecha, sin duplicados */
.tabs-mobile{ position: relative; width: 100%; min-height: 0; display:flex; justify-content:flex-end; }
.tabs-mobile .tabs-toggle{
  position: absolute; right: 16px; top: -22px; margin: 0;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem; border-radius: 16px;
  background: #fff; color:#2b59ff; font-weight: 600; border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 2;
}

/* ===============================
   VARIOS (portafolio, CTA, botones flotantes)
   =============================== */
.project-card{ transition:transform .25s ease }
.project-card:hover{ transform:scale(1.03); z-index:2 }

#cta{ background:url("img/listo.png") center/cover no-repeat }

/* Botones flotantes apilados (una sola versión) */
.social-stack{
  position: fixed;
  right: var(--safe-right);
  bottom: max(16px, var(--safe-bottom));
  display: flex; flex-direction: column; gap: 14px; z-index: 9999;
}
.social-button{
  position: static;
  display:flex; align-items:center; gap:8px;
  height:48px; padding:10px 14px; border-radius:25px; color:#fff; text-decoration:none; font-weight:600;
  box-shadow:0 4px 12px rgba(0,0,0,.3); overflow:hidden; white-space:nowrap;
  max-width:48px; transition:max-width .3s ease, background-color .2s ease, box-shadow .2s ease;
}
#btn-instagram{ background:#e1306c; }
#btn-whatsapp{ background:#25d366; }
.social-button i{ font-size:1.4rem; line-height:1; }
.social-button .btn-text{ opacity:0; transition:opacity .3s ease; }
.social-button.expanded{ max-width:240px; }
.social-button.expanded .btn-text{ opacity:1; }
@media (hover:hover){
  .social-button:hover{ max-width:240px; }
  .social-button:hover .btn-text{ opacity:1; }
}
/* despegar en móviles si tapa CTAs largos */
@media (max-width: 575.98px){ .social-stack{ bottom: 100px; right: 12px; gap: 12px; } }

/* ===============================
   Mini CTA inmediatamente bajo el hero
   =============================== */
.cta-inline{
  position: relative; z-index: 1;
  background: linear-gradient(90deg, #f8fafc, #eef2ff);
  padding: 18px 0;               /* el padding-top extra lo controlan las reglas de hero */
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ===============================
   YouTube lite card (única)
   =============================== */
.yt-card{
  position: relative; width: 100%; max-width: 700px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background:#000;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.yt-thumb{ position: absolute; inset: 0; }
.yt-thumb img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display:block; }
.yt-play{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.yt-card iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===============================
   Planes
   =============================== */
.plans-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:24px;
}
@media (max-width: 991.98px){ .plans-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px){ .plans-grid{ grid-template-columns: 1fr; } }

.plan-card{
  position:relative; display:flex; flex-direction:column; gap:12px;
  padding:20px 20px 18px; border-radius:16px; background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(0,0,0,.10); }

.plan-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* línea de acento superior */
.plan-accent{ position:absolute; left:0; top:0; height:4px; width:100%; border-radius:16px 16px 0 0; }
.plan-free   .plan-accent{ background: linear-gradient(90deg,#9ca3af,#e5e7eb); }
.plan-basic  .plan-accent{ background: linear-gradient(90deg,#2b59ff,#7aa2ff); }
.plan-pro    .plan-accent{ background: linear-gradient(90deg,#06b6d4,#60a5fa); }
.plan-design .plan-accent{ background: linear-gradient(90deg,#22c55e,#86efac); }
.plan-brand  .plan-accent{ background: linear-gradient(90deg,#f59e0b,#fde047); }

.plan-lines{ list-style:none; padding:0; margin:2px 0 6px; }
.plan-lines li{ display:flex; align-items:center; gap:10px; margin:8px 0; color:#334155; }
.plan-lines li i{ font-size:1.05rem; }
.plan-lines .muted{ color:#9ca3af; }
.plan-lines .ok i{ color:#16a34a; }
.plan-lines .warn, .plan-lines .warn i{ color:#dc2626; }

/* variantes */
.plan-free{   background: #ffffff; }
.plan-basic{  background: #f4f7ff; border-color:#d7e2ff; }
.plan-pro{    background: #eef9ff; border-color:#cfe9fb; }
.plan-design{ background: #f0fff6; border-color:#cfeede; }
.plan-brand{  background: #fff9eb; border-color:#f9e0a6; }

/* utilidades */
.w-fit{ width:fit-content; }

/* ===============================
   Acrílico lateral
   =============================== */
.acrylic-band{
  position: relative;
  padding: 56px 0;
  background:
    radial-gradient(1200px 400px at 85% 20%, rgba(13,110,253,.06), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}
.acrylic-band h2{ font-weight: 800; }
.acrylic-band .lead{ color:#334155; }

.acrylic-media{ position: relative; margin: 0; transform: translateX(6%); }
.acrylic-img{
  display:block; width:100%; height:auto; max-width: 520px;
  filter: drop-shadow(0 18px 40px rgba(2,6,23,.18)); border-radius: 10px;
}
@media (min-width: 1200px){ .acrylic-img{ max-width: 560px; } }
@media (max-width: 991.98px){
  .acrylic-band{ padding: 44px 0; }
  .acrylic-media{ transform:none; display:flex; justify-content:center; margin-top:24px; }
  .acrylic-img{ max-width: 420px; }
}
@media (max-width: 575.98px){ .acrylic-img{ max-width: 320px; } }

/* ===============================
   Ritmo visual
   =============================== */
#portfolio, #testimonials{ padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 575.98px){ #portfolio, #testimonials{ padding-top: 48px; padding-bottom: 48px; } }

/* ===============================
   Accesibilidad
   =============================== */
a:focus-visible, button:focus-visible{
  outline: 3px solid #7aa2ff; outline-offset: 2px;
}
img[width][height]{ height:auto; }

/* ===============================
   Ajustes móviles extra
   =============================== */
@media (max-width: 575.98px){
  .social-stack{ bottom: 100px; }
}

/* Empuje de los CTAs para no chocar con el círculo (solo desktop) */
/* Alinear CTAs exactamente al borde derecho del bloque de texto */
@media (min-width: 992px){
  .hero-text{
    max-width: 980px;            /* ancho de trabajo del texto + CTAs (ajústalo si quieres) */
  }
  .hero-text > .d-flex{
    justify-content: flex-end;   /* alinea los botones a la derecha del bloque */
    margin-left: 0 !important;   /* aseguramos que no queden empujes previos */
    gap: 12px;
  }
}


/* Asegura que en pantallas chicas no se empujen */
@media (max-width: 991.98px){
  .hero-text > .d-flex{
    margin-left: 0 !important;
  }
}

/* ===== Tamaños más compactos para los botones del hero y CTA ===== */
#hero .btn-lg{
  padding: .60rem 1.10rem;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 12px;
}

.cta-inline .btn-lg{
  padding: .65rem 1.20rem;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 12px;
}

/* Ajuste fino por dispositivo */
@media (min-width: 1200px){
  #hero .btn-lg{ padding: .55rem 1.05rem; font-size: .98rem; }
  .cta-inline .btn-lg{ padding: .6rem 1.1rem; font-size: .98rem; }
}
@media (max-width: 991.98px){
  #hero .btn-lg,
  .cta-inline .btn-lg{
    padding: .6rem 1rem;
    font-size: .95rem;
  }
}

/* Navbar limpia con borde inferior suave */
.navbar {
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* Links tipo tabs azules */
.navbar .nav-link{
  color: var(--brand);
  font-weight: 500;
  padding: .6rem .8rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

/* Hover/focus: subrayado azul */
.navbar .nav-link:hover,
.navbar .nav-link:focus{
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Activo: queda subrayado */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"]{
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Botón de la derecha se mantiene tal cual */
.navbar .btn.btn-primary{
  border-radius: .65rem;
  font-weight: 600;
}

/* En móvil: sin subrayado (colapsado) y con más aire vertical */
@media (max-width: 991.98px){
  .navbar .nav-link{
    padding: .55rem 0;
    border-bottom: 0;                /* quitamos la línea en el menú colapsado */
  }
  .navbar .navbar-collapse{
    padding: .25rem 0 .5rem;
  }
  .navbar .nav-item + .nav-item{
    margin-left: 0;
  }
}
/* === BAJAR EL TEXTO DEL HERO EN MÓVIL / TABLET === */
/* colócalo AL FINAL del CSS para que gane la cascada */

@media (max-width: 575.98px){
  .hero-text{
    bottom: 18px !important;   /* más abajo (antes estaba ~64–120px) */
    left: 16px !important;
    right: 16px !important;
    max-width: none !important;
  }
  .hero-text .d-flex{
    gap: .6rem !important;
    flex-wrap: wrap !important;  /* si se solapa con el círculo, que apilen */
  }
}

@media (min-width: 576px) and (max-width: 991.98px){
  .hero-text{
    bottom: 24px !important;   /* tablet, un poco más de aire que móvil */
    left: 24px !important;
    right: 24px !important;
    max-width: none !important;
  }
}

/* ====== Servicios (grid) ====== */
.svc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:24px;
}
@media (max-width: 991.98px){ .svc-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px){ .svc-grid{ grid-template-columns: 1fr; } }

.svc-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  padding:20px;
  display:flex; flex-direction:column; gap:12px;
  transition:transform .1s ease, box-shadow .2s ease;
}
.svc-card:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(0,0,0,.10); }

.icon-circle{
  width:46px; height:46px; border-radius:50%;
  background: #eef2ff; color:#2b59ff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; margin-bottom:4px;
}

.value-list{ list-style:none; padding:0; margin:0 0 6px; }
.value-list li{ display:flex; gap:10px; align-items:center; margin:6px 0; color:#334155; }
.value-list i{ color:#16a34a; }

/* ====== Proceso ====== */
.process-steps{
  display:grid; gap:16px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 991.98px){ .process-steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px){ .process-steps{ grid-template-columns: 1fr; } }

.step{
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:14px; padding:16px;
}
.step-badge{
  width:30px; height:30px; border-radius:50%;
  background:#e7f0ff; color:#2b59ff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; margin-bottom:6px;
}

/* Avatar: cross-fade entre dos imágenes */
.hero-avatar { position: absolute; overflow: hidden; }  /* ya lo tienes; lo dejamos */
.hero-avatar .avatar-frame{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .6s ease;
  opacity: 0;                     /* invisible por defecto */
}
.hero-avatar .avatar-frame.on{ opacity: 1; } /* visible */

/* (opcional) pausar animación al pasar el mouse en desktop */
@media (hover:hover){
  .hero-avatar:hover { cursor: pointer; }
}

/* --- HERO: capa animada de la imagen (mano) --- */
.hero-bg{
  position:absolute; inset:0; z-index:0;
  /* quitamos cualquier background aquí */
  background: none;
}

/* Ponemos la imagen en una pseudo-capa que sí se puede transformar */
.hero-bg::before{
  content:"";
  position:absolute; inset:-3%;          /* un pelín más grande para que no se vean bordes al rotar */
  z-index:0;
  background-image: url("img/fasti_sin_logo.png");
  background-size: cover;
  background-position: 70% 58%;          /* base desktop */
  background-repeat: no-repeat;
  transform-origin: center;
  animation: heroDrift 10s ease-in-out infinite alternate;
  will-change: transform;
}

/* Gradiente de legibilidad de tu hero ya está en .hero-cover::after (se mantiene) */

/* Ajuste del encuadre por breakpoint (igual que tenías antes) */
@media (min-width: 1200px){
  .hero-bg::before{ background-position: 66% 62%; }
}
@media (max-width: 991.98px){
  .hero-bg::before{ background-position: 56% 50%; }
}

/* Animación: leve rotación y un paneo hacia la izquierda. "alternate" = va y vuelve */
@keyframes heroDrift{
  0%   { transform: rotate(0deg) translateX(0); }
  50%  { transform: rotate(-1.2deg) translateX(-18px); }
  100% { transform: rotate(0deg) translateX(-36px); }
}

/* En móviles: animación un poco más corta y sutil */
@media (max-width: 575.98px){
  .hero-bg::before{
    animation-duration: 50s;
    /* movimiento más contenido */
  }
}

/* Respeto a usuarios con "reduced motion" */
@media (prefers-reduced-motion: reduce){
  .hero-bg::before{ animation: none; }
}

/* === Shimmer / barrido de luz para CTAs === */
.btn-shimmer{
  position: relative;
  overflow: hidden;
  z-index: 0;
  /* leve realce base */
  box-shadow: 0 8px 22px rgba(13,110,253,.20);
}

/* franja diagonal */
.btn-shimmer::after{
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 60%;
  height: 400%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.45) 45%,
    rgba(255,255,255,.85) 50%,
    rgba(255,255,255,.45) 55%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0;
  pointer-events: none;
  animation: btnShimmer 7s ease-in-out infinite;
}

/* más contraste en botones outline claros si los usas */
.btn-outline-light.btn-shimmer{ box-shadow: 0 8px 22px rgba(255,255,255,.18); }

@keyframes btnShimmer{
  0%   { transform: translateX(-120%) rotate(20deg); opacity: 0; }
  6%   { opacity: .85; }
  12%  { transform: translateX(220%) rotate(20deg); opacity: 0; }
  100% { transform: translateX(220%) rotate(20deg); opacity: 0; } /* espera silenciosa */
}

/* feedback al hover/focus */
.btn-shimmer:hover,
.btn-shimmer:focus{
  box-shadow: 0 12px 30px rgba(13,110,253,.32);
}

/* un poco más discreto en móviles */
@media (max-width: 575.98px){
  .btn-shimmer::after{ animation-duration: 8s; opacity: .8; }
}

/* respeta reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn-shimmer::after{ animation: none !important; opacity: 0 !important; }
}
:root{
  /* offsets superiores del texto del hero */
  --hero-top-desktop: 84px;
  --hero-top-tablet: 56px;
  --hero-top-mobile: 40px;

  /* alturas del hero por breakpoint */
  --hero-h-tablet: 360px;   /* antes usabas 300; subimos un poco para dar aire */
  --hero-h-mobile: 360px;   /* si lo ves apretado, puedes probar 380px */
}
/* TABLET: anclamos por arriba */
@media (min-width: 576px) and (max-width: 991.98px){
  .hero-text{
    top: var(--hero-top-tablet) !important;
    bottom: auto !important;
    left: 24px !important;
    right: 24px !important;
    max-width: none !important;
  }
}

/* MÓVIL: anclamos por arriba */
@media (max-width: 575.98px){
  .hero-text{
    top: var(--hero-top-mobile) !important;
    bottom: auto !important;
    left: 16px !important;
    right: 16px !important;
    max-width: none !important;
  }
}
.hero-cover::after{ z-index:1; } /* ya lo tienes así */
.hero-avatar{ z-index:3; }       /* mantenlo en 3 */
.hero-text{ z-index:4; }         /* ya lo elevamos a 4 arriba */

/* MÓVIL: texto más arriba */
@media (max-width: 575.98px){
  :root{
    --hero-top-mobile: 8px;     /* antes ~40px */
    --hero-h-mobile: 380px;     /* un poco más alto para dar aire al CTA */
  }
  .hero-cover{ padding-top: calc(var(--navbar-h) + 2px); } /* reduce el colchón superior */
  .hero-text{ top: var(--hero-top-mobile) !important; }
}

/* TABLET: texto más arriba */
@media (min-width: 576px) and (max-width: 991.98px){
  :root{
    --hero-top-tablet: 32px;    /* antes ~56px */
    --hero-h-tablet: 380px;     /* un poco más alto */
  }
  .hero-cover{ padding-top: calc(var(--navbar-h) + 4px); }
  .hero-text{ top: var(--hero-top-tablet) !important; }
}

/* 1) CTA: quitar empuje lateral en móvil/tablet */
@media (max-width: 575.98px){
  .cta-inline .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (min-width: 576px) and (max-width: 991.98px){
  .cta-inline .container{
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* 2) CTA: botón ancho completo en móvil */
@media (max-width: 575.98px){
  .cta-inline .btn-lg{
    width: 100%;
  }
}

/* 3) Flotantes: bájalos en móvil para que no tapen el CTA */
@media (max-width: 575.98px){
  .social-stack{
    bottom: 24px !important;   /* antes 100px; ahora más abajo, cerca del borde */
    right: 12px !important;
  }
}
/* 1) Empujar SOLO el botón más abajo (cerca del círculo) */
@media (max-width: 575.98px){
  .hero-text > .d-flex{ 
    margin-top: clamp(18px, 4.6vw, 24px) !important; /* +separación del texto => el botón baja */
  }
}

@media (min-width: 576px) and (max-width: 991.98px){
  .hero-text > .d-flex{ 
    margin-top: clamp(20px, 3.8vw, 26px) !important;
  }
}

/* 2) Compactar ligeramente el alto del hero en móvil/tablet
      (sube un poco el círculo y reduce el hueco) */
@media (max-width: 991.98px){
  :root{ --hero-h-mobile: 320px; } /* si aún ves hueco, baja a 270px */
}

/* === Servicios mejorado === */
.text-slate-600{ color:#475569; }
.fw-800{ font-weight:800; }
.fw-700{ font-weight:700; }

/* chips de objetivo */
.btn-chip{ border-radius:999px; padding:.35rem .9rem; font-weight:600; }
.btn-chip.active{ background:#eef2ff; color:#2b59ff; }

/* tarjeta servicio: reusa tu .svc-card; agregamos extras */
.svc-card{ position:relative; }
.svc-card .plan-accent{ height:3px; border-radius:16px 16px 0 0; }

/* acentos por tipo (usa tu paleta de Planes) */
.svc-site .plan-accent{ background: linear-gradient(90deg,#2b59ff,#7aa2ff); }
.svc-apps .plan-accent{ background: linear-gradient(90deg,#06b6d4,#60a5fa); }
.svc-care .plan-accent{ background: linear-gradient(90deg,#22c55e,#86efac); }

/* badge */
.svc-badge{
  position:absolute; top:10px; right:10px; z-index:2;
  background:#fff; border:1px solid rgba(0,0,0,.06); color:#0f172a;
  font-weight:700; font-size:.75rem; padding:.25rem .5rem; border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

/* icono grande coherente */
.icon-xl{ width:56px; height:56px; font-size:1.6rem; }

/* chips internos */
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
.chip{
  display:inline-flex; align-items:center; gap:6px;
  background:#f1f5f9; color:#334155; border:1px solid #e3e8ef;
  padding:.25rem .6rem; border-radius:999px; font-size:.85rem; white-space:nowrap;
}

/* comparador */
.hidden{ display:none; }
.compare .table{ border-radius:12px; overflow:hidden; }
.compare th, .compare td{ white-space:nowrap; }
.compare tbody td{ color:#334155; }

/* detalles FAQ */
.faq details{
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:12px; padding:.8rem 1rem; margin:.6rem 0;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.faq summary{ cursor:pointer; font-weight:700; }
.faq p{ margin:.5rem 0 0; color:#334155; }

/* responsive afinado */
@media (max-width: 991.98px){
  .icon-xl{ width:50px; height:50px; font-size:1.45rem; }
}
@media (max-width: 575.98px){
  .btn-chip{ padding:.3rem .8rem; }
  .chip{ font-size:.8rem; }
}

/* ====== Why Us ====== */
.why-us{
  position: relative;
  padding: 56px 0;
  background:
    radial-gradient(900px 300px at 85% 0%, rgba(13,110,253,.06), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}
.why-head{ text-align:center; margin-bottom: 24px; }
.why-head h2{
  font-weight: 800;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.why-head h2::after{
  content:"";
  display:block;
  height:4px; width:72%;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #2b59ff, #7aa2ff);
  border-radius: 999px;
}
.why-head .sub{ color:#475569; margin-top:8px; }

.reasons-grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 18px;
}
@media (max-width: 991.98px){ .reasons-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px){ .reasons-grid{ grid-template-columns: 1fr; } }

.reason-card{
  position: relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:18px 18px 16px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.reason-card:hover{
  transform: translateY(-2px);
  box-shadow:0 16px 32px rgba(0,0,0,.10);
  border-color:#dbeafe;
}
.icon-wrap{
  width:56px; height:56px; border-radius:50%;
  background:#eef2ff; color:#2b59ff;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:10px;
  box-shadow: 0 10px 22px rgba(43,89,255,.18);
}
.reason-card h3{ margin:6px 0 6px; font-weight: 800; color:#0f172a; }
.reason-card p{ color:#334155; margin:0 0 10px; }

.metric{
  display:inline-block;
  font-weight:700; font-size:.92rem;
  padding:.25rem .6rem; border-radius:999px;
  color:#0f172a; background:#e0f2fe; border:1px solid #bae6fd;
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.chips span{
  display:inline-block;
  font-size:.9rem; color:#1f2937;
  background:#f3f4f6; border:1px solid rgba(0,0,0,.06);
  padding:.3rem .55rem; border-radius:999px;
}

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform: none; }

/* CTA pie de sección */
.why-cta{
  margin-top: 22px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.why-cta .sla-note{ color:#64748b; }

/* ====== Proceso: timeline desktop ====== */
.proc-timeline{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}

.proc-item{
  position: relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:16px 16px 18px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}

.proc-badge{
  position:absolute; left:16px; top:-14px;
  width:34px; height:34px; border-radius:50%;
  background:#e7efff; color:#2b59ff; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(2,6,23,.12);
  border:2px solid #fff;
}

.proc-head{ display:flex; align-items:center; gap:10px; margin-top:12px; }
.proc-ico{ font-size:1.35rem; line-height:1; }

.proc-meta{ display:flex; gap:8px; margin:8px 0 10px; flex-wrap:wrap; }
.chip{
  font-size:.85rem; padding:4px 10px; border-radius:999px;
  background:#eef2ff; color:#1d4ed8; font-weight:600;
}
.chip.alt{ background:#ecfeff; color:#0ea5e9; }

.proc-list{ padding-left: 1rem; margin: 0; }
.proc-list li{ margin:.25rem 0; color:#334155; }

/* rail horizontal detrás de las tarjetas */
.proc-rail{
  position:absolute; left: 6%; right: 6%; top: 60px; height:3px;
  background: linear-gradient(90deg,#e5e7eb,#dbeafe,#e5e7eb);
  z-index:0; border-radius:999px;
}
.proc-timeline .proc-item{ z-index:1; }

/* ====== Proceso: acordeón móvil ====== */
.proc-accordion{ position:relative; border-left:3px solid #e5e7eb; padding-left:10px; }

.proc-acc-btn{
  width:100%; background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:12px; padding:12px 14px; margin:10px 0 0;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-weight:700; text-align:left;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
}
.proc-acc-btn .left{ display:flex; gap:10px; align-items:center; }
.proc-acc-btn .right{ margin-left:auto; }
.proc-acc-btn .dot{
  width:28px; height:28px; border-radius:50%;
  background:#e7efff; color:#2b59ff; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center;
}
.proc-acc-btn[aria-expanded="true"]{ border-color:#bfd3ff; }

.proc-acc-panel{
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease;
  padding: 0 6px; border-left:2px dashed #e5e7eb; margin-left:12px;
}
.proc-acc-panel.open{ padding-top:8px; padding-bottom:10px; }

@media (min-width: 992px){
  .proc-acc-panel, .proc-accordion{ display:none; }
}
@media (max-width: 991.98px){
  .proc-timeline{ display:none; }
}

/* ====== Micro-reveal al hacer scroll ====== */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible{ opacity:1; transform: none; }

/* ===== Proyectos: filtros ===== */
.proj-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.proj-filters .pill{
  appearance:none; border:1px solid rgba(0,0,0,.12); background:#fff; color:#111;
  padding:.45rem .85rem; border-radius:999px; font-weight:600; cursor:pointer;
  transition: all .18s ease;
}
.proj-filters .pill:hover{ box-shadow:0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.proj-filters .pill.active{ background:#e8efff; border-color:#cfe0ff; color:#2b59ff; }

/* ===== Grid ===== */
.proj-grid{
  display:grid; gap:22px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 991.98px){ .proj-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px){ .proj-grid{ grid-template-columns: 1fr; } }

/* ===== Card ===== */
.proj-card{
  position:relative; background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:16px; overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}
.proj-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.12);
}

/* Imagen + overlay */
.proj-figure{ position: relative; aspect-ratio: 16/9; margin:0; overflow:hidden; }
.proj-figure img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition: transform .8s ease;
}
.proj-card:hover .proj-figure img{ transform: scale(1.045); } /* micro-zoom */

.proj-overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end; gap:.65rem;
  padding:16px; color:#fff;
  background: linear-gradient(180deg, rgba(2,6,23,0) 30%, rgba(2,6,23,.72) 100%);
  opacity:0; transform: translateY(6px);
  transition: opacity .24s ease, transform .24s ease;
}
.proj-card:hover .proj-overlay{ opacity:1; transform: translateY(0); }

.proj-overlay h3{ margin:0; font-weight:800; text-shadow:0 2px 12px rgba(0,0,0,.35); }
.tags{ display:flex; gap:8px; flex-wrap:wrap; padding:0; margin:0; list-style:none; }
.tags li{
  background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25);
  padding:.2rem .5rem; border-radius:999px; font-size:.86rem; backdrop-filter: blur(4px);
}

/* Ribbon de estado */
.proj-ribbon{
  position:absolute; left:-10px; top:14px; padding:.25rem .6rem; color:#111; font-weight:700;
  background:#fde047; border-radius:6px; transform: rotate(-6deg);
  box-shadow:0 8px 22px rgba(0,0,0,.12);
}
.proj-ribbon.warn{ background:#fde047; }
.proj-ribbon.info{ background:#bae6fd; }

/* Meta KPIs */
.proj-meta{
  display:flex; gap:12px; align-items:center; padding:12px 14px;
}
.kpi{
  display:inline-flex; gap:6px; align-items:center;
  font-weight:600; color:#334155; background:#f8fafc; padding:.35rem .6rem; border-radius:10px;
  border:1px solid rgba(0,0,0,.06);
}

/* CTA final */
.proj-cta{
  margin-top:28px;
  background: linear-gradient(90deg, #eef2ff, #f8fafc);
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px; padding:22px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.proj-cta .cta-body{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.proj-cta p{ margin:0; color:#334155; }

/* Reaprovecha tu efecto shimmer ya definido para .btn-shimmer */

.faq { --brand: var(--brand, #2b59ff); --ink: var(--ink, #0f172a); }
.faq-title{ font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.faq-sub{ color:#475569; margin:.25rem 0 1rem; }
.faq-actions{ display:flex; gap:.5rem; margin:.5rem 0 1.25rem; }
.faq .btn{ padding:.55rem .9rem; border-radius:.7rem; font-weight:600; }
.faq .btn-light{ background:#eef2ff; color:#1e40af; border:0; }
.faq .btn-outline-light{ background:#fff; border:1px solid #e5e7eb; color:#334155; }
.faq .btn-primary{ background:var(--brand); border:0; }

.faq-list{ display:grid; gap:12px; }
.faq-item{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.06); overflow:hidden; }

.faq-btn{
  width:100%; text-align:left; background:#f1f5ff; color:#0b1535; border:0; padding:16px 18px;
  font-weight:700; display:flex; align-items:center; gap:10px; position:relative;
  cursor:pointer;
}
.faq-item:first-child .faq-btn{ background:#dbe8ff; } /* primera abierta */
.faq-icon{ font-size:1.1rem; }
.faq-btn .chev{ width:20px; height:20px; stroke:#334155; stroke-width:2.5; fill:none;
  margin-left:auto; transition:transform .2s ease; }
.faq-btn[aria-expanded="true"] .chev{ transform:rotate(180deg); }

.faq-panel{
  padding:0 18px; background:#fff; color:#334155;
  max-height:0; overflow:hidden; transition:max-height .25s ease, padding .2s ease;
}
.faq-panel.on{ padding:14px 18px 18px; max-height:300px; } /* altura suficiente por respuesta corta */

.faq-foot{
  display:flex; align-items:center; gap:16px; justify-content:space-between; margin-top:18px;
}
.faq-foot .muted{ color:#94a3b8; }

@media (max-width: 575.98px){
  .faq-actions{ flex-wrap:wrap; }
  .faq-foot{ flex-direction:column; align-items:flex-start; gap:10px; }
}
.site-footer{
  --bg: #1a1a1a;
  --ink: var(--ink, #e5e7eb);
  --muted: #9ca3af;
  --brand: var(--brand, #2b59ff);
  background: radial-gradient(900px 300px at 80% 0, rgba(43,89,255,.10), transparent), var(--bg);
  color: var(--ink);
  padding: 28px 0 36px;
  position: relative;
  overflow: hidden;
}
.site-footer .container{ position: relative; }

.footer-top{ text-align:center; display:grid; gap:10px; }
.brandline{ margin:0; font-weight:600; letter-spacing:.2px; }
.positioning{ margin:0; font-size:1.05rem; }

.footer-contact,
.footer-legal,
.footer-social{
  display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
  margin:2px 0;
}

.f-link, .f-social{
  color:#7bd3ff; text-decoration:none; font-weight:600;
  display:inline-flex; align-items:center; gap:8px;
}
.f-link:hover, .f-social:hover{ text-decoration:underline; }
.f-link svg, .f-social svg{
  width:18px; height:18px; fill:none; stroke:#7bd3ff; stroke-width:1.8;
}
.f-social svg path{ stroke:none; fill:#7bd3ff; } /* los de redes usan fill */

.sep{ color:var(--muted); }
.follow, .and{ color:var(--muted); }

.back-to-top{
  position: absolute; right: 16px; bottom: 16px;
  width:42px; height:42px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color:#fff;
}
.back-to-top svg{ width:22px; height:22px; fill:#fff; }
.back-to-top:hover{ transform: translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.25); background: rgba(255,255,255,.12); }

/* accesibilidad: foco visible */
.site-footer a:focus-visible,
.back-to-top:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:3px;
  border-radius:10px;
}

@media (max-width: 575.98px){
  .positioning{ font-size:1rem; }
}

/* === FIX LEGIBILIDAD FOOTER === */
.site-footer{
  /* tinta clara local al footer, sin tocar --ink global */
  --footer-ink: #e6eef7;      /* texto principal */
  --footer-muted: #b8c7da;    /* gris clarito */
  color: var(--footer-ink) !important;
}

/* fuerza color del texto base dentro del footer */
.site-footer .brandline,
.site-footer .positioning,
.site-footer .footer-contact,
.site-footer .footer-legal,
.site-footer .footer-social,
.site-footer .footer-contact a,
.site-footer .footer-legal a,
.site-footer .footer-social a{
  color: var(--footer-ink) !important;
}

/* enlaces “azules” siguen destacando pero con buen contraste */
.site-footer .f-link,
.site-footer .f-social{
  color: #7bd3ff !important;
}
.site-footer .sep,
.site-footer .follow,
.site-footer .and{
  color: var(--footer-muted) !important;
}

/* íconos siguen claros */
.site-footer .f-link svg,
.site-footer .f-social svg{
  stroke: #7bd3ff !important;
}
.site-footer .f-social svg path{ fill:#7bd3ff !important; }

/* Estado expandido programático */
.social-button.auto-expanded {
  max-width: 240px;               /* igual que tu hover/expanded */
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.social-button.auto-expanded .btn-text { opacity: 1; }

/* Micro-pulso al aparecer (sutil) */
@keyframes dockPulse {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.03);}
  100% { transform: scale(1);   }
}
.social-button.auto-expanded { animation: dockPulse .6s ease; }

/* Pausar si el usuario pasa el mouse (no invadimos) */
@media (hover:hover) {
  .social-button:hover { max-width: 240px; }
  .social-button:hover .btn-text { opacity: 1; }
}

/* Respeto a accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .social-button { transition: none !important; }
  .social-button.auto-expanded { animation: none !important; }
}
/* Contenedor anclado a la derecha; los hijos se alinean por el borde derecho */
.social-stack{
  position: fixed;
  right: var(--safe-right, 16px);
  bottom: max(16px, var(--safe-bottom, 16px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;           /* <- clave: no empuja al de arriba/abajo */
  z-index: 9999;
}

/* Botón compacto que se expande hacia la izquierda */
.social-button{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 10px 14px;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  white-space: nowrap;
  overflow: hidden;
  max-width: 48px;                 /* estado compacto */
  transition: max-width .28s ease, box-shadow .2s ease;
}

/* Iconos bootstrap */
.social-button i{ font-size: 1.35rem; line-height: 1; }

/* Etiqueta de texto: aparece al expandir */
.social-button .btn-text{ opacity: 0; transition: opacity .2s ease .1s; }
.social-button.expanded .btn-text{ opacity: 1; }

/* Colores (cámbialos si quieres) */
#btn-instagram{ background:#e1306c; }
#btn-whatsapp{ background:#25d366; }

/* Al expandir, crece solo hacia la izquierda (la derecha queda fija por align-items:flex-end) */
.social-button.expanded{
  max-width: 260px;               /* ancho del estado expandido */
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
}

/* Hover opcional en desktop (no interfiere con el auto-rotador) */
@media (hover:hover){
  .social-button:hover{ max-width: 260px; }
}

/* En móviles, despegar si tapa CTAs largos */
@media (max-width: 575.98px){
  .social-stack{ bottom: 100px; right: 12px; gap: 12px; }
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce){
  .social-button{ transition: none; }
  .social-button .btn-text{ transition: none; }
}
 .plans-grid{
  /* ya tienes grid; añade: */
  align-items: stretch;           /* todas las columnas igual de altas */
}

.plan-card{
  display: flex;                  /* clave */
  flex-direction: column;         /* apila vertical */
  height: 100%;                   /* ocupa todo el alto de la celda */
}
.plan-lines{ margin-bottom: auto; }     /* los bullets “empujan” hacia arriba */
.plan-cta{ margin-top: auto; }          /* el CTA queda pegado abajo */
.plan-tags{
  display: flex; flex-wrap: wrap; gap: 10px;
  min-height: 44px;                 /* o 2 filas si prefieres, p.ej. 92px */
}
.plan-cta .btn{
  align-self: flex-start;           /* evita que se estiren a lo ancho */
  min-width: 180px;                 /* todos parecidos */
}
.plan-head{ min-height: 64px; }      /* ajusta a tu diseño */
.plan-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
/* El CTA se va al fondo siempre */
.plan-cta{
  margin-top:auto;
  display:flex; align-items:center; gap:10px;
}
.plan-cta .btn{ align-self:flex-start; min-width:180px; }
.plan-body{ display:flex; flex-direction:column; gap:12px; flex:1; }
/* Servicios: que todas las tarjetas midan lo mismo y el CTA quede abajo */
.svc-grid{ align-items: stretch; }               /* las columnas estiran */
.svc-card{
  display:flex; flex-direction:column; height:100%;
}
.svc-card .plan-body{ flex:1; }                  /* el cuerpo llena el alto */
.svc-card .plan-cta{
  margin-top:auto; display:flex; gap:.5rem; align-items:center;
}
/* Estado inicial oculto (animable) */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}

/* Al hacerse visible: acepta cualquiera de las dos clases */
.reveal.in,
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* ====== MVV – variables básicas (ajusta si usas otras) ====== */
:root{
  --mv-blue:#2563eb;         /* acento Misión */
  --mv-green:#16a34a;        /* acento Visión  */
  --mv-red:#ef4444;          /* acento Valores */
  --mv-border:#e6e9ef;       /* bordes suaves  */
  --mv-shadow:0 6px 20px rgba(2, 6, 23, .06);
  --mv-shadow-hover:0 12px 30px rgba(2, 6, 23, .12);
  --mv-text:#1f2937;         /* gris oscuro legible */
  --mv-muted:#6b7280;        /* gris aclarado       */
}

/* ====== Sección MVV ====== */
.section-mvv{
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-mvv .mvv-lead{
  max-width: 820px;
  margin: 0 auto 2rem auto;
  color: var(--mv-muted);
  line-height: 1.65;
  font-weight: 500;
}

/* ====== Tarjetas ====== */
.mv-card{
  border: 1px solid var(--mv-border);
  border-radius: 18px;
  box-shadow: var(--mv-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #fff;
}
.mv-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--mv-shadow-hover);
}

/* Línea/acento superior */
.mv-card::before{
  content:"";
  position:absolute; inset:0 0 auto 0;
  height: 4px;
  background: currentColor;
  opacity:.85;
}

/* Modificadores de color */
.mv-card--mission{ color: var(--mv-blue); }
.mv-card--vision { color: var(--mv-green); }
.mv-card--values { color: var(--mv-red);  }

/* Contenido tarjeta */
.mv-card .mv-icon{
  font-size: 2.25rem;        /* 36px aprox */
  margin-bottom: .75rem;
}
.mv-card .mv-title{
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--mv-text);
}
.mv-card .mv-text{
  color: var(--mv-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Lista “checklist” con sangría colgante */
.mv-checklist{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.mv-checklist li{
  position: relative;
  padding-left: 1.6rem;
  color: var(--mv-text);
  line-height: 1.65;
}
.mv-checklist li::before{
  content: "✔";
  position: absolute; left: 0; top: .1rem;
  font-size: .95rem;
  color: var(--mv-blue);
  opacity: .9;
}

/* Badges/chips unificados */
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.35rem;
  padding:.375rem .65rem;
  border-radius:999px;
  border:1px solid rgba(2, 6, 23, .08);
  background:#f8fafc;
  color:#0f172a;
  font-weight:600;
  font-size:.875rem;
  line-height:1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chip:hover{ transform: translateY(-2px); box-shadow: 0 4px 10px rgba(2,6,23,.08); }

/* variantes “subtle” por color */
.chip--green{ background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.chip--blue { background:#eff6ff; color:#1e40af; border-color:#bfdbfe; }
.chip--red  { background:#fef2f2; color:#991b1b; border-color:#fecaca; }

/* Responsive fino */
@media (max-width: 576px){
  .mv-card{ border-radius:16px; }
  .mv-card .mv-icon{ font-size:2rem; }
  .chip{ font-size:.82rem; }
}

/* Foco accesible en chips/enlaces dentro de la sección */
.section-mvv :is(a,button,.chip):focus-visible{
  outline: 3px solid rgba(37,99,235,.4);
  outline-offset: 2px;
  border-radius: 10px;
}
/* =========================
   Cómo trabajamos (artesanal)
   ========================= */
:root{
  --proc-radius: 24px;
  --proc-shadow: 0 6px 20px rgba(0,0,0,.09);
  --proc-shadow-hover: 0 14px 32px rgba(0,0,0,.12);
}

/* Contenedor */
#como-trabajamos .section-lead{
  max-width: 760px;
  margin-inline: auto;
}

/* Tarjeta base */
.process-card{
  position: relative;
  border: 0;
  border-radius: var(--proc-radius);
  overflow: hidden;
  box-shadow: var(--proc-shadow);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.92) 40%, #fff 100%);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
  isolation: isolate;
}

/* Elevación + leve saturación al hover */
.process-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--proc-shadow-hover);
  filter: saturate(1.05);
}

/* Cinta diagonal superior (varía por card) */
.process-card::before{
  content:"";
  position:absolute; inset:0 auto auto 0;
  width: 56%;
  height: 10px;
  background: var(--accent);
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}

/* Blob de fondo (varía por card) */
.process-card .blob{
  position:absolute; inset: -24% -18% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, var(--accent-weak) 0%, transparent 60%);
  filter: blur(12px);
  opacity:.65;
  z-index: 0;
}

/* Anillo/halo del icono */
.process-card .icon-wrap{
  position: relative;
  width: 112px; height: 112px;
  margin: -36px auto 8px; /* que sobresalga */
  border-radius: 999px;
  display:grid; place-items:center;
  background: conic-gradient(from 180deg, var(--accent) 0 25%, color-mix(in oklab, var(--accent) 30%, #fff) 25% 50%, #fff 50% 100%);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
  z-index: 1;
}
.process-card .icon-wrap img{
  width: 76px; height: 76px; object-fit: contain;
  background: #fff; border-radius: 999px; padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Número/etiqueta */
.process-card .step-badge{
  position:absolute; top: 10px; right: 12px;
  z-index:2;
  font-weight: 700; font-size: .9rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  color: var(--accent-deep);
  background: color-mix(in oklab, var(--accent) 18%, #fff);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, #fff);
}

/* Títulos y textos */
.process-card .card-title{
  font-weight: 800;
  letter-spacing: .2px;
}
.process-card .card-text{
  color: #4b5563;
}
.process-card strong{
  color: #0f172a;
}

/* Ribete inferior dinámico */
.process-card .edge{
  position:absolute; inset: auto 0 0 0; height: 6px; z-index:1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:.65;
}

/* Colores por tarjeta */
.process-card.mod-1{ --accent:#3b82f6; --accent-weak:#dbeafe; --accent-deep:#1d4ed8; }
.process-card.mod-2{ --accent:#a855f7; --accent-weak:#ede9fe; --accent-deep:#7e22ce; }
.process-card.mod-3{ --accent:#f59e0b; --accent-weak:#fef3c7; --accent-deep:#b45309; }
.process-card.mod-4{ --accent:#10b981; --accent-weak:#d1fae5; --accent-deep:#047857; }
.process-card.mod-5{ --accent:#ef4444; --accent-weak:#fee2e2; --accent-deep:#b91c1c; }

/* Ajustes responsive */
@media (max-width: 991.98px){
  .process-card .icon-wrap{ margin-top: -30px; }
}
@media (max-width: 575.98px){
  .process-card .icon-wrap{ width: 96px; height: 96px; }
  .process-card .icon-wrap img{ width: 66px; height: 66px; }
}
/* ===== Cómo trabajamos – fix de icono + aro de progreso ===== */

/* Card base */
.process-card{
  position: relative;
  border: 0;
  border-radius: 22px;
  background: radial-gradient(120% 120% at 50% -10%, #ffffff 60%, #f6f8fb 100%);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  overflow: visible; /* que nada se corte */
  padding-top: 72px; /* espacio para el icono circular */
}

/* Badge numerado arriba a la derecha */
.process-card .step-badge{
  position: absolute;
  top: 14px; right: 16px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2,6,23,.08);
  font-weight: 700;
  color: #111827;
  z-index: 2;
}

/* Contenedor circular del icono (NO recorta la imagen) */
.process-card .icon-wrap{
  --track: #e9eef8;      /* color base del aro */
  --c: #3b82f6;          /* se sobreescribe por mod-* */
  --p: .2;               /* progreso 0..1, se sobreescribe por mod-* */

  position: absolute;
  top: -48px; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow:
    0 10px 30px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.9);
  overflow: visible; /* clave: NO recortar la imagen */
}

/* Aro de progreso (ring) con conic-gradient */
.process-card .icon-wrap::before{
  content: "";
  position: absolute;
  inset: -10px;                 /* ring fuera del círculo */
  border-radius: 999px;
  background:
    conic-gradient(var(--c) calc(var(--p) * 360deg), var(--track) 0);
  /* Hueco central para que sea aro (no círculo sólido) */
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 60%);
          mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 60%);
  z-index: -1;
}

/* Imagen del paso — siempre completa, sin recortes */
.process-card .icon-wrap img{
  width: 72%;
  height: 72%;
  object-fit: contain; /* <- clave para que no se corte */
  display: block;
  filter: drop-shadow(0 2px 4px rgba(15,23,42,.1));
}

/* Pequeña línea de acento al fondo de la card */
.process-card .edge{
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 0;
  height: 6px;
  border-radius: 8px 8px 22px 22px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0, currentColor .0001, rgba(0,0,0,0) 100%);
  opacity: .15;
}

/* Tipografía más contundente en títulos */
.process-card .card-title{
  font-weight: 800;
  letter-spacing: .2px;
}

/* —— Colores y porcentaje de cada etapa —— */
.process-card.mod-1 .icon-wrap{ --c:#3b82f6;  --p:.20; } /* 20% */
.process-card.mod-2 .icon-wrap{ --c:#7c3aed;  --p:.40; } /* 40% */
.process-card.mod-3 .icon-wrap{ --c:#f59e0b;  --p:.60; } /* 60% */
.process-card.mod-4 .icon-wrap{ --c:#10b981;  --p:.80; } /* 80% */
.process-card.mod-5 .icon-wrap{ --c:#ef4444;  --p:1;    } /* 100% */

/* Ajustes responsive suaves */
@media (max-width: 575.98px){
  .process-card{ padding-top: 68px; }
  .process-card .icon-wrap{ width: 104px; top: -44px; }
}
/* asegura que el título/subtítulo queden por encima */
#como-trabajamos h2,
#como-trabajamos .section-lead{
  position: relative;
  z-index: 5;
}

/* quita margen extra del subtítulo y crea espacio con la fila */
#como-trabajamos .section-lead{ margin-bottom: 0; }

/* espacio real entre subtítulo y cards (los aros no se comerán el texto) */
#como-trabajamos .process-row{ margin-top: 72px; }          /* desktop */
@media (max-width: 991.98px){ #como-trabajamos .process-row{ margin-top: 48px; } }
@media (max-width: 575.98px){ #como-trabajamos .process-row{ margin-top: 28px; } }

/* orden de capas dentro de cada card para evitar superposiciones raras */
.process-card{ position: relative; z-index: 1; }
.process-card .icon-wrap{ position: relative; z-index: 0; }
/* -------- Equipo -------- */
.team-section h2,
.team-section .section-lead{
  position: relative;
  z-index: 2;
}

.team-card{
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}

.team-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16,24,40,.10);
}

/* franja superior con degradé por miembro */
.team-topbar{ height: 8px; width: 100%; }
.team-blue{ background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.team-purple{ background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.team-green{ background: linear-gradient(90deg,#10b981,#34d399); }
.team-orange{ background: linear-gradient(90deg,#f59e0b,#fbbf24); }

/* avatar y chip de rol */
.avatar-wrap{
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -38px;       /* superpone el avatar */
}

.avatar{
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
  border: 1px solid rgba(2,6,23,.06);
}

/* chip de rol */
.role-chip{
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: #0b1020;
  background: #f2f4f7;
  box-shadow: 0 6px 14px rgba(2,6,23,.08);
  border: 1px solid rgba(2,6,23,.06);
  white-space: nowrap;
}

.role-blue{   background: rgba(59,130,246,.12);   color:#1e3a8a; }
.role-purple{ background: rgba(139,92,246,.12);   color:#4c1d95; }
.role-green{  background: rgba(16,185,129,.12);   color:#064e3b; }
.role-orange{ background: rgba(245,158,11,.14);   color:#7c2d12; }

/* cuerpo */
.team-body{
  padding: 38px 18px 22px;
}

.team-body h3{
  font-weight: 800;
}

.team-body p{
  line-height: 1.6;
}

/* responsivo */
@media (max-width: 991.98px){
  .avatar{ width: 150px; height: 150px; }
}
@media (max-width: 575.98px){
  .avatar{ width: 140px; height: 140px; }
  .team-body{ padding: 34px 16px 20px; }
}
/* -------- Partners / Alianzas -------- */
.partners-section{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 300px at 50% 0%, rgba(59,130,246,.06), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Glow suave bajo los tickers */
.partners-section::after{
  content:"";
  position:absolute; inset:auto 0 0 0;
  height: 120px;
  filter: blur(28px);
  background: radial-gradient(600px 100px at 50% 100%, rgba(59,130,246,.08), transparent 70%);
  pointer-events:none;
}

/* Contenedor de la pista */
.logos-ticker{
  --gap: 48px;
  --speed: 32s;      /* Ajusta velocidad (más bajo = más rápido) */
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Pista animada */
.logos-track{
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: max-content;
  animation: ticker var(--speed) linear infinite;
}

.logos-ticker--rev .logos-track{
  animation-name: ticker-rev;
}

/* Item/Logo */
.logo-item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, opacity .25s ease;
}

.logo-item img{
  display: block;
  max-height: 48px;        /* controla alto del logo */
  width: auto;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  opacity: .85;
  transition: inherit;
}

/* Hover pro: color, leve lift */
.logo-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16,24,40,.1);
}
.logo-item:hover img{
  filter: grayscale(0) contrast(1.05) brightness(1);
  opacity: 1;
}

/* Pausar al hover/focus dentro del carrusel */
.logos-ticker:hover .logos-track,
.logos-ticker:focus-within .logos-track{
  animation-play-state: paused;
}

/* Respeto a “reducir movimiento” */
@media (prefers-reduced-motion: reduce){
  .logos-track{ animation: none; }
}

/* Keyframes */
@keyframes ticker{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--gap)/2)); }
}
@keyframes ticker-rev{
  from { transform: translateX(calc(-50% - var(--gap)/2)); }
  to   { transform: translateX(0); }
}

/* Responsivo */
@media (max-width: 991.98px){
  .logo-item img{ max-height: 42px; }
  .logos-ticker{ --gap: 36px; --speed: 28s; }
}
@media (max-width: 575.98px){
  .logo-item{ padding: 10px 16px; border-radius: 12px; }
  .logo-item img{ max-height: 36px; }
  .logos-ticker{ --gap: 28px; --speed: 24s; }
}
