/* ==========================================================================
   HEALTHY WORKUP - NOSOTROS & CIRCULAR SCROLL GALLERY
   ========================================================================== */
/* Nota: las fuentes ya se cargan en el <head> del HTML con media=print onload.
   Este @import duplicado ha sido eliminado para evitar una petición de red extra. */


@property --rotate {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* --------------------------------------------------------------------------
   Section Root & Background Integration
   -------------------------------------------------------------------------- */
#about.about {
  position: relative;
  background-color: #ffffff;
  padding: 80px 0 20px 0;
  margin-top: 0;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ambient glow accent behind the section while maintaining stars background */
.hw-nosotros-ambient {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(81, 190, 213, 0.12) 0%, rgba(1, 30, 65, 0.03) 60%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure stars stay visible above ambient */
/* FIX 4: Las estrellas decorativas deben quedar DETRÁS del contenido.
   El hw-nosotros-content tiene z-index:3, las tarjetas tienen z-index:40.
   Bajamos las estrellas a z-index:1 para que nunca tapen texto ni tarjetas. */
#about #stars,
#about #stars2,
#about #stars3 {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.hw-nosotros-content {
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Header, Badges & Typography
   -------------------------------------------------------------------------- */
.hw-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(81, 190, 213, 0.15) 0%, rgba(11, 124, 147, 0.08) 100%);
  border: 1px solid rgba(81, 190, 213, 0.35);
  border-radius: 50px;
  color: #0b7c93;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(81, 190, 213, 0.12);
}

.hw-badge-tag i {
  color: #51bed5;
  font-size: 0.95rem;
}

.hw-titlepage h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #0f2b48;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.hw-title-accent {
  background: linear-gradient(135deg, #51bed5 0%, #011e41 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hw-title-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hw-title-divider .line {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #51bed5, rgba(81, 190, 213, 0.2));
}

.hw-title-divider .line.left {
  width: 50px;
}

.hw-title-divider .line.right {
  width: 90px;
}

.hw-title-divider i {
  color: #51bed5;
  font-size: 1.1rem;
  animation: hwHeartbeat 2.2s infinite ease-in-out;
}

.hw-lead-text {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: #0f2b48;
  line-height: 1.5;
  margin-bottom: 14px;
}

.hw-body-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #4a5568;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Value Pillars Grid
   -------------------------------------------------------------------------- */
.hw-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.hw-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(81, 190, 213, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(1, 30, 65, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-pillar-card:hover {
  transform: translateY(-4px);
  border-color: #51bed5;
  box-shadow: 0 12px 30px rgba(81, 190, 213, 0.15);
}

.hw-pillar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(81, 190, 213, 0.18) 0%, rgba(11, 124, 147, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7c93;
  font-size: 1.2rem;
}

.hw-pillar-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0 0 3px 0;
}

.hw-pillar-text p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Team / Nosotros Image Showcase
   -------------------------------------------------------------------------- */
.hw-photo-showcase {
  position: relative;
  padding: 10px;
}

.hw-photo-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(1, 30, 65, 0.12), 0 0 0 1px rgba(81, 190, 213, 0.25);
  background: #011e41;
  aspect-ratio: 961 / 720;
}

.hw-photo-frame img,
.hw-photo-frame video,
.hw-photo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  outline: none;
  background-color: #011e41;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-photo-frame:hover img,
.hw-photo-frame:hover video,
.hw-photo-frame:hover .hw-photo-video {
  transform: scale(1.02);
}

.hw-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 30, 65, 0.05) 0%, transparent 45%, rgba(1, 30, 65, 0.45) 80%, rgba(1, 30, 65, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

.hw-photo-badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #011e41;
  border: 1px solid rgba(81, 190, 213, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.hw-photo-badge-bottom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hw-badge-stat {
  display: flex;
  flex-direction: column;
}

.hw-badge-stat .number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #51bed5;
  line-height: 1;
}

.hw-badge-stat .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   CIRCULAR SCROLL GALLERY - Section Header & Sibling Flow Container
   -------------------------------------------------------------------------- */
.hw-jornadas-section {
  position: relative;
  background-color: #ffffff;
  padding-top: 56px; /* Requisito: padding-top de la sección 48–64px */
  padding-bottom: 48px;
  margin-top: 0;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hw-gallery-header-container {
  position: relative;
  z-index: 10;
}

.hw-gallery-intro {
  text-align: center;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 10;
}

.hw-gallery-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(81, 190, 213, 0.1);
  border: 1px solid rgba(81, 190, 213, 0.3);
  border-radius: 30px;
  color: #0b7c93;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hw-gallery-intro h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #011e41;
  margin-top: 0;
  margin-bottom: 10px; /* Requisito: margin entre título y subtítulo 8–12px */
  line-height: 1.2;
}

.hw-gallery-intro p {
  /* Requisito: max-width 640px, margin: 0 auto (2 líneas centradas y contenidas) */
  font-size: 1rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   CIRCULAR SCROLL GALLERY - Sticky Container & Scroll Track
   -------------------------------------------------------------------------- */
.hw-gallery-scroll-container {
  position: relative;
  width: 100%;
  height: clamp(840px, 86vh, 940px);
  min-height: 820px;
  /*
   * Requisito: Separación mínima de 48px entre la última línea del subtítulo
   * y el borde superior de la tarjeta activa.
   */
  margin-top: 52px;
  z-index: 2;
}

.hw-gallery-sticky-stage {
  --radius: clamp(460px, 46vw, 640px);
  --card-width: clamp(190px, 16.5vw, 250px);
  --card-height: calc(var(--card-width) * 1.34);
  --active-card-half-height: calc(var(--card-height) * 1.15 / 2);
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  background: radial-gradient(circle at 50% 90%, rgba(81, 190, 213, 0.18) 0%, rgba(255, 255, 255, 0) 65%);
  overflow: visible;
}

/* Fade out the bottom edge of the gallery wheel */
.hw-gallery-sticky-stage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 25;
}

/* --------------------------------------------------------------------------
   CIRCULAR SCROLL GALLERY - The Wheel & Cards Geometry (Half-Circle)
   -------------------------------------------------------------------------- */
.hw-circular-wrapper {
  --cards: 9;
  --arc-step: 20deg; /* 4 tarjetas a la izquierda, 1 al centro, 4 a la derecha = 160deg medio círculo superior */
  --card-width: clamp(190px, 16.5vw, 250px);
  --card-height: calc(var(--card-width) * 1.34);
  --radius: clamp(460px, 46vw, 640px);
  --active-card-half-height: calc(var(--card-height) * 1.15 / 2);

  position: absolute;
  width: calc(var(--radius) * 2);
  height: calc(var(--radius) * 2);

  /*
   * CORRECCIÓN DE RAÍZ:
   * En lugar de anclar el centro del círculo al 50% de la altura de la ventana
   * (lo que provocaba que la tarjeta activa sobresaliera hacia arriba hasta 120px
   * e invadiera el texto del encabezado), se ancla en:
   *   top = radio + mitad_de_altura_tarjeta_activa
   * Cuando la tarjeta activa (en 0°) se traslada en -radio, su borde superior
   * queda alineado exactamente a 0px del borde superior del contenedor carrusel.
   * Con el margin-top de 52px del contenedor, la separación con el subtítulo
   * es limpia, constante e inmune a las variaciones de altura de la pantalla.
   */
  top: calc(var(--radius) + var(--active-card-half-height));
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(var(--rotate-deg, 0deg));
  transition: transform 140ms cubic-bezier(0.1, 0.9, 0.2, 1);
  will-change: transform;
  pointer-events: auto;
  z-index: 20;
}

/* Fallback/standard support for CSS Animation Timeline if browser supports */
@supports (animation-timeline: view()) {
  .hw-gallery-scroll-container {
    view-timeline-name: --gallery-view;
    view-timeline-axis: block;
  }
}

/* Card Elements */
.hw-gallery-card {
  position: absolute;
  width: var(--card-width);
  height: var(--card-height);
  top: 50%;
  left: 50%;
  transform-origin: center center;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(1, 30, 65, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: #011e41;
  /* Transitions driven by CSS vars set from JS – no inline style thrashing */
  transition: filter 180ms ease, opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
  user-select: none;
  touch-action: pan-y;
  will-change: transform, opacity, filter;

  /* Distance-based blur & opacity computada en JS respecto al centro del medio círculo */
  --_blur: clamp(0px, calc(var(--card-dist, 0) * 8px), 3.5px);
  --_gray: clamp(0%, calc(var(--card-dist, 0) * 120%), 55%);
  --_opacity: clamp(0.6, calc(1 - var(--card-dist, 0) * 0.75), 1);
  filter: blur(var(--_blur)) grayscale(var(--_gray));
  opacity: var(--_opacity);

  /* Posicionamiento en el medio círculo superior: 
     La card 5 está en 0° (cima/centro). 
     Cards 1 a 4 a la izquierda (-80°, -60°, -40°, -20°). 
     Cards 6 a 9 a la derecha (+20°, +40°, +60°, +80°). */
  --card-angle: calc((var(--card-i, 5) - 5) * var(--arc-step, 20deg));
  transform: translate(-50%, -50%) rotate(var(--card-angle)) translateY(calc(var(--radius) * -1));
}

.hw-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}

/* Hover on non-active neighbor cards gives an inviting lift */
.hw-gallery-card:not(.is-active):hover {
  opacity: 0.98;
  filter: blur(0px) grayscale(0%);
  transform: translate(-50%, -50%) rotate(var(--card-angle)) translateY(calc(var(--radius) * -1)) scale(1.06);
  box-shadow: 0 20px 45px rgba(81, 190, 213, 0.32), 0 0 0 2px rgba(81, 190, 213, 0.7);
  z-index: 30;
}

/* Card Title/Caption Banner */
/* FIX 2: Gradiente más pronunciado para contraste WCAG AA.
   El degradado empieza desde el 25% con un azul muy oscuro para que
   el texto blanco (#fff) siempre sea legible sobre cualquier imagen.
   Se añade text-shadow y padding suficiente para que el texto no se corte. */
.hw-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Padding extra para que el texto no quede recortado en móvil */
  padding: 28px 12px 14px;
  /* Gradiente mucho más marcado: de transparente a #000e28 casi opaco */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 20, 60, 0.55) 35%,
    rgba(0, 20, 60, 0.82) 65%,
    rgba(0, 20, 60, 0.95) 100%
  );
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

/* FIX 2: Categoría en celeste claro con text-shadow para legibilidad */
.hw-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  /* Celeste claro más brillante para contraste WCAG AA sobre el dark overlay */
  color: #7ee8fa;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* FIX 2: Título en blanco puro con text-shadow sutil para contraste WCAG AA.
   display:-webkit-box + line-clamp en lugar de white-space:nowrap para que
   títulos largos se corten en 2 líneas en vez de cortarse horizontalmente. */
.hw-card-title {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0, 0, 0, 0.5);
  /* line-clamp a 2 líneas para que títulos largos no desborden */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active State for Top Card */
.hw-gallery-card.is-active {
  z-index: 40;
  filter: blur(0px) grayscale(0%) !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(var(--card-angle)) translateY(calc(var(--radius) * -1)) scale(1.15);
  box-shadow: 0 24px 60px rgba(81, 190, 213, 0.45), 0 0 0 3px #51bed5, 0 0 35px rgba(81, 190, 213, 0.4);
}

.hw-gallery-card.is-active .hw-card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   THE HEALTHY WORKUP HEART IN THE EXACT CENTER OF THE CIRCLE
   -------------------------------------------------------------------------- */
.hw-center-heart-container {
  --hub-size: clamp(170px, 16vw, 230px);
  position: absolute;
  /* Top anclado al inicio del hub para preservar la posición exacta del logo y anillos */
  top: calc(var(--card-height) * 1.15 + 43px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* The circular hub plate */
.hw-heart-hub {
  position: relative;
  width: var(--hub-size);
  height: var(--hub-size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f0f9fc 70%, #e1f3f9 100%);
  border: 4px solid rgba(81, 190, 213, 0.75);
  box-shadow: 0 14px 50px rgba(81, 190, 213, 0.35),
    0 0 0 12px rgba(81, 190, 213, 0.18),
    inset 0 0 35px rgba(81, 190, 213, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hw-heart-hub:hover,
.hw-center-heart-container:hover .hw-heart-hub {
  transform: scale(1.06);
  box-shadow: 0 20px 60px rgba(81, 190, 213, 0.5),
    0 0 0 16px rgba(81, 190, 213, 0.28),
    inset 0 0 40px rgba(81, 190, 213, 0.42);
}

/* The Heart SVG */
.hw-heart-svg {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(81, 190, 213, 0.38));
  animation: hwHeartbeat 1.9s infinite ease-in-out;
}

/* Glowing Expanding Pulse Rings */
.hw-heart-ring {
  position: absolute;
  top: calc(var(--hub-size) / 2);
  left: 50%;
  width: var(--hub-size);
  height: var(--hub-size);
  border-radius: 50%;
  border: 2px solid #51bed5;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: hwPulseRing 2.8s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
}

.hw-heart-ring.ring-2 {
  animation-delay: 1.4s;
}

/* Label below Heart */
.hw-heart-badge-label {
  margin-top: 18px;
  padding: 10px 28px;
  background: rgba(1, 30, 65, 0.92);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 30px;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  border: 1.5px solid rgba(81, 190, 213, 0.55);
  box-shadow: 0 8px 25px rgba(1, 30, 65, 0.25), 0 0 15px rgba(81, 190, 213, 0.2);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hw-heart-badge-label:hover,
.hw-center-heart-container:hover .hw-heart-badge-label {
  transform: translateY(2px);
  border-color: rgba(81, 190, 213, 0.8);
  box-shadow: 0 10px 30px rgba(81, 190, 213, 0.35);
}

/* --------------------------------------------------------------------------
   MOUSE / SCROLL INDICATOR (en columna vertical en flujo normal)
   -------------------------------------------------------------------------- */
.hw-mouse-indicator-wrap {
  position: relative;
  /* Requisito: debajo de la píldora con separación de 16-20px, nunca superpuesto */
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Requisito: separación entre ícono y texto de 12-16px */
  gap: 14px;
  z-index: 35;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.hw-mouse-indicator-wrap .mouse {
  width: 30px;
  height: 48px;
  color: #51bed5;
  display: block;
}

.hw-mouse-indicator-wrap span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #011e41; /* azul oscuro para óptimo contraste */
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); /* fondo semitransparente limpio */
  /* Requisito: padding de 6-10px 16-20px para que no se vea recortado */
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(81, 190, 213, 0.45);
  box-shadow: 0 4px 14px rgba(1, 30, 65, 0.08);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   MANUAL CONTROLS & COUNTER
   -------------------------------------------------------------------------- */
/* Controles en la esquina superior derecha del escenario del carrusel */
.hw-gallery-controls {
  position: absolute;
  top: 15px;
  right: clamp(15px, 3.5vw, 40px);
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(81, 190, 213, 0.35);
  box-shadow: 0 6px 20px rgba(1, 30, 65, 0.1);
  white-space: nowrap;
}

.hw-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(81, 190, 213, 0.4);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #011e41;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(1, 30, 65, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-control-btn:hover {
  background: #51bed5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(81, 190, 213, 0.3);
}

.hw-control-btn.is-disabled,
.hw-control-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(81, 190, 213, 0.2);
}

.hw-gallery-counter {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(1, 30, 65, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: #011e41;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL FOR FULL-RES IMAGES
   -------------------------------------------------------------------------- */
.hw-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.hw-lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.hw-lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-lightbox-modal.is-open .hw-lightbox-content {
  transform: scale(1);
}

.hw-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  object-fit: contain;
}

.hw-lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

.hw-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hw-lightbox-close:hover {
  color: #51bed5;
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes hwHeartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.08);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes hwPulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.85);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hw-photo-showcase {
    margin-top: 25px;
    padding: 0;
  }

  .hw-pillars-grid {
    grid-template-columns: 1fr;
  }

  .hw-gallery-sticky-stage {
    --radius: clamp(400px, 46vw, 560px);
    --card-width: clamp(170px, 19vw, 220px);
    --card-height: calc(var(--card-width) * 1.34);
    --active-card-half-height: calc(var(--card-height) * 1.15 / 2);
    padding-top: 0;
  }

  .hw-circular-wrapper {
    --card-width: clamp(170px, 19vw, 220px);
    --radius: clamp(400px, 46vw, 560px);
    --arc-step: 20deg;
    top: calc(var(--radius) + var(--active-card-half-height));
  }

  .hw-center-heart-container {
    --hub-size: clamp(150px, 18vw, 205px);
    top: calc(var(--card-height) * 1.15 + 21px);
    transform: translateX(-50%);
  }

  .hw-mouse-indicator-wrap {
    margin-top: 14px;
    gap: 12px;
  }

  .hw-mouse-indicator-wrap .mouse {
    width: 26px;
    height: 42px;
  }

  .hw-mouse-indicator-wrap span {
    font-size: 0.74rem;
    padding: 7px 16px;
  }

  /* Intro: margen normal en tablet */
  .hw-gallery-intro {
    margin: 0 auto;
  }

  /* Carrusel: separación mínima de 48px con el subtítulo */
  .hw-gallery-scroll-container {
    margin-top: 48px;
    height: clamp(740px, 80vh, 840px);
    min-height: 720px;
  }

  /* Controles en la esquina superior derecha */
  .hw-gallery-controls {
    top: 12px;
    right: 15px;
    bottom: auto;
    left: auto;
    transform: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hw-photo-badge-bottom {
    padding: 10px 12px;
    gap: 8px;
  }

  .hw-badge-stat .number {
    font-size: 1.1rem;
  }

  .hw-badge-stat .label {
    font-size: 0.68rem;
  }
}

@media (min-width: 1440px) {
  /* Controles en esquina superior derecha en pantallas grandes */
  .hw-gallery-controls {
    top: 20px;
    right: 40px;
    bottom: auto;
    left: auto;
    transform: none;
  }

  /* En pantallas grandes el subtítulo puede ser un poco más ancho */
  .hw-gallery-intro p {
    max-width: 800px;
  }
}

@media (max-width: 767px) {
  #about.about {
    padding-top: 50px;
  }

  .hw-jornadas-section {
    padding-top: 48px; /* Requisito: padding-top de la sección 48–64px */
    padding-bottom: 36px;
  }

  .hw-photo-badge-top {
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hw-photo-badge-bottom {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 14px;
    gap: 8px;
  }

  .hw-badge-stat .number {
    font-size: 1.05rem;
  }

  .hw-badge-stat .label {
    font-size: 0.65rem;
  }

  /* Intro en móvil: centrado y contenido */
  .hw-gallery-intro {
    margin: 0 auto;
  }

  .hw-gallery-intro h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 8px;
  }

  .hw-gallery-intro p {
    font-size: 0.93rem;
    max-width: 92%;
  }

  /* Buffer entre subtítulo y tarjeta en móvil */
  .hw-gallery-scroll-container {
    margin-top: 48px;
    height: clamp(660px, 78vh, 740px);
    min-height: 620px;
  }

  .hw-gallery-sticky-stage {
    --radius: clamp(330px, 52vw, 440px);
    --card-width: clamp(145px, 32vw, 190px);
    --card-height: calc(var(--card-width) * 1.34);
    --active-card-half-height: calc(var(--card-height) * 1.15 / 2);
    padding-top: 0;
  }

  .hw-circular-wrapper {
    --card-width: clamp(145px, 32vw, 190px);
    --radius: clamp(330px, 52vw, 440px);
    --arc-step: 20deg;
    top: calc(var(--radius) + var(--active-card-half-height));
  }

  .hw-center-heart-container {
    --hub-size: clamp(130px, 25vw, 175px);
    top: calc(var(--card-height) * 1.15 + 22px);
    transform: translateX(-50%);
  }

  /* Controles compactos en esquina superior derecha en móvil */
  .hw-gallery-controls {
    top: 10px;
    right: 12px;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 4px 8px;
    gap: 8px;
  }

  .hw-heart-badge-label {
    font-size: 0.84rem;
    padding: 8px 20px;
    letter-spacing: 1.6px;
  }

  .hw-mouse-indicator-wrap {
    margin-top: 10px;
    gap: 8px;
  }

  .hw-mouse-indicator-wrap .mouse {
    width: 24px;
    height: 38px;
  }

  .hw-mouse-indicator-wrap span {
    font-size: 0.7rem;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .hw-photo-frame {
    border-radius: 16px;
  }

  .hw-photo-badge-top {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.68rem;
  }

  .hw-photo-badge-bottom {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 10px;
    gap: 4px;
  }

  .hw-badge-stat .number {
    font-size: 0.9rem;
  }

  .hw-badge-stat .label {
    font-size: 0.58rem;
    letter-spacing: 0.2px;
  }
}
