/* ═══════════════════════════════════════════════════════════════
   PÁGINA SERVICIOS — diseño profesional, mobile-first
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO SERVICIOS ─────────────────────────────────────── */
.serv-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  isolation: isolate;
}

.serv-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 12% 20%, rgba(96, 165, 250, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 88% 30%, rgba(245, 197, 24, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 35%, #060606 75%, #000000 100%);
  z-index: 0;
}
.serv-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.serv-hero-shape-1 {
  width: 440px;
  height: 440px;
  top: -130px;
  right: -90px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.22) 0%, transparent 65%);
  opacity: 0.7;
}
.serv-hero-shape-2 {
  width: 320px;
  height: 320px;
  top: 6%;
  left: -70px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.20) 0%, transparent 65%);
  opacity: 0.6;
}
.serv-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 30%, transparent 85%);
}
#hero-servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.4), transparent);
  z-index: 3;
}

.serv-hero-container {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.serv-hero-content {
  max-width: 720px;
  width: 100%;
}

.serv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 100px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}
.serv-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: serv-pulse 2s ease-in-out infinite;
}
@keyframes serv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.serv-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.serv-hero-sub {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 2rem;
}

.serv-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.serv-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.serv-hero-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.serv-hero-mini svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  flex-shrink: 0;
}

.serv-hero-logo-wrap {
  position: relative;
  width: clamp(180px, 50vw, 280px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.serv-hero-logo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.30) 0%, transparent 60%);
  filter: blur(30px);
  z-index: -1;
  animation: serv-logo-pulse 3s ease-in-out infinite;
}
@keyframes serv-logo-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.serv-hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(245, 197, 24, 0.20));
  animation: serv-logo-float 4s ease-in-out infinite;
}
@keyframes serv-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 900px) {
  .serv-hero {
    min-height: 620px;
  }
  .serv-hero-container {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
    justify-content: space-between;
  }
  .serv-hero-content {
    flex: 1;
    max-width: none;
  }
  .serv-hero-cta,
  .serv-hero-badges {
    justify-content: flex-start;
  }
  .serv-hero-logo-wrap {
    width: 320px;
  }
}

@media (max-width: 599px) {
  .serv-hero {
    padding-bottom: 0;
  }
  .serv-hero-container {
    gap: 1.25rem;
  }
  .serv-hero-logo-wrap {
    overflow: hidden;
  }
  .serv-hero-logo {
    animation: none;
  }
}

/* ─── INTRO SEO ─────────────────────────────────────── */
#serv-intro {
  padding: 4rem 0 2.5rem;
  background: var(--dark);
}
.serv-intro-container {
  max-width: 820px;
  text-align: center;
}
.serv-intro-text {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.25rem;
  text-align: left;
}
.serv-intro-text:first-of-type {
  margin-top: 1.5rem;
}
.serv-intro-text strong {
  color: var(--white);
  font-weight: 600;
}
.serv-intro-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 197, 24, 0.4);
  transition: border-color 0.2s ease;
}
.serv-intro-link:hover {
  border-bottom-color: var(--yellow);
}

/* ─── GRID DE SERVICIOS ─────────────────────────────────────── */
#servicios-grid {
  padding: 3rem 0 5rem;
  background: var(--dark);
}
.serv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 600px) {
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .serv-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.serv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, var(--card) 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
  isolation: isolate;
}
.serv-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(245, 197, 24, 0.4) 0%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.serv-card:hover,
.serv-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.30);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(245, 197, 24, 0.1);
}
.serv-card:hover::before,
.serv-card:focus-visible::before {
  opacity: 1;
}
a.serv-card { cursor: pointer; }

.serv-card-featured {
  background: linear-gradient(180deg, #1c1a12 0%, #161410 100%);
  border-color: rgba(245, 197, 24, 0.18);
}

.serv-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.30);
  border-radius: 100px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.serv-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.12) 0%, rgba(245, 197, 24, 0.04) 100%);
  border: 1px solid rgba(245, 197, 24, 0.20);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.serv-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--yellow);
}

.serv-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 0.85rem;
}

.serv-card p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.serv-card p strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.serv-card-link {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-top: auto;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.serv-card:hover .serv-card-link {
  transform: translateX(4px);
}

/* ─── BLOQUE ¿POR QUÉ ELEGIR? ─────────────────────────────────────── */
#serv-porque {
  padding: 5rem 0;
  background: var(--black);
  position: relative;
}
#serv-porque::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.15), transparent);
}

.serv-porque-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .serv-porque-layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .serv-porque-text { flex: 1.1; }
  .serv-porque-img { flex: 1; }
}

.serv-porque-intro {
  font-family: 'Barlow', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 1rem 0 2rem;
}

.serv-porque-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.serv-porque-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.serv-porque-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.10);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 10px;
}
.serv-porque-icon svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
}
.serv-porque-list li > div { flex: 1; }
.serv-porque-list strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.serv-porque-list span {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.serv-porque-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  aspect-ratio: 836 / 403;
}
.serv-porque-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.serv-porque-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.serv-porque-img-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(245, 197, 24, 0.95);
  color: #0a0a0a;
  border-radius: 100px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ─── CÓMO FUNCIONA — 4 PASOS ─────────────────────────────────────── */
#serv-como {
  padding: 5rem 0;
  background: var(--dark);
}
.serv-pasos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 600px) {
  .serv-pasos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .serv-pasos { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.serv-paso {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: left;
  overflow: hidden;
}
.serv-paso-num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(245, 197, 24, 0.12);
  pointer-events: none;
}
.serv-paso-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.10);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.serv-paso-icon svg {
  width: 24px;
  height: 24px;
  color: var(--yellow);
}
.serv-paso h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.65rem;
}
.serv-paso p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}
.serv-paso p strong { color: var(--yellow); }

/* ─── BLOQUE CONFIANZA (con imagen) ─────────────────────────────────────── */
#serv-confianza {
  padding: 5rem 0;
  background: var(--black);
  position: relative;
}
.serv-confianza-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .serv-confianza-layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .serv-confianza-img-wrap { flex: 0.9; max-width: 450px; }
  .serv-confianza-text { flex: 1.1; }
  .serv-confianza-img-wrap::before { width: 62%; right: 0; left: auto; }
}

.serv-confianza-img-wrap {
  position: relative;
  padding: 1.1rem 0;
}

@media (min-width: 600px) and (max-width: 899px) {
  .serv-confianza-img-wrap {
    max-width: 480px;
    margin: 0 auto;
  }
}

.serv-confianza-img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 14px;
  background: var(--yellow);
  transform: skewX(-15deg);
  transform-origin: right center;
}

.serv-confianza-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 62%;
  height: 14px;
  background: var(--yellow);
  transform: skewX(-15deg);
  transform-origin: left center;
}

.serv-confianza-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  aspect-ratio: 3 / 4;
  max-height: 600px;
}
.serv-confianza-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.serv-confianza-text p {
  font-family: 'Barlow', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.25rem;
}
.serv-confianza-text p strong {
  color: var(--white);
  font-weight: 600;
}

.serv-confianza-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.serv-confianza-stat strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.serv-confianza-stat span {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

/* ─── CTA BANNER — movido a core.css (compartido con contacto) ── */
#serv-cta {
  padding: 4rem 0;
  background: var(--dark);
}

/* ─── FAQ SERVICIOS — reutiliza .faq-layout ───────────────── */
#serv-faq {
  padding: 5rem 0 4rem;
  background: var(--dark);
}

/* ─── INTERLINKING — movido a core.css (compartido en todas las páginas) ── */
