/* ==========================================================================
   Dr. Enrique Rios - Cirujano Plástico
   Estilos principales y componentes personalizados (Inspirado en Clínica Ziegler)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #009BDF;       /* Cyan Ziegler */
  --secondary: #005EAD;     /* Azul Médico */
  --dark: #00396A;          /* Azul Marino Profundo */
  --dark-hover: #00274a;
  --neutral-black: #111827;
  --neutral-gray: #64748b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--neutral-black);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Tipografía médica refinada */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Transición suave para Header Sticky estilo Ziegler */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(0, 57, 106, 0.08);
}

#site-header.header-scrolled .nav-link {
  color: var(--neutral-black);
}

#site-header.header-scrolled .header-separator {
  background-color: #e5e7eb;
}

#site-header.header-transparent .nav-link {
  color: #ffffff;
}

#site-header.header-transparent .nav-link:hover {
  color: var(--primary);
}

#site-header.header-transparent .header-separator {
  background-color: rgba(255, 255, 255, 0.2);
}

#site-header.header-transparent .cta-link {
  color: #ffffff;
}

#site-header.header-scrolled .cta-link {
  color: #374151;
}

/* Mega Menú estilo Ziegler */
.megamenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  pointer-events: none;
}

.has-megamenu:hover .megamenu,
.megamenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.megamenu-tab.is-active {
  color: var(--dark);
  font-weight: 700;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  background-color: #f0f9ff;
}

/* Comparador interactivo Antes y Después */
.before-after-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  border-radius: 8px;
  box-shadow: 0 10px 30px -5px rgba(0, 57, 106, 0.12);
  background: #001f3b;
}

.before-after-container img {
  display: block;
  width: 100%;
  height: 640px;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 768px) {
  .before-after-container img {
    height: 340px;
  }
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  will-change: width;
}

.before-after-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
}

.before-after-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #ffffff;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 20;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

/* Área táctil extendida para fácil agarre en móviles */
.before-after-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  right: -20px;
  cursor: ew-resize;
}

.before-after-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23005EAD' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23005EAD' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: 4px center, 20px center;
  background-repeat: no-repeat;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.before-after-handle:hover::after,
.before-after-handle:active::after {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 155, 223, 0.4);
}

.before-after-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  background: rgba(0, 57, 106, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

.before-after-label.before {
  left: 20px;
}

.before-after-label.after {
  right: 20px;
}

/* Video responsive 16:9 para YouTube y multimedia */
.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL: FOTOS DE TODAS LAS ESPECIALIDADES Y BADGES ANTES/DESPUÉS
   ========================================================================== */
@media (max-width: 768px) {
  /* Reducir margen y relleno de la sección de fotos en todas las especialidades */
  #fotos-antes-despues {
    padding: 10px 6px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  #fotos-antes-despues h2 {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  #fotos-antes-despues p {
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  /* Reducir separación vertical (gap) entre fotos de la especialidad */
  #fotos-antes-despues .flex.flex-col {
    gap: 10px !important;
  }

  /* Tarjeta contenedora de cada foto de antes y después */
  #fotos-antes-despues .relative.rounded-2xl {
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 1px !important;
  }

  #fotos-antes-despues .gallery-trigger-img {
    border-radius: 7px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Reducir separación entre bloques principales en móvil */
  main.space-y-12 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem !important;
  }

  .gallery-before-after-wrapper {
    margin-bottom: 16px !important;
  }

  /* Reducir margen de fotos en el modal de carrusel */
  #gallery-carousel-modal .relative.max-w-5xl {
    margin-left: 4px !important;
    margin-right: 4px !important;
    width: calc(100% - 8px) !important;
    padding: 0 !important;
  }

  #gallery-carousel-modal img#carousel-img {
    border-radius: 8px !important;
    max-height: 85vh !important;
  }

  /* BADGES ANTES Y DESPUÉS (FOTOS DE ESPECIALIDADES, MODAL Y COMPARADOR):
     FONDO TRANSPARENTE Y TAMAÑO REDUCIDO */
  #fotos-antes-despues .relative > div[class*="top-4"][class*="left-4"],
  #fotos-antes-despues .relative > div[class*="top-4"][class*="right-4"],
  #fotos-antes-despues .absolute[class*="left-4"],
  #fotos-antes-despues .absolute[class*="right-4"],
  #gallery-carousel-modal .relative > div[class*="top-4"][class*="left-4"],
  #gallery-carousel-modal .relative > div[class*="top-4"][class*="right-4"],
  #gallery-carousel-modal .absolute[class*="left-4"],
  #gallery-carousel-modal .absolute[class*="right-4"],
  .before-after-label {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    font-size: 8px !important;
    line-height: 1 !important;
    padding: 1.5px 5px !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.95) !important;
  }

  /* Posicionamiento compacto de badges */
  #fotos-antes-despues .relative > div[class*="top-4"][class*="left-4"],
  #fotos-antes-despues .absolute[class*="left-4"],
  #gallery-carousel-modal .relative > div[class*="top-4"][class*="left-4"],
  #gallery-carousel-modal .absolute[class*="left-4"] {
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
    bottom: auto !important;
  }

  #fotos-antes-despues .relative > div[class*="top-4"][class*="right-4"],
  #fotos-antes-despues .absolute[class*="right-4"],
  #gallery-carousel-modal .relative > div[class*="top-4"][class*="right-4"],
  #gallery-carousel-modal .absolute[class*="right-4"] {
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
  }

  .before-after-label {
    top: auto !important;
    bottom: 6px !important;
  }

  .before-after-label.before {
    left: 6px !important;
    right: auto !important;
  }

  .before-after-label.after {
    right: 6px !important;
    left: auto !important;
  }
}

@media (max-width: 639px) {
  #fotos-antes-despues {
    padding: 8px 4px !important;
    border-radius: 10px !important;
  }

  #fotos-antes-despues .flex.flex-col {
    gap: 8px !important;
  }

  #fotos-antes-despues .relative.rounded-2xl {
    border-radius: 6px !important;
  }
}

/* ==========================================================================
   Carrusel de Galería Antes y Después (Swiper)
   ========================================================================== */
.grid-cols-\[1\.8fr_1fr\] > div {
  min-width: 0;
  max-width: 100%;
}

.gallery-before-after-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.before-after-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}

.before-after-carousel .swiper-slide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gallery-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #00396A;
  box-shadow: 0 4px 12px rgba(0, 57, 106, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  outline: none;
}

.gallery-nav-btn:hover {
  background-color: #009BDF;
  border-color: #009BDF;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 155, 223, 0.35);
}

.gallery-nav-btn.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Flechas del carrusel de galería antes y después en móvil: transparentes y reducidas */
@media (max-width: 768px) {
  .gallery-nav-btn {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(0, 57, 106, 0.35) !important;
    box-shadow: none !important;
    color: #00396A !important;
  }

  .gallery-nav-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .gallery-nav-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #009BDF !important;
    border-color: #009BDF !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .gallery-nav-btn:active {
    background-color: rgba(0, 155, 223, 0.1) !important;
    transform: scale(0.92) !important;
  }
}

.case-counter {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  margin: 0 !important;
}

.gallery-pagination .swiper-pagination-bullet:hover {
  background-color: #94a3b8;
  transform: scale(1.25);
}

.gallery-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 9999px;
  background-color: #009BDF;
  box-shadow: 0 0 10px rgba(0, 155, 223, 0.5);
}

/* Lightbox Modal */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 24, 48, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* Botón flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.floating-whatsapp .whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.floating-whatsapp .whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp .whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseWave 2s infinite;
  pointer-events: none;
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-tooltip {
  background: #ffffff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Indicadores y animaciones de Hero Ziegler */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sombra suave personalizada */
.shadow-ziegler {
  box-shadow: 0 15px 35px -5px rgba(0, 57, 106, 0.08), 0 5px 15px -3px rgba(0, 57, 106, 0.04);
}

/* ==========================================================================
   Hero Slider Dinámico (Dr. Enrique Ríos)
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 560px;
  max-height: 720px;
  background-color: #001733;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .hero-slider-wrapper {
    height: 90vh;
    min-height: 620px;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .hero-slider-wrapper {
    height: 94vh;
    min-height: 700px;
    max-height: none;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 15%;
  transform-origin: 80% center;
  transform: scale(1.05);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 768px) {
  .hero-slide-bg {
    object-position: 85% top;
    transform-origin: center center;
    transform: scale(1.06);
  }
}

/* Gradiente adaptativo del hero slider: vertical en móvil para lucir al doctor y horizontal en desktop */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #001428 0%, rgba(0, 20, 40, 0.94) 38%, rgba(0, 20, 40, 0.55) 60%, rgba(0, 20, 40, 0.12) 85%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-slide-overlay {
    background: linear-gradient(to right, rgba(0, 20, 40, 0.96) 0%, rgba(0, 39, 74, 0.82) 48%, rgba(0, 39, 74, 0.35) 75%, transparent 100%),
                linear-gradient(to top, rgba(0, 23, 51, 0.6) 0%, transparent 40%);
  }
}

.hero-slide-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Indicadores de paginación del slider (Dots estilo Ziegler) */
.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero-dot::after {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -10px;
  right: -10px;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-dot.is-active {
  width: 38px;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 155, 223, 0.6);
}

/* Flechas de navegación del slider */
.hero-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(0, 31, 59, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 30;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .hero-nav-btn {
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
  }

  .hero-nav-btn svg {
    width: 15px !important;
    height: 15px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  }
}

@media (max-width: 639px) {
  .hero-nav-btn {
    display: none !important;
  }
}

.hero-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 155, 223, 0.4);
}

/* ==========================================================================
   Sección de Perfil en 2 Columnas (Dr. Enrique Ríos)
   ========================================================================== */
.profile-doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(0, 155, 223, 0.08);
  border: 1px solid rgba(0, 155, 223, 0.25);
  color: var(--secondary);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 39, 74, 0.25);
  border: 5px solid #ffffff;
  background-color: #f1f5f9;
}

.doctor-photo-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-photo-card:hover img {
  transform: scale(1.03);
}

.doctor-experience-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 57, 106, 0.15);
}

/* ==========================================================================
   Carrusel de Eventos y Trayectoria (perfil-cirujano.html)
   ========================================================================== */
.events-slider-container {
  position: relative;
  width: 100%;
}

.events-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
}

.events-slide.is-active {
  display: block;
  opacity: 1;
  animation: fadeInEvent 0.45s ease forwards;
}

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

.events-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #00396A;
  box-shadow: 0 6px 18px rgba(0, 57, 106, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 20;
}

.events-nav-btn:hover {
  background-color: #009BDF;
  border-color: #009BDF;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 155, 223, 0.35);
}

.events-slide-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 640px) {
  .events-slide-img {
    aspect-ratio: auto;
    height: 500px;
  }
}

@media (min-width: 768px) {
  .events-slide-img {
    height: 570px;
  }
}

@media (min-width: 1024px) {
  .events-slide-img {
    height: 630px;
  }
}

/* Flechas de carruseles de fotos en dispositivos móviles: fondo transparente y tamaño reducido */
@media (max-width: 768px) {
  .events-nav-btn {
    top: 31.25vw;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  .events-nav-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  }

  .events-nav-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .events-nav-btn:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: scale(0.92) !important;
  }

  /* Flechas del carrusel modal de fotos en procedimientos */
  #carousel-prev,
  #carousel-next {
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
    left: 8px !important;
  }

  #carousel-next {
    left: auto !important;
    right: 8px !important;
  }

  #carousel-prev svg,
  #carousel-next svg {
    width: 16px !important;
    height: 16px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  }

  #carousel-prev:hover,
  #carousel-next:hover {
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
  }

  #carousel-prev:active,
  #carousel-next:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: scale(0.92) !important;
  }

  /* Flechas Swiper estándar si existieran */
  .swiper-button-prev,
  .swiper-button-next {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 14px !important;
  }
}

.events-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.events-dot:hover {
  background-color: #94a3b8;
  transform: scale(1.25);
}

.events-dot.is-active {
  width: 28px;
  background-color: #009BDF;
}

/* ==========================================================================
   Ajuste de espaciado y padding lateral para Tablets y Laptops
   (Aumenta el margen izquierdo/derecho para evitar que el contenido
    se vea pegado a los bordes de la pantalla)
   ========================================================================== */

/* Tablets (portrait y landscape intermedio: 640px a 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  div.max-w-\[1600px\],
  div.max-w-\[1360px\],
  div.max-w-\[1400px\],
  div[class*="max-w-[1600px]"],
  div[class*="max-w-[1360px]"],
  div[class*="max-w-[1400px]"] {
    padding-left: 2.25rem !important;  /* 36px (antes 24px) */
    padding-right: 2.25rem !important; /* 36px (antes 24px) */
  }
}

/* Laptops medianas / 11-13 pulgadas (1024px a 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  div.max-w-\[1600px\],
  div.max-w-\[1360px\],
  div.max-w-\[1400px\],
  div[class*="max-w-[1600px]"],
  div[class*="max-w-[1360px]"],
  div[class*="max-w-[1400px]"] {
    padding-left: 3rem !important;     /* 48px (antes 32px) */
    padding-right: 3rem !important;    /* 48px (antes 32px) */
  }
}

/* Laptops estándar y pantallas comunes / 14-16 pulgadas (1280px a 1599px) */
@media (min-width: 1280px) and (max-width: 1599px) {
  div.max-w-\[1600px\],
  div.max-w-\[1360px\],
  div.max-w-\[1400px\],
  div[class*="max-w-[1600px]"],
  div[class*="max-w-[1360px]"],
  div[class*="max-w-[1400px]"] {
    padding-left: 4.25rem !important;  /* 68px (antes 32px) */
    padding-right: 4.25rem !important; /* 68px (antes 32px) */
  }
}

/* Pantallas grandes y monitores de escritorio (>= 1600px) */
@media (min-width: 1600px) {
  div.max-w-\[1600px\],
  div.max-w-\[1360px\],
  div.max-w-\[1400px\],
  div[class*="max-w-[1600px]"],
  div[class*="max-w-[1360px]"],
  div[class*="max-w-[1400px]"] {
    padding-left: 3.5rem !important;   /* 56px */
    padding-right: 3.5rem !important;  /* 56px */
  }
}



