/* ===== CSS Variables ===== */
:root {
  /* Colores */
  --primary-color: #114577;
  --secondary-color: #74b74d;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;

  /* ========================================
     IMÁGENES DE FONDO - CONFIGURACIÓN
     ========================================
     Cambia estas rutas para personalizar las imágenes de fondo
     de cada sección del sitio. Solo necesitas cambiar la ruta
     aquí y se aplicará automáticamente en toda la página.
  */

  /* Imagen de fondo: Sección Contact CTA (llamado a la acción) */
  --bg-contact-cta: url("../assets/images/heros/hero.webp");

  /* Imagen de fondo: Sección alternativa azul */
  --bg-section-alt-blue: url("../assets/images/heros/hero.webp");

  /* Imagen de fondo: Sección alternativa oscura */
  --bg-section-alt-dark: url("../assets/images/heros/hero.webp");

  /* Imagen de fondo: Sección de servicios */
  --bg-services-preview: url("../assets/images/heros/hero.webp");

  /* Imágenes disponibles que puedes usar:
     - url("../assets/images/heros/hero.webp")
     - url("../assets/images/about/slider/slide1.webp")
     - url("../assets/images/about/slider/slide2.webp")
     - url("../assets/images/about/slider/slide3.webp")
     - url("../assets/images/services/nutrition.webp")
     - url("../assets/images/services/health.webp")
     - url("../assets/images/services/monitoring.webp")
     - url("../assets/images/services/supplements.webp")
  */
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 0.95rem;
  text-align: justify;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ===== Navigation Bar ===== */
.navbar {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.navbar.scrolled .nav-menu li a,
.navbar.scrolled .logo {
  color: var(--text-dark);
}

.navbar.scrolled .mobile-menu-button span {
  background-color: var(--primary-color);
}

.navbar.scrolled .social-icons a {
  color: var(--text-dark);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  order: 2;
}

.social-icons a {
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.3rem;
  transition: var(--transition);
}

.logo img {
  height: 35px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  filter: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  order: 1;
}

.nav-menu li a {
  color: var(--white);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--secondary-color);
}

.nav-menu li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-button span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  opacity: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
  pointer-events: none;
}

/* Ocultar TODOS los controles del video en todos los navegadores */
.hero-video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

.hero-video::-webkit-media-controls-panel {
  display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
  display: none !important;
  opacity: 0 !important;
}

.hero-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
  display: none !important;
}

video::-internal-media-controls-overlay-cast-button {
  display: none !important;
}

/* Evitar que aparezca el botón de play en móviles */
video::-webkit-media-controls-timeline {
  display: none !important;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

video::-webkit-media-controls-volume-slider {
  display: none !important;
}

video::-webkit-media-controls-mute-button {
  display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

/* Reglas adicionales para móviles - Ocultar botón de play */
@media (max-width: 768px) {
  .hero-video {
    pointer-events: none !important;
  }

  .hero-video::-webkit-media-controls,
  .hero-video::-webkit-media-controls-panel,
  .hero-video::-webkit-media-controls-overlay-play-button,
  .hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(17, 69, 119, 0.85) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--white);
  padding: 2rem;
  max-width: 600px;
  margin-left: 5%;
}

.hero-slogan {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.95;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.text-primary {
  color: #4a9eff;
}

.text-secondary {
  color: var(--secondary-color);
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-box {
  display: flex;
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-box:focus-within {
  box-shadow: 0 12px 40px rgba(39, 174, 96, 0.3);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: #999;
  font-weight: 400;
}

.search-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5fa03d 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0 50px 50px 0;
  margin: -2px -2px -2px 0;
  padding-right: 2.2rem;
}

.search-button:hover {
  background: linear-gradient(135deg, #5fa03d 0%, var(--secondary-color) 100%);
  transform: scale(1.02);
  box-shadow: -4px 0 12px rgba(39, 174, 96, 0.3);
}

.search-button:active {
  transform: scale(0.98);
}

.search-button i {
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Page Hero ===== */
.hero-page {
  min-height: 60vh;
  opacity: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-page .hero-content {
  text-align: left;
  max-width: 700px;
}

/* ===== Page Header (fallback) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5d94 100%);
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 400;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.cta-button.primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.cta-button.primary:hover {
  background-color: #5fa038;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-button.secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* ===== Section Styles ===== */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

.section-title-left {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

.section-title-right {
  text-align: right;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

/* Títulos específicos con estilos alternados */
.section-title-services {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 2rem;
}

.section-title-services::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  border-radius: 3px;
}

.section-subtitle-services {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title-why {
  text-align: right;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-why::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 5px;
  background: linear-gradient(270deg, var(--secondary-color), transparent);
  border-radius: 3px;
}

.section-title-contact {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title-contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 3px;
}

.section-subtitle,
.section-subtitle-left {
  text-align: left;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.section-subtitle-right {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ===== About Section ===== */
.about-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content-left p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== Slider Styles ===== */
.about-slider-wrapper {
  position: relative;
  padding: 50px 30px 0 0;
}

.slider-container {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-logo {
  position: absolute;
  top: -40px;
  right: -20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.slide-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.2);
}

.slide-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--secondary-color);
  width: 30px;
  border-radius: 6px;
}

/* ===== Service Cards 3D Flip ===== */
/* Section Alternating Colors */
.section-alt-white {
  background: var(--white);
  padding: 4rem 0;
  position: relative;
}

.section-alt-blue {
  position: relative;
  padding: 4rem 0;
  background-image: var(--section-bg-image, var(--bg-section-alt-blue));
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-alt-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 69, 119, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}

.section-alt-blue .container {
  position: relative;
  z-index: 1;
}

.section-alt-blue .section-title,
.section-alt-blue .section-subtitle,
.section-alt-blue .section-title-left,
.section-alt-blue .section-title-right,
.section-alt-blue .section-subtitle-left,
.section-alt-blue .section-subtitle-right,
.section-alt-blue h2,
.section-alt-blue h3,
.section-alt-blue p {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.section-alt-dark {
  position: relative;
  padding: 6rem 0;
  background-image: var(--bg-section-alt-dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.section-alt-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 69, 119, 0.96) 0%,
    rgba(13, 48, 73, 0.98) 100%
  );
  z-index: 0;
}

.section-alt-dark .container {
  position: relative;
  z-index: 1;
}

.section-alt-dark .section-title,
.section-alt-dark .section-subtitle,
.section-alt-dark .section-title-services-main,
.section-alt-dark .services-main-subtitle {
  color: var(--white);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.services-preview {
  position: relative;
  overflow: hidden;
  background-image: var(--section-bg-image, var(--bg-services-preview));
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.services-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 69, 119, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.services-preview .container {
  position: relative;
  z-index: 1;
}

.services-preview .section-title-services {
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.services-preview .section-title-services::after {
  background: linear-gradient(90deg, var(--secondary-color), rgba(255, 255, 255, 0.8), var(--secondary-color));
}

.services-preview .section-subtitle-services {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Services Home Swiper - Modern Slider */
.servicesHomeSwiper {
  width: 100%;
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 3rem 2rem 5rem !important;
  overflow: visible !important;
}

/* Desktop: Grid fijo 4x1 sin slider */
@media (min-width: 1024px) {
  .servicesHomeSwiper {
    max-width: 1600px;
    padding: 3rem 3rem 5rem !important;
  }

  .servicesHomeSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    transform: none !important;
  }

  .servicesHomeSwiper .swiper-slide {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    height: 100%;
  }

  .servicesHomeSwiper .swiper-button-next,
  .servicesHomeSwiper .swiper-button-prev,
  .servicesHomeSwiper .swiper-pagination {
    display: none !important;
  }

  /* Tarjetas simétricas en desktop */
  .service-slide-card {
    min-height: 500px;
    height: 100%;
  }

  .service-slide-overlay {
    background: linear-gradient(135deg,
      rgba(17, 69, 119, 0.50) 0%,
      rgba(17, 69, 119, 0.45) 50%,
      rgba(17, 69, 119, 0.50) 100%
    ) !important;
  }

  .service-slide-card:hover .service-slide-overlay {
    background: linear-gradient(135deg,
      rgba(17, 69, 119, 0.45) 0%,
      rgba(116, 183, 77, 0.50) 100%
    ) !important;
  }

  /* Tipografía consistente en desktop */
  .service-slide-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  .service-slide-desc {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .service-slide-icon {
    width: 80px !important;
    height: 80px !important;
  }

  .service-slide-icon i {
    font-size: 2.2rem !important;
  }

  .service-slide-content {
    padding: 2.5rem 2rem !important;
  }

  .service-slide-link {
    font-size: 0.95rem !important;
    margin-top: auto;
    padding: 0.75rem 1.5rem !important;
    width: 100%;
    justify-content: center;
  }

  /* Eliminar efectos de hover exagerados en desktop */
  .service-slide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(17, 69, 119, 0.25);
  }

  /* Alinear contenido para botones en fila */
  .service-slide-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .service-slide-desc {
    margin-bottom: 1.5rem !important;
    flex-grow: 1;
  }
}

/* Móvil/Tablet: Slider activo */
@media (max-width: 1023px) {
  .servicesHomeSwiper .swiper-wrapper {
    align-items: stretch;
  }

  .servicesHomeSwiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 1;
    transform: scale(1);
  }

  .servicesHomeSwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
  }

  .servicesHomeSwiper .swiper-slide-prev,
  .servicesHomeSwiper .swiper-slide-next {
    opacity: 1;
    transform: scale(1);
  }
}

.service-slide-card {
  position: relative;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.service-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.320, 1);
}

.service-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.320, 1);
}

.swiper-slide-active .service-slide-image img {
  transform: scale(1.1);
}

.service-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(17, 69, 119, 0.65) 0%,
    rgba(17, 69, 119, 0.60) 50%,
    rgba(17, 69, 119, 0.65) 100%
  );
  transition: all 0.7s ease;
}

.swiper-slide-active .service-slide-overlay {
  background: linear-gradient(135deg,
    rgba(17, 69, 119, 0.60) 0%,
    rgba(116, 183, 77, 0.65) 100%
  );
}

.service-slide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--secondary-color), #5fa03d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 3;
}

.swiper-slide-active .service-slide-card::before {
  transform: scaleX(1);
}

.service-slide-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(116, 183, 77, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.swiper-slide-active .service-slide-card::after {
  opacity: 1;
}

.swiper-slide-active .service-slide-card {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 80px rgba(17, 69, 119, 0.3), 0 0 40px rgba(116, 183, 77, 0.2);
}

.service-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3.5rem 3rem;
}

.service-slide-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-slide-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

.service-slide-icon::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.3) 90deg,
    transparent 180deg
  );
  opacity: 0;
  transition: all 0.7s ease;
  animation: rotateShine 3s linear infinite;
  animation-play-state: paused;
}

@keyframes rotateShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.swiper-slide-active .service-slide-icon::after {
  opacity: 1;
  animation-play-state: running;
}

.swiper-slide-active .service-slide-icon::before {
  opacity: 1;
}

.swiper-slide-active .service-slide-icon {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 40px rgba(116, 183, 77, 0.5);
}

.service-slide-icon i {
  font-size: 3rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  transition: all 0.7s ease;
}

.swiper-slide-active .service-slide-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.service-slide-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.service-slide-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
  transition: width 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  border-radius: 2px;
}

.swiper-slide-active .service-slide-title {
  color: var(--white);
  transform: translateY(-3px);
}

.swiper-slide-active .service-slide-title::after {
  width: 80px;
}

.service-slide-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.service-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  align-self: flex-start;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.service-slide-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 0;
}

.service-slide-link span,
.service-slide-link i {
  position: relative;
  z-index: 1;
}

.service-slide-link:hover::before,
.swiper-slide-active .service-slide-link::before {
  width: 300px;
  height: 300px;
}

.service-slide-link:hover,
.swiper-slide-active .service-slide-link {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(116, 183, 77, 0.5);
}

.service-slide-link i {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.service-slide-link:hover i,
.swiper-slide-active .service-slide-link i {
  transform: translateX(5px);
}

.servicesHomeSwiper .swiper-button-next,
.servicesHomeSwiper .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  top: 50%;
  margin-top: 0;
}

.servicesHomeSwiper .swiper-button-next {
  right: -15px;
}

.servicesHomeSwiper .swiper-button-prev {
  left: -15px;
}

.servicesHomeSwiper .swiper-button-next:hover,
.servicesHomeSwiper .swiper-button-prev:hover {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  border-color: var(--secondary-color);
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(116, 183, 77, 0.5);
}

.servicesHomeSwiper .swiper-button-next::after,
.servicesHomeSwiper .swiper-button-prev::after {
  font-size: 1rem;
  color: var(--white);
  font-weight: 900;
}

.servicesHomeSwiper .swiper-button-next:hover::after,
.servicesHomeSwiper .swiper-button-prev:hover::after {
  color: var(--white);
}

.servicesHomeSwiper .swiper-pagination {
  bottom: 1.5rem !important;
}

.servicesHomeSwiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  margin: 0 8px !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.servicesHomeSwiper .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.servicesHomeSwiper .swiper-pagination-bullet-active {
  background: linear-gradient(90deg, var(--secondary-color), #5fa03d);
  width: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(116, 183, 77, 0.7);
  border-color: var(--secondary-color);
}

@media (max-width: 1024px) {
  .servicesHomeSwiper {
    padding: 2rem 3rem 4rem !important;
  }

  .service-slide-card {
    min-height: 380px;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.15;
  }

  .service-slide-content {
    padding: 2.5rem 2rem;
  }

  .service-slide-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
  }

  .service-slide-icon i {
    font-size: 2rem;
  }

  .service-slide-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.8rem;
  }

  .service-slide-desc {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }

  .service-slide-link {
    font-size: 0.9rem !important;
    padding: 0.65rem 1.3rem !important;
  }

  /* Botones visibles en tablet */
  .servicesHomeSwiper .swiper-button-next,
  .servicesHomeSwiper .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
  }

  .servicesHomeSwiper .swiper-button-next {
    right: 10px;
  }

  .servicesHomeSwiper .swiper-button-prev {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .servicesHomeSwiper {
    padding: 2rem 1.5rem 4rem !important;
  }

  .service-slide-card {
    min-height: 360px;
    max-width: 420px;
    aspect-ratio: 1 / 1.1;
  }

  .service-slide-content {
    padding: 2rem 1.8rem;
  }

  .service-slide-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
  }

  .service-slide-icon i {
    font-size: 1.8rem;
  }

  .service-slide-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.7rem;
  }

  .service-slide-desc {
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin-bottom: 1rem !important;
  }

  .service-slide-link {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
  }

  /* Botones más pequeños en móvil */
  .servicesHomeSwiper .swiper-button-next,
  .servicesHomeSwiper .swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
  }

  .servicesHomeSwiper .swiper-button-next {
    right: 5px;
  }

  .servicesHomeSwiper .swiper-button-prev {
    left: 5px;
  }

  .servicesHomeSwiper .swiper-button-next::after,
  .servicesHomeSwiper .swiper-button-prev::after {
    font-size: 0.9rem;
  }
}

/* Pantallas pequeñas (móviles pequeños) */
@media (max-width: 480px) {
  .servicesHomeSwiper {
    padding: 1.5rem 1rem 3.5rem !important;
  }

  .service-slide-card {
    min-height: 340px;
    max-width: 350px;
    aspect-ratio: 1 / 1.05;
  }

  .service-slide-content {
    padding: 1.8rem 1.5rem;
  }

  .service-slide-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 0.8rem;
  }

  .service-slide-icon i {
    font-size: 1.6rem;
  }

  .service-slide-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.6rem;
  }

  .service-slide-desc {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 0.8rem !important;
  }

  .service-slide-link {
    font-size: 0.8rem !important;
    padding: 0.55rem 1rem !important;
  }

  .servicesHomeSwiper .swiper-button-next,
  .servicesHomeSwiper .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
  }

  .servicesHomeSwiper .swiper-button-next::after,
  .servicesHomeSwiper .swiper-button-prev::after {
    font-size: 0.8rem;
  }
}

/* Services Modern Grid */
.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  perspective: 1000px;
}

.service-modern-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
  cursor: pointer;
}

.service-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-modern-card:hover::before {
  transform: scaleX(1);
}

.service-modern-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 69, 119, 0.03), rgba(116, 183, 77, 0.03));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-modern-card:hover::after {
  opacity: 1;
}

.service-modern-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(17, 69, 119, 0.2);
}

.service-card-inner {
  position: relative;
  z-index: 1;
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.service-card-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-modern-card:hover .service-card-icon::before {
  opacity: 1;
}

.service-modern-card:hover .service-card-icon {
  transform: rotateY(360deg) scale(1.1);
}

.service-card-icon i {
  font-size: 2.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(17, 69, 119, 0.05);
  line-height: 1;
  transition: all 0.5s ease;
}

.service-modern-card:hover .service-card-number {
  color: rgba(116, 183, 77, 0.1);
  transform: scale(1.2);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-modern-card:hover .service-card-title {
  color: var(--primary-color);
}

.service-card-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.service-card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.service-modern-card:hover .service-card-link::after {
  width: 100%;
}

.service-card-link i {
  transition: transform 0.3s ease;
}

.service-modern-card:hover .service-card-link i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .services-modern-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-modern-card {
    padding: 2rem 1.5rem;
  }
}

/* Contenedor 3D */
.services-3d-container {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

/* Swiper Customization - Cards Effect */
.servicesSwiper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem !important;
  overflow: visible !important;
}

.servicesSwiper .swiper-wrapper {
  align-items: center;
}

/* Eliminar sombras predeterminadas de Swiper */
.swiper-slide-shadow,
.swiper-slide-shadow-left,
.swiper-slide-shadow-right,
.swiper-cards-shadow {
  display: none !important;
  opacity: 0 !important;
}

/* Slides con efecto de cartas apiladas */
.servicesSwiper .swiper-slide {
  width: 100%;
  height: auto;
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

/* Animación suave para slides no activos */
.servicesSwiper .swiper-slide:not(.swiper-slide-active) .flip-card {
  filter: brightness(0.85);
  transition: all 0.5s ease;
}

/* Efecto para slide activo */
.servicesSwiper .swiper-slide-active .flip-card {
  filter: brightness(1) contrast(1.05);
  transform: scale(1);
}

.servicesSwiper .swiper-slide-active .flip-card-front,
.servicesSwiper .swiper-slide-active .flip-card-back {
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35),
              0 20px 40px rgba(116, 183, 77, 0.2),
              0 0 0 2px rgba(116, 183, 77, 0.3),
              0 0 50px rgba(116, 183, 77, 0.15);
  border: 1px solid rgba(116, 183, 77, 0.4);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Brillo sutil en la card activa */
.servicesSwiper .swiper-slide-active .flip-card-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 20%,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(116, 183, 77, 0.08) 70%,
    rgba(116, 183, 77, 0.12) 100%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  border-radius: 24px;
  transition: opacity 0.6s ease;
}

.servicesSwiper .swiper-slide:not(.swiper-slide-active) .flip-card-front::after {
  opacity: 0;
}

/* Service Flip Card Structure */
.flip-card {
  width: 100%;
  max-width: 420px;
  height: 540px;
  perspective: 1200px;
  cursor: pointer;
  margin: 0 auto;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.flip-card-front {
  background: linear-gradient(135deg, #1a5d94 0%, var(--primary-color) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  position: relative;
}

.flip-card-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5d94 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-card:hover .card-bg-image {
  transform: scale(1.1);
}

.card-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(17, 69, 119, 0.95) 100%
  );
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overlay más claro para slide activo */
.servicesSwiper .swiper-slide-active .card-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(17, 69, 119, 0.75) 100%
  ) !important;
  backdrop-filter: blur(0px) !important;
}

.flip-card:hover .card-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(17, 69, 119, 1) 100%
  );
}

.card-icon-3d {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.flip-card:hover .card-icon-3d {
  background: rgba(116, 183, 77, 0.3);
  border-color: var(--secondary-color);
  transform: scale(1.1) rotate(5deg);
}

.card-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  z-index: 2;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.flip-card-front h3 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.card-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.card-action {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--white);
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: rgba(116, 183, 77, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  border: 2px solid rgba(116, 183, 77, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
}

.flip-card:hover .card-action {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateX(5px);
}

.card-action i {
  transition: transform 0.3s ease;
}

.flip-card:hover .card-action i {
  transform: translateX(5px);
}

/* Flip Card Back Content */
.back-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--white);
}

.back-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.back-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.back-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.back-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.back-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.back-content .cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.back-content .cta-button:hover {
  background: transparent;
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Z-index management for flipped cards */
.swiper-slide {
  z-index: 1;
}

.swiper-slide.is-flipped {
  z-index: 10;
}

/* Swiper Navigation - Modern Style */
.servicesSwiper .swiper-button-next,
.servicesSwiper .swiper-button-prev {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.servicesSwiper .swiper-button-next:hover,
.servicesSwiper .swiper-button-prev:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 10px 30px rgba(116, 183, 77, 0.5);
  opacity: 1;
}

.servicesSwiper .swiper-button-next::after,
.servicesSwiper .swiper-button-prev::after {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 800;
}

.servicesSwiper .swiper-button-next {
  right: 20px;
}

.servicesSwiper .swiper-button-prev {
  left: 20px;
}

/* Swiper Pagination - Enhanced */
.servicesSwiper .swiper-pagination {
  bottom: 1.5rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.servicesSwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 !important;
  border: 2px solid transparent;
}

.servicesSwiper .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.servicesSwiper .swiper-pagination-bullet-active {
  background: var(--secondary-color);
  width: 40px;
  border-radius: 8px;
  border-color: rgba(116, 183, 77, 0.3);
  box-shadow: 0 0 15px rgba(116, 183, 77, 0.6);
}

/* Responsive Styles for Services Slider */
@media (max-width: 1024px) {
  .servicesSwiper {
    max-width: 450px;
    padding: 3rem 1.5rem 5rem !important;
  }

  .flip-card {
    max-width: 380px;
    height: 500px;
  }

  .servicesSwiper .swiper-button-next,
  .servicesSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
  }

  .servicesSwiper .swiper-button-next::after,
  .servicesSwiper .swiper-button-prev::after {
    font-size: 1rem;
  }

  .main-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .servicesSwiper {
    max-width: 100%;
    padding: 2rem 1rem 5rem !important;
  }

  .flip-card {
    max-width: 350px;
    height: 480px;
  }

  .servicesSwiper .swiper-button-next,
  .servicesSwiper .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .servicesSwiper .swiper-button-next {
    right: 10px;
  }

  .servicesSwiper .swiper-button-prev {
    left: 10px;
  }

  .servicesSwiper .swiper-button-next::after,
  .servicesSwiper .swiper-button-prev::after {
    font-size: 0.9rem;
  }

  .servicesSwiper .swiper-pagination-bullet-active {
    width: 30px;
  }

  .main-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .servicesSwiper {
    padding: 2rem 0.5rem 4rem !important;
  }

  .flip-card {
    max-width: 320px;
    height: 450px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 2rem;
  }

  .front-content h3,
  .back-content h3 {
    font-size: 1.5rem;
  }

  .front-content p,
  .back-content p {
    font-size: 0.9rem;
  }

  .servicesSwiper .swiper-button-next,
  .servicesSwiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
  }

  .servicesSwiper .swiper-button-next::after,
  .servicesSwiper .swiper-button-prev::after {
    font-size: 0.8rem;
  }

  .servicesSwiper .swiper-pagination {
    bottom: 1rem !important;
  }

  .servicesSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .servicesSwiper .swiper-pagination-bullet-active {
    width: 24px;
  }

  .swipe-hint {
    font-size: 0.85rem;
  }

  .swipe-hint i {
    font-size: 1.2rem;
  }
}

/* Swipe Hint Message */
.swipe-hint {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  animation: swipeHintPulse 2s ease-in-out infinite;
  z-index: 5;
}

.swipe-hint i {
  font-size: 1.4rem;
  animation: swipeHintIcon 1.5s ease-in-out infinite;
}

@keyframes swipeHintPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes swipeHintIcon {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

/* Eliminar estilos antiguos del slider */
.service-cards-wrapper,
.service-cards,
.service-card,
.slider-controls,
.slider-btn {
  display: none !important;
}

.service-cards-wrapper {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.service-cards-wrapper::before,
.service-cards-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 20%;
  z-index: 20;
  pointer-events: none;
}

.service-cards-wrapper::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 69, 119, 0.95) 0%,
    rgba(15, 59, 96, 0.9) 20%,
    rgba(14, 54, 84, 0.7) 50%,
    transparent 100%
  );
}

.service-cards-wrapper::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(13, 48, 73, 0.97) 0%,
    rgba(15, 59, 96, 0.9) 20%,
    rgba(14, 54, 84, 0.7) 50%,
    transparent 100%
  );
}

.service-cards {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 25% 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.service-cards::-webkit-scrollbar {
  display: none;
}

.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  max-width: 320px;
  height: 480px;
  flex-shrink: 0;
  cursor: pointer;
  filter: grayscale(100%) blur(12px) brightness(0.3) contrast(0.8);
  opacity: 0.2;
  transform: scale(0.68) translateY(30px);
  scroll-snap-align: center;
}

.service-card.active {
  filter: grayscale(0%) blur(0px) brightness(1.05) contrast(1.1);
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 10;
  box-shadow: 0 35px 90px rgba(116, 183, 77, 0.6),
    0 0 0 2px rgba(116, 183, 77, 0.4),
    0 0 60px rgba(116, 183, 77, 0.2);
}

/* Estado de transición para cards cercanas al centro */
.service-card.near-active {
  filter: grayscale(80%) blur(8px) brightness(0.5) contrast(0.9);
  opacity: 0.45;
  transform: scale(0.80) translateY(20px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.92) 50%,
    rgba(0, 0, 0, 0.97) 100%
  );
  z-index: 1;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
}

.service-card.active::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(0px);
}

.service-card.near-active::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(2px);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 20%,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(116, 183, 77, 0.15) 80%,
    rgba(116, 183, 77, 0.2) 100%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.active::after {
  opacity: 1;
}

.service-card.near-active::after {
  opacity: 0.3;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.slider-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.slider-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--secondary-color);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.slider-btn:hover::before {
  width: 100%;
  height: 100%;
}

.slider-btn:hover {
  border-color: var(--secondary-color);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 30px rgba(116, 183, 77, 0.5),
              0 0 20px rgba(116, 183, 77, 0.3);
}

.slider-btn:active {
  transform: scale(1.05) rotate(0deg);
}

.slider-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.slider-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:disabled::before {
  display: none;
}

.service-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.15);
}

.service-card.active .service-image img {
  transform: scale(1) rotate(0deg);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  z-index: 3;
  transform: translateY(20px);
  opacity: 0.5;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.active .service-content {
  transform: translateY(0);
  opacity: 1;
}

.service-content h3 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.service-content .service-number {
  color: var(--secondary-color);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(116, 183, 77, 0.4);
  opacity: 0.3;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.active .service-content .service-number {
  opacity: 1;
  transform: scale(1.1);
}

.service-content p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-list {
  opacity: 1;
  transform: translateY(0);
}

.service-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.6);
}

.service-list li::before {
  content: "\f00c";
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.cta-section {
  text-align: center;
  margin-top: 3rem;
}

.cta-button.primary {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 500;
  padding: 1.2rem 3rem;
}

.cta-button.primary:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* ===== Why Choose Section ===== */
.why-choose {
  background: var(--white);
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(17, 69, 119, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(17, 69, 119, 0.15);
  border-color: var(--secondary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
}

/* ===== Contact CTA Section ===== */
.contact-cta {
  position: relative;
  padding: 6rem 0;
  background-image: var(--section-bg-image, var(--bg-contact-cta));
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  text-align: center;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 69, 119, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}

.contact-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-cta h2,
.contact-cta .section-title-left,
.contact-cta .section-title-right {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-cta p,
.contact-cta .section-subtitle-left,
.contact-cta .section-subtitle-right {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
  font-size: 1rem !important;
  opacity: 0.9;
  margin-bottom: 2.5rem !important;
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-buttons .cta-button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-buttons .cta-button.primary {
  background: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.contact-buttons .cta-button.primary:hover {
  background: #5fa03d;
  border-color: #5fa03d;
  transform: translateY(-3px);
}

.contact-buttons .cta-button.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.contact-buttons .cta-button.secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== About Page Styles ===== */
.about-intro {
  padding: 5rem 0;
  background: var(--white);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-intro h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Collage de Imágenes Flotantes */
.about-images-collage {
  position: relative;
  height: 500px;
  width: 100%;
}

.collage-image {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collage-image:hover img {
  transform: scale(1.1);
}

.collage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 69, 119, 0.9),
    rgba(116, 183, 77, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collage-overlay i {
  font-size: 3rem;
  color: white;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.collage-image:hover .collage-overlay {
  opacity: 1;
}

.collage-image:hover .collage-overlay i {
  transform: scale(1);
}

.collage-img-1 {
  width: 280px;
  height: 200px;
  top: 0;
  left: 0;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.collage-img-2 {
  width: 300px;
  height: 220px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  animation: float 6s ease-in-out infinite 2s;
}

.collage-img-3 {
  width: 260px;
  height: 190px;
  bottom: 0;
  left: 50px;
  z-index: 1;
  animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.collage-img-2 {
  animation-name: float-special;
}

@keyframes float-special {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 20px));
  }
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.mission-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5d94 100%);
  padding: 3rem 2rem;
  border-radius: 20px;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(17, 69, 119, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.3);
}

.mission-card .card-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.mission-card:hover .card-icon {
  background: var(--secondary-color);
  transform: scale(1.1) rotate(5deg);
}

.mission-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.mission-card p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 1rem;
}

.values {
  margin-top: 4rem;
}

.values h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
  border: 1px solid rgba(17, 69, 119, 0.08);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.value-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.value-card:nth-child(1) {
  transition-delay: 0s;
}

.value-card:nth-child(2) {
  transition-delay: 0.1s;
}

.value-card:nth-child(3) {
  transition-delay: 0.2s;
}

.value-card:nth-child(4) {
  transition-delay: 0.3s;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(116, 183, 77, 0.1);
  border-color: rgba(116, 183, 77, 0.3);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(17, 69, 119, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(116, 183, 77, 0.25);
}

.value-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.value-card p {
  color: rgba(51, 51, 51, 0.75);
  line-height: 1.7;
  font-size: 0.9rem;
  font-weight: 400;
}

.about-links-section {
  padding: 4rem 0;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card-link {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(17, 69, 119, 0.08);
  border: 1px solid rgba(17, 69, 119, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.info-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(116, 183, 77, 0.15);
  border-color: rgba(116, 183, 77, 0.3);
}

.info-card-link .info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(116, 183, 77, 0.2);
}

.info-card-link:hover .info-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(116, 183, 77, 0.3);
}

.info-card-link h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-shadow: none !important;
}

.info-card-link p {
  color: rgba(51, 51, 51, 0.75);
  line-height: 1.7;
  font-size: 0.9rem;
  font-weight: 400;
  text-shadow: none !important;
}

/* ===== Services Detail Page ===== */
.services-detailed {
  padding: 4rem 0;
  background: var(--white);
}

/* ===== Services Accordion Moderno ===== */
.services-accordion {
  max-width: 900px;
  margin: 3rem auto 0;
}

.service-accordion-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.service-accordion-item:hover {
  box-shadow: 0 8px 30px rgba(17, 69, 119, 0.12);
  border-color: rgba(17, 69, 119, 0.1);
}

.service-accordion-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(17, 69, 119, 0.15);
}

.service-accordion-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.service-accordion-item.active .service-accordion-header {
  background: linear-gradient(135deg, rgba(17, 69, 119, 0.03), rgba(116, 183, 77, 0.03));
}

.service-accordion-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.service-accordion-item.active .service-accordion-icon {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: scale(1.1);
}

.service-accordion-header h3 {
  flex: 1;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.3s ease;
}

.service-accordion-item.active .service-accordion-header h3 {
  color: var(--secondary-color);
}

.service-accordion-toggle {
  width: 40px;
  height: 40px;
  background: rgba(17, 69, 119, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-accordion-item.active .service-accordion-toggle {
  background: var(--secondary-color);
  transform: rotate(180deg);
}

.service-accordion-toggle i {
  color: var(--primary-color);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.service-accordion-item.active .service-accordion-toggle i {
  color: var(--white);
}

.service-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.service-accordion-item.active .service-accordion-content {
  max-height: 1000px;
  padding: 0 2rem 2rem;
}

.service-accordion-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.service-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.service-benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.service-benefits-list i {
  color: var(--secondary-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.service-detail-card {
  background: var(--white);
  padding: 3rem;
  margin-bottom: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(17, 69, 119, 0.1);
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.15);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bg-light);
}

.service-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.service-tagline {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.service-features {
  display: grid;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.7;
}

.cta-services {
  padding: 5rem 0;
  background: var(--bg-light);
}

.cta-content-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content-box h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.cta-content-box p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-content-box .cta-button {
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h2 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info > p {
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.contact-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item-modern:hover {
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

.contact-icon-modern {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item-modern h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.contact-item-modern p {
  margin: 0;
  color: var(--text-light);
  font-weight: 300;
  font-size: 0.95rem;
}

.contact-form-modern {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-modern h2 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form-modern > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
}

.form-group-modern label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
  padding: 1rem 1.2rem;
  border: 2px solid var(--bg-light);
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 69, 119, 0.1);
}

.submit-button {
  padding: 1.2rem 2.5rem;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

.submit-button:hover {
  background: #5fa03d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(116, 183, 77, 0.3);
}

.map-section {
  padding: 0;
}

.map-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Forms ===== */
.contact-form-wrapper h2 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper p {
  font-weight: 300;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  display: none;
  font-weight: 300;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ===== About Page Styles ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-content p {
  font-weight: 300;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color);
}

.card h3 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card p {
  font-weight: 300;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.value-item h4 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-weight: 300;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: block;
  color: var(--text-dark);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  color: var(--text-dark);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-weight: 300;
}

/* ===== Services Detailed Page ===== */
.service-detail {
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.service-content h2 {
  color: var(--primary-color);
  text-align: center;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service-intro {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.service-content h3 {
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
  margin-left: 0;
}

.service-content ul li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  font-weight: 300;
}

.service-content ul li::before {
  content: "\f054";
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.8rem;
}

.cta-contact {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5d94 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-contact h2 {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-contact p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.83rem;
  transition: all 0.3s ease;
}

.footer-social-icons a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-section h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.91rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin: 0.75rem 0;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  transition: var(--transition);
  font-size: 0.78rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin: 0.5rem 0;
}

.footer-schedule li,
.footer-contact li {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  line-height: 1.8;
  font-size: 0.78rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.footer-contact li i {
  color: var(--secondary-color);
  font-size: 0.83rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== Team Section ===== */
.team-section {
  padding: 4rem 0;
  background: var(--white);
}

.team-section .section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.team-section .section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-member {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(17, 69, 119, 0.08);
  transition: all 0.3s ease;
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(116, 183, 77, 0.15);
  border-color: rgba(116, 183, 77, 0.3);
}

.team-member-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
  transform: scale(1.05);
}

.team-member-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.team-member:hover .team-member-overlay {
  transform: translateY(0);
}

.team-member-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-member-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.team-member-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.team-member-info {
  padding: 2rem 1.5rem;
  text-align: center;
}

.team-member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  line-height: 1.3;
}

.team-member-role {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.team-member-bio {
  font-size: 0.88rem;
  color: rgba(51, 51, 51, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}

.team-member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.specialty-tag {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Botón Ver Perfil */
.view-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 3px 10px rgba(116, 183, 77, 0.25);
}

.view-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(116, 183, 77, 0.35);
}

.view-profile-btn i {
  font-size: 0.9rem;
}

/* Modal de Perfil del Equipo */
.team-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.team-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.team-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.team-modal-body {
  padding: 40px;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.modal-profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.modal-role {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-section h3 i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.modal-section p,
.modal-section ul {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.modal-section ul {
  list-style: none;
  padding-left: 0;
}

.modal-section ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.modal-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.modal-contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 15px;
  margin-top: 25px;
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  width: 30px;
}

.modal-contact-item:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.modal-contact-item a {
  color: inherit;
  text-decoration: none;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero {
  animation: fadeIn 1s ease-in-out;
}

.section-title {
  animation: slideIn 0.8s ease-in-out forwards;
}

.button {
  animation: fadeIn 1.2s ease-in-out forwards;
}

.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

.slide-in {
  animation: slideIn 0.8s ease-in-out forwards;
}

/* ===== Responsive Design ===== */

/* ===== Tablet and Small Desktop (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 30px 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  /* Navigation */
  .mobile-menu-button {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(
      135deg,
      rgba(17, 69, 119, 0.98) 0%,
      rgba(13, 48, 73, 0.98) 100%
    );
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    gap: 0;
    backdrop-filter: blur(10px);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-menu li a {
    color: var(--white) !important;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    display: block;
  }

  .navbar.scrolled .nav-menu li a {
    color: var(--white) !important;
  }

  .nav-menu li a:hover {
    color: var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-menu li a.active {
    color: var(--secondary-color) !important;
    background: rgba(116, 183, 77, 0.15);
  }

  .nav-menu li a.active::after {
    display: none;
  }

  .social-icons {
    display: none;
  }

  /* Hero Section */
  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: 2rem;
  }

  /* Force hide video controls on mobile */
  .hero-video {
    pointer-events: none !important;
  }

  .hero-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-video::-webkit-media-controls-enclosure {
    display: none !important;
  }

  .hero-video::-webkit-media-controls-panel {
    display: none !important;
  }

  .hero-video::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-slogan {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .search-box {
    max-width: 100%;
    margin: 0 auto;
  }

  .search-input {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  .search-button {
    padding: 0.9rem 1.5rem;
    padding-right: 1.8rem;
    font-size: 0.9rem;
  }

  .search-button i {
    font-size: 1rem;
  }

  /* About Section */
  .about-section {
    margin-bottom: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .counters {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-label {
    font-size: 0.85rem;
  }

  /* Services Slider */
  .service-cards-wrapper::before,
  .service-cards-wrapper::after {
    width: 15%;
  }

  .service-card {
    min-width: 280px;
    max-width: 280px;
    height: 420px;
  }

  .slider-controls {
    margin-top: 1.5rem;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Page Header */
  .page-header {
    padding: 3rem 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  /* Sections */
  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Service Cards */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Service Detail Cards */
  .service-detail-card {
    padding: 2rem;
  }

  .service-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .service-icon-large {
    font-size: 3rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* Mission Vision */
  .mission-vision {
    grid-template-columns: 1fr;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }

  /* Values Grid */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .value-card {
    padding: 2rem 1.2rem;
  }

  .value-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* Purpose Grid */
  .purpose-section {
    padding: 1.5rem 0;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .purpose-card {
    padding: 1.5rem 1.2rem;
  }

  .purpose-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .purpose-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1rem;
  }

  .purpose-card h3 {
    font-size: 1.05rem;
  }

  .purpose-card p {
    font-size: 0.82rem;
  }

  .purpose-list li {
    font-size: 0.78rem;
  }

  /* Info Cards */
  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .info-card-link {
    padding: 1.8rem 1.5rem;
  }

  .info-card-link .info-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-modern {
    padding: 2rem;
  }

  /* Team Section Responsive */
  .team-section {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Team Section Tablet */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }

  .team-member {
    max-width: 100%;
  }

  .team-member-image {
    height: 200px;
  }

  .team-member-info {
    padding: 1.5rem 1.2rem;
  }

  .team-member-name {
    font-size: 1.15rem;
  }

  .team-member-role {
    font-size: 0.85rem;
  }

  .team-member-bio {
    font-size: 0.85rem;
  }

  /* Search Results Responsive */
  .search-results {
    max-height: 350px;
    font-size: 0.9rem;
  }

  .search-category {
    padding: 15px 18px 12px;
  }

  .search-category-title {
    font-size: 0.7rem;
  }

  .search-item {
    padding: 12px 14px;
    margin-bottom: 4px;
  }

  .search-item i {
    font-size: 1rem;
    width: 24px;
    height: 24px;
  }

  .search-item-content h4 {
    font-size: 0.9rem;
  }

  .search-item-content p {
    font-size: 0.75rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 25px 2.5rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-section:last-of-type {
    border-bottom: none;
  }

  .footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-contact li,
  .footer-schedule li {
    justify-content: center;
    text-align: center;
  }

  .footer-contact li {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-section ul li {
    margin: 0.6rem 0;
  }
}

/* ===== Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Logo */
  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
  }

  /* Hero Section */
  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-slogan {
    font-size: 0.9rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .search-box {
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .search-input {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .search-button {
    padding: 0.8rem 1.2rem;
    padding-right: 1.5rem;
    font-size: 0.85rem;
  }

  .search-button i {
    font-size: 0.95rem;
  }

  /* Team Section Mobile */
  .team-section {
    padding: 3rem 0;
  }

  .team-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .team-member {
    max-width: 100%;
  }

  .team-member-image {
    height: 220px;
  }

  .team-member-info {
    padding: 1.5rem 1.2rem;
  }

  .team-member-name {
    font-size: 1.1rem;
  }

  .team-member-role {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .team-member-bio {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .specialty-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .view-profile-btn {
    padding: 9px 20px;
    font-size: 0.8rem;
  }

  /* Search Results Mobile */
  .search-results {
    max-height: 250px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .search-category {
    padding: 12px 15px 10px;
  }

  .search-category-title {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }

  .search-item {
    padding: 10px 12px;
    margin-bottom: 3px;
    border-radius: 8px;
  }

  .search-item i {
    font-size: 0.9rem;
    width: 22px;
    height: 22px;
    margin-right: 10px;
  }

  .search-item-content h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .search-item-content p {
    font-size: 0.7rem;
  }

  /* About Section */
  .about-section {
    margin-bottom: 4rem;
  }

  .counters {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .counter-item {
    padding: 1.5rem;
  }

  .slider-container {
    height: 300px;
  }

  .about-slider-wrapper {
    padding: 30px 15px 0 0;
  }

  /* Services Slider */
  .service-cards-wrapper::before,
  .service-cards-wrapper::after {
    width: 10%;
  }

  .service-card {
    min-width: 260px;
    max-width: 260px;
    height: 380px;
  }

  .service-number {
    font-size: 3.5rem;
  }

  .service-content h3 {
    font-size: 1.2rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  /* Purpose and Values Mobile */
  .purpose-section {
    padding: 1.5rem 0;
  }

  .purpose-grid,
  .values-grid,
  .info-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .purpose-card,
  .value-card {
    padding: 1.3rem 1rem;
  }

  .info-card-link {
    padding: 1.5rem 1.2rem;
  }

  .purpose-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
  }

  .value-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }

  .info-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }

  .purpose-number {
    font-size: 2.2rem;
    top: 0.8rem;
    right: 0.8rem;
  }

  .purpose-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .value-card h4,
  .info-card-link h3 {
    font-size: 1.05rem;
  }

  .purpose-card p {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .value-card p,
  .info-card-link p {
    font-size: 0.88rem;
  }

  .purpose-list {
    margin-top: 0.6rem;
  }

  .purpose-list li {
    font-size: 0.75rem;
    padding: 0.2rem 0 0.2rem 1.2rem;
  }

  .purpose-list li::before {
    top: 0.5rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Contact CTA */
  .contact-cta {
    padding: 3rem 1.5rem;
  }

  .contact-cta h2 {
    font-size: 1.5rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-buttons .cta-button {
    width: 100%;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Page Header */
  .page-header {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* Sections */
  section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Buttons */
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
  }

  /* Service Cards */
  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 1rem;
  }

  /* Forms */
  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.625rem;
    font-size: 0.95rem;
  }

  /* Service Detail */
  .service-detail {
    padding: 1.5rem;
  }

  .service-icon-large {
    font-size: 3rem;
  }

  /* Cards */
  .card {
    padding: 1.5rem;
  }

  .value-item {
    padding: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-icon {
    font-size: 2.5rem;
  }

  /* Contact Items */
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 20px 2rem;
  }

  .footer-brand {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-brand p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-section ul li {
    margin: 0.5rem 0;
  }

  .footer-section a,
  .footer-contact li,
  .footer-schedule li {
    font-size: 0.8rem;
  }

  .footer-social-icons a {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding: 1.25rem 20px;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  .contact-icon {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-content {
    padding: 0 15px 1.5rem;
    gap: 1.5rem;
  }

  .footer-section h4 {
    font-size: 0.91rem;
    margin-bottom: 0.75rem;
  }

  .footer-brand p {
    font-size: 0.78rem;
  }

  .footer-social-icons a {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .footer-bottom {
    padding: 1rem 15px;
    font-size: 0.7rem;
  }

  .footer-bottom p {
    line-height: 1.6;
  }
}

/* ===== Very Small Mobile (max-width: 360px) ===== */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .service-cards,
  .features-grid,
  .values-grid,
  .info-cards {
    gap: 1rem;
  }

  /* Footer */
  .footer-social-icons a {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
  }

  .footer-bottom {
    font-size: 0.66rem;
  }
}

/* ===== NUEVOS ESTILOS PARA ABOUT PAGE ===== */

/* Título de About */
.section-title-about {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

/* Contadores About */
.counters-about {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.counter-item-about {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.counter-item-about:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.15);
  border-color: var(--secondary-color);
}

.counter-item-about .counter-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  transition: all 0.4s ease;
}

.counter-item-about:hover .counter-icon {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: scale(1.1) rotate(5deg);
}

/* Sección de Propósito - Diseño Minimalista Moderno */
.purpose-section {
  padding: 2rem 0;
}

.section-title-purpose {
  text-align: right;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1rem;
}

.section-title-purpose::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 5px;
  background: linear-gradient(
    270deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.purpose-subtitle {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.purpose-card {
  background: var(--white);
  padding: 1.5rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(17, 69, 119, 0.06);
  border: 1px solid rgba(17, 69, 119, 0.08);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.purpose-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.purpose-card:nth-child(1) {
  transition-delay: 0s;
}

.purpose-card:nth-child(2) {
  transition-delay: 0.1s;
}

.purpose-card:nth-child(3) {
  transition-delay: 0.2s;
}

.purpose-card:hover {
  border-color: rgba(116, 183, 77, 0.3);
  box-shadow: 0 4px 16px rgba(116, 183, 77, 0.15);
  transform: translateY(-3px);
}

.purpose-number {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(17, 69, 119, 0.05);
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.purpose-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(116, 183, 77, 0.2);
}

.purpose-card:hover .purpose-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(116, 183, 77, 0.3);
}

.purpose-card h3 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
  text-shadow: none !important;
  line-height: 1.3;
}

.purpose-card p {
  color: rgba(51, 51, 51, 0.8);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  text-shadow: none !important;
  font-weight: 400;
}

.purpose-list {
  list-style: none;
  margin-top: 0.8rem;
}

.purpose-list li {
  padding: 0.25rem 0 0.25rem 1.3rem;
  position: relative;
  font-weight: 400;
  color: rgba(51, 51, 51, 0.75);
  font-size: 0.8rem;
  text-shadow: none !important;
  line-height: 1.4;
}

.purpose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* Sección de Misión y Visión */
.mission-vision-section {
  padding: 4rem 0;
}

/* Sección de Pilares */
.pillars-section {
  background: var(--white);
  padding: 6rem 0;
}

.section-title-pillars {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-pillars::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 3px;
}

.pillars-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(17, 69, 119, 0.1);
}

.pillar-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.15);
  border-color: var(--secondary-color);
}

.pillar-icon-wrapper {
  margin-bottom: 1.5rem;
}

.pillar-icon {
  width: 85px;
  height: 85px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  transition: all 0.4s ease;
}

.pillar-card:hover .pillar-icon {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: scale(1.15) rotate(8deg);
}

.pillar-card h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.pillar-card p {
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
}

/* Sección de Valores */
.values-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.section-title-values {
  text-align: right;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-values::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 5px;
  background: linear-gradient(270deg, var(--secondary-color), transparent);
  border-radius: 3px;
}

/* ===== NUEVOS ESTILOS PARA SERVICES PAGE ===== */

/* Introducción a Servicios */
.services-intro {
  background: var(--white);
  padding: 4rem 0;
}

.section-title-services-page {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-services-page::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.services-intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Estadísticas de Servicios */
.services-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(17, 69, 119, 0.3);
  transition: all 0.5s ease;
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 60px rgba(17, 69, 119, 0.4);
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.4s ease;
}

.stat-item:hover .stat-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number::after {
  content: "+";
  margin-left: 5px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Proceso de Trabajo */
.process-section {
  background: var(--bg-light);
  padding: 6rem 0;
}

.section-title-process {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-process::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
  border-radius: 3px;
}

.process-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4rem;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--primary-color) 100%
  );
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.process-step:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.15);
  border-color: var(--secondary-color);
}

.process-step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(17, 69, 119, 0.3);
  transition: all 0.4s ease;
}

.process-step:hover .process-step-number {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: translateX(-50%) scale(1.2);
}

.process-step-icon {
  width: 80px;
  height: 80px;
  margin: 2rem auto 1.5rem;
  background: var(--bg-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.process-step:hover .process-step-icon {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.process-step h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.process-step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Sección de Beneficios */
.benefits-section {
  background: var(--white);
  padding: 6rem 0;
}

.section-title-benefits {
  text-align: right;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title-benefits::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 5px;
  background: linear-gradient(
    270deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(17, 69, 119, 0.1);
  overflow: hidden;
  position: relative;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.15);
  border-color: var(--secondary-color);
}

.benefit-visual {
  margin-bottom: 1.5rem;
}

.benefit-icon {
  width: 85px;
  height: 85px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  transform: scale(1.15) rotate(-5deg);
}

.benefit-card h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.benefit-card p {
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
}

/* CTA Services */
.section-title-cta-services {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.cta-buttons-services {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== Responsive para nuevas secciones ===== */
@media (max-width: 1024px) {
  .purpose-grid,
  .pillars-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }
}

@media (max-width: 1024px) {
  /* Swiper 3D Cards - Tablet */
  .servicesSwiper {
    padding: 2.5rem 3rem 4.5rem !important;
  }

  .servicesSwiper .swiper-slide {
    width: 350px !important;
  }

  .flip-card {
    width: 350px;
    height: 500px;
  }

  .card-icon-3d {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
  }

  .card-number {
    font-size: 4.5rem;
  }

  .flip-card-front h3 {
    font-size: 1.6rem;
  }

  .flip-card-back h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Swiper 3D Cards Responsive */
  .servicesSwiper {
    padding: 2rem 2rem 4rem !important;
  }

  .servicesSwiper .swiper-slide {
    width: 320px !important;
  }

  .flip-card {
    width: 320px;
    height: 480px;
  }

  .card-icon-3d {
    width: 65px;
    height: 65px;
    font-size: 2rem;
  }

  .card-number {
    font-size: 4rem;
  }

  .flip-card-front h3 {
    font-size: 1.5rem;
  }

  .flip-card-back h3 {
    font-size: 1.4rem;
  }

  .back-icon {
    width: 75px;
    height: 75px;
    font-size: 2rem;
  }

  .card-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .servicesSwiper .swiper-button-next,
  .servicesSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
  }

  .servicesSwiper .swiper-button-next::after,
  .servicesSwiper .swiper-button-prev::after {
    font-size: 1.2rem;
  }

  .counters-about {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-grid,
  .pillars-grid,
  .benefits-grid,
  .process-timeline,
  .services-stats {
    grid-template-columns: 1fr;
  }

  .section-title-about,
  .section-title-purpose,
  .section-title-pillars,
  .section-title-values,
  .section-title-services-page,
  .section-title-process,
  .section-title-benefits,
  .section-title-cta-services {
    font-size: 2.2rem;
    text-align: center;
  }

  .section-title-about::after,
  .section-title-purpose::after,
  .section-title-pillars::after,
  .section-title-values::after,
  .section-title-services-page::after,
  .section-title-process::after,
  .section-title-benefits::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .purpose-subtitle,
  .pillars-subtitle,
  .process-subtitle {
    text-align: center;
  }

  .cta-buttons-services {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  /* Swiper 3D Cards Mobile */
  .servicesSwiper {
    padding: 1.5rem 1rem 4rem !important;
  }

  .servicesSwiper .swiper-slide {
    width: 300px !important;
  }

  .flip-card {
    width: 300px;
    height: 450px;
  }

  .card-icon-3d {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    top: 1.5rem;
    left: 1.5rem;
  }

  .card-number {
    font-size: 3.5rem;
    top: 1.5rem;
    right: 1.5rem;
  }

  .flip-card-front h3 {
    font-size: 1.4rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .flip-card-back h3 {
    font-size: 1.3rem;
  }

  .back-description {
    font-size: 0.85rem;
  }

  .service-features li {
    font-size: 0.85rem;
  }

  .card-btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.85rem;
  }

  .back-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 2rem 1.5rem;
  }

  .flip-indicator {
    font-size: 0.8rem;
    padding: 0.7rem;
  }

  .servicesSwiper .swiper-button-next,
  .servicesSwiper .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .servicesSwiper .swiper-button-next::after,
  .servicesSwiper .swiper-button-prev::after {
    font-size: 1rem;
  }

  .counters-about {
    grid-template-columns: 1fr;
  }

  .section-title-about,
  .section-title-purpose,
  .section-title-pillars,
  .section-title-values,
  .section-title-services-page,
  .section-title-process,
  .section-title-benefits,
  .section-title-cta-services {
    font-size: 1.8rem;
  }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  animation: pulse 2s infinite;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.whatsapp-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-icon {
  font-size: 2rem;
  animation: shake 1s ease-in-out infinite;
}

.whatsapp-text {
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
}

.whatsapp-text strong {
  font-weight: 700;
  font-size: 1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    padding: 12px 18px;
    gap: 10px;
  }

  .whatsapp-text {
    font-size: 0.75rem;
  }

  .whatsapp-text strong {
    font-size: 0.85rem;
  }

  .whatsapp-icon {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-icon {
    font-size: 2rem;
    margin: 0;
  }
}

/* ===== SUCCESS CASES SECTION ===== */
.success-cases-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title-success {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.success-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 4rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.success-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.success-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.success-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.success-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.success-card:hover .success-image img {
  transform: scale(1.1);
}

.success-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(116, 183, 77, 0.3);
}

.success-content {
  padding: 2rem;
}

.success-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.success-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.stat-badge i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* ===== TECHNOLOGY SECTION ===== */
.technology-section {
  padding: 6rem 0;
  background: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title-tech {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.tech-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.tech-list li:hover {
  transform: translateX(10px);
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-left-color: var(--primary-color);
}

.tech-list li i {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.tech-list li strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.tech-list li p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.tech-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  height: 500px;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(17, 69, 119, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.tech-badge i {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.tech-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.tech-badge strong {
  font-size: 1.3rem;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images-collage {
    height: 400px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tech-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .success-grid {
    grid-template-columns: 1fr;
  }

  .section-title-success {
    font-size: 2.2rem;
  }

  .section-title-tech {
    font-size: 2rem;
  }

  .about-images-collage {
    height: 350px;
  }

  .collage-img-1,
  .collage-img-2,
  .collage-img-3 {
    width: 220px !important;
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .success-content {
    padding: 1.5rem;
  }

  .success-content h3 {
    font-size: 1.2rem;
  }

  .tech-list li {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }

  .tech-list li:hover {
    transform: translateX(0);
  }
}

/* ===== WHATSAPP CHAT POPUP ===== */
.whatsapp-chat-popup {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 350px;
  max-height: 550px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.whatsapp-chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.whatsapp-chat-header {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.chat-details h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-status {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.chat-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-chat-body {
  padding: 20px;
  height: 350px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #ece5dd 0%, #d9d3ca 100%);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(255, 255, 255, 0.03) 35px,
    rgba(255, 255, 255, 0.03) 70px
  );
}

.chat-message {
  margin-bottom: 12px;
  animation: slideInMessage 0.3s ease;
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.received p {
  background: white;
  padding: 10px 15px;
  border-radius: 10px 10px 10px 2px;
  display: inline-block;
  max-width: 80%;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-message.sent p {
  background: #dcf8c6;
  padding: 10px 15px;
  border-radius: 10px 10px 2px 10px;
  display: inline-block;
  max-width: 80%;
  margin: 0 0 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1.4;
  float: right;
  clear: both;
}

.message-time {
  font-size: 0.7rem;
  color: #667781;
  display: block;
  margin-top: 4px;
}

.quick-replies {
  margin-top: 20px;
}

.quick-replies-title {
  font-size: 0.85rem;
  color: #667781;
  margin-bottom: 10px;
  font-weight: 500;
}

.quick-reply-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #333;
  font-family: "Montserrat", sans-serif;
}

.quick-reply-btn:hover {
  background: #f0f2f5;
  border-color: #25d366;
  transform: translateX(5px);
}

.quick-reply-btn i {
  color: #25d366;
  font-size: 1.1rem;
}

.whatsapp-chat-footer {
  padding: 15px;
  background: #f0f2f5;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e0e0e0;
}

.chat-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border 0.3s ease;
}

.chat-input:focus {
  border-color: #25d366;
}

.chat-send-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

@media (max-width: 480px) {
  .whatsapp-chat-popup {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 100px;
  }
}

/* ===== Servicios Principales Consolidados ===== */
.section-title-services-main {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  letter-spacing: -1px;
}

.services-main-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.main-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.main-service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.main-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.main-service-card:hover::before {
  transform: scaleX(1);
}

.main-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(17, 69, 119, 0.2);
  border-color: var(--primary-color);
}

.main-service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(17, 69, 119, 0.3);
}

.main-service-card:hover .main-service-icon {
  transform: rotate(5deg) scale(1.1);
  background: linear-gradient(135deg, var(--secondary-color), #5fa03d);
}

.main-service-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-benefits li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-benefits li:last-child {
  border-bottom: none;
}

.service-benefits li:hover {
  padding-left: 0.5rem;
  color: var(--primary-color);
}

.service-benefits li i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* ===== Mapa Moderno ===== */
.map-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.map-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  border-radius: 0;
}

.map-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 69, 119, 0.1) 0%,
    transparent 20%,
    transparent 80%,
    rgba(17, 69, 119, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* ===== Modal de Políticas de Privacidad ===== */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.privacy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-modal-content {
  background-color: var(--white);
  margin: 2rem auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-modal-header {
  background: linear-gradient(135deg, var(--primary-color), #1a5d94);
  color: var(--white);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.privacy-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.privacy-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.privacy-modal-body {
  padding: 2.5rem;
  max-height: calc(85vh - 150px);
  overflow-y: auto;
}

.privacy-modal-body h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.privacy-modal-body h3:first-child {
  margin-top: 0;
}

.privacy-modal-body p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.privacy-modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-modal-body ul li {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.privacy-checkbox-wrapper:hover {
  background: #f0f2f5;
  border-color: var(--primary-color);
}

.privacy-checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-checkbox-wrapper label {
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.privacy-checkbox-wrapper label a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.privacy-checkbox-wrapper label a:hover {
  color: var(--secondary-color);
}

.privacy-modal-body::-webkit-scrollbar {
  width: 8px;
}

.privacy-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ===== MEJORAS RESPONSIVE ADICIONALES ===== */

/* Mejoras para tablets en landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .nav-container {
    padding: 1.5rem 30px;
  }

  .service-card {
    min-width: 300px;
    max-width: 300px;
  }

  .flip-card {
    height: 450px;
  }
}

/* Mejoras para dispositivos pequeños en landscape */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-menu {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Mejoras para impresión */
@media print {
  .navbar,
  .contact-cta,
  footer,
  .slider-controls,
  .swiper-button-next,
  .swiper-button-prev,
  .mobile-menu-button {
    display: none !important;
  }

  body {
    background: white;
  }

  .hero-overlay {
    opacity: 0.3;
  }
}

/* Mejoras de accesibilidad para reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimización para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg-image,
  .service-image,
  .about-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mejoras adicionales para móviles muy pequeños */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .logo img {
    height: 28px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-slogan {
    font-size: 0.8rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .service-card {
    min-width: 100%;
    padding: 1.5rem;
  }

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .contact-info-item {
    font-size: 0.85rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  .search-box {
    border-radius: 40px;
  }

  .search-input {
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
  }

  .search-button {
    padding: 0.75rem 1rem;
    padding-right: 1.3rem;
    font-size: 0.8rem;
  }

  .search-button i {
    font-size: 0.9rem;
  }
}

/* ===== MEJORAS RESPONSIVE GENERALES ===== */

/* Tablets */
@media (max-width: 768px) {
  /* Container general */
  .container {
    padding: 0 1.5rem;
  }

  /* Hero sections */
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  /* Grids responsive */
  .products-grid,
  .services-modern-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Navbar mobile */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }
}

/* Móviles */
@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Hero */
  .hero-content {
    padding: 2rem 1rem;
  }

  /* Cards */
  .service-card,
  .product-card,
  .feature-card {
    padding: 1.5rem;
  }

  /* Buttons */
  .cta-button,
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Contact form */
  .form-row {
    flex-direction: column;
  }

  .form-group-modern {
    width: 100%;
  }

  /* Productos grid */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Spacing */
  section {
    padding: 3rem 0;
  }
}

/* Muy pequeños (< 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}
