/* ============================================
   AGENCIA FGS — estilos-servicios.css
   Página: Servicios
   ============================================ */

/* ===== HERO ===== */
.sv-hero {
  position: relative;
  min-height: 280px;
  padding-top: 74px;
  background: linear-gradient(135deg, #050540, #0A0A6B, #0D0D80);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,102,255,0.18), transparent 70%);
  pointer-events: none;
}

.sv-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,107,0.4) 0%, transparent 100%);
}

.sv-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 48px 24px;
}

.sv-hero-title {
  font-family: var(--font-titulo);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--blanco);
  letter-spacing: 0.06em;
  text-shadow: 0 0 32px rgba(0,102,255,0.6);
  margin-bottom: 12px;
}

.sv-hero-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.sv-hero-line {
  width: 200px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--verde-neon), transparent);
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0,255,102,0.5);
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}

/* ===== SECCIÓN SERVICIO ===== */
.sv-servicio {
  padding: 72px 24px;
  background: linear-gradient(160deg, #0A0A6B 0%, #0D0D7A 100%);
  border-top: 2px solid rgba(255,215,0,0.15);
  position: relative;
  overflow: hidden;
}

.sv-servicio-alt {
  background: linear-gradient(160deg, #080860 0%, #0A0A6B 100%);
}

/* Orbe decorativo */
.sv-servicio::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.08), transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
  animation: float-particle 12s ease-in-out infinite;
}

/* Grid texto + imagen */
.sv-servicio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  position: relative; z-index: 1;
}

.sv-reverse {
  direction: rtl;
}

.sv-reverse > * {
  direction: ltr;
}

/* Texto */
.sv-servicio-text {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
  animation: fade-up 0.8s ease both;
}

.sv-numero {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 4px;
  color: var(--verde-neon);
  text-transform: uppercase;
}

.sv-titulo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--blanco);
  text-shadow: 0 0 20px rgba(0,102,255,0.4);
}

.sv-titulo span {
  font-family: var(--font-titulo);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  display: block;
  letter-spacing: 0.04em;
  color: var(--blanco);
}

.sv-linea {
  width: 80px; height: 4px;
  background: var(--verde-neon);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,255,102,0.5);
}

.sv-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 480px;
}

.sv-tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--blanco);
  font-style: italic;
}

.sv-btn {
  margin-top: 8px;
}

/* Imagen */
.sv-servicio-img {
  animation: fade-up 0.8s 0.2s ease both;
}

.sv-img-wrap {
  border: 4px solid var(--amarillo);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(255,215,0,0.3), var(--sombra-card);
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  aspect-ratio: 1 / 1;
}

.sv-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.15), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}

.sv-img-wrap:hover {
  box-shadow: 0 0 48px rgba(255,215,0,0.55), var(--sombra-card-hover);
  transform: translateY(-5px) scale(1.01);
}

.sv-img-wrap:hover::after { opacity: 1; }

.sv-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.95) saturate(1.1);
}

.sv-img-wrap:hover .sv-img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.25);
}

/* ===== INCLUYE ===== */
.sv-incluye {
  max-width: 1200px;
  margin: 56px auto 0;
  position: relative; z-index: 1;
}

.sv-incluye-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--blanco);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(0,102,255,0.4);
}

.sv-incluye-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Tarjetas */
.sv-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px 18px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fade-up 0.7s ease both;
}

.sv-card:nth-child(1) { animation-delay: 0.1s; }
.sv-card:nth-child(2) { animation-delay: 0.2s; }
.sv-card:nth-child(3) { animation-delay: 0.3s; }
.sv-card:nth-child(4) { animation-delay: 0.4s; }

.sv-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 14px 14px 0 0;
  background: var(--amarillo);
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.sv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,0.35);
  box-shadow: 0 8px 32px rgba(0,102,255,0.3);
}

.sv-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.sv-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--amarillo);
  letter-spacing: 0.04em;
}

.sv-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 900px) {
  .sv-servicio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .sv-reverse { direction: ltr; }

  .sv-servicio-text { align-items: center; }
  .sv-desc { text-align: center; max-width: 100%; }

  .sv-img-wrap {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 4/3;
  }

  .sv-incluye-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 600px) {
  .sv-servicio { padding: 48px 16px; }

  .sv-incluye-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .sv-img-wrap { max-width: 300px; }
}

/* ===== MENÚ DESPLEGABLE SERVICIOS ===== */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0A0A6B;
  border: 1px solid #0066FF;
  border-radius: 8px;
  min-width: 230px;
  z-index: 2000;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.nav-item-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #FFFFFF;
  transition: 0.3s ease;
}

.nav-dropdown li a:hover {
  background: rgba(255,215,0,0.12);
  color: #FFD700;
  padding-left: 24px;
}