/*
 * =============================================
 * === ESTILOS PERSONALIZADOS PARA CONSALUD ====
 * =============================================
 */

/* Box-sizing global */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Botón Flotante "Agendar Cita" */
.cta-btn-agenda {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 15px; 
  bottom: 70px; /* Aumentado para separarlo del botón de scroll-top */
  z-index: 99999;
  width: 240px;
  height: 48px;
  background-color: #2746a3;
  color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 0 16px 4px #2746a3cc, 0 2px 8px rgba(65,105,225,0.10);
  transition: all 0.4s;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  animation: parpadeo-cta-light 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes parpadeo-cta-light {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cta-btn-agenda:hover,
.cta-btn-agenda:focus {
  animation: none;
  background-color: #19306e;
  box-shadow: 0 4px 16px rgba(65,105,225,0.18);
}

.cta-btn-agenda .bi {
  font-size: 1.7rem;
  margin-right: 8px;
}

.cta-btn-agenda span {
  display: inline-block;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Media queries para el botón flotante */
@media (max-width: 991.98px) {
  .cta-btn-agenda {
    width: 48px;
    height: 48px;
  }
  .cta-btn-agenda span {
    display: none;
  }
  .cta-btn-agenda .bi {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .cta-btn-agenda {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 10px;
  }
  .cta-btn-agenda .bi {
    font-size: 1.5rem;
  }
}

/* Acordeón de Servicios */
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#serviciosAccordion {
  margin-top: 20px; /* Evita solapamiento en hover */
}

#serviciosAccordion .accordion-item {
  border: 2px solid #4169e1;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(60, 120, 180, 0.07);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

#serviciosAccordion .accordion-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(65, 105, 225, 0.15);
}

#serviciosAccordion .accordion-header .accordion-button {
  font-weight: 700;
  font-size: 1rem;
  color: #1a365d;
  background-color: #f8fafc;
  box-shadow: none;
  border: none;
  transition: background-color 0.3s, color 0.3s;
  padding: 1rem 1.25rem;
}
#serviciosAccordion .accordion-header .accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(120deg, #4169e1, #3fbbc0, #4169e1);
  background-size: 200% 200%;
  animation: gradient-animation 4s ease infinite;
}

#serviciosAccordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.3);
  z-index: 3;
}

#serviciosAccordion .accordion-body {
  background: #fff;
  color: #333;
  padding: 1.25rem 1.5rem;
}

/* Estilos para el Modal de Citas */
.modal-header-custom {
  background-color: #4169e1;
  position: relative;
}

.modal-header-custom .modal-title {
  color: black;
}

.modal-subtitle-custom {
  color: black;
}

/* Hero z-index para evitar superposición con tarjetas */
.hero {
  position: relative;
  z-index: 1;
}

/* Tarjetas de NUESTRA RAZÓN DE SER aún más pequeñas */
#about .about-card-glass {
  padding: 8px 6px; /* Aún más reducido */
}

#about .about-card-title {
  font-size: 0.8rem; /* Aún más pequeño */
}

#about .about-card-description p {
  font-size: 0.75rem; /* Aún más pequeño */
}

/* Tarjetas de VALORES CORPORATIVOS más pequeñas */
#features .icon-box {
  margin-top: 30px; /* Reducido de 50px */
}

#features .icon-box i {
  font-size: 24px; /* Reducido de 28px */
  width: 48px; /* Reducido de 56px */
  height: 48px; /* Reducido de 56px */
  margin-right: 20px; /* Reducido de 25px */
}

#features .icon-box h4 {
  font-size: 16px; /* Reducido de 18px */
  margin-bottom: 8px; /* Reducido de 10px */
}

#features .icon-box p {
  font-size: 13px; /* Reducido de 14px */
  line-height: 22px; /* Reducido de 24px */
}

/* Media queries para responsividad en tarjetas */
@media (max-width: 768px) {
  /* About */
  #about .about-card-glass {
    padding: 6px 4px;
  }
  #about .about-card-title {
    font-size: 0.7rem;
  }
  #about .about-card-description p {
    font-size: 0.65rem;
  }

  /* Features */
  #features .icon-box {
    margin-top: 20px;
  }
  #features .icon-box i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    margin-right: 15px;
  }
  #features .icon-box h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  #features .icon-box p {
    font-size: 12px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  /* About */
  #about .about-card-glass {
    padding: 4px 3px;
  }
  #about .about-card-title {
    font-size: 0.65rem;
  }
  #about .about-card-description p {
    font-size: 0.6rem;
  }

  /* Features */
  #features .icon-box {
    margin-top: 15px;
  }
  #features .icon-box i {
    font-size: 18px;
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  #features .icon-box h4 {
    font-size: 13px;
    margin-bottom: 5px;
  }
  #features .icon-box p {
    font-size: 11px;
    line-height: 18px;
  }
}

.modal-icon-blue {
  color: #4169e1;
}

.modal-icon-turquoise {
  color: #3fbbc0;
}

/* Estilos para el logo en el Modal */
.modal-logo-container {
  padding: 0;
  background-color: #f8f9fa;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-logo {
  width: 100%;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.modal-header-custom {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Estilos para el botón de cerrar del modal de citas */
#infoCitasModal .btn-close {
  /* Cambiamos el ícono SVG por uno de color rojo y lo hacemos más grande */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: none; /* Quitamos el filtro blanco que tenía por defecto */
}

#infoCitasModal .btn-close:hover {
  opacity: 1;
  transform: scale(1.2) rotate(90deg);
}


/* Fin de estilos para el Modal de Citas */

/*--------------------------------------------------------------
# Ajustes de espaciado de secciones
--------------------------------------------------------------*/
#faq {
  padding-bottom: 20px; /* Reduce el espacio inferior de la sección de servicios */
}
#featured-services {
  padding-bottom: 0; /* Elimina el espacio inferior de la sección de servicios principales */
}
/* Reducir espacio inferior de la sección "Nuestra Razón de Ser" */
#about {
  padding-bottom: 0;
}
/* Reducir espacio inferior de la sección "Quienes Somos" */
#departments {
  padding-bottom: 0;
}
/* Reducir espacio inferior de la sección "Stats" */
#stats {
  padding-bottom: 0;
}
/* Reducir espacio inferior de la sección "Valores Institucionales" */
#features {
  padding-bottom: 0;
}
/*--------------------------------------------------------------
# RIAS Section - Ajuste de espaciado
--------------------------------------------------------------*/
#rias {
  padding-bottom: 0; /* Elimina el espacio inferior de la sección RIAS */
}
/*--------------------------------------------------------------
# RIAS Section (Efecto Tarjeta de Cristal)
--------------------------------------------------------------*/
.rias .rias-card {
  position: relative;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(65, 105, 225, 0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.rias .rias-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px; /* Grosor del borde */
  background: linear-gradient(135deg, #3fbbc0, #4169e1);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 1; /* Hacemos el borde visible por defecto */
  transition: filter 0.4s; /* Transición para el efecto de brillo */
}

.rias .rias-card .icon {
  color: #4169e1;
  margin-bottom: 15px;
}

.rias .rias-card .icon i {
  font-size: 24px;
  animation: icon-pulse 2s ease-in-out infinite;
}

/* Desactivar animaciones en móviles para mejor rendimiento */
@media (max-width: 768px) {
  .rias .rias-card .icon i {
    animation: none;
  }
}

/* Ocultar cursor personalizado en dispositivos táctiles */
@media (hover: none) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}

/* Mejoras de responsividad para móviles */
@media (max-width: 768px) {
  .nav-tabs {
    flex-direction: column;
  }
  .nav-item {
    margin-bottom: 5px;
  }
  .nav-link {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 480px) {
  .cooperativa-name {
    font-size: 0.5rem;
  }
  .header .topbar-item {
    font-size: 0.6rem;
  }
  .topbar-icon {
    font-size: 0.7rem;
  }
  .nav-link {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
}

.rias .rias-card h3 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 15px;
  color: #1a365d;
}

.rias .rias-card p {
  font-size: 14px;
  color: #555;
}

.rias .rias-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(65, 105, 225, 0.2);
}

.rias .rias-card:hover::before {
  /* Añadimos un brillo al borde al pasar el cursor */
  filter: drop-shadow(0 0 5px #4169e1) drop-shadow(0 0 10px #3fbbc0);
}

/* Responsive adjustments for rias section */
@media (max-width: 768px) {
  .rias .rias-card {
    padding: 20px 15px;
  }
  
  .rias .rias-card h3 {
    font-size: 1rem;
  }
  
  .rias .rias-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .rias .rias-card {
    padding: 15px 10px;
  }
  
  .rias .rias-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .rias .rias-card h3 {
    font-size: 0.9rem;
  }
}

#serviciosAccordion .accordion-body ul {
  columns: 2; /* Por defecto, 2 columnas para las demás listas */
  column-gap: 2rem;
}

#collapse2 .accordion-body ul {
  columns: 3; /* 3 columnas específicamente para "Grupo de Especialistas" */
}

@keyframes fadeInListItem {
  to { opacity: 1; transform: translateX(0); }
}

#serviciosAccordion .accordion-item .bi {
  color: #4169e1; /* Azul por defecto */
  margin-right: 12px;
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s;
  animation: icon-pulse 2s infinite alternate;
}

@keyframes icon-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

#serviciosAccordion .accordion-header .accordion-button:not(.collapsed) .bi {
  color: #fff;
  transform: rotate(20deg) scale(1.15);
  animation: none; /* Detener pulso cuando está abierto */
}

/* Cuadro de Introducción de Servicios */
.intro-servicios {
  background: #fff;
  border: 2px solid #4169e1;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 16px rgba(60, 120, 180, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: justify;
}

.intro-servicios p {
  color: #333;
  text-align: justify;
}
#doctors {
  padding: 40px 0;
}
#doctors .section-title h2 {
  color: black;
}
#doctors .section-title p {
  color: black;
}
#doctors .pilares-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 0 0;
  max-width: 1040px;
  margin: 0 auto;
}
#doctors .pilar-card {
  max-width: 320px;
  margin: 0 auto;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 
    8px 8px 16px #d1d1d1,
    -8px -8px 16px #ffffff;
  border: none;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
  color: #333;
  overflow: hidden;
}

#doctors .pilar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#doctors .pilar-card:hover::before {
  opacity: 1;
}

#doctors .pilar-card:hover {
  box-shadow: 
    12px 12px 24px #c8c8c8,
    -12px -12px 24px #ffffff,
    0 0 20px rgba(255, 107, 107, 0.3);
  transform: translateY(-5px);
}

#doctors .pilar-card:active {
  box-shadow: 
    12px 12px 24px #c8c8c8,
    -12px -12px 24px #ffffff,
    0 0 20px rgba(255, 107, 107, 0.3);
  transform: translateY(-5px);
}

#doctors .pilar-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.2),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

#doctors .pilar-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

#doctors .pilar-card:hover .pilar-icon {
  box-shadow: 
    inset 6px 6px 12px rgba(0, 0, 0, 0.3),
    inset -6px -6px 12px rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

#doctors .pilar-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

#doctors .pilar-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

#doctors .pilar-icon.heart {
  animation: pulse 2s infinite;
}
#doctors .pilar-icon.spin {
  animation: spin 10s linear infinite;
}
#doctors .pilar-icon.embrace {
  animation: embrace 2s infinite;
}
@keyframes embrace {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
#doctors .pilar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}
#doctors .pilar-text {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: #f0f0f0;
}
@media (max-width: 768px) {
  #doctors .pilares-container {
    grid-template-columns: 1fr;
  }
  #doctors .pilar-card {
    padding: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #doctors .pilar-card {
    max-width: 100%;
    padding: 0.8rem;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
  }
  #doctors .pilar-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
  }
  #doctors .pilar-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  #doctors .pilar-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
/**
 * =============================================
 * === ESTILOS ORIGINALES DEL TEMPLATE =========
 * =============================================
 */
/**
* Template Name: Medicio
* Template URL: https://bootstrapmade.com/medicio-free-bootstrap-theme/
* Updated: Aug 07 2024 with Bootstrap v5.3.35
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Poppins", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #555555; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #3fbbc0; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --primary-blue: #4169e1; /* Primary blue color for the theme */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #444444;  /* The default color of the main navmenu links */
  --nav-hover-color: #3fbbc0; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #3fbbc0; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f7fcfc;
  --surface-color: #ffffff;
}

/* Estilos para Lenis Smooth Scroll */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #3fbbc0;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #65c9cd;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  min-height: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: red;
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/

/*-- color corporativos----------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  color: white;
  background: #4169e184;
  transition: all 0.5s;
  z-index: 9999;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.main {
  margin-top: 170px;
}

@media (max-width: 768px) {
  .main {
    margin-top: 210px;
  }
}

.header .topbar {
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.15) 0%, rgba(65, 105, 225, 0.08) 100%);
  color: white;
  height: auto;
  padding: 12px 0;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.header .topbar-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.topbar-icon {
  font-size: 1.1rem;
  color: #4169e1;
  font-weight: 600;
  transition: all 0.3s ease;
}

.topbar-item:hover .topbar-icon {
  color: #5a7ce5;
  transform: scale(1.15);
}

.topbar-text {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.topbar-title {
  flex: 1;
  justify-content: center;
  min-width: 300px;
}

.cooperativa-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: black;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(65, 105, 225, 0.1);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.topbar-item:hover .cooperativa-name {
  opacity: 1;
  transform: scale(1.02);
}

/* Global layout fixes to prevent horizontal overflow */
body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.navmenu,
.navmenu ul,
.navmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu ul {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Solo en móvil, apila los elementos del menú para evitar quiebres y desbordes */
@media (max-width: 1199px) {
  .navmenu li {
    width: 100%;
  }
}

.navmenu a {
  white-space: normal;
}


/* Animación de pulso suave en los iconos */
@keyframes pulse-icon {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes icon-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.header .topbar-icon {
  animation: pulse-icon 2.5s ease-in-out infinite;
}

.header .topbar-item:hover .topbar-icon {
  animation: none;
}

@media (max-width: 768px) {
  .header .topbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .topbar-title {
    display: block;
    min-width: auto;
    text-align: center;
    width: 100%;
  }
  .cooperativa-name {
    font-size: 0.65rem !important;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
  }
  
  .header .topbar-item {
    padding: 0 3px;
    font-size: 0.75rem;
  }
  
  .topbar-icon {
    font-size: 0.85rem;
  }
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
  background:  #4169e11a;
}

.header .logo {
  line-height: 1;
 
}

.header .logo img {
  max-height: 86px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .header .branding {
    min-height: 70px;
    padding: 8px 0 10px;
  }

  .header .branding .container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(31, 38, 135, 0.08);
  }

  .header .logo img {
    max-height: 72px;
    width: auto;
    margin-right: 6px;
  }

  .header .logo h1 {
    font-size: 1.15rem;
    line-height: 1.1;
  }
}

.header .cta-btn,
.header .cta-btn:focus {
  color: #fff;
  background: blue;
  font-size: 14px;
  padding: 8px 20px;
  margin: 0 5px 0 30px;
  border-radius: 4px;
  transition: 0.3s;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.158);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
     margin: 0 0 0 60px; /* Empuja el menú a la derecha */
     padding: 0;
     display: flex;
     list-style: none;
     align-items: center;
  }

  .navmenu li {
    position: relative;
    
  }




  .navmenu a, .navmenu a:focus {
    color: black !important;
    padding: 18px 8px 18px 8px; /* Padding aún más reducido */
    font-size: 13px; /* Font-size reducido para compactar */
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
  }

  .navmenu a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: black; /* Color de la línea, ahora negro */
    transition: width 0.3s ease-in-out;
  }



  








  

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a {
    color: black !important;
  }

  .navmenu .active {
    color: white !important;
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 0;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: black;
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: black;
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.98);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.18);
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
  }

  .navmenu li {
    list-style: none;
  }

  .navmenu a,
  .navmenu a:focus {
    color: black !important;
    padding: 12px 22px;
    font-size: 17px;
    font-weight: 600;
    display: block;
    white-space: normal;
    line-height: 1.5;
    transition: 0.3s;
    box-sizing: border-box;
    width: 100%;
  }

  .navmenu a {
    justify-content: flex-start;
  }

  .navmenu a i,
  .navmenu a:focus i {
    margin-left: 0;
    width: auto;
    height: auto;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: #fff;
  }

  .navmenu a:hover {
    color: black !important;
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: white !important;
    background-color: var(--accent-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: #fff;
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.7);
    box-shadow: none;
    transition: all 0.3s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 37, 41, 0.92);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
    background-color: rgba(255, 255, 255, 0.98);
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin: 60px 20px 20px;
  }
}

@media (max-width: 576px) {
  .header .topbar .container,
  .header .branding .container,
  .hero .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header .topbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .topbar-title {
    text-align: center;
    min-width: auto;
    width: 100%;
  }

  .cooperativa-name {
    font-size: 0.72rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .header .topbar-item {
    padding: 0 4px;
    font-size: 0.75rem;
  }

  .navmenu ul {
    inset: 60px 10px 10px 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 10px 14px;
    font-size: 15px;
    text-align: left;
    justify-content: flex-start;
  }

  .navmenu a i,
  .navmenu a:focus i {
    margin-left: 0;
    width: auto;
    height: auto;
  }

  .hero .carousel-item {
    padding-top: 80px;
    align-items: flex-start;
  }

  .hero h2 {
    font-size: 24px;
    line-height: 1.15;
    max-width: 100%;
  }

  .hero p {
    font-size: 14px;
    max-width: 100%;
  }

  .hero .container {
    margin-left: 0;
    margin-right: 0;
  }

  .header .logo img {
    max-height: 60px;
  }

  .header .branding {
    padding: 8px 0;
  }
}

/*--------------------------------------------------------------
# Hero Mobile Fixes
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero .container {
    margin: 0 auto;
    padding: 0 18px;
    max-width: 100%;
  }

  .hero .carousel-item {
    padding-top: 80px;
  }

  .hero h2 {
    font-size: 32px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 16px;
    max-width: 100%;
  }

  .header .branding .container {
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero .container {
    padding: 0 12px;
  }

  .hero .carousel-item {
    padding-top: 70px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .navmenu a,
  .navmenu a:focus {
    font-size: 16px;
    padding: 12px 18px;
  }
}

/*--------------------------------------------------------------
# Extra Mobile Fixes for Small Devices (Xiaomi A03 and similar)
--------------------------------------------------------------*/
@media (max-width: 480px) {
  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
    font-size: 14px;
  }

  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col,
  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .header .topbar {
    padding: 4px 0;
  }

  .header .topbar .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar-title {
    font-size: 0.7rem;
    text-align: center;
    width: 100%;
    order: -1;
    flex-basis: 100%;
  }

  .cooperativa-name {
    font-size: 0.55rem !important;
    line-height: 1.15;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    display: block;
    width: 100%;
  }

  .header .topbar-item {
    font-size: 0.7rem;
    padding: 0 2px;
  }

  .header .branding {
    padding: 6px 0;
  }

  .header .branding .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header .logo img {
    max-height: 50px;
  }

  .navmenu ul {
    position: fixed;
    inset: 50px 8px 8px 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: black !important;
  }

  .navmenu a:hover {
    color: black !important;
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: white !important;
    background-color: var(--accent-color);
  }

  .hero .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero .carousel-item {
    padding-top: 60px;
    text-align: center;
  }

  .hero h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.4;
  }

  .featured-services .container,
  .about .container,
  .stats .container,
  .features .container,
  .rias .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .featured-services h2,
  .about h2,
  .stats h2,
  .features h2,
  .rias h2 {
    font-size: 24px;
  }

  .featured-services p,
  .about p,
  .stats p,
  .features p,
  .rias p {
    font-size: 14px;
  }

  .service-item,
  .stat-item,
  .feature-item {
    text-align: center;
  }

  .mobile-nav-active .navmenu>ul {
    margin: 50px 8px 8px;
    width: calc(100% - 16px);
    max-height: calc(100vh - 58px);
  }

  .mobile-nav-active .navmenu {
    background: rgba(39, 70, 163, 0.95); /* Azul del sitio */
  }

  .mobile-nav-active .navmenu>ul {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .navmenu a {
    color: black !important;
  }

  .navmenu a:hover {
    color: black !important;
  }

  .navmenu .active {
    color: white !important;
    background-color: var(--accent-color);
  }
}

@media (max-width: 360px) {
  .hero h2 {
    font-size: 18px;
  }

  .hero p {
    font-size: 12px;
  }

  .featured-services h2,
  .about h2,
  .stats h2,
  .features h2,
  .rias h2 {
    font-size: 20px;
  }

  .topbar-title {
    font-size: 0.65rem;
  }

  .cooperativa-name {
    font-size: 0.6rem;
  }

  .header .topbar-item {
    font-size: 0.65rem;
  }

  .navmenu a,
  .navmenu a:focus {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 600px) {
  .header .topbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-title {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
    font-size: 0.74rem !important;
    text-align: center;
  }

  .cooperativa-name {
    font-size: 0.75rem !important;
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
    color: #000 !important;
  }

  .header .topbar-item {
    width: 100%;
    justify-content: center;
    padding: 0 4px;
    font-size: 0.78rem;
    min-width: 0;
  }

  .header .branding .container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header .logo img {
    max-height: 60px;
    width: auto;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    font-size: 32px;
    margin-right: 0;
  }

  .navmenu ul {
    inset: 60px 10px 10px 10px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    border-radius: 14px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #000 !important;
    font-size: 15px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.5;
  }

  .navmenu .dropdown ul a,
  .navmenu .dropdown .dropdown ul a {
    color: #000 !important;
  }

  .navmenu a:hover {
    color: black !important;
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: white !important;
    background-color: var(--accent-color);
  }

  .hero .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero .carousel-item {
    padding-top: 60px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .featured-services .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .featured-services .service-card {
    min-height: auto;
    height: auto;
    padding: 3px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #4169e1, #3fbbc0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-radius: 17px;
  }

  .featured-services .service-card-inner {
    transform: none !important;
    position: static;
    border-radius: 15px;
  }

  .featured-services .service-card-front,
  .featured-services .service-card-back {
    position: relative;
    width: 100%;
    height: auto;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    padding: 14px;
    border-radius: 15px;
  }

  .featured-services .service-card-back {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    margin-top: 12px;
    background: linear-gradient(135deg, #4169e1, #3fbbc0);
    color: white;
  }

  .featured-services .service-card-front h3,
  .featured-services .service-card-back h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .featured-services .service-card-front .icon {
    font-size: 34px;
    margin-bottom: 10px;
    color: #4169e1;
  }

  .featured-services .service-card-back p {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer .footer-about .logo img {
    max-height: 60px;
    width: auto;
  }

  .scroll-top {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 12px;
  }

  .scroll-top i {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  --footer-background-color: #4169e1; /* Azul del botón de encuesta */
  --footer-color: #eef7f7;
  --footer-heading-color: #fff;
  --footer-link-color: #b0c4de;
  --footer-link-hover-color: #4169e1; /* Azul reina */

  background-color: var(--footer-background-color);
  color: var(--footer-color);
  font-size: 14px;
  position: relative;
  padding: 20px 0 0 0;
}

.footer .footer-top {
  padding-bottom: 20px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 20px;
}

.footer .footer-about .logo img {
  max-height: 95px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 768px) {
  .footer .footer-about .logo img {
    max-height: 60px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .footer .footer-about .logo img {
    max-height: 50px;
    padding: 2px;
  }
}

.footer .footer-about p {
  font-size: 16px;
  padding-right: 20px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.footer .social-links {
  flex-direction: row;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  font-size: 20px;
  color: #fff;
  margin-right: 10px;
  transition: all 0.3s ease-in-out;
}

.footer .social-links a.whatsapp { background-color: #25D366; }
.footer .social-links a.whatsapp:hover { background-color: #2fe272; }

.footer .social-links a.facebook { background-color: #1877F2; }
.footer .social-links a.facebook:hover { background-color: #2c88f5; }

.footer .social-links a.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer .social-links a.instagram:hover { filter: brightness(1.1); }

.footer .social-links a.linkedin { background-color: #0A66C2; }
.footer .social-links a.linkedin:hover { background-color: #0b73de; }

.footer .social-links a:hover {
  color: #fff !important; /* Asegura que el ícono sea blanco en hover */
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer h4 {
  font-size: 18px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  color: var(--footer-heading-color);
  font-family: var(--heading-font);
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
}

.footer .footer-links ul a {
  display: inline-block;
  line-height: 1;
  transition: 0.3s;
  display: flex;
  align-items: center;
}

.footer .footer-links ul a {
  color: #fff;
  font-weight: 500;
  opacity: 0.9;
}

.footer .footer-links ul a i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 15px; /* Aumenta la separación del texto */
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer .footer-links ul a:hover i {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.footer .footer-links ul a i.bi-whatsapp { background-color: #25D366; }
.footer .footer-links ul a i.bi-headset { background-color: #5865F2; }
.footer .footer-links ul a i.bi-envelope { background-color: #EA4335; }

.footer .footer-links ul a:hover {
  color: #fff;
  opacity: 1;
  opacity: 1;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.footer .footer-newsletter p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.footer .footer-newsletter .qr-code {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 3px solid var(--footer-link-color);
}

.footer .footer-newsletter .cta-btn {
  background: var(--accent-color); /* Cambiado al color de acento (turquesa) */
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  transition: 0.3s;
}

.footer .footer-newsletter .cta-btn:hover {
  background: color-mix(in srgb, var(--accent-color) 85%, white); /* Aclarar el color de acento en hover */
}

.footer .footer-newsletter .qr-code {
  max-width: 100%;
  width: 100px;
  height: auto;
}

.footer .footer-about .logo img {
  max-height: 80px;
  width: auto;
}

@media (max-width: 768px) {
  .footer .footer-about .logo img {
    max-height: 35px;
  }
  .footer .footer-about p {
    padding-right: 0;
  }
  .footer .footer-newsletter .cta-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  .footer .footer-newsletter .qr-code {
    width: 90px;
  }
  .hero .container {
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
    max-width: 100%;
  }
}

.footer .copyright {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--footer-link-hover-color) 20%, transparent);
}

.footer .copyright p {
  margin-bottom: 0;
  color: var(--footer-link-color);
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
  color: var(--footer-link-color);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 120px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 768px) {
  section,
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  section,
  .section {
    padding: 30px 0;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 28px;
  }
  .section-title {
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 24px;
  }
  .section-title {
    padding-bottom: 30px;
  }
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/* Reducir espacio inferior del título de la sección "Quienes Somos" */
#departments .section-title {
  padding-bottom: 0;
}

/* Reducir espacio inferior del título de la sección "Testimonios" */
#testimonials .section-title {
  padding-bottom: 0;
}

/* Reducir espacio inferior del título de la sección "Sedes" */
#sede .section-title {
  padding-bottom: 20px;
}

/* Reducir espacio inferior del título de la sección "Galeria" */
#gallery .section-title {
  padding-bottom: 20px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: 70vh;
  padding: 0;
  margin: 0;
  position: relative;
  background-color: #f7fcfc;
}

@media (max-height: 500px),
(max-width: 580px) {
  .hero .carousel {
    min-height: 100vh;
  }
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(65, 105, 225, 0.6) 0%, rgba(63, 187, 192, 0.3) 100%);
  z-index: 2;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 120px;
}

.hero .container {
  background: none;
  position: relative;
  text-align: left;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  z-index: 3;
}

@media (max-width: 1200px) {
  .hero .container {
    margin-left: 50px;
    margin-right: 50px;
  }
}

.hero h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero h2 span {
  color: #4169e1;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
}

.hero .btn-get-started {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  transition: 0.3s;
  margin: 10px;
  border-radius: 5px;
  color: #fff;
  background: #4169e1;
  border: 2px solid #4169e1;
}

.hero .btn-get-started:hover {
  background: transparent;
  border-color: #fff;
}

.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: rgba(65, 105, 225, 0.5);
  border-radius: 50px;
  color: #fff;
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
  opacity: 0.8;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: #4169e1;
  color: #fff;
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.7;
  transition: 0.3s;
  margin: 0 5px;
}

.hero .carousel-indicators li.active {
  width: 30px;
  background: #4169e1;
}

/*--------------------------------------------------------------
# Featured Services Section (Moderno con Flip Card)
--------------------------------------------------------------*/
.featured-services .service-card {
  background-color: transparent;
  width: 100%;
  height: 250px;
  perspective: 1000px; /* Needed for the 3D flip effect */
  border-radius: 17px; /* Slightly larger than the inner card */
  padding: 3px; /* This padding creates the border thickness */
  background: linear-gradient(135deg, #4169e1, #3fbbc0);
  transition: all 0.4s ease;
}

.featured-services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(65, 105, 225, 0.2);
}

.featured-services .service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s;
  transform-style: preserve-3d;
  border-radius: 15px;
}

.featured-services .service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.featured-services .service-card-front,
.featured-services .service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.featured-services .service-card-front {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #1a365d;
}

.featured-services .service-card-front .icon {
  font-size: 48px;
  color: #4169e1;
  margin-bottom: 15px;
  transition: transform 0.3s;
  animation: float-icon 2.5s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Media queries para featured-services */
@media (max-width: 768px) {
  .featured-services .service-card {
    height: 200px;
  }
  .featured-services .service-card-front,
  .featured-services .service-card-back {
    padding: 15px;
  }
  .featured-services .service-card-front .icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
  .featured-services .service-card-front h3 {
    font-size: 1rem;
  }
  .featured-services .service-card-back p {
    font-size: 0.9rem;
  }
  /* En móviles, mostrar el back por defecto */
  .featured-services .service-card-inner {
    transform: rotateY(180deg);
  }
  .featured-services .service-card:hover .service-card-inner {
    transform: rotateY(180deg);
  }
}

@media (max-width: 480px) {
  .featured-services .service-card {
    height: 180px;
  }
  .featured-services .service-card-front .icon {
    font-size: 30px;
  }
  .featured-services .service-card-front h3 {
    font-size: 0.9rem;
  }
  .featured-services .service-card-back p {
    font-size: 0.85rem;
  }
}

/*--------------------------------------------------------------
# Estilos Personalizados y Dinámicos para Pestañas de Sedes
--------------------------------------------------------------*/
.sede .nav-tabs {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap; /* Permite que los botones se envuelvan en varias líneas */
  justify-content: center;
  gap: 15px; /* Aumenta el espacio entre los botones */
  margin-bottom: 20px; /* Espacio debajo de la navegación de pestañas */
  padding: 15px; /* Relleno alrededor del contenedor de botones */
  background-color: #f8f9fa; /* Fondo claro para el contenedor */
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sede .nav-tabs .nav-item {
  margin-bottom: 0; /* Reinicia el margen predeterminado del nav-item */
}

.sede .nav-tabs .nav-link {
  position: relative;
  z-index: 1; /* Asegura que el botón esté por encima de cualquier pseudo-elemento */
  border: 1px solid #e0e7ef; /* Borde más claro y sutil */
  border-radius: 50px; /* Forma de píldora */
  padding: 12px 25px; /* Aumenta el relleno para botones más grandes */
  margin: 0;
  color: #1a365d; /* Texto más oscuro para mejor contraste */
  /* Fondo inicial, se sobrescribe por nth-child */
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-weight: 600;
  font-size: 1rem; /* Fuente ligeramente más grande */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Sombra más pronunciada */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transición más suave */
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden; /* Para el efecto de brillo interno */
}

/* Variaciones sutiles de color para botones inactivos */
.sede .nav-tabs .nav-item:nth-child(odd) .nav-link:not(.active) {
  background: linear-gradient(135deg, #f8f9fa, #eef2f7);
  color: #2d3a4a;
}
.sede .nav-tabs .nav-item:nth-child(even) .nav-link:not(.active) {
  background: linear-gradient(135deg, #eef2f7, #f8f9fa);
  color: #2d3a4a;
}

/* Efecto de brillo interno al pasar el cursor sobre botones inactivos */
.sede .nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
  z-index: -1;
}

.sede .nav-tabs .nav-link:hover:not(.active) {
  transform: translateY(-7px) scale(1.03); /* Elevación más notoria */
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2); /* Sombra más fuerte */
  background: linear-gradient(135deg, #e0e7ef, #d1d8e0); /* Fondo ligeramente más oscuro en hover */
  border-color: #c0d0e0;
  color: #1a365d;
}

.sede .nav-tabs .nav-link:hover:not(.active)::before {
  width: 150px; /* Tamaño del brillo */
  height: 150px;
  opacity: 1;
}

.sede .nav-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #4169e1, #3fbbc0); /* Degradado corporativo */
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(65, 105, 225, 0.35); /* Sombra activa más fuerte */
  transform: translateY(-7px) scale(1.04); /* Elevación activa más pronunciada */
  animation: active-button-pulse 2s infinite ease-in-out; /* Efecto de pulsación */
}

@keyframes active-button-pulse {
  0% { transform: translateY(-7px) scale(1.04); box-shadow: 0 8px 28px rgba(65, 105, 225, 0.35); }
  50% { transform: translateY(-9px) scale(1.05); box-shadow: 0 12px 35px rgba(65, 105, 225, 0.45); }
  100% { transform: translateY(-7px) scale(1.04); box-shadow: 0 8px 28px rgba(65, 105, 225, 0.35); }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 1200px) {
  .sede .nav-tabs {
    flex-wrap: nowrap; /* Evita que los botones se rompan en varias líneas */
    overflow-x: auto; /* Permite el scroll horizontal */
    padding-bottom: 15px; /* Espacio para la barra de scroll */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  }
}

.featured-services .service-card-front h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a365d;
}

.featured-services .service-card:hover .service-card-front .icon {
  transform: scale(1.1);
}

.featured-services .service-card-back {
  background: linear-gradient(135deg, #4169e1, #3fbbc0);
  color: white;
  transform: rotateY(180deg);
}

.featured-services .service-card-back p {
  font-size: 15px;
  margin-bottom: 20px;
}

.featured-services .service-card-back .btn-service {
  background: #fff;
  color: #4169e1;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.featured-services .service-card-back .btn-service:hover {
  background-color: #e9ecef;
  color: #1a365d;
}

/* Responsive adjustments for featured services */
@media (max-width: 768px) {
  .featured-services .service-card {
    height: 200px;
  }

  .featured-services .service-card-front .icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .featured-services .service-card-front h3 {
    font-size: 18px;
  }

  .featured-services .service-card-back p {
    font-size: 14px;
  }

  .featured-services .service-card-front,
  .featured-services .service-card-back {
    padding: 15px;
  }

  /* Disable 3D flip on mobile to prevent text overlapping */
  .featured-services .service-card:hover .service-card-inner {
    transform: none;
  }

  .featured-services .service-card-back {
    transform: none;
    display: none; /* Hide back on mobile, or adjust as needed */
  }

  .featured-services .service-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .featured-services .service-card {
    height: 180px;
  }

  .featured-services .service-card-front .icon {
    font-size: 30px;
  }

  .featured-services .service-card-front h3 {
    font-size: 16px;
  }

  .featured-services .service-card-back p {
    font-size: 13px;
  }
}

/* Additional responsive for featured services */
@media (max-width: 576px) {
  .featured-services .service-card {
    flex: 0 1 100%;
  }
  
  .featured-services .service-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .featured-services .container {
    padding: 0 10px;
  }
  
  .featured-services .service-card {
    padding: 15px 10px;
  }
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--default-color);
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 4px;
  transition: 0.3s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.call-to-action .cta-btn:hover {
  background: #fff;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 10px 0 0 0;
  display: flex;
}

.about .content ul i {
  color: var(--accent-color);
  margin-right: 0.5rem;
  line-height: 1.2;
  font-size: 1.25rem;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
  .about .col-lg-4,
  .about .col-lg-8 {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .about .about-img-container img {
    max-width: 100%;
    height: auto;
  }
  
  .about .content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about .about-card-glass {
    padding: 15px 12px;
  }
  
  .about .about-card-title {
    font-size: 0.95rem;
  }
}

/*--------------------------------------------------------------
# Stats Section - Versión Moderna y Elegante
--------------------------------------------------------------*/
.stats.stats-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats.stats-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(65, 105, 225, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(63, 187, 192, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats.stats-modern .stats-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #2d3748;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats.stats-modern .stats-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.1), transparent);
  transition: left 0.5s;
}

.stats.stats-modern .stats-item:hover::before {
  background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.15), rgba(63, 187, 192, 0.15), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.stats.stats-modern .stats-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 70px rgba(65, 105, 225, 0.2);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(65, 105, 225, 0.3);
}

.stats.stats-modern .stats-item:active {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 70px rgba(65, 105, 225, 0.2);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(65, 105, 225, 0.3);
}

.stats.stats-modern .stats-item i {
  color: #4169e1;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  filter: drop-shadow(0 2px 8px rgba(65, 105, 225, 0.2));
}

.stats.stats-modern .stats-item:hover i {
  transform: scale(1.15) rotate(5deg);
  color: #3fbbc0;
  filter: drop-shadow(0 4px 16px rgba(65, 105, 225, 0.4));
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: scale(1.15) rotate(5deg) translateY(0); }
  50% { transform: scale(1.15) rotate(5deg) translateY(-5px); }
}

.stats.stats-modern .stats-item span {
  color: #1a202c;
  font-size: 3rem;
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #4169e1, #3fbbc0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: numberPulse 3s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(65, 105, 225, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(65, 105, 225, 0.6));
  }
}

.stats.stats-modern .stats-item p {
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.stats.stats-modern .stats-item:hover p {
  color: #2d3748;
}

/* Animación de entrada para los items */
.stats.stats-modern .stats-item {
  animation: statsSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
}

.stats.stats-modern .col-lg-3:nth-child(1) .stats-item { animation-delay: 0.1s; }
.stats.stats-modern .col-lg-3:nth-child(2) .stats-item { animation-delay: 0.3s; }
.stats.stats-modern .col-lg-3:nth-child(3) .stats-item { animation-delay: 0.5s; }
.stats.stats-modern .col-lg-3:nth-child(4) .stats-item { animation-delay: 0.7s; }

@keyframes statsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg) scale(0.9);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-5px) rotateX(0deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .stats.stats-modern .stats-item {
    padding: 2rem 1.5rem;
  }
  
  .stats.stats-modern .stats-item span {
    font-size: 2.5rem;
  }
  
  .stats.stats-modern .stats-item i {
    font-size: 3rem;
  }
  
  .stats.stats-modern .stats-item {
    flex-direction: column;
    text-align: center;
  }
  
  .stats.stats-modern .stats-item i {
    margin-bottom: 10px;
  }
  
  .stats.stats-modern .stats-item h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .stats.stats-modern .stats-item {
    padding: 15px;
  }
  
  .stats.stats-modern .stats-item h3 {
    font-size: 1.5rem;
  }
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-image {
  position: relative;
  min-height: 400px;
}

.features .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.features h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #060606;
}

.features h3:after {
  content: "";

  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  left: 0;
  bottom: 0;
}

.features .icon-box {
  margin-top: 50px;
}

.features .icon-box i {
  color: var(--accent-color);
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.features .icon-box:hover i {
  background-color: var(--accent-color);
  color: #fff;
}

.features .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
  color: #060606;
}

.features .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features .icon-box h4 a:hover {
  color: var(--accent-color);
}

.features .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/* Responsive adjustments for features section */
@media (max-width: 768px) {
  .features .value-card {
    flex: 0 1 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .features .value-card {
    flex: 0 1 100%;
    padding: 15px 12px;
  }
  
  .features .icon {
    font-size: 2.5rem;
  }
  
  .features h3 {
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  text-align: center;
  padding: 20px;
  transition: all ease-in-out 0.3s;
  height: 100%;
}



/*-
.services .service-item .icon {
  background:#060606;
  color: var(--accent-color);
  margin: 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  font-size: 32px;
  transition: ease-in-out 0.3s;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);

  
}  */

.services .service-item h3 {
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  font-size: 22px;
  transition: 0.3s;
  position: relative;
}

.services .service-item h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: black;
  bottom: 0;
  left: calc(50% - 25px);
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  
}

.services .service-item:hover .icon {
  box-shadow: 0px 0 40px rgba(0, 0, 0, 0);
}

.services .service-item:hover h3 {
  color: black;
}

/*--------------------------------------------------------------
# Appointment Section
--------------------------------------------------------------*/
.appointment .php-email-form {
  width: 100%;
}

.appointment .php-email-form .form-group {
  padding-bottom: 8px;
}

.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px !important;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--accent-color);
}

.appointment .php-email-form input::placeholder,
.appointment .php-email-form textarea::placeholder,
.appointment .php-email-form select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.appointment .php-email-form input,
.appointment .php-email-form select {
  height: 44px;
}

.appointment .php-email-form textarea {
  padding: 10px 12px;
}

.appointment .php-email-form button[type=submit] {
  background: var(--accent-color);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.appointment .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Tabs Section
--------------------------------------------------------------*/
.tabs {
  overflow: hidden;
}

.tabs .nav-tabs {
  border: 0;
}

.tabs .nav-link {
  border: 0;
  padding: 12px 15px 12px 0;
  transition: 0.3s;
  color: var(--default-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
}

.tabs .nav-link:hover {
  color: var(--accent-color);
}

.tabs .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.tabs .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.tabs .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tabs .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.tabs .details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .tabs .nav-link {
    border: 0;
    padding: 15px;
  }

  .tabs .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
}

/* Reducir espacio inferior de la sección de sedes */
.sede {
  padding-top: 0; /* Reduce aún más el espacio superior de la sección de sedes */
  padding-bottom: 20px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: visible;
}

.testimonials .testimonial-item {
  box-sizing: border-box;
  min-height: auto;
  max-width: 440px;
  padding: 2.4rem 1.6rem 1.6rem;
  margin: 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(30, 80, 180, 0.12);
  box-shadow: 0 26px 50px rgba(20, 50, 100, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 65px rgba(20, 50, 100, 0.12);
}

.testimonials .testimonial-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4169e1 0%, #3fbbc0 100%);
}

.testimonials .testimonial-item .testimonial-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 18px 35px rgba(16, 50, 110, 0.16);
  display: block;
  margin: 0 auto 1rem;
  position: relative;
}

.testimonials .testimonial-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0d1c3f;
  text-align: center;
  margin: 1rem 0 0.3rem;
}

.testimonials .testimonial-item h4 {
  font-size: 15px;
  color: #6c7a96;
  text-align: center;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #3fbbc0;
  font-size: 24px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  margin-right: 8px;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  margin-left: 8px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: normal;
  margin: 0 auto;
  text-align: center;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 90%;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 26px;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background-color: rgba(65, 105, 225, 0.24);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #4169e1;
}

@media (max-width: 992px) {
  .testimonials .testimonial-item {
    max-width: 420px;
    padding: 2.2rem 1.4rem 1.4rem;
  }

  .testimonials .testimonial-item .testimonial-img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .testimonials .testimonial-item {
    max-width: 100%;
    padding: 2rem 1.2rem 1.2rem;
    border-radius: 28px;
  }

  .testimonials .testimonial-item .testimonial-img {
    width: 130px;
    height: 130px;
  }

  .testimonials .testimonial-item h3 {
    font-size: 1.7rem;
  }

  .testimonials .testimonial-item h4 {
    font-size: 0.95rem;
  }

  .testimonials .testimonial-item p {
    font-size: 0.98rem;
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .testimonials .testimonial-item {
    padding: 1.6rem 1rem 1rem;
    border-radius: 24px;
  }

  .testimonials .testimonial-item .testimonial-img {
    width: 108px;
    height: 108px;
  }

  .testimonials .testimonial-item h3 {
    font-size: 1.35rem;
  }

  .testimonials .testimonial-item h4 {
    font-size: 0.88rem;
  }

  .testimonials .testimonial-item p {
    font-size: 0.95rem;
    line-height: 1.75;
    padding: 0 0.9rem;
  }
}

/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctors.dark-background {
  --background-color:#0534c369; /* Azul oscuro profundo */
  --surface-color: rgba(255, 255, 255, 0.05); /* Superficie de tarjeta casi transparente */
  --heading-color: #fff;
  --default-color: #b0c4de; /* Texto secundario más claro */
  --accent-color: #3fbbc0; /* Turquesa como acento principal */
  --border-color: rgba(63, 187, 192, 0.2);
}
.doctors .section-title h2,
.doctors .section-title p {
  color: var(--heading-color);
}


.doctors .section-title h2:after {
  background: var(--accent-color);
}

.doctors .team-member {
  position: relative;
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.doctors .team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.doctors .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.doctors .team-member .member-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s;
}

.doctors .team-member:hover .member-img img {
  transform: scale(1.1);
}

.doctors .team-member .member-info {
  padding: 20px 15px;
}

.doctors .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.doctors .team-member .member-info span {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
}

.doctors .swiper-pagination .swiper-pagination-bullet {
  background-color: var(--border-color);
  opacity: 1;
}

.doctors .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  opacity: 1;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
  overflow: hidden;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(225, 235, 250, 0.72) 100%);
}

.gallery .section-title {
  padding-bottom: 1rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(65, 105, 225, 0.12);
}

.gallery .section-title h2 {
  color: #1a365d;
  margin-bottom: 0.6rem;
}

.gallery .gallery-description {
  max-width: 820px;
  margin: 0 auto;
  color: #3b4a68;
  line-height: 1.85;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.gallery .swiper {
  padding-bottom: 2.5rem;
}

.gallery .swiper-wrapper {
  align-items: stretch;
}

.gallery .swiper-slide {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(65, 105, 225, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  position: relative;
}

.gallery .swiper-slide img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.97) saturate(0.95);
  display: block;
}

.gallery .swiper-slide a::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  color: rgba(255, 255, 255, 0.95);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.gallery .swiper-slide a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(65, 105, 225, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery .swiper-pagination {
  margin-top: 24px;
}

.gallery .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.28);
  opacity: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.gallery .swiper-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #4169e1 0%, #3fbbc0 100%);
  transform: scale(1.3);
}

.gallery .swiper-slide:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 26px 66px rgba(65, 105, 225, 0.18);
}

.gallery .swiper-slide:hover img {
  transform: scale(1.08);
  filter: brightness(1.03) saturate(1.08);
}

.gallery .swiper-slide:hover a::after,
.gallery .swiper-slide:hover a::before {
  opacity: 1;
}

@media (min-width: 992px) {
  .gallery .swiper-wrapper {
    padding: 40px 0;
  }

  .gallery .swiper-slide-active {
    transform: scale(1.06);
    box-shadow: 0 30px 90px rgba(65, 105, 225, 0.2);
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.pricing .pricing-item h3 {
  font-weight: 400;
  margin: -20px -20px 20px -20px;
  padding: 20px 15px;
  font-size: 16px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background: color-mix(in srgb, var(--default-color), transparent 95%);
}

.pricing .pricing-item h4 {
  font-size: 36px;
  font-weight: 600;
}

.pricing .pricing-item h4 sup {
  font-size: 20px;
  top: -15px;
  left: -3px;
}

.pricing .pricing-item h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 16px;
  font-weight: 300;
}

.pricing .pricing-item ul {
  padding: 15px 0;
  list-style: none;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
}

.pricing .pricing-item ul li {
  padding-bottom: 16px;
}

.pricing .pricing-item ul i {
  color: var(--accent-color);
  font-size: 18px;
  padding-right: 4px;
}

.pricing .pricing-item ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: line-through;
}

.pricing .btn-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  margin: 0 -20px -20px -20px;
  padding: 20px 15px;
  text-align: center;
}

.pricing .btn-buy {
  background: var(--accent-color);
  color: #fff;
  display: inline-block;
  padding: 8px 35px 10px 35px;
  border-radius: 4px;
  transition: none;
  font-size: 14px;
  font-weight: 400;
  font-weight: 600;
  transition: 0.3s;
}

.pricing .btn-buy:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.pricing .featured h3 {
  background: var(--accent-color);
  color: #fff;
}

.pricing .advanced {
  background: var(--accent-color);
  color: #fff;
  width: 200px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  top: auto;
  left: auto;
  z-index: 2000;
}
@media (max-width: 991.98px) {
  .cta-btn-agenda {
    bottom: 16px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .cta-btn-agenda span {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .cta-btn-agenda {
    bottom: 8px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .cta-btn-agenda span {
    font-size: 0.7rem;
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background: rgba(0, 0, 255, 0.197);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: black;
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #060606;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: black;
  
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
  color: #060606;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}


@media (max-width: 991.98px) {
  .cta-btn-agenda {
    top: 8px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .cta-btn-agenda span {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .cta-btn-agenda {
    top: 4px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .cta-btn-agenda span {
    font-size: 0.7rem;
  }
}

/* General responsive improvements for all sections */
@media (max-width: 768px) {
  .col-lg-3, .col-lg-4, .col-lg-6,
  .col-lg-8 {
    margin-bottom: 20px;
  }
  
  /* Reducir padding en secciones */
  section {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 25px 0;
  }
  
  .container {
    padding: 0 10px;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  p {
    font-size: 0.95rem;
  }
}
.faq .faq-container .faq-item .faq-toggle:hover {
  color: black;
}

.faq .faq-container .faq-active {
  border:#060606;
}

.faq .faq-container .faq-active h3 {
  color: black;
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: blue;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 24px 0 30px 0;
}

.contact .info-item i {
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: #fff;
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/* --- Estilos para hacer fijo el título de la sección de servicios --- */
.faq .faq-header {
  position: -webkit-sticky; /* Para compatibilidad con Safari */
  position: sticky;
  top: 100px; /* Altura de la cabecera (40px topbar + 60px branding) */
  z-index: 996; /* Justo debajo de la cabecera (z-index: 997) */
  background-color: #f7fcfc; /* Color de fondo de la sección light-background */  
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 20px; /* Espacio adicional antes de que comience el acordeón */
}

.faq .section-title {
  padding-bottom: 20px; /* Espacio entre el título y el cuadro de introducción */
}

/* Animación de pulso para el elemento activo del menú */
@keyframes pulse-link {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes moveIcon {
  0% {
      transform: translateX(0);
  }
  50% {
      transform: translateX(10px); /* Mueve los iconos a la derecha */
  }
  100% {
      transform: translateX(0);
  }
}





.social-links {
  display: flex;
  flex-direction: column; /* Para apilar los enlaces uno debajo de otro */
  gap: 10px; /* Espaciado entre los enlaces */
}

.social-icon {
  font-size: 24px; /* Tamaño mediano de los íconos */
  text-decoration: none; /* Eliminar subrayado de los enlaces */
  color: inherit; /* Hereda el color del texto, o personalízalo si lo prefieres */
  display: flex;
  justify-content: center; /* Centrar el icono */
}

.social-icon:hover {
  color: #007bff; /* Color de hover (puedes cambiarlo) */
}








/*--------------------------------------------------------------
# Estilos Dinámicos para la Sección "About" (Nuestra Razón de Ser)
--------------------------------------------------------------*/
.about .about-img-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about .about-img-container .play-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(red 50%, rgba(255, 0, 0, 0.4) 52%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  animation: pulsate-main-btn 2s infinite;
}

.about .about-img-container .play-btn::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  transition: all 0.3s;
}

.about .about-card-glass {
  position: relative;
  height: 250px;
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #3a5fcd, #36a8ad);
  box-shadow: 0 15px 35px rgba(65, 105, 225, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Borde animado con colores corporativos */
.about .about-card-glass:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 45px rgba(65, 105, 225, 0.3);
}

.about .about-card-glass::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  z-index: -1;
  background: conic-gradient(
    from var(--angle),
    #3fbbc0,
    #4169e1,
    #8a2be2, /* Añadimos un toque de morado para más dinamismo */
    #3fbbc0
  );
  animation: spin-border 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.about .about-card-glass:hover::before {
  opacity: 1;
}

/* Efecto de brillo que sigue al cursor */
.about .about-card-glass::after {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.about .about-card-glass:hover::after {
  opacity: 1;
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.about .about-card-icon,
.about .about-card-title,
.about .about-card-description {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.about .about-card-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 15px;
}

.about .about-card-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.about .about-card-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* Oculto inicialmente */
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.about .about-card-glass:hover .about-card-icon {
  transform: translateY(-65px) scale(0.9);
}

.about .about-card-glass:hover .about-card-title {
  transform: translateY(-65px);
}

.about .about-card-glass:hover .about-card-description {
  height: 130px; /* Altura del panel de cristal */
  opacity: 1;
}

/*--------------------------------------------------------------
# Estilos Dinámicos para la Sección "About" (Nuestra Razón de Ser)
--------------------------------------------------------------*/
.about .about-img-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about .about-img-container .play-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(red 50%, rgba(255, 0, 0, 0.4) 52%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  animation: pulsate-main-btn 2s infinite;
}

.about .about-img-container .play-btn::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  transition: all 0.3s;
}

.about .about-card-glass {
  position: relative;
  height: 250px;
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #4169e1, #3fbbc0);
  box-shadow: 0 15px 35px rgba(65, 105, 225, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Borde animado con colores corporativos */
.about .about-card-glass::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    #3fbbc0,
    #4169e1,
    #3fbbc0
  );
  animation: spin-border 5s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

@keyframes spin-border {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about .about-card-glass:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 45px rgba(65, 105, 225, 0.3);
}

.about .about-card-glass:hover::before {
  opacity: 1;
}

.about .about-card-icon,
.about .about-card-title,
.about .about-card-description {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.about .about-card-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 15px;
}

.about .about-card-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.about .about-card-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* Oculto inicialmente */
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.about .about-card-glass:hover .about-card-icon {
  transform: translateY(-65px) scale(0.9);
}

.about .about-card-glass:hover .about-card-title {
  transform: translateY(-65px);
}

.about .about-card-glass:hover .about-card-description {
  height: 130px; /* Altura del panel de cristal */
  opacity: 1;
}

/*--------------------------------------------------------------
# Features Section (Valores Institucionales)
--------------------------------------------------------------*/
.features {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-color: #f7fcfc;
}

.features .value-card {
  position: relative;
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px 20px; /* Reducimos más el relleno para hacer la tarjeta más compacta */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Sombra negra sutil por defecto */
  height: 100%;
  overflow: hidden;
  border: 2px solid #1a202c; /* Borde negro azulado visible permanentemente */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
  text-align: center; /* Centramos todo el contenido de la tarjeta */
}

/* Pseudo-elemento para el borde animado */
.features .value-card::before {
  content: "";
  position: absolute;
  inset: -2px; /* Cubre el área del borde */
  background: conic-gradient(from var(--angle), #3fbbc0, #4169e1, #8a2be2, #4169e1, #3fbbc0);
  border-radius: inherit;
  z-index: -1;
  opacity: 0; /* Oculto por defecto, solo aparece en hover */
  transition: opacity 0.4s;
  animation: spin-border 4s linear infinite paused;
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.features .value-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 20px 50px rgba(65, 105, 225, 0.25);
  background: #1a365d; /* Fondo oscuro al pasar el cursor */
}

.features .value-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.features .value-card:active {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 20px 50px rgba(65, 105, 225, 0.25);
  background: #1a365d;
}

.features .value-card:active::before {
  opacity: 1;
  animation-play-state: running;
}

.features .value-card .icon {
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.features .value-card .icon i {
  font-size: 42px; /* Reducimos el tamaño del ícono para compactar */
  color: #4169e1;
  transition: color 0.4s;
}

.features .value-card:hover .icon {
  transform: translateY(-15px); /* Se eleva más rápido */
}

.features .value-card:hover .icon i {
  color: #fff;
}

.features .value-card h3 {
  font-weight: 700;
  font-size: 18px; /* Reducimos el tamaño del título */
  color: #1a365d;
  margin: 0;
  transition: transform 0.4s 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s;
}

.features .value-card:hover h3 {
  transform: translateY(-10px); /* Se eleva a velocidad media */
  color: #fff;
}

.features .value-card p {
  margin-top: 15px;
  font-size: 14px; /* Reducimos el tamaño del párrafo */
  line-height: 1.6;
  color: #555;
  transition: transform 0.4s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s;
}

.features .value-card:hover p {
  transform: translateY(-5px); /* Se eleva más lento */
  color: rgba(255, 255, 255, 0.85);
}

/* Media queries para features */
@media (max-width: 768px) {
  .features .value-card {
    padding: 20px 15px;
  }
  .features .value-card .icon i {
    font-size: 36px;
  }
  .features .value-card h3 {
    font-size: 16px;
  }
  .features .value-card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .features .value-card {
    padding: 15px 10px;
  }
  .features .value-card .icon i {
    font-size: 30px;
  }
  .features .value-card h3 {
    font-size: 14px;
  }
  .features .value-card p {
    font-size: 12px;
  }
}

/* Contenedor de valores usando una cuadrícula responsive */
.valores-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.valores-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.valores-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.valores-cards .value-card {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 768px) {
  .valores-container {
    grid-template-columns: 1fr;
  }
  .valores-cards {
    grid-template-columns: 1fr;
  }
  .valores-cards .value-card {
    width: 100%;
    max-width: 320px;

  }
}

/* Contenedor de políticas usando una cuadrícula responsive */
.politicas-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.politicas-intro {
  text-align: justify;
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.politicas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.politicas-cards .value-card {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 768px) {
  .politicas-container {
    grid-template-columns: 1fr;
  }
  .politicas-cards {
    grid-template-columns: 1fr;
  }
}

/* Contenedor de seguridad usando una cuadrícula responsive */
.seguridad-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.seguridad-intro {
  text-align: justify;
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.seguridad-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.seguridad-cards .value-card {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 768px) {
  .seguridad-container {
    grid-template-columns: 1fr;
  }
  .seguridad-cards {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Estilos Dinámicos para la Sección "About" (Nuestra Razón de Ser)
--------------------------------------------------------------*/
.about .about-img-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about .about-img-container .play-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(red 50%, rgba(255, 0, 0, 0.4) 52%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  animation: pulsate-main-btn 2s infinite;
}

.about .about-img-container .play-btn::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  transition: all 0.3s;
}

.about .about-card-glass {
  position: relative;
  height: 250px;
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #4169e1, #3fbbc0);
  box-shadow: 0 15px 35px rgba(65, 105, 225, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Borde animado con colores corporativos */
.about .about-card-glass::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    #3fbbc0,
    #4169e1,
    #3fbbc0
  );
  animation: spin-border 5s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

@keyframes spin-border {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about .about-card-glass:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 45px rgba(65, 105, 225, 0.3);
}

.about .about-card-glass:hover::before {
  opacity: 1;
}

.about .about-card-icon,
.about .about-card-title,
.about .about-card-description {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.about .about-card-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 15px;
}

.about .about-card-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.about .about-card-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* Oculto inicialmente */
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.about .about-card-glass:hover .about-card-icon {
  transform: translateY(-65px) scale(0.9);
}

.about .about-card-glass:hover .about-card-title {
  transform: translateY(-65px);
}

.about .about-card-glass:hover .about-card-description {
  height: 130px; /* Altura del panel de cristal */
  opacity: 1;
}

/* Estilos específicos para la sección Services - Tarjetas más pequeñas */
#services .about-card-glass {
  padding: 8px 6px; /* Aún más reducido */
}

#services .about-card-title {
  font-size: 0.8rem; /* Aún más pequeño */
}

#services .about-card-description p {
  font-size: 0.75rem; /* Tamaño de fuente aún más pequeño */
}

/* Nuevo estilo moderno para tarjetas de services - sin vidrio, con sombra y hover */
#services .about-card-glass {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#services .about-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

#services .about-card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#services .about-card-glass:hover::before {
  left: 100%;
}

#services .about-card-icon {
  color: #007bff;
  transition: color 0.3s ease;
}

#services .about-card-glass:hover .about-card-icon {
  color: #0056b3;
}

#services .about-card-title {
  color: #343a40;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

#services .about-card-glass:hover .about-card-title {
  color: #007bff;
}

#services .about-card-description {
  color: #6c757d;
  transition: color 0.3s ease;
}

#services .about-card-glass:hover .about-card-description {
  color: #495057;
}

/* Media queries para responsividad en tarjetas de services */
@media (max-width: 768px) {
  #services .about-card-glass {
    padding: 6px 4px; /* Muy pequeño en móviles */
  }
  
  #services .about-card-title {
    font-size: 0.75rem;
  }
  
  #services .about-card-description p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  #services .about-card-glass {
    padding: 4px 3px; /* Mínimo en pantallas muy pequeñas */
  }
  
  #services .about-card-title {
    font-size: 0.7rem;
  }
  
  #services .about-card-description p {
    font-size: 0.65rem;
  }
}

/*--------------------------------------------------------------
# Animaciones para Pestañas de "Quienes Somos"
--------------------------------------------------------------*/
.departments .tab-content .tab-pane {
  transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.departments .tab-content .tab-pane.animating-out {
  position: absolute;
  opacity: 0;
  transform: translateX(-50px);
  z-index: 1;
}

.departments .tab-content .tab-pane.animating-in {
  opacity: 0;
  transform: translateX(50px);
  z-index: 2;
}

/* Media query para pantallas muy pequeñas (móviles pequeños como Redmi A3) */
@media (max-width: 480px) {
  /* Ajustes para el topbar */
  .cooperativa-name {
    font-size: 0.55rem !important;
    text-align: center;
    display: block;
    width: 100%;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* Ajustes para las tarjetas de servicios - MANTENER COLORES */
  .featured-services .service-card {
    min-height: 220px;
    height: 220px;
    padding: 3px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4169e1, #3fbbc0);
    border-radius: 17px;
  }

  .featured-services .service-card-inner {
    height: 100%;
    border-radius: 15px;
  }

  .featured-services .service-card-front,
  .featured-services .service-card-back {
    padding: 12px;
    border-radius: 15px;
    height: 100%;
  }

  .featured-services .service-card-front h3,
  .featured-services .service-card-back h3 {
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .featured-services .service-card-front .icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #4169e1;
  }

  .featured-services .service-card-back {
    background: linear-gradient(135deg, #4169e1, #3fbbc0);
    color: white;
  }

  .featured-services .service-card-back p {
    font-size: 12px;
    line-height: 1.3;
  }

  /* Ajustes para el botón de scroll */
  .scroll-top {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 20px;
  }

  .scroll-top i {
    font-size: 16px;
    color: #fff;
  }

  /* Ajustes para footer */
  .footer .footer-about .logo img {
    max-height: 30px;
    width: auto;
  }

  .footer .social-links a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Ajustes generales para prevenir desfasajes */
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.05em;
  }

  p {
    font-size: 0.9em;
  }

  /* Asegurar que las imágenes no causen overflow */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Prevenir horizontal overflow */
  body, html {
    overflow-x: hidden;
  }
}

/* Correcciones adicionales para pantallas muy pequeñas */
@media (max-width: 576px) {
  .topbar-title {
    min-width: auto !important;
  }

  .navmenu ul,
  .mobile-nav-active .navmenu>ul {
    width: calc(100% - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .navmenu a,
  .navmenu a:focus {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .navmenu a i,
  .navmenu a:focus i {
    width: auto !important;
  }

  .featured-services .service-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 180px !important;
  }

  .featured-services .service-card-front,
  .featured-services .service-card-back {
    padding: 18px 16px !important;
  }

  .featured-services .service-card-back p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  .features .value-card,
  .valores-cards .value-card,
  .politicas-cards .value-card,
  .seguridad-cards .value-card {
    max-width: 100% !important;
  }

  #doctors .pilar-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero h2,
  .hero p,
  .hero .carousel-item {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .main {
    margin-top: 240px !important;
  }
}

@media (max-width: 420px) {
  .main {
    margin-top: 260px !important;
  }

  .hero h2 {
    font-size: 22px !important;
  }

  .hero p {
    font-size: 13px !important;
  }
}

