/* ==========================================================
   SERVICIOS.CSS — FINAL DEFINITIVO
   Diseño publicado + animaciones + glow premium
========================================================== */

:root{
  --accent: #38B6FF;
  --bg-top: #0f1a3a;
  --bg-bottom: #0b1020;
  --text: #ffffff;
  --accent-warning: #F5C542;
}


/* ==========================================================
   PÁGINA
========================================================== */

.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 PEQUEÑO
========================================================== */

.page-servicios .pro-hero{
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #0b1220;

  display: grid;
  place-items: center;

  text-align: center;
}


.page-servicios .pro-hero--sm{
  min-height: 42vh;
}


.page-servicios .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;
}


.page-servicios .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)
    );
}


.page-servicios .pro-hero:hover
.pro-hero__bg{
  transform:
    scale(1.07)
    translateY(-8px);
}


.page-servicios .pro-hero__content{
  position: relative;

  z-index: 2;

  width:
    min(900px,calc(100% - 40px));

  margin: 0 auto;

  padding:
    60px 0;
}


.page-servicios .pro-hero__eyebrow{
  margin:
    0 0 10px;

  color:
    rgba(255,255,255,.85);

  font-size:
    12px;

  font-weight:
    700;

  letter-spacing:
    .26em;

  text-transform:
    uppercase;

  opacity:
    .45;
}


.page-servicios .pro-hero__title{
  margin: 0;

  color:
    #ffffff;

  font-size:
    clamp(2.2rem,4vw,4.6rem);

  font-weight:
    900;

  line-height:
    1.05;

  text-shadow:
    0 14px 35px rgba(0,0,0,.65);
}


.page-servicios .pro-hero__subtitle{
  max-width:
    72ch;

  margin:
    12px auto 0;

  color:
    rgba(241,245,249,.92);

  line-height:
    1.5;

  text-align:
    center;

  text-shadow:
    0 12px 30px rgba(0,0,0,.60);
}


/* ==========================================================
   SOLUCIONES TÉCNICAS PROFESIONALES
========================================================== */

.serv-hero{
  position: relative;

  padding:
    2.2rem 0 1.2rem;
}


.serv-hero__wrap{
  display: grid;

  gap:
    1.2rem;
}


.serv-hero__text{
  position: relative;

  overflow: hidden;

  padding:
    2rem;

  background:
    rgba(255,255,255,.06);

  border:
    1px solid rgba(255,255,255,.12);

  border-radius:
    1.2rem;

  backdrop-filter:
    blur(6px);

  -webkit-backdrop-filter:
    blur(6px);

  box-shadow:
    0 16px 45px rgba(0,0,0,.18);
}


.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;

  text-shadow:
    0 12px 28px rgba(0,0,0,.28);
}


.serv-subtitle{
  max-width:
    70ch;

  margin:
    1rem auto 0;

  color:
    rgba(255,255,255,.92);

  font-size:
    clamp(1.6rem,1.8vw,2rem);

  line-height:
    1.6;

  text-align:
    center;
}


.serv-hero__cta{
  display: flex;

  justify-content:
    center;

  flex-wrap:
    wrap;

  gap:
    1rem;

  margin-top:
    1.6rem;
}


.serv-hero__ghost{
  background:
    rgba(255,255,255,.08);
}


/* ==========================================================
   BADGES / ICONOS
========================================================== */

.serv-badges{
  display: flex;

  justify-content:
    center;

  flex-wrap:
    wrap;

  gap:
    .8rem;

  margin-top:
    1.2rem;
}


.serv-badge{
  padding:
    .6rem 1rem;

  border-radius:
    999px;

  color:
    rgba(255,255,255,.86);

  background:
    rgba(0,0,0,.18);

  border:
    1px solid rgba(255,255,255,.14);

  font-size:
    1.3rem;

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}


.serv-badge:hover{
  transform:
    translateY(-3px);

  border-color:
    rgba(56,182,255,.32);

  background:
    rgba(56,182,255,.08);

  box-shadow:
    0 10px 28px rgba(0,0,0,.20),
    0 0 20px rgba(56,182,255,.10);
}


/* ==========================================================
   INTRO
========================================================== */

.serv-intro{
  margin-top:
    .8rem;

  color:
    var(--text-body);

  text-align:
    center;
}


/* ==========================================================
   GRID SERVICIOS
========================================================== */

.serv-grid{
  display: grid;

  gap:
    1.6rem;

  margin-top:
    2.2rem;
}


@media (min-width: 900px){

  .serv-grid{
    grid-template-columns:
      repeat(2,1fr);
  }

}


/* ==========================================================
   TARJETA SERVICIO
========================================================== */

.serv-card{
  --mx: 50%;
  --my: 50%;

  position: relative;

  isolation: isolate;

  overflow: hidden;

  display: flex;

  flex-direction:
    column;

  align-items:
    stretch;

  padding:
    1.6rem;

  border-radius:
    1.2rem;

  background:
    rgba(19,32,66,.06);

  border:
    1px solid rgba(19,32,66,.18);

  box-shadow:
    0 10px 30px rgba(0,0,0,.08);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;

  will-change:
    transform,
    box-shadow;
}


/* ==========================================================
   LUZ DINÁMICA QUE SIGUE AL MOUSE
========================================================== */

.serv-card::before{
  content: "";

  position:
    absolute;

  inset:
    -35%;

  z-index:
    0;

  pointer-events:
    none;

  opacity:
    0;

  background:
    radial-gradient(
      420px circle
      at var(--mx) var(--my),

      rgba(56,182,255,.22),

      rgba(56,182,255,.10) 27%,

      transparent 60%
    );

  transition:
    opacity .35s ease;
}


.serv-card:hover::before{
  opacity:
    1;
}


.serv-card > *{
  position:
    relative;

  z-index:
    1;
}


.serv-card:hover{
  transform:
    translateY(-8px);

  border-color:
    rgba(56,182,255,.30);

  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,.14);
}


/* ==========================================================
   CABECERA TARJETA
========================================================== */

.serv-card__head{
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    1rem;
}


.serv-card__head h3{
  flex:
    1;

  margin:
    0;

  color:
    var(--surface-mid);

  line-height:
    1.25;

  text-align:
    left;
}


/* ==========================================================
   TAGS
========================================================== */

.serv-tag{
  padding:
    .5rem .9rem;

  border-radius:
    999px;

  color:
    #0b1220;

  background:
    rgba(56,182,255,.12);

  border:
    1px solid rgba(56,182,255,.35);

  font-size:
    1.2rem;

  font-weight:
    800;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}


.serv-card:hover
.serv-tag{
  transform:
    translateY(-2px);

  box-shadow:
    0 7px 20px rgba(56,182,255,.16);
}


.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);
}


/* ==========================================================
   DESCRIPCIÓN
========================================================== */

.serv-card__desc{
  margin:
    .9rem 0 1.3rem;

  color:
    var(--text-body);

  line-height:
    1.6;

  text-align:
    left;
}


/* ==========================================================
   COLUMNAS
========================================================== */

.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;

  min-width:
    0;
}


.serv-card h4{
  margin:
    0 0 .8rem;

  color:
    var(--bg);

  font-size:
    1.5rem;

  line-height:
    1.2;

  text-align:
    left;
}


.serv-card ul{
  width:
    100%;

  margin:
    0;

  padding-left:
    1.8rem;

  color:
    var(--text-body);

  line-height:
    1.7;

  text-align:
    left;

  list-style-position:
    outside;
}


.serv-card li{
  margin-bottom:
    .7rem;

  text-align:
    left;
}


.serv-card li:last-child{
  margin-bottom:
    0;
}


.serv-card li strong{
  font-weight:
    800;
}


/* ==========================================================
   BOTONES SERVICIOS
========================================================== */

.serv-btn{
  align-self:
    center;

  display:
    inline-flex;

  justify-content:
    center;

  align-items:
    center;

  width:
    auto;

  margin-top:
    1.4rem;

  padding:
    1.1rem 1.8rem;

  border-radius:
    1rem;

  font-size:
    1.55rem;

  letter-spacing:
    .02em;
}


/* ==========================================================
   BOTONES — MICROINTERACCIÓN PREMIUM
========================================================== */

.serv-btn,
.serv-hero__cta .boton,
.serv-bottom .boton{
  --bx: 50%;
  --by: 50%;

  position:
    relative;

  isolation:
    isolate;

  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;
}


/* Luz del botón */

.serv-btn::before,
.serv-hero__cta .boton::before,
.serv-bottom .boton::before{
  content: "";

  position:
    absolute;

  inset:
    -2px;

  z-index:
    0;

  border-radius:
    inherit;

  pointer-events:
    none;

  opacity:
    0;

  background:
    radial-gradient(
      220px circle
      at var(--bx) var(--by),

      rgba(255,255,255,.82),

      rgba(255,255,255,.30) 25%,

      transparent 62%
    );

  transition:
    opacity .30s ease;
}


/* ==========================================================
   WHATSAPP DIRECTO
   GLOW VIOLETA + CELESTE
========================================================== */

.serv-hero__cta .boton.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%
    );
}


/* Texto por encima del glow */

.serv-btn > *,
.serv-hero__cta .boton > *,
.serv-bottom .boton > *{
  position:
    relative;

  z-index:
    1;
}


.serv-btn:hover::before,
.serv-hero__cta .boton:hover::before,
.serv-bottom .boton:hover::before{
  opacity:
    .78;
}


.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),
    0 0 24px rgba(56,182,255,.12);

  filter:
    brightness(1.03);
}


.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);
}


.serv-btn:focus-visible,
.serv-hero__cta .boton:focus-visible,
.serv-bottom .boton:focus-visible{
  outline:
    2px solid rgba(56,182,255,.70);

  outline-offset:
    3px;
}


/* ==========================================================
   BLOQUE FINAL
========================================================== */

.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);
}


/* ==========================================================
   REVEAL DESDE ESQUINAS
========================================================== */

.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(0);

  filter:
    blur(0);
}


.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);
}


.serv-from-bottom{
  transform:
    translate(0,65px)
    scale(.985);
}


/* ==========================================================
   HERO ANIMACIÓN
========================================================== */

.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-reveal.hero-visible{
  opacity:
    1;

  transform:
    translateY(0);

  filter:
    blur(0);
}


.hero-delay-1{
  transition-delay:
    .08s;
}


.hero-delay-2{
  transition-delay:
    .22s;
}


.hero-delay-3{
  transition-delay:
    .36s;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px){

  .page-servicios
  .pro-hero--sm{
    min-height:
      360px;
  }


  .page-servicios
  .pro-hero__content{
    padding:
      50px 0;
  }


  .serv-from-tl{
    transform:
      translate(-28px,-22px)
      scale(.99);
  }


  .serv-from-tr{
    transform:
      translate(28px,-22px)
      scale(.99);
  }


  .serv-from-bl{
    transform:
      translate(-28px,22px)
      scale(.99);
  }


  .serv-from-br{
    transform:
      translate(28px,22px)
      scale(.99);
  }


  .serv-from-bottom{
    transform:
      translate(0,24px)
      scale(.99);
  }


  .serv-card__cols{
    grid-template-columns:
      1fr;
  }


  .serv-card
  .serv-btn{
    align-self:
      stretch;

    width:
      100%;
  }

}


/* ==========================================================
   ACCESIBILIDAD
========================================================== */

@media (prefers-reduced-motion: reduce){

  .serv-reveal,
  .hero-reveal{
    opacity:
      1 !important;

    transform:
      none !important;

    filter:
      none !important;

    transition:
      none !important;
  }


  .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{
    transform:
      none !important;
  }


  .serv-card::before,
  .serv-btn::before,
  .serv-hero__cta .boton::before,
  .serv-bottom .boton::before{
    display:
      none !important;
  }

}