:root{
  --accent: #38B6FF;
  --bg-top: #0f1a3a;
  --bg-bottom: #0b1020;
  --text: #ffffff;
  --accent-warning: #F5C542;
}

/* =========================
   BASE PAGE PRO
========================= */
.page-pro{
  background: none;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-pro::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(to top, #132042, #2E448A);
  background-attachment: fixed;
}

.page-servicios{
  background: none;
}

/* =========================
   HERO IGUAL A SOBRE-MI
========================= */
.pro-hero{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b1220;
  display: grid;
  place-items: center;
  text-align: center;
}

.pro-hero--sm{
  min-height: 42vh;
}

.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;
}

.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));
}

.pro-hero:hover .pro-hero__bg{
  transform: scale(1.07) translateY(-8px);
}

.pro-hero__content{
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
}

.pro-hero__eyebrow{
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 700;
  font-size: 12px;
  opacity: .45;
  color: rgba(255,255,255,.85);
  margin: 0 0 10px;
}

.pro-hero__title{
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 14px 35px rgba(0,0,0,.65);
}

.pro-hero__subtitle{
  margin: 12px auto 0;
  max-width: 72ch;
  color: rgba(241,245,249,.92);
  line-height: 1.5;
  text-shadow: 0 12px 30px rgba(0,0,0,.60);
  text-align: center;
}

/* ===== Servicios (Landing vendible) ===== */

.serv-hero{
  position: relative;
  padding: 2.2rem 0 1.2rem;
}

.serv-hero__wrap{
  display: grid;
  gap: 1.2rem;
}

.serv-hero__text{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.2rem;
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.serv-title{
  margin: 0;
  color: var(--accent-warning);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(3.2rem, 4vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.serv-subtitle{
  margin: 1rem auto 0;
  max-width: 70ch;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
  text-align: center;
  font-size: clamp(1.6rem, 1.8vw, 2rem);
}

.serv-hero__cta{
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.serv-hero__ghost{
  background: rgba(255,255,255,.08);
}

.serv-badges{
  margin-top: 1.2rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.serv-badge{
  font-size: 1.3rem;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  padding: .6rem 1rem;
  border-radius: 999px;
}

.serv-intro{
  text-align: center;
  color: var(--text-body);
  margin-top: .8rem;
}

.serv-grid{
  margin-top: 2.2rem;
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 900px){
  .serv-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

.serv-card{
  background: rgba(19,32,66,.06);
  border: 1px solid rgba(19,32,66,.18);
  border-radius: 1.2rem;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.serv-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.serv-card__head h3{
  margin: 0;
  color: var(--surface-mid);
  text-align: left;
}

.serv-tag{
  font-size: 1.2rem;
  font-weight: 800;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(56,182,255,.12);
  border: 1px solid rgba(56,182,255,.35);
  color: #0b1220;
}

.serv-tag--alt{
  background: rgba(245,197,66,.18);
  border-color: rgba(245,197,66,.55);
}

.serv-tag--danger{
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.45);
}

.serv-card__desc{
  margin: .9rem 0 1.3rem;
  color: var(--text-body);
  line-height: 1.7;
  text-align: left;
}

.serv-card__cols{
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px){
  .serv-card__cols{
    grid-template-columns: 1fr 1fr;
  }
}

.serv-card h4{
  margin: 0 0 .6rem;
  color: var(--bg);
  font-size: 1.5rem;
  text-align: left;
}

.serv-card ul{
  margin: 0;
  padding-left: 1.6rem;
  color: var(--text-body);
  line-height: 1.8;
}

.serv-btn{
  margin-top: 1.4rem;
}

.serv-bottom{
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(0,0,0,.10);
  text-align: center;
}

.serv-bottom h3{
  margin: 0;
  color: var(--surface-mid);
}

/* Botón cotizar: más compacto y elegante */
.serv-btn{
  width: auto;              /* ya no ocupa todo */
  display: inline-flex;     /* tamaño según contenido */
  justify-content: center;
  align-items: center;
  padding: 1.1rem 1.8rem;   /* más pequeño */
  font-size: 1.55rem;       /* reduce texto */
  letter-spacing: .02em;
  border-radius: 1rem;
  margin-top: 1.4rem;
}

/* En móvil sí ocupa 100% para que sea fácil tocar */
@media (max-width: 768px){
  .serv-btn{
    width: 100%;
  }
}

.whatsapp-qr{
  position: fixed;
  left: 10px;
  bottom: 20px;
  transform: none;
  z-index: 9998;
  padding: 0px;
  background: transparent;
}
.whatsapp-qr__title{
  margin: 0 0 3px;
  font-weight: 800;
  font-size: .95rem;
}
.qr-wrapper{
  position: relative;
  width: 140px;
  height: 140px;
}
.qr-img{
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  box-sizing: border-box;
}
.qr-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  padding: 2px;
  background: #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.whatsapp-qr__hint{
  margin-top:  3px;
  font-size: .8rem;
  opacity: .85;
}
@media (max-width: 900px){
  .whatsapp-qr{ display: none; }
}

/* oculto*/
.whatsapp-qr__title,
.whatsapp-qr__hint{
  display: none;
}
@media (max-width: 768px){
  html, body{
    scroll-snap-type: none;
  }
}

/* =========================================================
   REVEAL DESDE ESQUINAS - NAV + HERO SERVICIOS
   entra al centro / se repite al bajar y subir
========================================================= */

.servicios-pro-top{
  overflow: hidden;
}

.reveal-corner.is-visible{
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
  filter: blur(0);
}

/* delays */
.servicios-pro-top__logo{
  transition-delay: .05s;
}

.servicios-pro-top__menu a:nth-child(1){
  transition-delay: .10s;
}
.servicios-pro-top__menu a:nth-child(2){
  transition-delay: .18s;
}
.servicios-pro-top__menu a:nth-child(3){
  transition-delay: .26s;
}
.servicios-pro-top__menu a:nth-child(4){
  transition-delay: .34s;
}

.servicios-pro-top__kicker{
  transition-delay: .18s;
}

.servicios-pro-top__content h1{
  transition-delay: .30s;
}

.servicios-pro-top__content p:last-child{
  transition-delay: .42s;
}

/* look premium */
.servicios-pro-top__logo.is-visible,
.servicios-pro-top__menu a.is-visible{
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.servicios-pro-top__content h1.is-visible{
  text-shadow: 0 16px 38px rgba(0,0,0,.38);
}

/* responsive */
@media (max-width: 768px){
  .corner-tl{
    transform: translate(-42px, -34px) scale(.96) rotate(-2deg);
  }

  .corner-tr{
    transform: translate(42px, -34px) scale(.96) rotate(2deg);
  }

  .corner-bl{
    transform: translate(-42px, 34px) scale(.96) rotate(2deg);
  }

  .corner-br{
    transform: translate(42px, 34px) scale(.96) rotate(-2deg);
  }

  .reveal-corner{
    transition-duration: .8s;
  }
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .reveal-corner{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================================================
   ANIMACION SEGURA - NAV + HERO SERVICIOS
   sin romper el layout
========================================================= */

.reveal-block{
  opacity: 0;
  filter: blur(2px);
  will-change: transform, opacity, filter;
  transition:
    transform .9s cubic-bezier(.22,.85,.2,1),
    opacity .9s cubic-bezier(.22,.85,.2,1),
    filter .9s cubic-bezier(.22,.85,.2,1);
}

.reveal-block.is-visible{
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* nav entra desde arriba en diagonal suave */
.corner-top{
  transform: translate(-40px, -34px) scale(.98);
}

/* hero entra desde abajo en diagonal suave */
.corner-bottom{
  transform: translate(40px, 42px) scale(.98);
}

/* delay suave solo al hero */
.servicios-pro-top__content.reveal-block{
  transition-delay: .12s;
}

@media (max-width: 768px){
  .corner-top{
    transform: translate(-20px, -18px) scale(.99);
  }

  .corner-bottom{
    transform: translate(20px, 20px) scale(.99);
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal-block{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================================
   REVEAL SERVICIOS
   desde esquinas / lados hacia su posición
========================================= */

.serv-reveal{
  opacity: 0;
  filter: blur(2px);
  will-change: transform, opacity, filter;
  transition:
    transform .85s cubic-bezier(.22,.85,.2,1),
    opacity .85s cubic-bezier(.22,.85,.2,1),
    filter .85s cubic-bezier(.22,.85,.2,1);
}

.serv-reveal.serv-visible{
  opacity: 1;
  transform: translate(0,0) scale(1) rotate(0deg);
  filter: blur(0);
}

/* direcciones */
.serv-from-left{
  transform: translate(-70px, 30px) scale(.98);
}

.serv-from-right{
  transform: translate(70px, 30px) scale(.98);
}

.serv-from-bottom{
  transform: translate(0, 65px) scale(.985);
}

/* tarjetas más elegantes al entrar */
.serv-card.serv-visible{
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
}

/* móvil: menos recorrido */
@media (max-width: 768px){
  /* =================================
   ANIMACION DESDE ESQUINAS
================================= */

.serv-from-tl{
  transform: translate(-90px,-70px) scale(.96) rotate(-2deg);
}

.serv-from-tr{
  transform: translate(90px,-70px) scale(.96) rotate(2deg);
}

.serv-from-bl{
  transform: translate(-90px,70px) scale(.96) rotate(2deg);
}

.serv-from-br{
  transform: translate(90px,70px) scale(.96) rotate(-2deg);
}

}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .serv-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================================
   FIX TARJETAS SERVICIOS
   alineacion como plan-intermedio
========================================= */

.serv-card{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.serv-card__head{
  align-items: flex-start;
}

.serv-card__head h3{
  flex: 1;
  margin: 0;
  text-align: left;
  line-height: 1.25;
}

.serv-card__desc{
  text-align: left;
  line-height: 1.6;
}

/* columnas internas */
.serv-card__cols{
  display: grid;
  gap: 1.6rem;
  align-items: start;
}

@media (min-width: 768px){
  .serv-card__cols{
    grid-template-columns: 1fr 1fr;
  }
}

.serv-card__cols > div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.serv-card h4{
  margin: 0 0 .8rem;
  text-align: left;
  line-height: 1.2;
}

.serv-card ul{
  margin: 0;
  padding-left: 1.8rem;
  text-align: left;
  list-style-position: outside;
  width: 100%;
}

.serv-card li{
  text-align: left;
  line-height: 1.7;
  margin-bottom: .7rem;
}

.serv-card li:last-child{
  margin-bottom: 0;
}

/* detalles en negrita mejor alineados */
.serv-card li strong{
  font-weight: 800;
}

/* boton siempre centrado pero sin afectar textos */
.serv-card .serv-btn{
  align-self: center;
}

/* en movil todo sigue ordenado */
@media (max-width: 767px){
  .serv-card__cols{
    grid-template-columns: 1fr;
  }

  .serv-card .serv-btn{
    align-self: stretch;
  }
}
 /* =========================================
   REVEAL SERVICIOS
   desde esquinas hacia su posicion
========================================= */

.serv-reveal{
  opacity: 0;
  filter: blur(2px);
  will-change: transform, opacity, filter;
  transition:
    transform 1s cubic-bezier(.16,1,.3,1),
    opacity .9s ease,
    filter .9s ease;
}

.serv-reveal.serv-visible{
  opacity: 1;
  transform: translate(0,0) scale(1) rotate(0deg);
  filter: blur(0);
}

/* esquinas */
.serv-from-tl{
  transform: translate(-90px, -70px) scale(.96) rotate(-2deg);
}

.serv-from-tr{
  transform: translate(90px, -70px) scale(.96) rotate(2deg);
}

.serv-from-bl{
  transform: translate(-90px, 70px) scale(.96) rotate(2deg);
}

.serv-from-br{
  transform: translate(90px, 70px) scale(.96) rotate(-2deg);
}

/* una opcion vertical por si la quieres usar en algun bloque */
.serv-from-bottom{
  transform: translate(0, 65px) scale(.985);
}

@media (max-width: 768px){
  .serv-from-tl{
    transform: translate(-28px, -22px) scale(.99) rotate(-1deg);
  }

  .serv-from-tr{
    transform: translate(28px, -22px) scale(.99) rotate(1deg);
  }

  .serv-from-bl{
    transform: translate(-28px, 22px) scale(.99) rotate(1deg);
  }

  .serv-from-br{
    transform: translate(28px, 22px) scale(.99) rotate(-1deg);
  }

  .serv-from-bottom{
    transform: translate(0, 24px) scale(.99);
  }
}

@media (prefers-reduced-motion: reduce){
  .serv-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

.footer.serv-reveal{
  transition-delay: .08s;
}

/* =================================
   HERO ANIMACION SUAVE
   se repite al subir y bajar
================================= */

.hero-reveal{
  opacity: 0;
  transform: translateY(26px);
  filter: blur(2px);
  will-change: transform, opacity, filter;
  transition:
    transform .9s cubic-bezier(.16,1,.3,1),
    opacity .8s ease,
    filter .8s ease;
}

.hero-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* delays */
.hero-delay-1{ transition-delay: .08s; }
.hero-delay-2{ transition-delay: .22s; }
.hero-delay-3{ transition-delay: .36s; }

@media (prefers-reduced-motion: reduce){
  .hero-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================================
   TARJETAS SERVICIOS - HOVER PREMIUM
========================================= */

.serv-card{
  position: relative;
  overflow: hidden;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
  will-change: transform, box-shadow;
}

/* elevacion elegante */
.serv-card:hover{
  transform: translateY(-8px);
  border-color: rgba(56,182,255,.28);
  box-shadow:
    0 22px 55px rgba(0,0,0,.18),
    0 0 0 1px rgba(56,182,255,.14),
    0 0 34px rgba(56,182,255,.12);
}

/* =========================================
   LUZ DINAMICA EN TARJETAS
========================================= */

.serv-card::before{
  content:"";
  position:absolute;
  inset:-35%;
  pointer-events:none;
  opacity:0;
  transition: opacity .35s ease;

  background: radial-gradient(
    420px circle at var(--mx,50%) var(--my,50%),
    rgba(56,182,255,.20),
    rgba(56,182,255,.10) 26%,
    transparent 60%
  );
}

.serv-card:hover::before{
  opacity:1;
}

/* opcional: contenido por encima del brillo */
.serv-card > *{
  position: relative;
  z-index: 1;
}

/* =========================================
   BOTONES - MICRO INTERACCION PREMIUM
========================================= */

.serv-btn,
.serv-hero__cta .boton,
.serv-bottom .boton{
  position: relative;
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease,
    background .22s ease,
    border-color .22s ease;
  will-change: transform, box-shadow, filter;
}

/* hover */
.serv-btn:hover,
.serv-hero__cta .boton:hover,
.serv-bottom .boton:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  filter: brightness(1.03);
}

/* click */
.serv-btn:active,
.serv-hero__cta .boton:active,
.serv-bottom .boton:active{
  transform: translateY(-1px) scale(.985);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

/* focus teclado */
.serv-btn:focus-visible,
.serv-hero__cta .boton:focus-visible,
.serv-bottom .boton:focus-visible{
  outline: 2px solid rgba(56,182,255,.65);
  outline-offset: 3px;
}

/* glow dinamico botones */
.serv-btn::before,
.serv-hero__cta .boton::before,
.serv-bottom .boton::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  opacity:0;
  transition: opacity .35s ease;
}

/* =========================================
   GLOW DISTINTO SEGUN TIPO DE BOTON
========================================= */

/* BOTONES PRIMARIOS CELESTES */
.serv-hero__cta .boton:not(.serv-hero__ghost)::before,
.serv-btn::before,
.serv-bottom .boton::before{
  background: radial-gradient(
    220px circle at var(--bx,50%) var(--by,50%),
    rgba(255,255,255,.78),
    rgba(255,255,255,.28) 26%,
    transparent 62%
  );
}

/* BOTON GHOST / OSCURO */
.serv-hero__ghost::before{
  background: radial-gradient(
    220px circle at var(--bx,50%) var(--by,50%),
    rgba(124,92,255,.52),
    rgba(56,182,255,.22) 28%,
    transparent 62%
  );
}

.serv-btn:hover::before,
.serv-hero__cta .boton:hover::before,
.serv-bottom .boton:hover::before{
  opacity:.75;
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .serv-card,
  .serv-btn,
  .serv-hero__cta .boton,
  .serv-bottom .boton{
    transition: none !important;
  }

  .serv-card:hover,
  .serv-btn:hover,
  .serv-hero__cta .boton:hover,
  .serv-bottom .boton:hover,
  .serv-btn:active,
  .serv-hero__cta .boton:active,
  .serv-bottom .boton:active{
    transform: none !important;
  }

  .serv-card::before,
  .serv-btn::before,
  .serv-hero__cta .boton::before,
  .serv-bottom .boton::before{
    display:none !important;
  }
}
