/* ===================================================
   SERVICES.CSS - DRP ASSURANCE
   CSS Unificado para los 4 Servicios
   Autor: Sistema DRP
   Fecha: 2025
   ================================================== */

/* VARIABLES CSS (Heredadas de style.css) */
:root {
  --azul-oscuro: #213B50;
  --azul-medio: #405A75;
  --verde-corporativo: #C2E03B;
  --gris: #AFBDC8;
  --gris-claro: #EEF3F4;
  --texto-principal: #393939;
  --blanco: #FFFFFF;
  --font-family: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* RESET Y BASE PARA SERVICIOS */
.service-hero,
.service-overview,
.service-benefits,
.service-process,
.service-features,
.service-why,
.service-cta {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================
   HERO SECTION - Fondos específicos por servicio
   ================================================== */
.service-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(33, 59, 80, 0.9) 0%,
      rgba(64, 90, 117, 0.9) 100%);
  z-index: 1;
}

/* Fondos específicos por servicio */
.service-hero[data-service="1"] {
  background: url('../../assets/img/hero-service-1.svg') center/cover no-repeat;
}

.service-hero[data-service="2"] {
  background: url('../../assets/img/hero-service-2.svg') center/cover no-repeat;
}

.service-hero[data-service="3"] {
  background: url('../../assets/img/hero-service-3.svg') center/cover no-repeat;
}

.service-hero[data-service="4"] {
  background: url('../../assets/img/hero-service-4.svg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.4;
}

.hero-badge {
  display: inline-block;
  background: var(--verde-corporativo);
  color: var(--azul-oscuro);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

/* ===================================================
   OVERVIEW SECTION
   ================================================== */
.service-overview {
  background: var(--gris-claro);
}

.overview-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  text-align: center;
  margin-bottom: 2rem;
}

.overview-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--texto-principal);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.overview-highlight {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-medio);
  text-align: center;
  padding: 1.5rem;
  background: var(--blanco);
  border-left: 4px solid var(--verde-corporativo);
  border-radius: 8px;
  margin: 2rem auto 0;
  max-width: 700px;
  box-shadow: var(--shadow);
}

/* ===================================================
   BENEFITS SECTION
   ================================================== */
.service-benefits {
  background: var(--blanco);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--verde-corporativo);
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--blanco);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--verde-corporativo);
  transform: scaleX(0);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde-corporativo);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--verde-corporativo), rgba(194, 224, 59, 0.7));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.benefit-icon svg {
  width: 40px;
  height: 40px;
  color: var(--azul-oscuro);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--texto-principal);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===================================================
   PROCESS SECTION - Timeline
   ================================================== */
.service-process {
  background: var(--gris-claro);
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--verde-corporativo);
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4rem;
  position: relative;
  opacity: 1;
  padding-top: 1rem;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
  text-align: right;
}

.step-number {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-100%);
  width: 50px;
  height: 50px;
  background: var(--verde-corporativo);
  color: var(--azul-oscuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 3;
}

.step-content {
  flex: 1;
  padding: 2rem;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 0 3rem;
  margin-top: 30px;
  transition: var(--transition);
  position: relative;
}

.step-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--texto-principal);
  line-height: 1.6;
}

/* ===================================================
   FEATURES SECTION
   ================================================== */
.service-features {
  background: var(--blanco);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.features-column {
  background: var(--gris-claro);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--verde-corporativo);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  color: var(--texto-principal);
  line-height: 1.6;
  border-bottom: 1px solid rgba(175, 189, 200, 0.3);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--verde-corporativo);
  font-weight: 700;
  font-size: 1.1rem;
}

.features-list li:hover {
  background: rgba(194, 224, 59, 0.1);
  padding-left: 2.5rem;
  transition: var(--transition);
}

/* ===================================================
   WHY CHOOSE SECTION
   ================================================== */
.service-why {
  background: var(--gris-claro);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--blanco);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(194, 224, 59, 0.1),
      transparent);
  transition: var(--transition);
}

.why-card:hover::before {
  left: 100%;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--verde-corporativo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.why-icon svg {
  width: 35px;
  height: 35px;
  color: var(--azul-oscuro);
}

.why-card:hover .why-icon {
  transform: rotateY(180deg);
}

.why-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--texto-principal);
  line-height: 1.6;
}

/* ===================================================
   CTA SECTION
   ================================================== */
.service-cta {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  color: var(--blanco);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--verde-corporativo);
  color: var(--azul-oscuro);
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 224, 59, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

/* ===================================================
   ANIMACIONES
   ================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Animación para elementos que entran al scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .process-timeline::before {
    left: 30px;
  }

  .process-step {
    flex-direction: row !important;
  }

  .process-step:nth-child(even) .step-content {
    text-align: left;
  }

  .step-number {
    left: 30px;
    top: 30px;
    transform: translateX(-50%);
}

  .step-content {
    margin-left: 4rem;
    margin-right: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {

  .service-hero,
  .service-overview,
  .service-benefits,
  .service-process,
  .service-features,
  .service-why,
  .service-cta {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .benefit-card,
  .step-content,
  .why-card {
    padding: 2rem 1.5rem;
  }

  .features-column {
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* ===================================================
   NAVEGACIÓN ACTIVA - Dropdown Servicios
   ================================================== */
.nav-item.dropdown.active .nav-link {
  color: var(--verde-corporativo) !important;
}

.dropdown-menu a.active {
  background: var(--verde-corporativo);
  color: var(--azul-oscuro) !important;
  font-weight: 700;
}

/* ===================================================
   UTILIDADES ESPECÍFICAS PARA SERVICIOS
   ================================================== */
.text-highlight {
  color: var(--verde-corporativo);
  font-weight: 700;
}

.bg-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(194, 224, 59, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(33, 59, 80, 0.1) 0%, transparent 50%);
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--verde-corporativo);
  margin: 2rem auto;
  border-radius: 2px;
}