/* 
 * COMPONENTS CSS - Instituto de Córnea S.A.S.
 * Componentes reutilizables: Navbar, Botones, Cards, Carruseles, Footer, Formularios
 * 
 * NOTA: Las variables CSS están en tokens.css
 *       El reset y base están en base.css
 *       Los contenedores y layout están en layout.css
 */

/* Actualizar ruta de gradiente hero */
:root {
  --gradient-hero: url('/assets/img/pages/common/header-background.webp');
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand .logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.nav-brand .logo-placeholder i {
  font-size: 1.5rem;
  color: var(--primary-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.language-button .flag-icon {
  font-size: 1rem;
}

.language-button .language-code {
  letter-spacing: 0.04em;
}

.language-button:hover:not(.is-active):not(:disabled) {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.18);
}

.language-button.is-active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  cursor: default;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.language-button:disabled {
  cursor: default;
  opacity: 0.9;
}

.language-button:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-left: auto;
    margin-right: 0.75rem;
    gap: 0.35rem;
  }

  .language-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .language-button .flag-icon {
    font-size: 0.9rem;
  }
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}



.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero) no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Mejorar visualización en pantallas grandes */
@media (min-width: 1200px) {
  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-description {
    font-size: 1.3rem;
  }

  .carousel-container {
    height: 450px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3); /* Filtro blanco editable */
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-orange);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
  border: 2px solid var(--primary-orange);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #333 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mejorar legibilidad en pantallas medianas y grandes */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.8rem;
  }

  .hero-description {
    font-size: 1.25rem;
    max-width: 600px;
  }

  .section-header h2 {
    font-size: 2.8rem;
  }

  .section-header p {
    font-size: 1.25rem;
  }
}

.hero-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Carrusel del hero */
.hero-carousel {
  width: 100%;
  max-width: 500px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: left;
}

.slide-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slide-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-btn i {
  color: var(--primary-orange);
  font-size: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 50;
  position: relative;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
}

/* Botones de contacto estilo tarjeta */
.contact-buttons-hero {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-btn::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.6s;
  z-index: 1;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact-btn.whatsapp-btn {
  border-color: #25D366;
  position: relative;
}

.contact-btn.whatsapp-btn:hover {
  border-color: #128C7E;
  background: #f5f5f5;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.3);
}

.contact-btn.whatsapp-btn:hover .btn-icon {
  background: rgba(37, 211, 102, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.contact-btn.phone-btn {
  border-color: #007BFF;
}

.contact-btn.phone-btn:hover {
  border-color: #0056B3;
  background: #f5f5f5;
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.3);
}

.contact-btn.phone-btn:hover .btn-icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.contact-btn .btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.whatsapp-btn .btn-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.phone-btn .btn-icon {
  background: rgba(0, 123, 255, 0.1);
  color: #007BFF;
}

.contact-btn .btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.contact-btn .btn-label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.contact-btn .btn-subtitle {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.contact-btn .btn-number {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
}

/* Carrusel del hero para móviles */
.hero-visual-mobile {
  display: none;
  margin: 2rem 0;
}

.hero-visual-mobile .hero-carousel {
  max-width: 100%;
}

.hero-visual-mobile .carousel-container {
  height: 250px;
}



/* Logo mejorado */
.nav-brand {
  display: flex !important;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

.logo-container {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  visibility: visible;
  opacity: 1;
}

.logo-image {
  height: 45px;
  width: auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--gradient-primary);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
  color: white;
}
/* ==== FIX botón secundario (bordes limpios + sombra) ==== */
.btn.btn-secondary{
  background: var(--gradient-primary);
  color: #fff;
  border: none;                    /* quita el halo raro */
  border-radius: 14px;             /* pill más limpio (ajústalo si quieres) */
  background-clip: padding-box;    /* el gradiente no invade el "borde" */
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.35);
  isolation: isolate;              /* evita mezclas con fondos/pseudo-elementos */
  justify-content: center;         /* por si el texto se desalineaba */
}

/* pequeño "shine" interno sutil en vez del borde transparente */
.btn.btn-secondary::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 0 0 1px rgba(255,255,255,.12);
}

.btn.btn-secondary:hover{
  background: var(--gradient-secondary);
  transform: translateY(-1px);     /* -2px a veces acentúa el corte con overflow */
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.40);
  color: #fff;
}

.btn.btn-secondary:focus-visible{
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

/* ==== Sólo<bos>móvil: evita que el hero recorte la sombra del botón ==== */
@media (max-width: 768px){
  .hero{ overflow: visible; }      /* clave para que no "corte" la sombra */

  /* ancho cómodo en móvil + centrado */
  .hero .btn.btn-secondary{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Technology Section */
.technology-section {
  padding: var(--section-padding);
  background: var(--light-bg);
}

@media (min-width: 1024px) {
  .technology-section,
  .services-overview,
  .doctor-section {
    padding: var(--section-padding-desktop);
  }

  .contact-cta {
    padding: 2.5rem 0;
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-item {
  background: white;
  padding: 2rem;
  border-radius: var(--card-border-radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.tech-icon i {
  font-size: 2rem;
  color: white;
}

.tech-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.tech-item p {
  color: #666;
  line-height: 1.6;
}

/* Services Overview */
.services-overview {
  padding: var(--section-padding);
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 1.5rem 1.2rem;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-orange);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: white;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
}

/* Team Section */
.team-section {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.team-info h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.team-info p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.team-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-highlight {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-soft);
}

.team-highlight i {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.team-highlight h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.team-highlight p {
  font-size: 0.9rem;
  color: #666;
}

.team-visual {
  display: flex;
  justify-content: center;
}

.team-image {
  width: 100%;
  max-width: 450px;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
  border-radius: var(--card-border-radius);
  transition: transform 0.3s ease;
}

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

.team-placeholder {
  width: 350px;
  height: 400px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--card-border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
  color: #999;
  text-align: center;
  padding: 2rem;
}

.team-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

.team-placeholder h3 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.team-placeholder p {
  font-size: 0.9rem;
  color: #999;
}

/* Contact CTA */
.contact-cta {
  padding: var(--section-padding);
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

/* Map section styles for index.html */
.contact-cta .map-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cta .map-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0;
  text-align: center;
}

.contact-cta .map-container {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-cta .map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-cta .map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 23px;
  transition: all 0.3s ease;
}

.contact-cta .map-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 5;
  pointer-events: none;
}

.contact-cta .map-info-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-cta .map-info-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}
.map-caption {
  margin-top: .75rem;
  background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.map-caption h4 {
  margin: 0 0 .25rem 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.map-caption p {
  margin: 0;
  font-size: .95rem;
  opacity: .95;
}
.contact-cta .location-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 102, 0, 0.95);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
  z-index: 10;
}

.contact-cta .location-badge i {
  font-size: 1rem;
}

.contact-cta .map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  justify-content: center;
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-cta .map-directions-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

.contact-cta .map-directions-link i {
  font-size: 1.1rem;
}

.cta-header {
  text-align: center;
  margin-bottom: 4rem;
}

.cta-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  order: 1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  order: 2;
}

.map-container {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.15);
  background: white;
  border: 2px solid rgba(255, 102, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 33px;
  transition: all 0.3s ease;
}

.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 33px;
  transition: all 0.3s ease;
}

.map-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 5;
  pointer-events: none; 
}

.map-info-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.map-info-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

.location-badge {
  position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
  }
.location-badge i {
    font-size: 1.1rem;
  }

@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-section {
    order: 2;
  }

  .contact-info-section {
    order: 1;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contact-main-grid {
    gap: 2rem;
  }

  .contact-details {
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
  }

  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }

  .map-container {
    border-radius: 20px;
  }

  .map-container iframe {
    height: 280px;
    border-radius: 18px;
  }

  .map-section {
    display: block !important;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .cta-header h2 {
    font-size: 2rem;
  }

  .cta-header p {
    font-size: 1rem;
  }

  .map-info-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .location-badge {
    top: 15px;
    left: 15px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: left;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
  background: rgba(255, 255, 255, 0.2);
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-item p {
  opacity: 0.95;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo i {
  font-size: 1.5rem;
  color: var(--primary-orange);
}

.footer-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-right: 0.5rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-orange);
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-orange);
}

.footer-section ul li i {
  width: 16px;
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #999;
}

/* Responsive Design */
/* Additional tablet fixes */
@media (max-width: 1024px) {
  .team-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .visumax-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .hero-visual {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .contact-buttons-hero {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
  }

  .contact-btn {
    min-width: unset;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Testimonios en móvil */
  .testimonials-carousel .carousel-container {
    height: 350px;
  }

  .testimonial-slide {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonials-carousel .carousel-btn.prev {
    left: 10px;
  }

  .testimonials-carousel .carousel-btn.next {
    right: 10px;
  }

  /* Testimonios arrows mobile fix */
  .testimonial-arrow.left {
    left: 15px;
  }

  .testimonial-arrow.right {
    right: 15px;
  }

  .testimonial-arrow {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Team section mobile */
  .team-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .team-highlights {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .team-image {
    max-width: 100%;
  }

  .team-photo {
    max-height: 300px;
  }

  /* Optimizaciones adicionales para móviles */
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-header p {
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem 1.2rem;
    text-align: center;
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* VisuMax section mobile */
  .visumax-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visumax-visual {
    order: -1;
  }

  /* Experience stats mobile */
  .experience-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visumax-actions {
    flex-direction: column;
    align-items: center;
  }

  .visumax-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-visual-mobile .carousel-container {
    height: 200px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .slide-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .slide-overlay h3 {
    font-size: 1.1rem;
  }

  .slide-overlay p {
    font-size: 0.8rem;
  }

  .tech-item {
    padding: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1rem 0.8rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .hero-actions {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .btn {
    max-width: 260px;
    padding: 0.75rem 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Additional mobile fixes for 480px */
  .team-highlights {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .team-highlight {
    padding: 1.2rem 1rem;
  }

  .team-image {
    margin: 0 auto;
  }

  .team-photo {
    max-height: 250px;
  }

  /* Contact section improvements */
  .contact-main-grid {
    gap: 1.5rem;
  }

  .map-container {
    border-radius: 15px;
  }

  .map-container iframe {
    height: 250px;
    border-radius: 13px;
  }

  .map-info-overlay {
    padding: 1rem 0.8rem 0.8rem;
  }

  .map-info-overlay h4 {
    font-size: 1rem;
  }

  .map-info-overlay p {
    font-size: 0.8rem;
  }
}

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

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* Sección de Experiencia */
.experience-section {
  padding: var(--section-padding);
  background: var(--gradient-primary);
  color: white;
}

.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--card-border-radius);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #FFffff, #FFffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.3;
}

.experience-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.experience-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Sección VisuMax Hero */
.visumax-hero {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  overflow: hidden;
}

.visumax-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.visumax-info h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.visumax-info h3 {
  font-size: 1.4rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.visumax-benefits {
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
  color: #27AE60;
  font-size: 1.1rem;
  width: 20px;
}

.visumax-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.visumax-carousel {
  width: 100%;
  max-width: 500px;
}

.visumax-carousel .carousel-container {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.visumax-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.visumax-carousel .carousel-slide.active {
  opacity: 1;
}

.visumax-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visumax-carousel .carousel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.visumax-carousel .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  text-align: left;
}

.visumax-carousel .slide-overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.visumax-carousel .slide-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.visumax-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: auto;
}

.visumax-carousel .carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.visumax-carousel .carousel-btn.prev {
  left: 15px;
}

.visumax-carousel .carousel-btn.next {
  right: 15px;
}

.visumax-carousel .carousel-btn i {
  color: var(--primary-orange);
  font-size: 1rem;
}

.visumax-carousel .carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.visumax-carousel .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 50;
  position: relative;
}

.visumax-carousel .indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Testimonios Carrusel Rediseñado */
.testimonials-section {
  padding: 0.3rem 0;
  background: var(--light-bg);
}

.testimonials-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-main-container {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.testimonials-carousel .carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  background: white;
  overflow: hidden;
  padding-bottom: 90px;
}

.testimonials-carousel .carousel-track {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  animation: fadeInUp 0.7s;
}

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

.testimonial-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  margin: 2rem 1rem 1rem;
  position: relative;
}

/* Animación para los cards del carrusel */
.testimonial-card-modern {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 0.5s cubic-bezier(0.4,0,0.2,1),
    transform 0.5s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.4s;
  will-change: opacity, transform;
}

.testimonial-card-modern.center {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  z-index: 3;
  box-shadow: 0 16px 48px rgba(255,102,0,0.13), 0 2px 12px rgba(0,0,0,0.07);
  border: 2.5px solid var(--primary-orange);
}

.testimonial-card-modern.side {
  opacity: 0.6;
  transform: translateY(10px) scale(0.92);
  z-index: 1;
  filter: blur(1px);
  pointer-events: none;
}

.testimonial-card-modern.hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  z-index: 0;
  pointer-events: none;
}

.testimonials-navigation {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.testimonial-nav-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255,102,0,0.15);
  transition: background 0.3s, transform 0.3s;
}

.testimonial-nav-btn:hover {
  background: var(--primary-orange);
  transform: scale(1.1);
}

.testimonials-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.progress-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eee;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.progress-indicator.active {
  background: var(--primary-orange);
  transform: scale(1.2);
}

/* Previews */
.testimonials-preview {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 9;
}

.preview-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.preview-item.active {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
  transform: scale(1.15);
}

.preview-item:hover {
  background: var(--secondary-orange);
  color: white;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .testimonials-carousel .carousel-container {
    max-width: 98vw;
    min-height: 320px;
    padding-bottom: 100px;
  }
  .testimonial-card {
    padding: 1.5rem 0.7rem 1.2rem;
    margin: 1rem 0.2rem 0.5rem;
  }
  .testimonials-navigation {
    gap: 0.7rem;
    bottom: 12px;
  }
  .testimonials-preview {
    bottom: 48px;
    gap: 6px;
  }
}

/* Carrusel de testimonios tipo cards */
.testimonials-carousel-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0rem auto 1rem;
  max-width: 900px;
}

.testimonials-carousel-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 340px;
  position: relative;
  overflow: visible;
}

.testimonial-card-modern {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  padding: 1.5rem 1.8rem 1.2rem;
  text-align: center;
  min-width: 480px;
  max-width: 520px;
  margin: 0.1rem 1.5rem 0.1rem 1.5rem;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  transition: 
    box-shadow 0.4s,
    transform 0.4s,
    opacity 0.4s;
  position: relative;
  min-height: 280px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card-modern .stars {
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.testimonial-card-modern .testimonial-text {
  font-size: 0.85rem;
  color: #222;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex-grow: 1;
}

.testimonial-card-modern .author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-orange);
  margin-bottom: 0.3rem;
}

.testimonial-card-modern .author-treatment {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0;
}

.testimonial-card-modern.center {
  box-shadow: 0 16px 48px rgba(255,102,0,0.13), 0 2px 12px rgba(0,0,0,0.07);
  transform: scale(1.08);
  z-index: 3;
  border: 2.5px solid var(--primary-orange);
}

.testimonial-card-modern.side {
  opacity: 0.6;
  transform: scale(0.92);
  z-index: 1;
  filter: blur(1px);
  pointer-events: none;
}

.testimonial-card-modern.hidden {
  opacity: 0;
  transform: scale(0.8);
  z-index: 0;
  pointer-events: none;
}

.testimonial-arrow {
  background: none;
  color: var(--primary-orange);
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.3s, transform 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.testimonial-arrow.left {
  left: -30px;
}

.testimonial-arrow.right {
  right: -30px;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus {
  color: #ffb347;
  transform: translateY(-50%) scale(1.18);
  outline: none;
}

@media (max-width: 600px) {
  .testimonial-arrow {
    font-size: 2rem;
    left: -10px;
    right: -10px;
  }
}

/* Animaciones de slide para testimonios */
.testimonial-card-modern.slide-left {
  animation: testimonialSlideLeft 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card-modern.slide-right {
  animation: testimonialSlideRight 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes testimonialSlideLeft {
  from { opacity: 0; transform: translateX(60px) scale(0.96);}
  to   { opacity: 1; transform: translateX(0) scale(1.08);}
}
@keyframes testimonialSlideRight {
  from { opacity: 0; transform: translateX(-60px) scale(0.96);}
  to   { opacity: 1; transform: translateX(0) scale(1.08);}
}

.testimonial-card-modern .stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-card-modern .stars i {
    color: #FFD700;
    font-size: 1.3rem;
}

.testimonial-card-modern .testimonial-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
}

.testimonial-card-modern .author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.testimonial-card-modern .author-treatment {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-orange);
  border: 2px solid rgba(255, 102, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.testimonial-arrow:hover {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.testimonial-arrow:active {
  transform: translateY(-50%) scale(1.05);
  transition-duration: 0.1s;
}

.testimonial-arrow.left {
    left: 0;
}

.testimonial-arrow.right {
    right: 0;
}

.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    background: var(--primary-orange);
    transform: scale(1.3);
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonials-carousel-cards {
        margin: 0 60px;
    }

    .testimonial-card-modern {
        padding: 1.5rem 1.3rem 1.2rem;
        max-width: 90%;
        min-width: 300px;
        min-height: 260px;
        max-height: 300px;
    }

    .testimonial-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .testimonial-card-modern .testimonial-text {
        font-size: 0.8rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }

    .testimonial-card-modern .stars {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .testimonial-card-modern .author-name {
        font-size: 0.85rem;
    }

    .testimonial-card-modern .author-treatment {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel-cards {
        margin: 0 50px;
    }

    .testimonial-card-modern {
        padding: 1.3rem 1rem 1rem;
        min-width: 280px;
        min-height: 240px;
        max-height: 280px;
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;
    }

    .testimonial-card-modern .testimonial-text {
        font-size: 0.75rem;
        line-height: 1.25;
        -webkit-line-clamp: 3;
    }

    .testimonial-card-modern .stars {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .testimonial-card-modern .author-name {
        font-size: 0.8rem;
    }

    .testimonial-card-modern .author-treatment {
        font-size: 0.65rem;
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .testimonial-arrow.left {
        left: 10px;
    }

    .testimonial-arrow.right {
        right: 10px;
    }
}

/* Oculta carruseles de testimonios viejos */
.testimonials-carousel:not(.testimonials-carousel-wrapper) {
  display: none !important;
}

/* Testimonios Section - Estilos añadidos/modificados */
.testimonials-carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-main {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}


.preview-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.preview-info span {
  font-size: 0.75rem;
  color: #666;
  display: block;
  margin-top: 0.2rem;
}

.testimonials-main {
  grid-column: 2;
  grid-row: 1;
  position: relative;
}

.testimonial-card-main {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.testimonial-card-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.testimonial-card-main .stars {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.testimonial-card-main .stars i {
  color: #ffd700;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2.5rem;
  font-style: italic;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.author-treatment {
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.author-rating {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.testimonials-navigation {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-nav-btn {
  width: 60px;
  height: 60px;
  border: none;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary-orange);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-nav-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.testimonials-progress {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.progress-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-indicator.active {
  background: var(--gradient-primary);
  transform: scale(1.3);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.progress-indicator:hover {
  background: rgba(255, 107, 53, 0.7);
  transform: scale(1.2);
}

/* Botones flotantes (WhatsApp y Pagos) */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001; /* Z-index más alto para estar encima */
  animation: float 3s ease-in-out infinite;
}

.payments-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1001;
  animation: float 3s ease-in-out infinite;
}

/* Botón de volver arriba */
.back-to-top {
  position: fixed;
  bottom: 150px; /* Posicionado arriba del WhatsApp con más espacio */
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 998; /* Z-index menor que WhatsApp */
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
}

.back-to-top.show {
  display: flex;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.whatsapp-float-btn:hover::before {
  left: 100%;
}

.whatsapp-float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float-btn i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.whatsapp-text {
  white-space: nowrap;
}

.payments-float-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.35);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.payments-float-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.payments-float-btn:hover::before {
  left: 100%;
}

.payments-float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 102, 0, 0.55);
  color: white;
  text-decoration: none;
}

.payments-float-btn i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.payments-text {
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* ===========================
   NUEVA PÁGINA DE EXÁMENES 
   =========================== */

/* Hero moderno para exámenes */
.exams-hero-modern {
  background: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #9b59b6 100%);
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.9) 0%, rgba(155, 89, 182, 0.8) 100%);
  z-index: 1;
}

.exams-hero-modern .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.exams-hero-modern h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.feature-item i {
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-primary {
  background: white;
  color: var(--primary-orange);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  color: var(--primary-orange);
  text-decoration: none;
}

.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
  text-decoration: none;
}

.equipment-showcase {
  position: relative;
  text-align: center;
}

.equipment-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.equipment-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-orange);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

/* Sección de beneficios */
.why-choose-exams {
  padding: 5rem 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.benefit-card p {
  color: #666;
  line-height: 1.6;
}

/* Grid de exámenes */
.exams-showcase {
  padding: 5rem 0;
  background: white;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.exam-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.exam-card.featured {
  border: 2px solid var(--accent-color);
  transform: scale(1.02) translateZ(0);
}

.exam-card:hover {
  transform: translateY(-8px) scale(1.03) translateZ(0);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.exam-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.exam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
}

.exam-card:hover .exam-image {
  transform: scale(1.08) translateZ(0);
}

.exam-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
}

.exam-badge.popular {
  background: var(--accent-color);
  animation: pulse-badge 2s infinite;
}

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

.tech-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 15px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
}

.exam-card:hover .tech-badge {
  transform: translateY(-2px) scale(1.05) translateZ(0);
}

.exam-content {
  padding: 2rem;
}

.exam-tech-badge {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.exam-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.exam-subtitle {
  color: var(--primary-orange);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.exam-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.exam-benefits {
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.benefit-item i {
  color: #28a745;
  font-size: 0.9rem;
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.exam-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.exam-cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exam-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.exams-cta-section {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid #f0f0f0;
}

.exams-cta-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
}

/* Proceso de examen */
.exam-process {
  padding: 5rem 0;
  background: #f8f9fa;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-orange);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.step-item p {
  color: #666;
  line-height: 1.6;
}

/* CTA Final */
.exam-final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content > .cta-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-features .feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.cta-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #25d366;
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 15px;
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.cta-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.cta-primary-large i {
  font-size: 2rem;
}

.cta-primary-large span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-primary-large strong {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.cta-primary-large small {
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-options {
  display: flex;
  gap: 1rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-option:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

/* Galería del instituto */
.institute-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.institute-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* Estilos para tarjetas de navegación de cirugías */
.surgeries-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.surgery-nav-card {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  min-height: 200px;
}

.surgery-nav-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-orange);
  text-decoration: none;
  color: inherit;
}

.surgery-nav-card:hover .nav-icon {
  transform: translateY(-3px) scale(1.05);
}

.surgery-nav-card .nav-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.surgery-nav-card .nav-icon i {
  font-size: 1.5rem;
  color: white;
}

.surgery-nav-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

.surgery-nav-card p {
  color: #666;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

.nav-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--primary-orange);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.service-nav-card:hover .nav-arrow {
  color: var(--primary-orange);
  transform: translateX(5px);
}

/* Responsive para exámenes rediseñados */
@media (max-width: 768px) {
  .exams-hero-modern {
    padding: 4rem 0 3rem;
  }

  .exams-hero-modern .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .exams-hero-modern h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .equipment-image {
    height: 300px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .exams-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .contact-options {
    flex-direction: column;
  }

  .back-to-top {
    bottom: 170px; /* Más espacio en móvil */
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 1024px) {
  .surgeries-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .surgeries-hero h1 {
    font-size: 2.5rem;
  }

  .surgeries-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .surgery-nav-card {
    padding: 1.2rem 0.8rem;
    min-height: 180px;
  }

  .surgery-nav-card h4 {
    font-size: 1rem;
  }

  .surgery-nav-card p {
    font-size: 0.85rem;
  }

  .categories-grid {
    gap: 2rem;
  }

  .surgery-header {
    padding: 1.5rem;
  }

  .surgery-content {
    padding: 1.5rem;
  }

  .technique-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mel90-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .surgery-carousel .carousel-container {
    height: 250px;
  }

  .surgery-carousel .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .surgery-carousel .carousel-btn.prev {
    left: 10px;
  }

  .surgery-carousel .carousel-btn.next {
    right: 10px;
  }

  .benefits-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .surgeries-nav-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .surgery-nav-card {
    padding: 1rem;
    min-height: 160px;
  }
}

/* Responsive para el botón flotante */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 45px;
  }

  .whatsapp-float-btn i {
    font-size: 1.3rem;
  }

  .payments-float {
    bottom: 20px;
    left: 20px;
  }

  .payments-float-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 45px;
  }

  .payments-float-btn i {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float-btn {
    padding: 0.7rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .whatsapp-float-btn i {
    font-size: 1.8rem;
  }

  .payments-float {
    bottom: 15px;
    left: 15px;
  }

  .payments-float-btn {
    padding: 0.6rem;
    border-radius: 18px;
    width: 64px;
    height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
  }

  .payments-float-btn i {
    font-size: 1.8rem;
  }

  .whatsapp-text {
    display: none;
  }

  .payments-text {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    white-space: normal;
  }
}

/* ===== MOBILE: Experiencia en bullets compactos ===== */
@media (max-width: 768px) {
  .experience-section { padding: 2rem 0; }

  /* 1 columna y menos espacio en el contenedor */
  .experience-content { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Bullets compactos */
  .experience-stats { grid-template-columns: 1fr; gap: .5rem; }

  .stat-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: transparent;      /* fuera tarjetas gruesas */
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    text-align: left;
  }

  /* Check icon al inicio (usa Font Awesome ya cargado) */
  .stat-item::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-flex;
    width: 28px; height: 28px;
    border-radius: 50%;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.18);
  }

  /* Número pequeño, en línea */
  .stat-number {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    min-width: auto;
    background: none;
    -webkit-text-fill-color: #fff; /* conserva blanco */
    color: #fff;
  }

  /* Texto en una sola línea (ocultamos <br>) */
  .stat-label {
    font-size: .95rem;
    line-height: 1.2;
    opacity: .95;
  }
  .stat-label br { display: none; }

  /* Título y texto más compactos */
  .experience-text h2 { font-size: 1.4rem; margin-bottom: .75rem; }
  .experience-text p  { font-size: 1rem; line-height: 1.5; }
}

/* 2 columnas SOLO en tablets pequeñas para que sigan siendo cortos */
@media (min-width: 481px) and (max-width: 768px) {
  .experience-stats { grid-template-columns: repeat(2,1fr); }
}

/* Ajustes extra en muy pequeño */
@media (max-width: 480px) {
  .experience-stats { grid-template-columns: 1fr; max-width: 100%; margin: 0; }
}

/* CTA móvil para esta sección (opcional, ver paso 2) */
@media (max-width: 768px) {
  .experience-mobile-cta { margin-top: .5rem; }
  .experience-mobile-cta .btn { width: 100%; max-width: 360px; }
}
@media (min-width: 769px) {
  .experience-mobile-cta { display: none; }
}

/* Contact CTA Compact */
.contact-cta-compact {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.contact-cta-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 133, 51, 0.2) 100%);
  pointer-events: none;
}

.cta-content-compact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.cta-text p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.5;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

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

/* Responsive para CTA compacta */
@media (max-width: 1024px) {
  .cta-content-compact {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-cta-compact {
    padding: 2.5rem 0;
  }

  .cta-text h2 {
    font-size: 1.8rem;
  }

  .cta-text p {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-whatsapp,
  .btn-outline-white {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ===== FIX MOBILE: VisuMax 800 centrado y full width ===== */
@media (max-width: 768px) {
  /* Sección más compacta en móvil */
  .visumax-hero{ padding: 2rem 0; }

  /* 1 columna y separación moderada */
  .visumax-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Mueve el carrusel arriba y céntralo */
  .visumax-visual {
    order: -1;                /* carrusel antes del texto */
    display: flex;            /* habilita centrado */
    justify-content: center;  /* centra horizontal */
    width: 100%;
  }

  /* El carrusel toma todo el ancho disponible en móvil */
  .visumax-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;           /* evita que quede pegado a la izquierda */
  }

  /* Altura más baja para que no "ahogue" la pantalla */
  .visumax-carousel .carousel-container {
    width: 100%;
    height: 260px;            /* ajusta si quieres: 240–300px */
  }

  /* Overlay un poquito más legible en pantallas pequeñas */
  .visumax-carousel .slide-overlay h3 { font-size: 1rem; }
  .visumax-carousel .slide-overlay p  { font-size: .9rem; }

  /* Botones bajo el texto en formato ancho completo */
  .visumax-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .visumax-actions .btn {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* En teléfonos muy pequeños, baja un poco más la altura del carrusel */
@media (max-width: 420px) {
  .visumax-carousel .carousel-container { height: 220px; }
}


/* ===== MOBILE: Team highlights en cuadrícula 2x2 (4 items) ===== */
@media (max-width: 768px) {
  /* 2 columnas SIEMPRE en móvil */
  .team-highlights{
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .75rem !important;         /* menos espacio entre tarjetas */
    margin-bottom: 1rem !important; /* más compacto */
  }

  /* Tarjetas más pequeñas */
  .team-highlight{
    padding: .75rem .6rem !important;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    text-align: center;
  }

  /* Icono más chico */
  .team-highlight i{
    width: 36px; 
    height: 36px;
    font-size: 1rem;
    margin: 0 auto .5rem;
  }

  /* Títulos y texto compactos */
  .team-highlight h4{
    font-size: .95rem;
    margin-bottom: .25rem;
  }
  .team-highlight p{
    font-size: .82rem;
    line-height: 1.25;
    margin: 0;
  }
}

/* En teléfonos muy pequeños mantenemos 2 columnas, pero aún más compacto */
@media (max-width: 420px){
  .team-highlights{ gap: .6rem !important; }
  .team-highlight{ padding: .65rem .5rem !important; }
  .team-highlight h4{ font-size: .92rem; }
  .team-highlight p{ font-size: .8rem; }
}

/* ===== MOBILE: "Nuestro Equipo Especializado" más pequeño y limpio ===== */
@media (max-width: 768px){
  .team-section { 
    padding-top: 1.1rem !important; 
    padding-bottom: 1.1rem !important; 
  }

  .team-section .team-info h2{
    font-size: 1.18rem !important;
    line-height: 1.18 !important;
    margin: 0 0 .4rem !important;
    text-wrap: balance;
  }

  .team-section .team-info p{
    font-size: .92rem !important;
    line-height: 1.35 !important;
    max-width: 38ch;
    margin: 0 auto .25rem !important; /* centrado + menos aire */
    opacity: .9;
    text-wrap: pretty;
  }

  /* separa un poco del grid 2x2 si va justo debajo */
  .team-section .team-highlights{ margin-top: .6rem !important; }
}

/* teléfonos muy pequeños */
@media (max-width: 420px){
  .team-section .team-info h2{ font-size: 1.08rem !important; }
  .team-section .team-info p{ font-size: .88rem !important; max-width: 36ch; }
}

/* ===== MOBILE: Flechas centradas y a cada lado en testimonios ===== */
@media (max-width: 768px){
  .testimonials-section .testimonials-carousel-outer{
    position: relative;    /* ancla para posicionar flechas */
    width: 100%;
    min-height: 320px;     /* asegura altura para centrar vertical */
  }

  .testimonials-section .testimonials-carousel-cards{
    margin: 0 56px;        /* deja espacio para flechas */
    touch-action: pan-y;    /* permite scroll vertical y gestos */
  }

  .testimonials-section .testimonial-arrow{
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    z-index: 20;
  }
  .testimonials-section .testimonial-arrow.left{
    left: 8px !important;
    right: auto !important;
  }
  .testimonials-section .testimonial-arrow.right{
    right: 8px !important;
    left: auto !important;
  }
}

@media (max-width: 480px){
  .testimonials-section .testimonials-carousel-cards{ margin: 0 52px; }
}

/* ===== MOBILE: Testimonios - título y subtítulo más pequeños/estéticos ===== */
@media (max-width: 768px){
  .testimonials-section{ 
    padding-top: 1.2rem !important; 
    padding-bottom: 1.2rem !important; 
  }

  .testimonials-section .section-header{
    margin-bottom: .8rem !important;   /* menos "aire" debajo del título */
  }

  .testimonials-section .section-header h2{
    font-size: 1.35rem !important;     /* antes ~2.5–2.8rem */
    line-height: 1.15 !important;
    margin: 0 0 .5rem !important;
    letter-spacing: -0.01em;
    text-wrap: balance;                 /* saltos más bonitos */
  }

  .testimonials-section .section-header p{
    font-size: .98rem !important;      /* subtítulo más discreto */
    line-height: 1.35 !important;
    max-width: 36ch;                    /* ancho óptimo de lectura */
    margin: 0 auto .4rem !important;    /* centrado + compacto */
    opacity: .9;
    text-wrap: pretty;
  }
}

/* teléfonos MUY pequeños */
@media (max-width: 420px){
  .testimonials-section .section-header h2{ font-size: 1.22rem !important; }
  .testimonials-section .section-header p{ font-size: .92rem !important; max-width: 34ch; }
}

/* ===== MOBILE: "Nuestros Servicios Especializados" más pequeño y limpio ===== */
@media (max-width: 768px){
  .services-overview{
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  .services-overview .section-header{
    margin-bottom: .9rem !important;   /* menos aire debajo del título */
    text-align: center;
  }

  .services-overview .section-header h2{
    font-size: 1.35rem !important;     /* baja el título */
    line-height: 1.15 !important;
    margin: 0 0 .45rem !important;
    letter-spacing: -0.01em;
    text-wrap: balance;                 /* saltos más bonitos */
  }

  .services-overview .section-header p{
    font-size: .98rem !important;      /* subtítulo más discreto */
    line-height: 1.35 !important;
    max-width: 36ch;                    /* ancho óptimo de lectura */
    margin: 0 auto .4rem !important;    /* centrado + compacto */
    opacity: .9;
    text-wrap: pretty;
  }
}

/* teléfonos MUY pequeños */
@media (max-width: 420px){
  .services-overview .section-header h2{ font-size: 1.22rem !important; }
  .services-overview .section-header p{ font-size: .92rem !important; max-width: 34ch; }
}

/* Oculta la imagen del equipo SOLO en móvil */
@media (max-width: 768px){
  .team-section .team-visual,
  .team-section .team-image{
    display: none !important;
  }

  /* Compacta el espacio después del botón */
  .team-section{ padding-bottom: 1rem !important; }
}

/* ===== CTA Final: ¿Listo para mejorar su visión? ===== */
.cta-vision{
  background: var(--gradient-primary);   /* tu naranja */
  color: #fff;
  padding: 2.2rem 0;
  position: relative;
  overflow: hidden;
}

.cta-vision h2{
  font-size: 1.8rem;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 .6rem;
  text-wrap: balance;
}

.cta-vision .cta-subtitle{
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
  opacity: .95;
  max-width: 48ch;
  margin: 0 auto 1.1rem;
  text-wrap: pretty;
}

/* Tarjetas de contacto compactas y consistentes con tu UI */
.contact-quick-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.contact-card{
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: #0b0b0b;
  border-radius: 16px;
  padding: .75rem .9rem;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.contact-card h4{
  font-size: .95rem;
  margin: 0 0 .15rem;
  color: #0b0b0b;
}
.contact-card p{
  font-size: .86rem;
  line-height: 1.25;
  margin: 0;
  color: #525252;
}

.contact-card i{
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  color: #ff6a00; /* tono naranja de la marca */
  font-size: 1.1rem;
}

/* Destaque visual para WhatsApp en tarjetas */
.contact-card.whatsapp-card i{
  background: rgba(37, 211, 102, .15);
  color: #25D366;
}

/* CTA principal en verde WhatsApp pero con tu estética de pill + sombra */
.btn.btn-whatsapp{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 380px;
  margin: .25rem auto 0;
  background: linear-gradient(180deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(18, 140, 126, .35);
}
.btn.btn-whatsapp i{ font-size: 1.15rem; }

.btn.btn-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(18, 140, 126, .42);
}

/* Contenedor de acciones CTA centrado - Botones apilados verticalmente */
.cta-actions{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: .75rem;
}

/* ===== Botón de llamar idéntico al de WhatsApp pero en azul ===== */
.btn.btn-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 380px;
  margin: .25rem auto 0;
  background: linear-gradient(180deg, #007BFF, #0056B3);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 123, 255, .35);
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn.btn-phone i{ font-size: 1.15rem; }

.btn.btn-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 123, 255, .42);
  background: linear-gradient(180deg, #0056B3, #004085);
  color: #fff;
  text-decoration: none;
}
/* ===== CONTACTO: forzar que el formulario quede DEBAJO del mapa ===== */

/* La rejilla principal: dos columnas en desktop, una en móvil */
.contact-info-section .contact-content{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: start !important;
}

/* La columna derecha apila sus bloques (mapa -> formulario) */
.contact-info-section .contact-form-column{
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

/* Orden explícito por si alguna regla anterior los reordena */
.contact-info-section .contact-form-column .map-section{ order: 1 !important; }
.contact-info-section .contact-form-column .form-section{
  order: 2 !important;

  /* 🔧 Limpieza de "bugs" comunes: fuera posiciones raras */
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  margin-top: 0 !important;
  width: 100% !important;
  z-index: auto !important;
}

/* Un poco de aire bajo el botón de direcciones */
.contact-info-section .map-directions-link{ margin-top: .25rem; }

/* En pantallas pequeñas, todo a una columna (mapa arriba, form abajo) */
@media (max-width: 1024px){
  .contact-info-section .contact-content{ grid-template-columns: 1fr !important; gap: 2rem !important; }
}
/* --- Contacto: tarjetas compactas, limpias y consistentes --- */
.contact-cards { padding: var(--section-padding) 0; }

.contact-cards-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1024px){
  .contact-cards-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px){
  .contact-cards-grid{ grid-template-columns: 1fr; gap: 1rem; }
}

/* card */
.contact-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:#fff;
  border-radius:20px;
  padding:1.75rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border:none;                     /* quitamos el borde superior de color */
  position:relative;
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 220px;               /* misma altura visual */
}
.contact-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-medium); }

/* icono */
.contact-card .contact-icon{
  width:64px; height:64px;
  border-radius:50%;
  display:grid; place-items:center;
  margin:0 0 1rem;
  font-size:1.4rem;
}

/* paleta por tipo */
.whatsapp-card .contact-icon{ background: rgba(37,211,102,.14); color:#25D366; }
.phone-card    .contact-icon{ background: rgba(0,123,255,.14);  color:#0A66FF; }
.email-card    .contact-icon{ background: rgba(255,107,53,.16); color:var(--primary-orange); }

/* tipografías */
.contact-card h3{
  font-size:1.15rem;
  font-weight:700;
  letter-spacing:-.01em;
  margin:.35rem 0 .25rem;
  color:#222;
}
.contact-card p{
  font-size:.92rem;
  line-height:1.35;
  color:#5b5b5b;
  margin:0 0 .75rem;
}

/* número/enlace: una línea, fuerte y centrado */
.contact-number{
  display:inline-block;
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.01em;
  color:#1f2937;
  text-decoration:none;
  white-space:nowrap;     /* evita que el número se parta en 2 líneas */
}
.whatsapp-card .contact-number:hover{ color:#25D366; }
.phone-card    .contact-number:hover{ color:#0A66FF; }
.email-card    .contact-number:hover{ color:var(--primary-orange); }


/* ===== CONTACTO: íconos blancos en las tarjetas ===== */

/* Círculo de color sólido por tarjeta */
.whatsapp-card .contact-icon{ background:#25D366 !important; }
.phone-card    .contact-icon{ background:#0A66FF !important; }
.email-card    .contact-icon{ background:var(--primary-orange, #ff6a00) !important; }

/* Glifo en BLANCO (funciona con <i> de íconos o con SVG) */
.contact-card .contact-icon,
.contact-card .contact-icon i{
  color:#fff !important;                 /* <i class="..."> */
}

/* SVGs: asegurar relleno/trazo blanco */
.contact-card .contact-icon svg{
  width:1.4em; height:1.4em;
  color:#fff !important;
  fill:#fff !important;
  stroke:#fff !important;
}
.contact-card .contact-icon svg *{
  fill:#fff !important;
  stroke:#fff !important;
}

/* Opcional: si queda algún anillo/píxel tenue dentro del círculo, lo apagamos */
.contact-card .contact-icon > .ring,
.contact-card .contact-icon > .inner,
.contact-card .contact-icon > span[class*="ring"]{
  background: transparent !important;
  box-shadow: none !important;
}
/* ===== CONTACTO · Versión móvil compacta (3 cards visibles) ===== */
@media (max-width: 768px){

  .contact-cards{ padding: 1rem 0 !important; }

  .contact-cards-grid{
    grid-template-columns: 1fr !important;  /* una columna */
    gap: .6rem !important;                  /* menos espacio vertical */
  }

  /* Tarjeta más baja y ligera */
  .contact-card{
    padding: .9rem .9rem 1rem !important;
    min-height: clamp(120px, 28vh, 150px) !important; /* ← altura objetivo */
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.06) !important;
    border: none !important;                         /* sin franja de color arriba */
  }
  /* por si la franja era un pseudo-elemento */
  .contact-card::before{ content: none !important; }

  /* Icono más pequeño */
  .contact-card .contact-icon{
    width: 48px !important;
    height: 48px !important;
    margin: 0 0 .5rem !important;
  }

  /* Tipografías compactas */
  .contact-card h3{
    font-size: 1.05rem !important;
    margin: .2rem 0 .15rem !important;
  }
  .contact-card p{
    font-size: .88rem !important;
    line-height: 1.3 !important;
    margin: 0 0 .45rem !important;
  }
  .contact-number{
    font-size: 1rem !important;
    white-space: nowrap;
  }

  /* Elimina cualquier borde superior coloreado heredado */
  .whatsapp-card, .phone-card, .email-card{ border-top: none !important; }
}

@media (max-width: 420px){
  .contact-card{ min-height: 120px !important; }    /* aún más compacto en teléfonos pequeños */
  .contact-card .contact-icon{ width: 44px !important; height: 44px !important; }
  .contact-card h3{ font-size: .98rem !important; }
  .contact-number{ font-size: .95rem !important; }
}


/* ===== CONTACTO: Mobile fix (≤768px): nada se sale, todo compacto ===== */
@media (max-width: 768px){

  /* 0) Never scroll sideways */
  html, body{ overflow-x:hidden; }

  /* 1) Contenedores: padding y tipografías */
  .contact-hero h1,
  .contact-info-section .section-title,
  .map-section .section-title{ 
    font-size: clamp(1.5rem, 4.6vw, 1.9rem) !important;
    line-height: 1.1 !important;
    margin-bottom: .5rem !important;
  }
  .contact-hero p{ font-size: .98rem !important; }

  /* 2) Grid principal: una sola columna (izq arriba, mapa+form abajo) */
  .contact-info-section .contact-content{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    align-items: start !important;
  }
  .contact-info-section .info-column,
  .contact-info-section .contact-form-column{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3) Bloques de la columna izquierda (Dirección, Teléfonos, Horarios, Pagos) */
  .contact-info-section .info-box,
  .contact-info-section .contact-card-left,
  .contact-info-section .contact-block{
    padding: 1rem !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
  }
  .contact-info-section .info-box p,
  .contact-info-section .contact-block p{ margin: .25rem 0 !important; }
  .contact-info-section .info-box a{ word-break: break-word; }

  /* 4) Mapa siempre al ancho del contenedor */
  .map-section .map-card{ border-radius: 16px !important; overflow: hidden !important; }
  .map-section .map-embed,
  .map-section iframe{
    display:block !important;
    width: 100% !important;
    height: 320px !important;
    border: 0 !important;
  }
  .map-directions-link{
    width: 100% !important;
    padding: .9rem 1rem !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  /* 5) Formulario: 1 columna, inputs fluidos */
  .form-section .contact-form{ padding: 1rem !important; border-radius: 16px !important; }
  .form-section .form-grid,
  .form-section .form-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .85rem !important;
  }
  .form-section input[type="text"],
  .form-section input[type="tel"],
  .form-section input[type="email"],
  .form-section select,
  .form-section textarea{
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    padding: .9rem 1rem !important;
    border-radius: 12px !important;
  }
  .form-section textarea{ min-height: 140px !important; }

  /* 6) Consentimiento: que no se rompa y se lea */
  .form-section .consent,
  .form-section .consent-row{
    display: grid !important;
    grid-template-columns: 22px 1fr !important;
    gap: .65rem !important;
    align-items: start !important;
  }
  .form-section .consent input[type="checkbox"]{
    width: 20px; height: 20px; margin-top: .25rem;
  }
  .form-section .consent label{
    font-size: .95rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  /* 7) Botón enviar full-width, sin overflow */
  .form-section .btn-primary{
    width: 100% !important;
    font-size: 1rem !important;
    padding: .95rem 1rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  /* 8) Resets anti-overflow (emails/URLs largos, iframes, imgs) */
  .contact-info-section, 
  .contact-info-section *{
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
  .contact-info-section img,
  .contact-info-section iframe{ max-width:100%; height:auto; }
}

/* Extra micro-ajuste para teléfonos muy pequeños */
@media (max-width: 420px){
  .map-section iframe{ height: 280px !important; }
}

/* ✅ Consentimiento en una sola línea (desktop y móvil) */
.contact-form .checkbox-group .checkbox-label{
  display: flex !important;
  align-items: flex-start !important;
  gap: .75rem !important;
  line-height: 1.4 !important;
  font-size: 1rem;
  word-break: normal !important;
  white-space: normal !important;
  text-align: left !important;
}

.contact-form .checkbox-group .checkbox-label input[type="checkbox"]{
  width: 20px; 
  height: 20px;
  margin: .2rem 0 0 0; 
  flex-shrink: 0;
  min-width: 20px;
}

/* El texto del consentimiento debe fluir naturalmente */
.contact-form .checkbox-group .checkbox-label span:not(.checkmark){
  flex: 1;
  display: inline !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Evita la "tercera columna" causada por el span decorativo */
.contact-form .checkbox-group .checkbox-label .checkmark{
  display: none !important;
}

/* Link visible y coherente - mantiene el flujo del texto */
.contact-form .checkbox-group .checkbox-label a{
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 2px;
  display: inline !important;
  white-space: normal !important;
}
.contact-form .checkbox-group .checkbox-label a:hover{
  text-decoration: underline;
}

/* Micro-ajuste en móviles */
@media (max-width: 768px){
  .contact-form .checkbox-group .checkbox-label{
    font-size: .95rem;
    line-height: 1.4 !important;
    gap: .6rem !important;
  }

  .contact-form .checkbox-group .checkbox-label input[type="checkbox"]{
    width: 18px; 
    height: 18px;
    min-width: 18px;
  }
}

/* ================================
   VisuMax 800 – CSS from scratch (FIX)
   ================================ */

/* Variables con fallbacks por si no existen globales */
#visumax800 {
  --font-primary: var(--font-family-primary, "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --container-max-width: var(--container-max-width, 1200px);
  --visu-bg-1: #060a18;
  --visu-bg-2: #0b1020;
  --visu-txt: #e9edf7;
  --visu-muted: #98a2b3;
  --visu-card: rgba(255,255,255,.08);
  --visu-stroke: rgba(255,255,255,.12);
  --visu-accent: #bcd3ff;
  --accent-warm: #ff7a29;
  --btn-wa: #25d366;
  --btn-wa-text: #00160a;
}

/* Sección */
#visumax800.visu-section{
  color: var(--visu-txt);
  background: linear-gradient(180deg, var(--visu-bg-1) 0%, var(--visu-bg-2) 30%, var(--visu-bg-2) 100%);
  overflow: visible;
  font-family: var(--font-family-primary, var(--font-primary));
}

/* HERO */
#visumax800 .visu-hero{
  position: relative;
  min-height: 28vh;                     /* ↓ alto total */
  padding: 0 0 clamp(10px, 2vw, 24px); /* ↓ espacio inferior */
}

#visumax800 .visu-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04) brightness(.9);
}

#visumax800 .visu-gradient{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 78% 22%, color-mix(in oklab, var(--accent-warm) 30%, transparent), transparent 60%),
    radial-gradient(900px 500px at 18% 72%, color-mix(in oklab, var(--visu-accent) 26%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(6,10,24,.82), rgba(11,16,32,.9));
}

/* Contenido */
#visumax800 .visu-hero-inner{
  position: relative; z-index: 3;
  max-width: clamp(960px, 90vw, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 24px);
}

/* Grid 2 columnas */
#visumax800 .visu-hero-grid{
  display: grid;
  grid-template-columns: 1fr minmax(420px, 46%); /* ↓ columna derecha un poco */
  gap: clamp(16px, 3vw, 32px);
  align-items: center;                  /* << centrado vertical real */
}

/* Copy izq */
#visumax800 .visu-copy{ max-width: 600px; margin-left: min(4vw, 40px); }
#visumax800 .visu-title{ margin: 0 0 .4em; font-weight: 800; font-size: clamp(34px, 6vw, 58px); line-height: 1.06; letter-spacing: .2px; color: #fff; }
#visumax800 .visu-title .brand{ color: var(--visu-accent); }
#visumax800 .visu-subtitle{ margin: 0 0 1.1rem; max-width: 700px; font-weight: 500; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; color: #ffffff; }
#visumax800 .visu-cta{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
#visumax800 .btn{ font: inherit; line-height: 1; padding: 14px 22px; border-radius: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#visumax800 .btn.btn-whatsapp {
  background: var(--btn-wa);
  color: #ffffff; /* ← ahora texto blanco */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.3); /* sutil para mejor contraste */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#visumax800 .btn.btn-whatsapp:hover {
  transform: translateY(-2px); /* un poquito más de lift */
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35); /* glow más notorio */
}


/* Visual der: imagen + KPIs */
#visumax800 .visu-visual{
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

/* Imagen (tamaño controlado) */
#visumax800 .visu-float{ 
  position: relative; 
  pointer-events: none; 
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); 
  display: block !important;
  z-index: 2;
  visibility: visible;
  opacity: 1;
}
#visumax800 .visu-float img{
  width: clamp(520px, 38vw, 700px);     /* << más contenida */
  max-width: 100%;
  height: auto;
  display: block !important;
  position: relative;
  z-index: 2;
  visibility: visible;
  opacity: 1;
}

/* KPIs debajo del PNG */
#visumax800 .visu-kpis{
  margin: 14px 0 0;                     /* separación clara respecto al PNG */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
#visumax800 .visu-kpis li{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--visu-card); border: 1px solid var(--visu-stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
#visumax800 .kpi-num{ font-weight: 800; font-size: 18px; color: #fff; line-height: 1; }
#visumax800 .kpi-txt{ font-weight: 600; font-size: 12px; color: #667085; line-height: 1; }

/* Beneficios */
#visumax800 .visu-benefits{
  max-width: clamp(960px, 92vw, 1200px);
  margin: 40px auto;                    /* ↓ un poco para que no quede tan lejos */
  padding: 0 clamp(16px, 2vw, 24px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
#visumax800 .benefit{
  padding: 20px; border-radius: 18px;
  background: var(--visu-card); border: 1px solid var(--visu-stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
#visumax800 .benefit:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
#visumax800 .benefit .ico{ width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: linear-gradient(135deg, rgba(255,122,41,.18), rgba(188,211,255,.18)); }
#visumax800 .benefit .ico svg{ width: 22px; height: 22px; fill: #fff; opacity: .9; }
#visumax800 .benefit h3{ margin: 0 0 8px; font-weight: 700; font-size: 18px; color: #fff; }
#visumax800 .benefit p{ margin: 0; font-weight: 500; font-size: 14px; line-height: 1.55; color: var(--visu-muted); }

/* Responsivo */
@media (max-width: 1200px){
  #visumax800 .visu-hero-grid{ grid-template-columns: 1fr minmax(420px, 50%); }
  #visumax800 .visu-float img{ width: clamp(480px, 44vw, 680px); }
}
@media (max-width: 900px){
  #visumax800 .visu-hero-inner{ text-align: center; }
  #visumax800 .visu-hero-grid{ grid-template-columns: 1fr; align-items: center; }
  #visumax800 .visu-copy{ margin: 0 auto; }
  #visumax800 .visu-float{ margin: 12px auto 0; }
  #visumax800 .visu-float img{ width: min(92vw, 560px); }
  #visumax800 .visu-kpis{ justify-content: center; margin-top: 12px; }
  #visumax800 .visu-benefits{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  #visumax800 .visu-benefits{ grid-template-columns: 1fr; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  #visumax800 .visu-float img,
  #visumax800 .benefit { transition: none; }
}

@media (min-width: 920px){
  #visumax800 .visu-visual{
    align-self: start;
    margin-top: clamp(-32px, -5vw, -110px);  /* más arriba que antes pero seguro */
  }
  #visumax800 .visu-kpis{
    margin-top: 4px;  /* pegados al PNG */
  }
}

/* En <= 880px, no aplicar subida para evitar recortes en transiciones */
@media (max-width: 880px){
  #visumax800 .visu-visual{ margin-top: 0; }
}


/* ---- Overlap beneficios / hero ---- */
@media (min-width: 901px){
  /* Deja espacio en el hero para que los benefits se monten sin tapar nada */
  #visumax800 .visu-hero{
    position: relative;
    z-index: 1; 
    padding-bottom: 140px; /* crea "plataforma" para el solape */
  }

  /* Sube el contenedor de beneficios */
  #visumax800 .visu-benefits{
    position: relative;
    z-index: 2;
    margin-top: -100px;            /* mitad sobre el video, mitad en la zona azul */
    max-width: clamp(960px, 92vw, 1200px); /* mantiene el ancho sano */
  }

  /* Un pelín más de contraste sobre video */
  #visumax800 .benefit{
    background: rgba(15, 20, 35, .65);       /* un poco más sólido sobre el video */
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
  }
}

/* Ajuste fino para pantallas muy anchas (opcional) */
@media (min-width: 1400px){
  #visumax800 .visu-benefits{ margin-top: -120px; } /* sube un poco más */
}

/* En móviles/tablet pequeña no hacemos overlap para que no tape nada */
@media (max-width: 900px){
  #visumax800 .visu-hero{ padding-bottom: 60px; }
  #visumax800 .visu-benefits{ margin-top: 0; }
}


/* Más aire arriba solo en móvil */
@media (max-width: 900px){
  #visumax800 .visu-hero{
    /* sube si tu header es fijo (menu hamburguesa) */
    padding-top: calc(64px + env(safe-area-inset-top)); /* 64–72px suele ir bien */
    padding-bottom: 72px; /* un poco más para que no tape el botón flotante de WA */
    min-height: 34vh; /* opcional, para que respire */
  }
}

/* Botones en una fila desde 420px */
@media (min-width: 420px){
  #visumax800 .visu-cta{
    flex-wrap: nowrap;         /* 1 sola fila */
  }
  #visumax800 .visu-cta .btn{
    white-space: nowrap;       /* evita cortes raros */
  }
}

@media (max-width: 480px){
  #visumax800 .visu-cta{
    flex-direction: column; /* < apila verticalmente en móvil */
    align-items: center;    /* < centra horizontalmente */
    gap: 10px;              /* < espacio uniforme entre ellos */
  }
  
  #visumax800 .btn{
    width: 90%;             /* < que ocupen casi todo el ancho, centrados */
    justify-content: center;
  }
}
@media (min-width: 901px){
  #visumax800 .visu-kpis{
    margin-top: 0;  /* ↓ antes 10–14px */
  }
}

/* 1) La sección no debe recortar nada cuando subimos elementos */
#visumax800.visu-section{ overflow: visible; }

/* 2) Capas estables (video/gradiente detrás, contenido adelante) */
#visumax800 .visu-video    { position:absolute; inset:0; z-index:0; }
#visumax800 .visu-gradient { position:absolute; inset:0; z-index:1; }
#visumax800 .visu-hero-inner{ position:relative; isolation:isolate; z-index:2; }

/* 3) TODO sobre el video: ampliamos el "suelo" del hero y subimos los benefits */
@media (min-width: 920px){
  #visumax800 .visu-hero{
    padding-bottom: 320px; /* ↑ da altura de video suficiente para alojar los beneficios */
    overflow: visible;     /* por si usas márgenes negativos */
  }
  #visumax800 .visu-benefits{
    position: relative;
    z-index: 2;            /* por encima del gradiente */
    margin-top: -260px;    /* ↑ sube el grid hasta quedar dentro del área del video */
  }
}

/* 4) KPIs también sobre video, un poco más cerca del PNG */
@media (min-width: 920px){
  #visumax800 .visu-visual{ margin-top: clamp(-36px, -6vw, -120px); }
  #visumax800 .visu-kpis{ margin-top: 4px; position: relative; z-index: 2; }
}

/* 5) Transición suave a la franja azul (opcional, se ve pro) */
#visumax800 .visu-hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:120px; z-index:1;            /* debajo del contenido, sobre el video */
  pointer-events:none;
  background: linear-gradient(180deg,
              rgba(6,10,24,0) 0%,
              rgba(6,10,24,.35) 45%,
              rgba(11,16,32,.85) 100%);
}
/* Si subiste mucho los benefits, dale un poco más de altura al fade: height: 140-160px */
/* =========================
   Modo compacto (desktop)
   ========================= */
@media (min-width: 920px){
  /* 1) Menos alto útil del hero y menos aire lateral/vertical */
  #visumax800 .visu-hero{
    padding-bottom: 240px;         /* antes ~320px */
  }
  #visumax800 .visu-hero-inner{
    max-width: clamp(960px, 86vw, 1200px); /* un pelín más angosto */
    padding-inline: clamp(12px, 1.6vw, 20px);
  }

  /* 2) Grid más ceñido y PNG un poco más arriba */
  #visumax800 .visu-hero-grid{
    gap: clamp(12px, 2vw, 24px);   /* antes hasta 32px */
  }
  #visumax800 .visu-visual{
    margin-top: clamp(-28px, -5.5vw, -100px); /* sube discretamente el conjunto */
  }
  #visumax800 .visu-float img{
    width: clamp(500px, 34vw, 640px); /* baja ~5–10% el PNG */
  }

  /* 3) Tipografías hero un poco más compactas */
  #visumax800 .visu-title{
    font-size: clamp(32px, 5.2vw, 50px); /* antes 58px máx */
    margin-bottom: .32em;
  }
  #visumax800 .visu-subtitle{
    font-size: clamp(15px, 1.9vw, 18px);
    margin-bottom: .9rem;
    max-width: 620px; /* líneas algo más cortas */
  }

  /* 4) Botones: menos padding y separación */
  #visumax800 .visu-cta{
    margin-top: 14px;
    gap: 10px;
  }
  #visumax800 .btn{
    padding: 12px 18px;            /* antes 14x22 */
    border-radius: 12px;
  }

  /* 5) KPIs más pegados y comprimidos */
  #visumax800 .visu-kpis{
    margin-top: 2px;               /* antes 4–14px */
    gap: 10px;
  }
  #visumax800 .visu-kpis li{
    padding: 8px 12px;             /* antes 10x14 */
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
  }
  #visumax800 .kpi-num{ font-size: 16px; }
  #visumax800 .kpi-txt{ font-size: 11.5px; }

  /* 6) "Benefits" más arriba y con menos aire */
  #visumax800 .visu-benefits{
    margin-top: -220px;            /* súbelos al área del video (antes ~-260/-100) */
    margin-bottom: 28px;           /* antes 40px */
    gap: 14px;                     /* antes 18px */
  }
  #visumax800 .benefit{
    padding: 16px;                 /* antes 20px */
    border-radius: 16px;
  }
  #visumax800 .benefit h3{ font-size: 17px; margin-bottom: 6px; }
  #visumax800 .benefit p{ font-size: 13.5px; }

  /* 7) Fade inferior del video más corto (si lo estás usando) */
  #visumax800 .visu-hero::after{
    height: 90px; /* antes 120px */
  }
}

/* Tablet landscape intermedio (reduce un poco también) */
@media (min-width: 740px) and (max-width: 919px){
  #visumax800 .visu-hero{ padding-bottom: 120px; }
  #visumax800 .visu-float img{ width: clamp(420px, 46vw, 560px); }
  #visumax800 .visu-benefits{ margin-top: -80px; gap: 14px; }
}

/* Móvil: mantén el layout cómodo pero sin excesos */
@media (max-width: 739px){
  #visumax800 .visu-hero{
    padding-top: 56px;    /* si tu header fijo no es tan alto */
    padding-bottom: 56px; /* antes 72px */
    min-height: 30vh;     /* antes 34vh */
  }
  #visumax800 .visu-cta{ gap: 10px; }
  #visumax800 .btn{ padding: 12px 16px; }
}


/* ===== CTA Visión con formulario ===== */
.cta-vision {
  background: linear-gradient(135deg, #ff6600, #ff9c33);
  color: #fff;
  padding: 5rem 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-left h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-vision .cta-left h2,
.cta-vision .cta-left p {
  color: #fff;
}

.cta-left .cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-form {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cta-form h3 {
  color: var(--primary-orange);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-orange);
  outline: none;
  background: #fff;
}

#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-form {
    margin-top: 2rem;
  }
}

.phone-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.phone-group select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #333;
  width: 45%;
}

.phone-group input {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}


.contact-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  background: linear-gradient(135deg, #ff7a00, #ff5100);
  gap: 40px;
  flex-wrap: wrap;
}

.cta-left {
  background: #0a2a43;
  color: white;
  padding: 30px;
  border-radius: 20px;
  width: 600px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cta-left h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.cta-left p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 12px;
}

.info-item i {
  font-size: 1.2rem;
  color: #00b3ff;
  margin-top: 4px;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: white;
}

.info-item p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.3;
}

.map-container {
  margin: 15px 0;
  border-radius: 12px;
  overflow: hidden;
  height: 244px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn.call {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: white;
}

.btn.whatsapp {
  background: linear-gradient(90deg, #25d366, #128c7e);
  color: white;
}

.btn:hover {
  transform: scale(1.03);
}


/* ===================== SMILE PRO – SECCIÓN PREMIUM ===================== */
.smilepro-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: #f9fbff;
  color: #111;
}

.smilepro-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/pages/common/visumax-full.jpeg") center/cover no-repeat;
  filter: brightness(1.05) saturate(1.15);
  z-index: 0;
}

.smilepro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.93) 0%,
    rgba(255,255,255,0.96) 100%);
  z-index: 1;
}

/* ---------- CONTENEDOR ---------- */
.smilepro-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---------- TEXTO ---------- */
.smilepro-left h2 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #0072ce, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.smilepro-left .subtitle {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 3rem;
  max-width: 520px;
}

/* ---------- BOTONES CTA ---------- */
.cta-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  min-width: 220px;
  cursor: pointer;
}

/* WhatsApp */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37,211,102,0.35);
}

/* Llamar */
.btn-call {
  background: linear-gradient(90deg, #ff7a00, #ff6600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,102,0,0.3);
}
.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,102,0,0.35);
}

/* ---------- VIDEO ---------- */
.video-wrapper {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  margin-bottom: 2.2rem;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FACTS (LIQUID GLASS) ---------- */
.smilepro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.fact {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.fact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,114,206,0.1);
}
.fact.highlight {
  border: 1.5px solid #ff6600;
  box-shadow: 0 0 20px rgba(255,102,0,0.12);
}

.fact .icon {
  font-size: 1.6rem;
  color: #0072ce;
  flex-shrink: 0;
}
.fact.highlight .icon {
  color: #ff6600;
}
.fact h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #111;
}
.fact p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .smilepro-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .smilepro-left h2 { font-size: 2.8rem; }
  .video-wrapper { margin: 0 auto 2rem; }
  .cta-row { justify-content: center; }
  .smilepro-facts {
    flex-direction: column;
    align-items: center;
  }
  .fact {
    width: 90%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .smilepro-section { padding: 5rem 0; }
  .smilepro-left h2 { font-size: 2.3rem; }
  .smilepro-left .subtitle { font-size: 1.05rem; }
  .fact { min-width: 100%; }
}

/* ===================== PRESBYOND ===================== */
.presbyond-section {
  position: relative;
  color: #222;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
}

/* ---------- Fondo con imagen + degradado ---------- */
.presbyond-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/pages/common/paciente-visumax.jpg") center/cover no-repeat;
  z-index: 0;
  filter: blur(5px) brightness(0.9);
}

.presbyond-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,230,200,0.9) 70%);
  z-index: 1;
}

/* ---------- GRID PRINCIPAL ---------- */
.presbyond-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  color: #222;
}

/* ---------- TÍTULO GRADIENTE ---------- */
.gradient-title {
  font-size: 3.3rem;
  font-weight: 900;
  background: linear-gradient(90deg, #0072ce, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.gradient-title span {
  font-weight: 800;
}

/* ---------- TEXTO ---------- */
.presbyond-text .subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.presbyond-list {
  list-style: none;
  margin-bottom: 2rem;
  padding-left: 0;
}
.presbyond-list li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- BOTÓN CTA ---------- */
.btn-whatsapp {
  background: linear-gradient(90deg, #25d366, #1ebe5c);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ---------- GALERÍA DE VISIÓN ---------- */
.vision-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vision-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}
.vision-item:hover {
  transform: scale(1.03);
}
.vision-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(255,102,0,0.95) 0%, rgba(255,140,0,0.8) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.4rem 0;
}

/* ---------- FACTS (GLASS COMPACTO) ---------- */
.presbyond-facts {
  position: relative;
  z-index: 2;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.fact {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px) saturate(130%);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.fact:hover {
  transform: translateY(-3px);
}
.fact.highlight {
  border: 1.3px solid #ff6600;
}
.fact .icon {
  font-size: 1.4rem;
  color: #ff6600;
  margin-bottom: 0.3rem;
}
.fact h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.2rem;
}
.fact p {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .presbyond-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .vision-gallery {
    flex-direction: row;
    justify-content: center;
  }
  .vision-item img {
    height: 110px;
  }
  .presbyond-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .presbyond-section {
    padding: 4rem 0;
  }
  .gradient-title {
    font-size: 2.5rem;
  }
  .vision-gallery {
    flex-direction: column;
  }
  .presbyond-facts {
    grid-template-columns: 1fr;
  }
}
/* ===================== CATARATA ===================== */
.catarata-section {
  background: linear-gradient(90deg, #fdfdfd 0%, #fff6ee 70%);
  padding: 5rem 0 4rem;
  color: #222;
}

/* ---------- ENCABEZADO ---------- */
.catarata-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.catarata-header h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #0072ce, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.catarata-header p {
  max-width: 680px;
  margin: 0 auto;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- GRID PRINCIPAL ---------- */
.catarata-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.catarata-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.catarata-content h3 {
  color: #004fa3;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.catarata-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.catarata-list {
  list-style: none;
  padding: 0;
}
.catarata-list li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #444;
}

/* ---------- TARJETAS (CON FLIP) ---------- */
.procedimientos-catarata {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  perspective: 1000px;
}
.procedimiento-card {
  width: 250px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  cursor: pointer;
}
.procedimiento-card:hover {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.card-front img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card-front h4 {
  color: #ff6600;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
}
.card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta-catarata {
  text-align: center;
  margin-top: 2rem;
}
.btn-whatsapp {
  background: linear-gradient(90deg, #25d366, #1ebe5c);
  color: #fff;
  padding: 0.9rem 2.6rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  display: inline-block;
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .catarata-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .catarata-image img {
    max-width: 400px;
    margin: 0 auto 1.5rem;
  }
}
@media (max-width: 600px) {
  .procedimientos-catarata {
    display: none;
  }
  .catarata-list li {
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    margin: 0.4rem auto;
    width: 90%;
    text-align: left;
  }
}
/* ===== Submenú desplegable ===== */
.nav-item.dropdown {
  position: relative;
}

/* Oculta el checkbox */
.dropdown-checkbox {
  display: none;
}

/* Quitar flecha */
.dropdown-toggle::after {
  content: none;
}

/* Estilo base del submenú */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 1001;
}

.dropdown-item {
  padding: 0.7rem 1.2rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: white;
}

/* En escritorio: hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
}

/* ===== Mostrar subíndices fijos en móvil ===== */
@media (max-width: 768px) {
  .nav-menu {
    align-items: flex-start;
    text-align: left;
    padding-left: 2rem;
  }

  .nav-item.dropdown .dropdown-menu {
    position: static;
    display: flex !important; /* 🔸 siempre visible */
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    margin-top: 0.3rem;
    gap: 0.2rem;
  }

  .nav-item.dropdown .dropdown-item {
    font-size: 0.95rem;
    color: #777;
    padding: 0.3rem 0 0.3rem 1rem; /* sangría */
  }

  .nav-item.dropdown .dropdown-item:hover {
    color: var(--primary-orange);
    background: transparent;
  }

  /* Alinear los demás enlaces */
  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: #222;
  }
}
/* ===== Sección Supersalud ===== */
.carea-section {
  background: var(--light-bg);
  padding: 6rem 0;
}

.carea {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 3rem;
  line-height: 1.8;
  color: #333;
}

.carea h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carea p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.1rem;
}

.financial-list {
  list-style: none;
  padding: 0;
}

.financial-list li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.financial-list li::before {
  content: "📄";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
}

.financial-list a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
}

.financial-list a:hover {
  text-decoration: underline;
}
/* ===== CONSULTA TU PROCEDIMIENTO ===== */
.consulta-section {
  background: linear-gradient(135deg, #ff7b00, #ff914d);
  color: white;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.consulta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.consulta-text h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.consulta-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 550px;
}

.consulta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.consulta-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}

.consulta-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.consulta-item .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.consulta-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.consulta-item p {
  font-size: 1rem;
  color: #fdfdfd;
  line-height: 1.5;
}

.consulta-section .btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.consulta-section .btn-whatsapp:hover {
  transform: scale(1.05);
  background: #1ebe57;
}

/* Versión móvil */
@media (max-width: 768px) {
  .consulta-grid {
    grid-template-columns: 1fr;
  }
  .consulta-text {
    text-align: center;
  }
  .consulta-stats {
    grid-template-columns: 1fr 1fr;
  }
  .consulta-text h2 {
    font-size: 1.8rem;
  }
}
.mel90-image {
    width: 100%;
    height: auto;
    border-radius: var(--card-border-radius); /* Opcional, para bordes redondeados */
}


/* ==============================
   MOBILE FIXES
   ============================== */
@media (max-width: 992px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-left, .cta-form {
    width: 100%;
  }

  .cta-left {
    order: 1;
  }

  .cta-form {
    order: 2;
  }

  .cta-left h2 {
    text-align: center;
  }

  .cta-left p {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .info-item {
    align-items: center;
  }

  .info-item i {
    font-size: 1.2rem;
  }

  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .cta-form {
    padding: 1.8rem;
  }

  .form-row {
    flex-direction: column;
  }

  .cta-left h2 {
    font-size: 1.6rem;
  }

  .cta-left p {
    font-size: 1rem;
  }
}

/* Estilos específicos para la versión móvil de la sección de contacto */
@media (max-width: 768px) {
    /* Ajustes generales */
    .contact-info-section {
        padding: 2rem 1rem;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Ajustes para el mapa */
    .map-section {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 200px;
    }

    .map-directions-link {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    /* Ajustes para el formulario */
    .cta-form {
        padding: 1.5rem;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        gap: 0.3rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    /* Ajustes para el selector de país y teléfono */
    .phone-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #codigo-pais {
        width: 100%;
    }

    /* Ajustes para el estado del formulario */
    #form-status {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
  .tech-info h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .experience-section {
    padding: 3.5rem 0;
  }

  .experience-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experience-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .experience-text h2 {
    font-size: 2rem;
  }

  .experience-text p {
    font-size: 1rem;
  }

  .visu-hero {
    padding: 3.25rem 1.25rem;
  }

  .visu-hero-inner {
    padding: 0;
  }

  .visu-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visu-copy {
    text-align: center;
  }

  .visu-visual {
    order: -1;
  }

  .visu-kpis {
    justify-content: center;
    gap: 1.25rem;
  }

  .visu-kpis li {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .visu-cta,
  .visumax-actions,
  .benefit-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .visumax-actions .btn,
  .visu-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .visumax-carousel .carousel-container,
  .hero-carousel .carousel-container {
    height: 240px;
  }

  .services-grid,
  .facilities-grid,
  .visu-benefits {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card,
  .facility-item {
    padding: 1.75rem 1.5rem;
  }

  .team-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-visual .team-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .team-highlights {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .team-highlight {
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .team-highlight i {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.5rem;
  }

  .doctor-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }

  .doctor-photo {
    height: 220px;
  }

  .doctor-info h3 {
    font-size: 1.6rem;
  }

  .doctor-info h4 {
    font-size: 1.05rem;
  }

  .specialties-tags {
    gap: 0.5rem;
  }

  .tech-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tech-info h2 {
    font-size: 2rem;
  }

  .tech-info h3 {
    font-size: 1.1rem;
  }

  .tech-info p {
    font-size: 1.05rem;
  }

  .benefit-item {
    padding: 0.75rem;
    align-items: center;
  }

  .benefit-item i {
    font-size: 1.4rem;
  }

  .cta-content-compact {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  background: #f8f9fa;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  z-index: 100;
  margin-top: 0;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6c757d;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: #adb5bd;
}

.breadcrumb-list a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: #e55a00;
  text-decoration: underline;
}

.breadcrumb-list li:last-child span {
  color: #495057;
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-list {
    font-size: 0.8rem;
  }
}
