/*
========================================
IFS CONSULTORA - MODERN STYLES
========================================
TABLA DE CONTENIDO:
1. Variables y configuración base
2. Estilos base y reseteo
3. Utilidades generales
   3.1 Textos
   3.2 Fondos
   3.3 Bordes y efectos
4. Componentes
   4.1 Navegación
   4.2 Hero
   4.3 Secciones
   4.4 Tarjetas y cajas
   4.5 Formularios
   4.6 Iconos
   4.7 Empresas aliadas
5. Página específica: Quiénes somos
6. Responsive Design
7. Animaciones y efectos
*/

/* 
====================================
1. VARIABLES Y CONFIGURACIÓN BASE
====================================
*/
:root {
  /* Colores principales */
  --purple-primary: #c084fc;
  --purple-dark: #a855f7;
  --purple-light: #e9d5ff;
  --green-primary: #4ade80;
  --green-dark: #22c55e;
  --green-light: #dcfce7;
  --blue-primary: #3b82f6;
  --blue-light: #dbeafe;

  /* Grises */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Tipografías */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: "Montserrat", sans-serif;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transiciones */
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
====================================
2. ESTILOS BASE Y RESETEO
====================================
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-700);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}

/* 
====================================
3. UTILIDADES GENERALES
====================================
*/

/* 3.1 Textos */
.text-justify {
  text-align: justify;
}

.text-purple-light {
  color: var(--purple-primary) !important;
}

.text-green-light {
  color: var(--green-primary) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.object-fit-cover {
  object-fit: cover !important;
}

.text-white-25 {
  color: rgba(255, 255, 255, 0.25) !important;
}

.text-purple-gradient {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-green-gradient {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.max-w-fit-content {
  max-width: fit-content;
}

/* 3.2 Fondos */
.bg-purple-light {
  background-color: var(--purple-primary) !important;
}

.bg-green-light {
  background-color: var(--green-primary) !important;
}

.bg-blue-gradient {
  background: linear-gradient(135deg, var(--blue-primary), #1d4ed8) !important;
}

.bg-green-gradient {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark)) !important;
}

.bg-purple-gradient {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark)) !important;
}

.bg-purple-green-gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--green-light)) !important;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 3.3 Bordes y efectos */
.highlight-box-purple {
  border-left: 4px solid var(--purple-primary) !important;
}

.highlight-icon-purple {
  background: var(--purple-primary) !important;
}

.border-white-25 {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 
====================================
4. COMPONENTES
====================================
*/

/* 4.1 Navegación */
.navbar {
  background-color: transparent; /* Transparente por defecto */
  padding: 1.2rem 0;
  height: 76px; /* Altura fija del navbar */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  backdrop-filter: none; /* Sin filtro por defecto */
}

.navbar.scrolled {
  background-color: rgba(31, 41, 55, 0.95) !important; /* Fondo semitransparente al hacer scroll */
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
}

.navbar-brand-subtitle {
  display: block;
  margin-top: 0.05rem;
}

.navbar-nav {
  margin-left: auto;
}

.navbar-nav .nav-link {
  position: relative;
  color: white !important;
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  opacity: 1;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-primary);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Mejoras para navbar transparente */
.navbar .navbar-brand {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  text-shadow: none;
}

.navbar .nav-link {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
  text-shadow: none;
}

/* Logo con mejor contraste cuando está transparente */
.navbar .navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

/* Botón hamburguesa con mejor visibilidad */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.navbar.scrolled .navbar-toggler-icon {
  filter: none;
}

/* Mejoras responsive para navbar transparente */
@media (max-width: 768px) {
  .navbar-collapse {
    background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .navbar:not(.scrolled) .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .navbar-collapse .nav-link {
    text-shadow: none;
    padding: 8px 15px;
    margin: 2px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .navbar-collapse .nav-link:hover {
    background-color: rgba(192, 132, 252, 0.1);
  }
}

/* 4.2 Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden; /* Necesario para el parallax */
  transform: translateZ(0); /* Forzar aceleración por hardware */
}

.hero-background {
  position: absolute;
  top: -10%; /* Empezar un poco más arriba */
  left: 0;
  width: 100%;
  height: 120%; /* Aumentamos la altura para el efecto parallax */
  z-index: 1;
  transform: translateZ(0); /* Optimización para GPU */
  will-change: transform; /* Optimización para animaciones */
  backface-visibility: hidden; /* Prevenir flickering */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Escala inicial para evitar espacios vacíos */
  transition: transform 0.1s ease-out; /* Transición suave */
  backface-visibility: hidden; /* Prevenir flickering */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
  transform: translateZ(0); /* Optimización para GPU */
}

/* Efecto parallax para el contenido */
.hero-content {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
  backface-visibility: hidden;
}

/* Elementos responsivos para el hero */
.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge.bg-purple-light {
  background-color: var(--purple-light) !important;
}

.badge.bg-green-light {
  background-color: var(--green-light) !important;
}

/* Ajustes adicionales para responsividad */
@media (max-width: 576px) {
  .hero-section {
    padding-top: 90px; /* Mayor espacio para la barra de navegación */
  }
  
  .info-text strong {
    font-size: 0.9rem;
  }
  
  .info-text small {
    font-size: 0.75rem;
  }
  
  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .hero-buttons .btn i {
    font-size: 0.9rem;
  }
}

/* Mejoras para dispositivos más pequeños */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.7rem;
  }
}

/* Mejoras para pantallas medianas */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-content {
    padding-bottom: 2rem;
  }
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh; /* Reducir altura en móviles */
    padding-top: 80px; /* Espacio para la barra de navegación */
    padding-bottom: 30px; /* Añadir algo de espacio inferior */
  }
  
  .hero-background {
    height: 110%; /* Reducir efecto en móviles */
    top: -5%;
  }
  
  .hero-image {
    transform: scale(1.05); /* Menor escala en móviles */
  }
  
  /* Mejoras para contenido */
  .hero-content {
    text-align: center;
    padding: 1rem 0;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    margin-right: 0 !important;
  }
}

/* Mejora de rendimiento para el parallax */
.hero-section.parallax-active .hero-background {
  transform: translate3d(0, 0, 0);
}

/* Desactivar parallax en dispositivos con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hero-background {
    transform: none !important;
  }
  
  .hero-content {
    transform: none !important;
  }
}

/* Optimización para dispositivos de baja potencia */
@media (max-width: 768px) and (max-height: 1024px) {
  .hero-background {
    height: 110%; /* Reducir efecto en móviles */
    top: -5%;
  }
  
  .hero-image {
    transform: scale(1.05); /* Menor escala en móviles */
  }
  
  /* Desactivar parallax en dispositivos móviles si es necesario */
}

/* Para relaciones de aspecto inusuales (muy anchas o muy estrechas) */
@media (min-aspect-ratio: 5/3) and (max-height: 850px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 30px;
  }
  
  .hero-background {
    height: 110%;
    top: -5%;
  }
  
  .hero-image {
    transform: scale(1.05);
    object-position: center;
  }
  
  /* Forzar una columna como en móviles */
  .hero-section .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  /* Mostrar el card de info que normalmente está oculto en móviles */
  .hero-section .d-none.d-lg-block {
    display: block !important;
  }
  
  .hero-info-card {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content {
    text-align: center;
    padding: 1rem 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 650px;
  }
  
  /* Centrar también la versión para pantallas medianas */
  .hero-section .d-none.d-md-flex {
    display: flex !important;
    justify-content: center;
  }
  
  /* Esconder versión móvil si mostramos la versión normal */
  .hero-section .d-md-none {
    display: none !important;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }
  
  .hero-title {
    font-size: calc(1.8rem + 1vw);
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: calc(0.8rem + 0.5vw);
    text-align: center;
  }
  
  /* Estilo para policy-principles en relación de aspecto inusual */
  .policy-principles {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  
  .policy-principle {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0.75rem;
  }
  
  /* Desactivar parallax para mejorar rendimiento */
  .hero-background {
    transform: none !important;
  }
  
  .hero-content {
    transform: none !important;
  }
}

/* Para pantallas con relación de aspecto muy estrecha */
@media (max-aspect-ratio: 2/3) {
  /* Estilo para policy-principles en relación de aspecto estrecha */
  .policy-principles {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
  }
  
  .policy-principle {
    width: 100%;
    max-width: 280px;
    padding: 1.25rem;
    margin-bottom: 0;
  }
  
  .policy-principle-text {
    margin-top: 0.75rem;
  }
  
  .policy-principle-text strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem; /* Tamaño más pequeño por defecto para móviles */
  font-weight: 800;
  line-height: 1.2; /* Aumentado para mejor legibilidad */
  margin-bottom: 1.5rem; /* Menos margen en móviles */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Aumento progresivo del tamaño del título según tamaño de pantalla */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-aspect-ratio: 5/3) and (max-height: 850px) {
  body {
    overflow-x: hidden; /* Evitar scroll en pantallas con relación de aspecto 5:3 */
  }

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

  .hero-info-card{
    display: none;
  }
}


.hero-subtitle {
  font-size: 1rem; /* Tamaño más pequeño por defecto para móviles */
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 100%; /* Usar todo el ancho disponible en móviles */
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 90%;
  }
}

@media (min-width: 992px) {
  .hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
  }
}

.info-item {
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 1rem;
  
  /* Centrado para móviles */
  @media (max-width: 768px) {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  
  /* Adaptación para móviles */
  @media (max-width: 768px) {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.info-feature {
  display: flex;
  align-items: flex-start;
}

/* Botones */
.hero-buttons .btn {
  padding: 0.85rem 1.75rem; /* Tamaño más compacto por defecto */
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem; /* Texto más pequeño en móviles */
  transition: all 0.3s ease;
  white-space: nowrap; /* Evitar saltos de línea en el texto */
}

@media (min-width: 768px) {
  .hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

.btn-primary {
  background: var(--purple-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
}

.btn-primary:hover {
  background: var(--purple-dark);
  color: var(--purple-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--purple-light);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

/* 4.3 Secciones */
.section-badge {
  display: inline-flex;
  align-items: center;
  background: var(--purple-light);
  color: var(--purple-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Características */
.feature-item {
  margin-bottom: 2rem;
}

.feature-icon-container {
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

/* Cajas destacadas */
.highlight-box {
  background: var(--green-light);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--green-primary);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Contenedores de imágenes */
.image-container {
  position: relative;
}

.quality-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

/* 4.4 Tarjetas y cajas */

/* Tarjetas de servicios */
.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.service-card::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: var(--transition-all);
}

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

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--purple-primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: var(--transition-transform);
  position: relative;
  z-index: 1;
}

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

.service-title {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  transition: var(--transition-all);
}

.service-card:hover .service-title {
  color: var(--purple-primary);
}

.service-description {
  color: var(--gray-600);
  line-height: 1.6;
  transition: var(--transition-all);
}

.service-card:hover .service-description {
  color: var(--gray-700);
}

/* Sección de emprendimientos */
.emprendimientos-section {
  background: linear-gradient(135deg, var(--purple-light), var(--green-light));
  padding: 2.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--purple-primary);
}

/* Botón personalizado para la sección de emprendimientos */
.btn-emprendimiento {
  background: linear-gradient(135deg, var(--purple-primary), var(--green-primary));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-emprendimiento:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  color: white;
  background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
}

/* Tarjetas de consejos */
.tip-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.tip-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.tip-content {
  padding: 2rem;
}

.tip-title {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.tip-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tip-link {
  color: var(--purple-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tip-link:hover {
  color: var(--purple-dark);
}

/* Tarjetas de testimonios */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 4px solid var(--purple-primary);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--purple-light);
  font-family: var(--font-secondary);
  line-height: 1;
}

.testimonial-quote {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  padding-top: 1rem;
  border-top: 2px solid var(--gray-200);
}

/* 4.5 Formularios y contacto */

/* Formulario de contacto */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 0.2rem rgba(192, 132, 252, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* Información de contacto */
.contact-info {
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

/* Icono de contacto grande para la sección de información */
.contact-icon-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-icon-lg:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  z-index: 1;
}

.contact-icon-lg i {
  position: relative;
  z-index: 2;
}

.contact-icon-lg.bg-purple-light {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.3);
}

.contact-icon-lg.bg-green-light {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.contact-info-card:hover .contact-icon-lg {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(192, 132, 252, 0.4);
}

.contact-info-card:hover .contact-icon-lg.bg-green-light {
  box-shadow: 0 12px 35px rgba(74, 222, 128, 0.4);
}

/* Estilos para las tarjetas de información de contacto */
.contact-info-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1) !important;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.contact-info-card h5 {
  color: var(--gray-800);
  font-weight: 600;
}

.contact-info-card small {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Nuevo diseño de contacto con imagen y formulario */
.contact-left-column {
  height: auto;
  display: flex;
  flex-direction: column;
}

.contact-image-container {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  height: auto;
  position: relative;
}

.contact-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 1rem;
}

.contact-image-container:hover img {
  transform: scale(1.03);
}

.contact-overlay-badge {
  position: absolute;
  bottom: 20px;
  right: -10px;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.contact-overlay-badge .badge-content {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-image-container:hover .contact-overlay-badge {
  transform: translateX(0);
}

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-cards {
  margin-top: 1.5rem;
}

.contact-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

/* 5. PÁGINA ESPECÍFICA: QUIÉNES SOMOS */

/* Política de Calidad */
.policy-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.policy-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  border-top: 4px solid var(--purple-primary);
}

.policy-header {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.policy-body {
  padding: 2rem;
}

.policy-title {
  color: var(--gray-800);
  margin-bottom: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.policy-title i {
  color: var(--purple-primary);
  margin-right: 0.75rem;
}

.policy-list {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-weight: bold;
}

/* Misión y Visión */
.mission-vision-card {
  background: linear-gradient(to right, var(--purple-light), var(--green-light));
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
  height: 100%;
}

.mission-vision-content {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
}

.mission-vision-icon {
  width: 50px;
  height: 50px;
  background: var(--purple-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.mission-vision-content h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.mission-vision-content h3 .emoji {
  margin-right: 0.5rem;
  font-size: 1.75rem;
}

/* 4.6 Footer y enlaces sociales */
footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%) !important;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--purple-primary) !important;
}

/* 7. ANIMACIONES Y EFECTOS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* 
====================================
6. RESPONSIVE DESIGN
====================================
*/
@media (max-width: 1200px) {
  /* Tipografía responsive */
  .hero-title {
    font-size: 3.5rem;
  }

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

@media (max-width: 992px) {
  /* Ajustes para tablets */
  .hero-title {
    font-size: 3rem;
  }

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

  .hero-info-card {
    margin-top: 3rem;
  }

  .quality-badge {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }
  
  /* Ajustes específicos para la política */
  .policy-principles {
    flex-wrap: wrap;
  }
  
  .policy-principle {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  /* Ajustes para móviles grandes */
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Ajustes para la sección de contacto */
  .contact-image-container {
    min-height: 250px;
    margin-bottom: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-left-column {
    margin-bottom: 2rem;
  }

  /* Navegación responsive */
  .navbar-collapse {
    background-color: rgba(17, 24, 39, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
  }

  /* Ajustes para componentes */
  .service-card,
  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-right: 1rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  /* Ajustes para móviles pequeños */
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .service-card,
  .contact-form-container {
    padding: 1.5rem 1rem;
  }

  .tip-content,
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-dark);
}

/* 
====================================
5. PÁGINA ESPECÍFICA: QUIÉNES SOMOS (CONTINUACIÓN)
====================================
*/
#quienes-somos {
  position: relative;
  overflow: hidden;
}

#quienes-somos .section-subtitle {
  margin-bottom: 2.5rem;
}

/* Tarjetas de misión y visión */
#quienes-somos .mission-vision-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#quienes-somos .mission-vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Tarjeta de política */
#quienes-somos .policy-card {
  margin-top: 1rem;
  border-top: 4px solid var(--purple-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#quienes-somos .policy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Listas de política */
#quienes-somos .policy-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

#quienes-somos .policy-list li:last-child {
  border-bottom: none;
}

/* Contenedor de imagen */
#quienes-somos .image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

#quienes-somos .image-container img {
  transition: transform 0.5s ease;
}

#quienes-somos .image-container:hover img {
  transform: scale(1.05);
}

/* Elementos destacados */
.highlight-box-purple {
  background: linear-gradient(135deg, rgba(233, 213, 255, 0.8), rgba(220, 252, 231, 0.8));
  border-left: 4px solid var(--purple-primary);
}

.highlight-icon-purple {
  background: var(--purple-primary);
}

/* Política de Calidad */
.policy-intro {
  padding-right: 1rem;
}

/* Principios de la política */
.policy-principles {
  display: flex;
  margin: 1.5rem 0;
  justify-content: space-between;
}

.policy-principle {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gray-50);
  padding: 1rem;
  border-radius: 1rem;
  width: 30%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.policy-principle:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Iconos de principios */
.policy-principle-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--purple-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.policy-principle:nth-child(2) .policy-principle-icon {
  background: var(--green-primary);
}

.policy-principle:nth-child(3) .policy-principle-icon {
  background: var(--purple-dark);
}

/* Responsividad para policy-principles en móviles */
@media (max-width: 768px) {
  .policy-principles {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .policy-principle {
    width: 100%;
    max-width: 280px;
  }
}

/* Responsividad específica para pantallas muy pequeñas */
@media (max-width: 360px) {
  .policy-principle {
    padding: 0.75rem;
  }
  
  .policy-principle-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Título de compromisos */
.commitments-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  padding-bottom: 0.5rem;
}

.commitments-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--purple-primary);
}

/* Items de compromiso */
.commitment-item {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.commitment-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.commitment-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.commitment-item:nth-child(even) .commitment-icon {
  background: var(--green-primary);
}

.commitment-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 
====================================
4. COMPONENTES (CONTINUACIÓN)
====================================
*/

/* 4.7 Empresas aliadas */
.partner-logo-container {
  padding: 1.5rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.partner-logo-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-primary);
}

.partner-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-logo-container:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0));
  padding: 1.5rem 1rem 0.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-800);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.partner-logo-container:hover .partner-name {
  transform: translateY(0);
}

/* 
====================================
AOS ANIMATION OPTIMIZATIONS
====================================
*/

/* Optimización para animaciones AOS más rápidas */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Animaciones optimizadas para fade-up */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Animaciones optimizadas para fade-right */
[data-aos="fade-right"] {
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
  will-change: opacity, transform;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Animaciones optimizadas para fade-left */
[data-aos="fade-left"] {
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  will-change: opacity, transform;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Animaciones optimizadas para zoom-in */
[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale3d(0.95, 0.95, 1);
  will-change: opacity, transform;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Animaciones optimizadas para flip-left */
[data-aos="flip-left"] {
  opacity: 0;
  transform: perspective(2500px) rotateY(-15deg);
  will-change: opacity, transform;
}

[data-aos="flip-left"].aos-animate {
  opacity: 1;
  transform: perspective(2500px) rotateY(0deg);
}

/* Mejoras de performance para animaciones */
.aos-animate {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Activación temprana en mobile */
@media (max-width: 768px) {
  [data-aos] {
    transition-duration: 0.4s !important;
  }
  
  [data-aos-delay] {
    transition-delay: 0ms !important;
  }
}

/* 
====================================
ESTADÍSTICAS Y CONTADORES
====================================
*/
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--green-primary));
  color: white;
  position: relative;
  overflow: hidden;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.stat-card {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  transition: var(--transition-all);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-all);
}

.stat-card:hover .stat-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
