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

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 50vh; /* Slightly shorter for internal pages */
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-section p.lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    font-style: italic;
}

/* SERVICE CARDS GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* MODERN SERVICE CARD */
.service-card-modern {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 36, 99, 0.05);
  box-shadow: 0 10px 30px rgba(10, 36, 99, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  opacity: 0;
  z-index: -1;
  transition: all 0.5s ease;
}

.service-card-modern:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
  border-color: transparent;
}

.service-card-modern:hover::before {
  opacity: 1;
}

/* Icon Styling */
.card-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(10, 36, 99, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-blue);
  transition: all 0.4s ease;
}

.service-card-modern:hover .card-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: rotateY(360deg);
}

/* Text Styling */
.service-card-modern h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.service-card-modern:hover h3 {
  color: var(--white);
}

.service-card-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  transition: all 0.4s ease;
  flex-grow: 1;
}

.service-card-modern:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  top: -75px;
  right: -75px;
  pointer-events: none;
  transition: all 0.5s ease;
}

.service-card-modern:hover .card-glow {
  transform: scale(2);
  opacity: 0.5;
}

/* FEATURE CARDS */
.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.05);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid transparent;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(10, 36, 99, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.feature-card h4 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  padding: 5rem 0;
  position: relative;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 2rem;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .service-card {
    padding: 1.5rem;
  }
}
