/* ==================================================
   PLAN PRO — pro.css (FINAL LIMPIO)
   - Header glass + legible (sin línea rara)
   - Nav pills
   - Hero pro + CTA
   - Trustbar + Secciones claras
   - Servicios + Testimonios + Footer
================================================== */

/* ===============================
   HEADER PRO (GLASS + LEGIBLE)
=============================== */
.pro-header{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 300;
  padding: 16px 0;

  /* ultra glass (casi transparente) */
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 0 rgba(0,0,0,0);

  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

/* Niebla superior: legibilidad SIN oscurecer toda la barra */
.pro-header::after{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%;
  height:120px;
  pointer-events:none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.32) 0%,
    rgba(0,0,0,.16) 45%,
    rgba(0,0,0,0) 100%
  );
}

/* al hacer scroll: más sólido, premium */
.pro-header.scrolled{
  background: rgba(11,18,32,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

/* Contenedor nav */
.pro-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 14px 0;
}

/* Marca */
.pro-nav__brand,
.pro-nav .logo{
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 1.05rem;
  padding: 10px 12px;
  border-radius: 12px;
  text-shadow: 0 10px 26px rgba(0,0,0,.65);
  transition: background .2s ease, transform .2s ease;
}
.pro-nav__brand:hover,
.pro-nav .logo:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* Links (nueva clase) */
.pro-nav__links{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Links (compatibilidad: clase antigua) */
.pro-nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estilo pills — aplica a ambas */
.pro-nav__links a,
.pro-nav-links a{
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 750;
  font-size: 1.02rem;

  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);

  text-shadow: 0 10px 26px rgba(0,0,0,.65);

  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.pro-nav__links a:hover,
.pro-nav-links a:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* Activo */
.pro-nav__links a.activo,
.pro-nav-links a.activo{
  background: rgba(255,193,7,.16);
  border-color: rgba(255,193,7,.35);
  color: #FFC107;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* Para que el hero no quede tapado por el header fijo */
body.pro{
  padding-top: 72px;
}

/* Responsive */
@media (max-width: 860px){
  .pro-nav{
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }
  .pro-nav__links,
  .pro-nav-links{
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pro-nav__links a,
  .pro-nav-links a{
    font-size: .98rem;
    padding: 9px 12px;
  }
}

/* ===============================
   HERO PRO (CENTRADO + OPACADO + HOVER)
=============================== */
.pro-hero{
  position: relative;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #0b1220;
  display: grid;
  place-items: center;
}

/* fondo imagen */
.pro-hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero1.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform .6s ease-out;
}

/* opacado (contraste) */
.pro-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(56,182,255,.12), transparent 60%),
    radial-gradient(800px 400px at 80% 15%, rgba(124,92,255,.10), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.70), rgba(0,0,0,.85));
}

/* efecto premium: sube cuando pasas el mouse */
.pro-hero:hover .pro-hero__bg{
  transform: scale(1.07) translateY(-8px);
}

/* contenido */
.pro-hero__content{
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 110px 0 60px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Apple-like typography */
.pro-hero__eyebrow{
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "SF Pro Text", Segoe UI, Roboto, Arial;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 700;
  font-size: 12px;
  opacity: .45;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}

.pro-hero__brand{
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "SF Pro Text", Segoe UI, Roboto, Arial;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: clamp(14px, 1.25vw, 18px);
  color: rgba(255,255,255,.85);
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}

.pro-hero__brand span{
  margin-left: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.pro-hero__title{
  font-family: "Manrope","Inter",sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 12px;
  text-shadow: 0 14px 35px rgba(0,0,0,.65);
  max-width: 920px;
}

.pro-hero__lead{
  max-width: 920px;
  margin: 0 auto 18px;
  color: rgba(241,245,249,.92);
  line-height: 1.6;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  text-shadow: 0 12px 30px rgba(0,0,0,.60);
}

.pro-hero__cta{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-top:16px;
}

.pro-hero__bullets{
  margin-top: 16px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  color: rgba(241,245,249,.95);
  font-weight: 700;
  text-shadow: 0 12px 30px rgba(0,0,0,.55);
}

/* ===============================
   TRUSTBAR
=============================== */
.trustbar{
  background: linear-gradient(90deg, rgba(56,182,255,.12), rgba(124,92,255,.10));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.trustbar__grid{
  width: min(1100px, 92%);
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.trustbar__item{
  background: rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  text-align:center;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.trustbar__item:hover{
  transform: translateY(-8px);
  filter: brightness(1.02);
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
}
.trustbar__kpi{ font-weight: 900; font-size: 18px; color:#fff; }
.trustbar__label{ font-size: 13px; color: rgba(255,255,255,.75); }
@media(max-width:900px){ .trustbar__grid{ grid-template-columns: repeat(2,1fr);} }
@media(max-width:520px){ .trustbar__grid{ grid-template-columns:1fr;} }

/* ===============================
   SECCIONES CLARAS (LECTURA)
=============================== */
.pro-section{ padding: 48px 0; }

.pro-why{
  width: 100%;
  display: flex;
  justify-content: center;
}

.pro-why__text,
main.contenedor.sombra{
  background: rgba(238,242,255,.96);
  border: 1px solid rgba(19,32,66,.12);
  border-radius: 18px;
  padding: 26px;
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

.pro-title{ color:#0b1220; margin:0 0 10px; }
.pro-lead, .pro-list{ color: rgba(17,24,39,.82); }
.pro-list li{ margin: 6px 0; }

.pro-list{
  display: inline-block;
  text-align: left;
  margin: 12px auto 0;
  padding-left: 18px;
}

.pro-cta{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 16px;
}

/* ===============================
   SERVICIOS (cards pro)
=============================== */
body.pro .servicio{
  background:#fff;
  border-radius:18px;
  padding:20px;
  border:1px solid rgba(19,32,66,.12);
  box-shadow:0 18px 60px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
body.pro .servicio:hover{
  transform:translateY(-8px);
  filter: brightness(1.02);
  box-shadow:0 28px 80px rgba(0,0,0,.15);
}
.servicio h3{ color:#0f172a; font-weight:900; }
.servicio p{ color: rgba(17,24,39,.78); line-height:1.7; }

/* Iconos más pro */
.servicio .iconos{
  width: 160px;
  height: 160px;
  background: #F5C542;
  box-shadow: 0 18px 60px rgba(245,197,66,.25);
}
.iconos .icono-img{ width:110px; height:110px; }

/* ===============================
   TESTIMONIOS (con imagen)
=============================== */
.testi-grid{
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

body.pro .testi{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;

  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 22px;

  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

body.pro .testi:hover{
  transform: translateY(-8px);
  filter: brightness(1.02);
  box-shadow: 0 28px 75px rgba(0,0,0,.18);
}

.testi__avatar{
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  background: #f8fafc;

  border: 2px solid rgba(56,182,255,.25);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);

  transition: transform .25s ease, box-shadow .25s ease;
}

body.pro .testi:hover .testi__avatar{
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.testi__text{
  color: #334155;
  font-weight: 500;
  margin-bottom: 10px;
}

.testi__meta{
  display: flex;
  gap: 10px;
  align-items: center;
}

.testi__name{
  color: #0f172a;
  font-weight: 700;
}

.testi__stars{
  letter-spacing: 1px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 700px){
  body.pro .testi{
    grid-template-columns: 70px 1fr;
    padding: 18px;
  }
  .testi__avatar{
    width: 70px;
    height: 70px;
    border-radius: 14px;
  }
}

/* ===============================
   REVEAL PRO (SOLO VERTICAL)
=============================== */
.pro-reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
  will-change: opacity, transform, filter;
}
.pro-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===============================
   CONTRASTE EN SECCIONES OSCURAS
=============================== */
body.pro .pro-section--soft .pro-title,
body.pro .pro-section--soft .pro-eyebrow,
body.pro #testimonios .pro-title,
body.pro #testimonios .pro-eyebrow{
  color: rgba(255,255,255,.96) !important;
  text-shadow: 0 12px 30px rgba(0,0,0,.55);
}

body.pro h2{
  text-shadow: 0 10px 25px rgba(0,0,0,.45);
}

/* ===============================
   FOOTER
=============================== */
footer.footer{
  padding: 26px 0 34px;
  color: rgba(241,245,249,.85);
  text-align:center;
}

/* ===============================
   BOTONES PRO (ÚNICO)
=============================== */
.boton.pro-btn{
  position: relative;
  border-radius: 1.2rem;
  font-weight: 900;
  letter-spacing: .3px;
  background: linear-gradient(180deg, #38b6ff, #219feb);
  border: 1px solid rgba(255,255,255,.18);
  color: #06101f;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transition: all .25s ease;
}

.boton.pro-btn:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

/* Glow elegante */
.boton.pro-btn::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  background: linear-gradient(90deg, rgba(79,172,254,.55), rgba(124,92,255,.45));
  filter: blur(10px);
  opacity:.55;
  z-index:-1;
  transition:.25s ease;
}
.boton.pro-btn:hover::after{ opacity:.85; }

/* Botón secundario (ghost) */
.boton.pro-btn--ghost{
  position: relative;
  background: transparent;
  border: 2px solid transparent;
  font-weight: 800;
  color: #334155;
  transition: all .25s ease;
}

.boton.pro-btn--ghost::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:2px;

  background: linear-gradient(120deg, #38b6ff, #7c5cff, #38b6ff);
  background-size:300% 300%;
  animation: glowMove 4s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  z-index:-1;
  opacity:.75;
}

.boton.pro-btn--ghost:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(56,182,255,.25);
  color:#0f172a;
}

/* Excepción Hero: texto blanco */
.pro-hero .boton.pro-btn--ghost{
  color:#ffffff;
}
.pro-hero .boton.pro-btn--ghost:hover{
  color:#ffffff;
}

/* Animación del gradiente */
@keyframes glowMove{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

/* ===============================
   HOTFIX CONTRASTE (solo PRO)
=============================== */
body.pro .subtitulo,
body.pro main.contenedor.sombra h2,
body.pro main.contenedor.sombra h3{
  color: #0b1220;
}
body.pro main.contenedor.sombra p{
  color: rgba(17,24,39,.78);
}

/* ===============================
   ACCESIBILIDAD
=============================== */
@media (prefers-reduced-motion: reduce){
  .pro-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}