/* =====================================================
   VIEW MICROBIOLOGÍA - ESTILOS MODERNOS
   ===================================================== */

/* Variables de colores modernos */
:root {
  /* Verde principal - Microbiología */
  --verde-primario: #00c77c;
  --verde-oscuro: #089a94;
  --verde-claro: #4fd1cc;
  --verde-glass: rgba(0, 199, 124, 0.1);
  
  /* Colores complementarios */
  --blanco-puro: #ffffff;
  --gris-oscuro: #1a1a1a;
  --gris-medio: #6b7280;
  --gris-claro: #f8fafc;
  
  /* Acentos modernos */
  --azul-cientifico: #579ed2;
  --coral-suave: #ee6369;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(12, 171, 164, 0.08);
  --shadow-lg: 0 20px 40px rgba(12, 171, 164, 0.15);
  --shadow-xl: 0 30px 60px rgba(12, 171, 164, 0.2);
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gris-claro);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gris-oscuro);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Selección de texto personalizada */
::selection {
  background: var(--verde-primario);
  color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--verde-oscuro);
}

/* Cursor personalizado de microscopio */
.microscope-cursor {
  width: 30px;
  height: 30px;
  border: 2px solid var(--verde-primario);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transition: all 0.1s ease;
  z-index: 9999;
  mix-blend-mode: difference;
}

.microscope-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--verde-primario);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.microscope-cursor.hover {
  transform: scale(1.5);
  border-color: var(--coral-suave);
}

/* Navbar con efecto glassmorphism */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1) contrast(1.1) drop-shadow(0 2px 8px rgba(12, 171, 164, 0.3));
  max-width: 200px;
  object-fit: contain;
  margin-right: 0.5rem;
}

.navbar.scrolled .logo-img {
  height: 40px;
}

.logo-img:hover {
  filter: brightness(1.1) contrast(1.2) drop-shadow(0 4px 15px rgba(12, 171, 164, 0.5));
  transform: rotate(2deg) scale(1.05);
}

/* Logo responsivo */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
  
  .navbar.scrolled .logo-img {
    height: 35px;
  }
}

/* Navegación con efectos modernos */
.navbar-nav .nav-link {
  color: var(--gris-oscuro) !important;
  font-weight: 500;
  margin-left: 1.5rem;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--verde-primario);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--verde-primario) !important;
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-nav .nav-link.active {
  background: var(--verde-primario);
  color: white !important;
  box-shadow: 0 4px 15px rgba(12, 171, 164, 0.3);
}

/* Hero con gradiente moderno y partículas */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(87, 158, 210, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

/* Patrón de moléculas para el fondo */
.molecule-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 10% 20%, var(--verde-claro) 0%, transparent 20%),
    radial-gradient(circle at 80% 80%, var(--azul-cientifico) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, var(--verde-primario) 0%, transparent 20%);
  animation: rotate-pattern 60s linear infinite;
}

@keyframes rotate-pattern {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Nuevo diseño del hero */
.hero-logo-container {
  margin-bottom: 1.5rem;
}

.hero-main-logo {
  width: 120px;
  height: auto;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-subtitle .lead {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  margin-bottom: 0.3rem;
  color: white;
}

.highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Estadísticas del hero */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

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

.stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Botones del hero */
.hero-actions {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 12px 25px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Elementos visuales del lado derecho */
.hero-visual {
  position: relative;
  margin-top: -60px;
}

.circle-animation {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 3rem auto;
}

.circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-1 {
  width: 250px;
  height: 250px;
  animation: rotate 20s linear infinite;
  border-color: rgba(255, 255, 255, 0.3);
}

.circle-2 {
  width: 180px;
  height: 180px;
  animation: rotate 15s linear infinite reverse;
  border-color: rgba(255, 255, 255, 0.2);
}

.circle-3 {
  width: 120px;
  height: 120px;
  animation: rotate 10s linear infinite;
  border-color: rgba(255, 255, 255, 0.1);
}

.microscope-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Servicios preview */
.services-preview {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.service-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

.service-tag:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.service-tag:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.service-tag:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.service-tag:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

.service-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón líquido moderno */
.btn-liquid,
.hero-actions .btn-liquid,
a.btn-liquid {
  position: relative;
  padding: 12px 30px;
  background: white !important;
  color: #0caba4 !important;
  border: 2px solid #0caba4 !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(12, 171, 164, 0.25), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-liquid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #0caba4;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-liquid:hover {
  background: #0caba4 !important;
  color: white !important;
  border-color: #0caba4 !important;
  box-shadow: 0 12px 36px rgba(12, 171, 164, 0.35), 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.04);
}

.btn-liquid:hover::before {
  width: 300px;
  height: 300px;
}

/* Partículas microbiológicas */
.micro-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle 15s infinite ease-in-out;
  filter: blur(1px);
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(720deg);
    opacity: 0;
  }
}

/* Cards con efecto glassmorphism y 3D */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.glass-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: left 0.5s;
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: var(--shadow-xl);
}

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

/* Iconos con animación */
.service-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  display: inline-block;
}

.glass-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 4px 8px rgba(12, 171, 164, 0.3));
}

/* Secciones con fondos únicos y transiciones suaves */
section {
  scroll-margin-top: 80px;
  position: relative;
  padding: 6rem 0;
  transition: all 0.3s ease;
}

/* Transiciones suaves entre secciones */
section:not(:first-child) {
  border-top: 1px solid rgba(12, 171, 164, 0.1);
}

/* Separadores visuales entre secciones */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde-primario), transparent);
  opacity: 0.3;
}

/* Fondos específicos para cada sección */
.section-services {
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 1) 0%, 
    rgba(248, 250, 252, 0.98) 50%, 
    rgba(12, 171, 164, 0.02) 100%);
}

.section-diferenciacion {
  background: linear-gradient(180deg, 
    rgba(12, 171, 164, 0.02) 0%, 
    rgba(12, 171, 164, 0.05) 50%, 
    rgba(248, 250, 252, 1) 100%);
}

.section-asesoramiento {
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 1) 0%, 
    rgba(87, 158, 210, 0.03) 50%, 
    rgba(12, 171, 164, 0.02) 100%);
}

.section-agua {
  background: linear-gradient(180deg, 
    rgba(12, 171, 164, 0.02) 0%, 
    rgba(12, 171, 164, 0.05) 50%, 
    rgba(87, 158, 210, 0.03) 100%);
}

/* Eliminar el separador del hero */
.hero::before {
  background: none;
}

.section-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: 
    repeating-linear-gradient(45deg, var(--verde-primario) 0, var(--verde-primario) 1px, transparent 1px, transparent 15px),
    repeating-linear-gradient(-45deg, var(--azul-cientifico) 0, var(--azul-cientifico) 1px, transparent 1px, transparent 15px);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--verde-primario), var(--azul-cientifico));
  border-radius: 2px;
  animation: expand 0.5s ease-out;
}

@keyframes expand {
  from { width: 0; }
  to { width: 60px; }
}

/* Efecto de microscopio en cards de servicio */
.microscope-view {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    transparent 40%,
    var(--verde-glass) 40%,
    var(--verde-glass) 41%,
    transparent 41%,
    transparent 45%,
    var(--verde-glass) 45%,
    var(--verde-glass) 46%,
    transparent 46%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glass-card:hover .microscope-view {
  opacity: 1;
}

/* Botones modernos */
.btn-modern {
  background: var(--verde-primario);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.btn-modern::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-modern:hover::after {
  width: 300%;
  height: 300%;
}

/* Formularios modernos */
.form-control {
  border-radius: 15px;
  border: 2px solid #e0e0e0;
  padding: 12px 20px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--verde-primario);
  box-shadow: 0 0 0 4px rgba(12, 171, 164, 0.1);
  outline: none;
}

/* Footer moderno */
.footer {
  background: linear-gradient(135deg, var(--gris-oscuro) 0%, #2a2a2a 100%);
  color: white;
  padding: 3rem 0 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde-primario), transparent);
  animation: slide 3s linear infinite;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.footer a {
  color: var(--verde-claro);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  font-size: 1.3rem;
}

.footer a:hover {
  color: white;
  transform: translateY(-2px);
}

/* Footer mejorado para SEO */
.footer-title {
  color: var(--verde-claro);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--verde-claro);
  text-decoration: none;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--verde-claro);
  margin-right: 0.5rem;
  width: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--verde-claro);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Animación de números */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.stat-number::before {
  content: attr(data-value);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--verde-claro);
  opacity: 0.3;
  filter: blur(3px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Selector de idioma mejorado */
.language-selector {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* WhatsApp flotante mejorado */
.whatsapp-float {
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Animación de DNA/Hélice para decoración */
.dna-decoration {
  position: absolute;
  width: 100px;
  height: 200px;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cpath d='M50,0 Q30,50 50,100 T50,200' stroke='%230caba4' fill='none' stroke-width='2'/%3E%3Cpath d='M50,0 Q70,50 50,100 T50,200' stroke='%23579ed2' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  animation: dna-rotation 20s linear infinite;
}

@keyframes dna-rotation {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Efecto de onda para secciones */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Loading animation */
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gris-claro);
  border-top-color: var(--verde-primario);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Efectos de hover para imágenes */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  
  .glass-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .microscope-cursor {
    display: none;
  }
}

@media (max-width: 600px) {
  /* HERO MOBILE: pantalla completa y logo pequeño */
  .hero {
    min-height: 100vh !important;
    padding-top: 60px !important;
    padding-bottom: 10px !important;
  }
  .hero-main-logo {
    width: 54px !important;
    height: auto !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }
  .logo-img {
    height: 22px !important;
    max-width: 28px !important;
    margin-right: 0.2rem;
    display: inline-block !important;
  }
  .navbar {
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    min-height: 44px;
  }
  .navbar .container {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-brand {
    font-size: 0.95rem !important;
    padding-left: 0.1rem;
    margin-right: 0.3rem;
    margin-left: 0.1rem;
    line-height: 1.1;
  }
  .navbar-toggler {
    margin-left: auto;
    margin-right: 0.1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }
  .language-selector {
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    border-radius: 50% !important;
    background: var(--verde-primario) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(12,171,164,0.10);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .language-selector span { display: none !important; }
  .dropdown-menu {
    min-width: 120px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .hero-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.13;
    text-align: center;
  }
  .hero-subtitle .lead {
    font-size: 0.89rem !important;
    margin-bottom: 0.12rem;
    text-align: center;
  }
  .hero-actions {
    margin-bottom: 0.5rem;
    gap: 0.4rem;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-liquid, .btn-outline {
    font-size: 0.93rem;
    padding: 8px 0;
    width: 100%;
    border-radius: 16px;
  }
  .services-preview {
    gap: 0.08rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
  }
  .service-tag {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 7px;
    margin-bottom: 0.05rem;
  }
  .scroll-indicator {
    margin-top: 0.5rem;
  }
}

/* Animaciones de scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Utilidades */
.text-gradient {
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-verde {
  box-shadow: 0 10px 30px rgba(12, 171, 164, 0.3);
}

.bg-gradient-verde {
  background: linear-gradient(135deg, var(--verde-primario), var(--verde-claro));
}

/* Preloader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.page-loader .loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

/* Efecto de brillo en textos importantes */
.hero h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Botones con efecto magnético */
.btn-liquid, .btn-modern {
  position: relative;
  z-index: 1;
}

.btn-liquid::after, .btn-modern::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--verde-primario), var(--azul-cientifico));
  border-radius: 50px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-liquid:hover::after, .btn-modern:hover::after {
  opacity: 0.5;
}

/* Mejoras en las imágenes */
section img {
  transition: all 0.3s ease;
  cursor: pointer;
}

section img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(12, 171, 164, 0.3);
}

/* Efecto de respiración para el WhatsApp */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.whatsapp-float {
  animation: breathe 3s ease-in-out infinite;
}

/* Mejora en los formularios */
.form-control {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  background: white;
  transform: translateY(-2px);
}

/* Efecto de hover mejorado para cards */
.glass-card {
  cursor: pointer;
  will-change: transform;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--verde-glass), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-card:hover::after {
  opacity: 1;
}

/* Animación especial para el logo */
.navbar-brand {
  position: relative;
}

.navbar-brand::before {
  content: '🔬';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.navbar-brand:hover::before {
  opacity: 1;
  left: -40px;
}

/* Efecto de brillo en el logo */
.logo-img {
  position: relative;
  overflow: hidden;
}

.logo-img::after {
  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;
}

.navbar-brand:hover .logo-img::after {
  left: 100%;
}

/* Efecto de partículas mejorado */
.particle {
  box-shadow: 0 0 10px currentColor;
  will-change: transform;
}

/* Mejora en la tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

.section-title {
  position: relative;
  padding-bottom: 1rem;
}

/* Efecto de subrayado animado para títulos */
.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--verde-primario);
  transition: width 0.5s ease;
}

.section-title:hover::before {
  width: 100px;
}

/* Mejoras en el responsive */
@media (max-width: 768px) {
  .glass-card {
    margin-bottom: 1.5rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-main-logo {
    width: 100px;
  }
  
  .hero-stats {
    gap: 1rem;
    justify-content: center;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .circle-animation {
    width: 200px;
    height: 200px;
  }
  
  .circle-1 { width: 200px; height: 200px; }
  .circle-2 { width: 140px; height: 140px; }
  .circle-3 { width: 90px; height: 90px; }
  
  .microscope-icon {
    font-size: 3rem;
  }
  
  .hero-actions {
    text-align: center;
  }
  
  .btn-liquid, .btn-outline {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Dark mode (opcional) */
@media (prefers-color-scheme: dark) {
  :root {
    --gris-claro: #1a1a1a;
    --gris-oscuro: #f8fafc;
  }
  
  body {
    background: #0a0a0a;
  }
  
  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .navbar,
  .whatsapp-float,
  .language-selector,
  .microscope-cursor,
  .micro-particles {
    display: none !important;
  }
  
  .hero {
    background: none;
    color: black;
    padding: 2rem 0;
  }
  
  .glass-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

.hero .container {
  max-width: 1140px;
} 

/* Estilos para las imágenes del hero */
.hero-images-container {
  padding: 2rem 0;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, rgba(12,171,164,0.1), rgba(60,198,224,0.1));
  padding: 8px;
}

.hero-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(12,171,164,0.35) !important;
}

.hero-image {
  transition: all 0.4s ease;
  border-radius: 15px;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
  filter: brightness(1.1) contrast(1.05);
}

/* Efecto de overlay sutil en hover */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12,171,164,0.1), rgba(60,198,224,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: 1;
}

.hero-image-wrapper:hover::before {
  opacity: 1;
}

/* Responsive para las imágenes del hero */
@media (max-width: 768px) {
  .hero-images-container {
    padding: 1rem 0;
  }
  
  .hero-image-wrapper {
    margin-bottom: 1rem;
  }
  
  .hero-image {
    height: 250px !important;
  }
  
  /* Servicios mobile */
  .section-services .glass-card {
    margin-bottom: 1rem;
    padding: 1.5rem !important;
  }
  
  .section-services .glass-card h5 {
    font-size: 1.1rem !important;
    line-height: 1.3;
  }
  
  .section-services .glass-card p {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }
  
  .section-services .service-icon {
    font-size: 2.2rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Quiénes Somos mobile */
  .quienes-somos .glass-card {
    margin-bottom: 1.5rem;
  }
  
  .quienes-somos img {
    max-width: 100%;
    height: auto;
  }
  
  /* Hero mobile mejorado */
  .hero-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle .lead {
    font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-liquid, .btn-outline {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .hero-image {
    height: 200px !important;
  }
  
  .hero-image-wrapper {
    padding: 4px;
  }
  
  /* Servicios mobile pequeño */
  .section-services .glass-card {
    padding: 1.25rem !important;
    margin-bottom: 0.75rem;
  }
  
  .section-services .glass-card h5 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .section-services .glass-card p {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  
  .section-services .service-icon {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Hero mobile muy pequeño */
  .hero-title {
    font-size: clamp(1rem, 3.5vw, 1.5rem) !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-subtitle .lead {
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    margin-bottom: 0.4rem !important;
  }
  
  .hero-main-logo {
    width: 80px !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Quiénes Somos mobile pequeño */
  .quienes-somos .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .quienes-somos .lead {
    font-size: 1rem !important;
    line-height: 1.5;
  }
  
  /* Servicios título mobile */
  .section-services .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .section-services .lead {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }
} 

/* Mejoras adicionales para el hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12,171,164,0.05), rgba(60,198,224,0.05));
  pointer-events: none;
  z-index: 0;
}

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

/* Animación sutil para las imágenes */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-image-wrapper {
  animation: float-gentle 6s ease-in-out infinite;
}

.hero-image-wrapper:nth-child(2) {
  animation-delay: 3s;
} 

/* Estilos para la imagen de Quiénes Somos */
.quienes-somos img {
  transition: all 0.3s ease;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(12,171,164,0.25);
}

.quienes-somos img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(12,171,164,0.35);
}

/* Estilos para el carrusel de fotos */
.section-galeria {
  background: linear-gradient(135deg, rgba(12,171,164,0.02), rgba(60,198,224,0.02));
  position: relative;
  padding: 3rem 0 !important;
}

.section-galeria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12,171,164,0.01), rgba(60,198,224,0.01));
  pointer-events: none;
  z-index: 0;
}

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

#carouselGaleria {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12,171,164,0.08);
  background: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carousel-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover .carousel-image-container img {
  transform: scale(1.02);
}

.carousel-indicators {
  bottom: 15px;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  border: 1px solid rgba(12,171,164,0.2);
  margin: 0 3px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: #0caba4;
  border-color: #0caba4;
  transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
  width: 35px;
  height: 35px;
  background: rgba(12,171,164,0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(12,171,164,0.8);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
  .carousel-image-container {
    height: 250px;
  }
  
  #carouselGaleria {
    max-width: 500px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 30px;
    height: 30px;
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  .carousel-image-container {
    height: 200px;
  }
  
  #carouselGaleria {
    max-width: 400px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 28px;
    height: 28px;
    margin: 0 8px;
  }
  
  .carousel-indicators button {
    width: 6px;
    height: 6px;
    margin: 0 2px;
  }
} 

/* Mejoras adicionales para mobile */
@media (max-width: 768px) {
  /* Mejor espaciado general */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Cards más compactas */
  .glass-card {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(12, 171, 164, 0.1) !important;
  }
  
  /* Mejor legibilidad de textos */
  .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  
  /* Botones más táctiles */
  .btn-liquid, .btn-outline {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mejor navegación */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Imágenes responsive */
  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  /* Espaciado más compacto */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Cards aún más compactas */
  .glass-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  
  /* Títulos más pequeños */
  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Mejor espaciado entre secciones */
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Botones full width */
  .btn-liquid, .btn-outline {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Mejor navegación mobile */
  .navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
  }
  
  /* Mejor legibilidad */
  body {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Layout específico para servicios en mobile */
@media (max-width: 768px) {
  .section-services .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .section-services .col-md-6,
  .section-services .col-lg-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Mejor distribución de servicios */
  .section-services .glass-card {
    height: auto !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .section-services .glass-card .service-icon {
    flex-shrink: 0;
  }
  
  .section-services .glass-card h5 {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
  }
  
  .section-services .glass-card p {
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .section-services .glass-card {
    min-height: 180px;
    padding: 1rem !important;
  }
  
  .section-services .glass-card h5 {
    font-size: 0.95rem !important;
    min-height: 2.5rem;
    line-height: 1.2;
  }
  
  .section-services .glass-card p {
    font-size: 0.8rem !important;
    line-height: 1.3;
  }
  
  .section-services .service-icon {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
  }
} 

/* Estilos para el carrusel mobile */
#carouselGaleriaMobile {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12,171,164,0.08);
  background: rgba(255,255,255,0.95);
  max-width: 100%;
  margin: 0 auto;
}

#carouselGaleriaMobile .carousel-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

#carouselGaleriaMobile .carousel-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#carouselGaleriaMobile .carousel-item:hover .carousel-image-container img {
  transform: scale(1.02);
}

#carouselGaleriaMobile .carousel-indicators {
  bottom: 15px;
}

#carouselGaleriaMobile .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  border: 1px solid rgba(12,171,164,0.2);
  margin: 0 3px;
  transition: all 0.3s ease;
}

#carouselGaleriaMobile .carousel-indicators button.active {
  background-color: #0caba4;
  border-color: #0caba4;
  transform: scale(1.1);
}

#carouselGaleriaMobile .carousel-control-prev,
#carouselGaleriaMobile .carousel-control-next {
  width: 35px;
  height: 35px;
  background: rgba(12,171,164,0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

#carouselGaleriaMobile .carousel-control-prev:hover,
#carouselGaleriaMobile .carousel-control-next:hover {
  background: rgba(12,171,164,0.8);
  transform: translateY(-50%) scale(1.05);
}

#carouselGaleriaMobile .carousel-control-prev-icon,
#carouselGaleriaMobile .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 576px) {
  #carouselGaleriaMobile .carousel-image-container {
    height: 200px;
  }
  
  #carouselGaleriaMobile .carousel-control-prev,
  #carouselGaleriaMobile .carousel-control-next {
    width: 28px;
    height: 28px;
    margin: 0 8px;
  }
  
  #carouselGaleriaMobile .carousel-indicators button {
    width: 6px;
    height: 6px;
    margin: 0 2px;
  }
} 

/* Estilos específicos para iOS */
@supports (-webkit-touch-callout: none) {
  /* Correcciones específicas para Safari en iOS */
  
  /* Fix para flexbox en iOS */
  .row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .col-md-6, .col-lg-4, .col-12 {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }
  
  /* Fix para glass-card en iOS */
  .glass-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
  
  /* Fix para secciones en iOS */
  .section-services, .section-asesoramiento {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Fix para imágenes en iOS */
  img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Fix para botones en iOS */
  .btn-liquid, .btn-outline, .btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Fix para formularios en iOS */
  input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
  }
  
  /* Fix para scroll en iOS */
  body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  /* Fix para animaciones en iOS */
  .glass-card:hover {
    -webkit-transform: translateZ(0) scale(1.02);
    transform: translateZ(0) scale(1.02);
  }
  
  /* Fix para carrusel en iOS */
  .carousel-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Fix para navegación en iOS */
  .navbar-nav .nav-link {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix para iconos en iOS */
  .service-icon i {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Fix para gradientes en iOS */
  .section-services {
    background: -webkit-linear-gradient(180deg, 
      rgba(248, 250, 252, 1) 0%, 
      rgba(248, 250, 252, 0.98) 50%, 
      rgba(12, 171, 164, 0.02) 100%);
    background: linear-gradient(180deg, 
      rgba(248, 250, 252, 1) 0%, 
      rgba(248, 250, 252, 0.98) 50%, 
      rgba(12, 171, 164, 0.02) 100%);
  }
  
  .section-asesoramiento {
    background: -webkit-linear-gradient(180deg, 
      rgba(248, 250, 252, 1) 0%, 
      rgba(87, 158, 210, 0.03) 50%, 
      rgba(12, 171, 164, 0.02) 100%);
    background: linear-gradient(180deg, 
      rgba(248, 250, 252, 1) 0%, 
      rgba(87, 158, 210, 0.03) 50%, 
      rgba(12, 171, 164, 0.02) 100%);
  }
  
  /* Fix para texto en iOS */
  .section-title, h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* Fix para contenedores en iOS */
  .container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  /* Fix para cards de servicios en iOS */
  .section-services .glass-card {
    -webkit-box-shadow: 0 8px 32px rgba(12, 171, 164, 0.1);
    box-shadow: 0 8px 32px rgba(12, 171, 164, 0.1);
    -webkit-border-radius: 20px;
    border-radius: 20px;
  }
  
  /* Fix para asesoramiento en iOS */
  .section-asesoramiento .glass-card {
    -webkit-box-shadow: 0 8px 32px rgba(87, 158, 210, 0.1);
    box-shadow: 0 8px 32px rgba(87, 158, 210, 0.1);
    -webkit-border-radius: 20px;
    border-radius: 20px;
  }
}

/* Media queries específicas para iOS */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  /* Estilos para dispositivos Retina */
  .glass-card {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  
  .section-title {
    font-weight: 600;
  }
}

/* Fix para Safari en iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .section-services, .section-asesoramiento {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  .glass-card {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
} 

/* Correcciones adicionales para iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Fix para layout de servicios en iOS */
  .section-services .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .section-services .col-md-6,
  .section-services .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Fix para asesoramiento en iOS */
  .section-asesoramiento .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .section-asesoramiento .col-md-6,
  .section-asesoramiento .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Fix para glass-card en iOS */
  .glass-card {
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Fix para iconos en iOS */
  .service-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .service-icon i {
    font-size: 2.5rem;
    color: #0caba4;
  }
  
  /* Fix para texto en iOS */
  .glass-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .glass-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
  }
  
  /* Fix para títulos de sección en iOS */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Fix para descripción de sección en iOS */
  .section-services .lead,
  .section-asesoramiento .lead {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fix específico para Safari en iOS */
@supports (-webkit-touch-callout: none) {
  .section-services,
  .section-asesoramiento {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
  }
  
  .section-services::before,
  .section-asesoramiento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
  }
  
  /* Fix para contenedores en iOS */
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Fix para responsive en iOS */
  @media (max-width: 768px) {
    .section-services .row,
    .section-asesoramiento .row {
      margin-left: -5px;
      margin-right: -5px;
    }
    
    .section-services .col-md-6,
    .section-asesoramiento .col-md-6 {
      padding-left: 5px;
      padding-right: 5px;
    }
    
    .glass-card {
      margin-bottom: 15px;
      min-height: 180px;
    }
    
    .section-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    .section-services .lead,
    .section-asesoramiento .lead {
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }
  }
  
  @media (max-width: 576px) {
    .section-services,
    .section-asesoramiento {
      padding: 2rem 0;
    }
    
    .glass-card {
      min-height: 160px;
      padding: 1.5rem;
    }
    
    .service-icon i {
      font-size: 2rem;
    }
    
    .glass-card h5 {
      font-size: 1rem;
    }
    
    .glass-card p {
      font-size: 0.85rem;
    }
  }
}

/* Estilos para el formulario de contacto */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Estilos para mensajes del formulario */
.alert {
  border-radius: 12px;
  border: none;
  padding: 15px 20px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert i {
  font-size: 1.1rem;
}

/* Estilos para el botón de envío */
#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#submitLoading {
  display: none;
}

#submitLoading i {
  margin-right: 8px;
}

/* Estilos para campos del formulario */
.form-control:focus {
  border-color: #0caba4;
  box-shadow: 0 0 0 0.2rem rgba(12, 171, 164, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}