/* ==========================================================================
   SERVICIOS
   ========================================================================== */

:root{
  --sv-bg: #050505;
  --sv-surface: #101010;
  --sv-surface-2: #141414;
  --sv-card: #0f0f10;
  --sv-text: #ffffff;
  --sv-muted: rgba(255,255,255,.72);
  --sv-soft: rgba(255,255,255,.52);
  --sv-border: rgba(255,255,255,.08);
  --sv-orange: #ff7a1a;
  --sv-orange-2: #ff9f3d;
  --sv-shadow: 0 18px 40px rgba(0,0,0,.28);
  --sv-radius-xl: 30px;
  --sv-radius-lg: 24px;
  --sv-radius-md: 18px;
  --sv-radius-pill: 999px;
  --sv-wrap: min(1200px, calc(100% - 32px));
}

/* ==========================================================================
   BASE
   ========================================================================== */

body{
  background: var(--sv-bg);
  color: var(--sv-text);
}

.services-intro,
.services-main{
  background: var(--sv-bg);
}

.services-intro,
.services-main,
.services-hero{
  width: 100%;
}

.services-intro p,
.services-main p,
.acc-content p,
.card-content p,
.hero-content p{
  text-wrap: pretty;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.services-hero{
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #0b0b0b;
}

.services-hero picture,
.services-hero img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-hero img{
  object-fit: cover;
  object-position: center;
}

.services-hero .overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.28) 34%, rgba(0,0,0,.70) 78%, rgba(0,0,0,.88) 100%);
}

.services-hero::after{
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,.28) 0%, rgba(255,122,26,0) 68%);
  z-index: 1;
  pointer-events: none;
  filter: blur(30px);
}

.hero-content{
  position: relative;
  z-index: 2;
  width: var(--sv-wrap);
  margin: 0 auto;
  padding: 0 0 56px;
}

.hero-content h1{
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  line-height: .94;
  letter-spacing: -.05em;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.20);
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.services-intro{
  padding: 42px 16px 18px;
}

.services-intro p{
  width: min(980px, 100%);
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--sv-muted);
}

/* ==========================================================================
   MAIN
   ========================================================================== */

.services-main{
  padding: 18px 16px 84px;
}

/* ==========================================================================
   CARDS PRINCIPALES
   ========================================================================== */

.services-cards{
  width: var(--sv-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card{
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--sv-radius-xl);
  background: var(--sv-card);
  border: 1px solid var(--sv-border);
  box-shadow: var(--sv-shadow);
  text-decoration: none;
  isolation: isolate;
  transform: translateY(0);
  transition:
    transform .30s ease,
    box-shadow .30s ease,
    border-color .30s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0,0,0,.34);
  border-color: rgba(255,122,26,.18);
}

.card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform .55s ease;
}

.card:hover img{
  transform: scale(1.045);
}

.card::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.14) 30%, rgba(0,0,0,.82) 100%);
}

.card::after{
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 142px;
  height: 3px;
  border-radius: var(--sv-radius-pill);
  background: linear-gradient(90deg, var(--sv-orange) 0%, var(--sv-orange-2) 100%);
  z-index: 2;
  opacity: .96;
  box-shadow: 0 0 20px rgba(255,122,26,.30);
}

.card-content{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 390px;
  padding: 26px 24px 24px;
}

.card-content span{
  display: inline-block;
  margin: 0 0 8px;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--sv-orange-2);
}

.card-content h2{
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
}

.card-content p{
  margin: 10px 0 0;
  max-width: 620px;
  font-size: .98rem;
  line-height: 1.68;
  color: rgba(255,255,255,.76);
}

/* ==========================================================================
   SELECTOR SUPERIOR
   ========================================================================== */

.services-selector{
  width: var(--sv-wrap);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.selector{
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 142px;
  border-radius: 22px;
  background: #111;
  border: 1px solid var(--sv-border);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  text-decoration: none;
  isolation: isolate;
  transition:
    transform .26s ease,
    border-color .26s ease,
    box-shadow .26s ease;
}

.selector:hover{
  transform: translateY(-2px);
  border-color: rgba(255,122,26,.16);
}

.selector img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.selector::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.78) 100%);
}

.selector > div{
  position: relative;
  z-index: 2;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px 18px 16px;
}

.selector strong{
  display: block;
  margin-bottom: 4px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--sv-orange-2);
}

.selector span{
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}

.selector.active{
  border-color: rgba(255,122,26,.45);
  box-shadow:
    0 0 0 1px rgba(255,122,26,.24),
    0 18px 34px rgba(0,0,0,.28);
}

.selector.active::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: var(--sv-radius-pill);
  background: linear-gradient(90deg, var(--sv-orange) 0%, var(--sv-orange-2) 100%);
  z-index: 2;
}

/* ==========================================================================
   TEXTO GUIA
   ========================================================================== */

.services-hint{
  width: var(--sv-wrap);
  margin: 0 auto 18px;
  font-size: .96rem;
  line-height: 1.6;
  color: var(--sv-soft);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .35s ease,
    transform .35s ease,
    max-height .35s ease,
    margin .35s ease;
}

.services-hint.is-hidden{
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

/* ==========================================================================
   ACORDEONES
   ========================================================================== */

.accordion{
  width: var(--sv-wrap);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.acc-item{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  border: 1px solid var(--sv-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition:
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.acc-item:hover{
  border-color: rgba(255,122,26,.12);
}

.acc-item.open{
  border-color: rgba(255,122,26,.26);
  box-shadow: 0 18px 34px rgba(0,0,0,.26);
}

.acc-item.open::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,122,26,.16) 0%, rgba(255,122,26,0) 36%),
    linear-gradient(180deg, rgba(255,255,255,.01) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.acc-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font: inherit;
}

.acc-toggle span{
  flex: 0 0 auto;
  min-width: 42px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--sv-orange-2);
  letter-spacing: .04em;
}

.acc-toggle h3{
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}

.acc-toggle .icon{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  transition:
    transform .28s ease,
    background .28s ease,
    color .28s ease;
}

.acc-item.open .acc-toggle .icon{
  transform: rotate(45deg);
  background: linear-gradient(180deg, var(--sv-orange) 0%, var(--sv-orange-2) 100%);
  color: #fff;
}

.acc-content{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s ease;
}

.acc-item.open .acc-content{
  grid-template-rows: 1fr;
}

.acc-content > *{
  overflow: hidden;
}

.acc-content-inner{
  padding: 0 20px 22px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.acc-content p{
  margin: 16px 0 0;
  max-width: 820px;
  font-size: .98rem;
  line-height: 1.76;
  color: var(--sv-muted);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--sv-radius-pill);
  border: 1px solid rgba(255,255,255,.10);
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform .22s ease,
    opacity .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}

.btn.primary{
  border-color: transparent;
  background: linear-gradient(90deg, var(--sv-orange) 0%, var(--sv-orange-2) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255,122,26,.24);
}

.btn.primary:hover{
  box-shadow: 0 14px 26px rgba(255,122,26,.28);
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.cta{
  width: var(--sv-wrap);
  margin: 0 auto 74px;
  padding: 38px 26px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid var(--sv-border);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.cta.dark{
  background: #0f0f10;
  color: #fff;
}

.cta.light{
  background: #fff;
  color: #111;
}

.cta h2{
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.cta p{
  margin: 0 auto 18px;
  max-width: 760px;
  line-height: 1.75;
  opacity: .84;
}

.cta a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--sv-radius-pill);
  text-decoration: none;
  font-weight: 700;
  transition: transform .22s ease;
}

.cta.dark a{
  background: #fff;
  color: #111;
}

.cta.light a{
  background: #111;
  color: #fff;
}

.cta a:hover{
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 860px){
  .services-cards{
    grid-template-columns: 1fr 1fr;
  }

  .services-selector{
    grid-template-columns: 1fr 1fr;
  }

  .card,
  .card-content{
    min-height: 440px;
  }

  .card::after{
    bottom: 154px;
  }
}

@media (max-width: 859px){
  .services-hero{
    min-height: 62svh;
  }

  .hero-content{
    padding-bottom: 42px;
  }

  .services-intro{
    padding-top: 34px;
  }
}

@media (max-width: 640px){
  :root{
    --sv-wrap: min(100%, calc(100% - 24px));
    --sv-radius-xl: 24px;
    --sv-radius-lg: 20px;
    --sv-radius-md: 16px;
  }

  .hero-content h1{
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: .96;
  }

  .card,
  .card-content{
    min-height: 350px;
  }

  .card::after{
    left: 20px;
    right: 20px;
    bottom: 138px;
  }

  .card-content{
    padding: 22px 20px 20px;
  }

  .selector{
    min-height: 126px;
  }

  .selector > div{
    min-height: 126px;
    padding: 16px;
  }

  .acc-toggle{
    padding: 19px 16px;
  }

  .acc-toggle span{
    min-width: 38px;
    font-size: .98rem;
  }

  .acc-toggle h3{
    font-size: 1rem;
  }

  .acc-content-inner{
    padding: 0 16px 18px 16px;
  }

  .actions{
    flex-direction: column;
  }

  .btn{
    width: 100%;
  }

  .cta{
    padding: 30px 18px;
    border-radius: 24px;
  }
}

/* ==========================================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
  .card,
  .card img,
  .selector,
  .acc-toggle .icon,
  .acc-content,
  .services-hint,
  .btn,
  .cta a{
    transition: none !important;
  }
}