/* ========================================
   SOCIEDAD VENEZOLANA DE UROLOGÍA — SVU
   styles.css — Base, Reset, Variables, Tipografía
   Mobile-first approach
   ======================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Colors */
  --color-bg-light: #FFFFFF;
  --color-bg-dark: #111111;
  --color-accent: #F0C000;
  --color-accent-dark: #C9A000;
  --color-text-primary: #1A1A1A;
  --color-text-light: #FFFFFF;
  --color-text-muted: #666666;
  --color-border: #E5E5E5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Font sizes — fluid scale */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 1rem;
  --navbar-height: 4rem;

  /* Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-base: 0.3s ease-in-out;
}

/* ========== CSS RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ========== UTILITY — CONTAINER ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ========== UTILITY — SCREEN READER ONLY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== TYPOGRAPHY ========== */
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: scale(1.03);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.btn--secondary:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn--outline:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--register {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.btn--register:hover {
  background-color: var(--color-text-primary);
  color: var(--color-accent);
  border-color: var(--color-text-primary);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to left, #797672 0%, #000000 100%);
  z-index: 1000;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 85px;
}

/* --- Logo tipográfico SVU --- */
.navbar__logo-wrapper {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: -2px;
  line-height: 1;
  display: block;
}

/* Sello circular posicionado sobre la letra S */
.navbar__logo-seal {
  width: 143px;
  height: 143px;
  object-fit: contain;
  pointer-events: none;
  margin-top: -26px;
  margin-bottom: -26px;
}

/* --- Hamburger button — mobile --- */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar__hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation (CSS only, triggered by .nav-open on .navbar) */
.navbar.nav-open .navbar__hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar.nav-open .navbar__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar.nav-open .navbar__hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Nav links — mobile: hidden column, dark bg --- */
.navbar__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-dark);
  padding: 0 var(--container-padding);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out,
              opacity var(--transition-base);
}

/* Open state — mobile menu slide-down */
.navbar.nav-open .navbar__links {
  max-height: 20rem;
  opacity: 1;
}

/* Mobile link style: white text, bottom border */
.navbar__link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
  border-bottom: 1px solid #333333;
  transition: opacity 0.2s ease-in-out;
}

.navbar__link:hover {
  opacity: 0.75;
}

/* Mobile-only login link inside hamburger menu */
.navbar__mobile-login {
  display: block;
}

.navbar__link--accent {
  color: var(--color-accent) !important;
  font-weight: 700;
}

/* --- CTA "Inicia Sesión" — mobile: at end of menu, accent color --- */
.navbar__cta {
  display: none;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  margin-right: auto;
  transition: color 0.2s ease-in-out;
}

.navbar__cta:hover {
  color: var(--color-accent);
}

/* Mobile CTA — shown inside open menu */
.navbar.nav-open .navbar__cta {
  display: block;
  color: var(--color-accent);
  padding: 16px 0;
}

/* ========== HERO ========== */

/* --- Hero wrapper --- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to left, #9c9793 0%, #7a7673 40%, #62615f 60%, #585452 80%, #1c1c1a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-block: 0;
}

/* --- Capas de overlay desactivadas — se usa degradado directo en .hero --- */
.hero__bg,
.hero__overlay,
.hero__overlay-lateral {
  display: none;
}

/* --- Contenido principal --- */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 40px;
  padding-bottom: 0;
}

/* --- Columna izquierda --- */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Logo hero grande --- */
.hero__logo-wrapper {
  position: relative;
  display: inline-block;
  line-height: 1;
  margin-bottom: 16px;
}

.hero__logo-text {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: -4px;
  line-height: 1;
  display: block;
}

.hero__logo-seal {
  width: 149px;
  height: 149px;
  object-fit: contain;
  pointer-events: none;
  margin-top: -20px;
  margin-left: 20px;
}

/* --- Título --- */
.hero__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.15;
  margin: -20px 0 24px 20px;
}

/* --- Subtítulo --- */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 40px 20px;
}

/* --- Botones --- */
.hero__buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: 20px;
}

.hero__btn-primary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-bg-dark);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  padding: 16px 36px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.hero__btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: scale(1.03);
}

.hero__btn-secondary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-light);
  background: transparent;
  border: 2px solid var(--color-text-light);
  border-radius: 50px;
  padding: 16px 36px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.hero__btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Imagen doctor — mobile: debajo del contenido --- */
.hero__doctor {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 400px;
  margin: 80px auto 0;
  object-fit: contain;
}

/* --- Stats bar --- */
.hero__stats {
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
  position: relative;
  z-index: 3;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__stat-number {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-bg-dark);
  letter-spacing: -1px;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-bg-dark);
  text-align: center;
}

/* Dividers — hidden in mobile column layout */
.hero__stat-divider {
  display: none;
}

/* ========== NUESTRA HISTORIA ========== */

.historia {
  background-color: var(--color-bg-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-3xl);
}

.historia__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow — "Quienes somos" */
.historia__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Grid: mobile = stacked, desktop = 2 columns */
.historia__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
}

/* Image wrapper with decorative frame */
.historia__image-wrapper {
  position: relative;
  width: 85%;
  max-width: 400px;
}

/* Yellow decorative rectangle behind */
.historia__image-frame {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 70%;
  height: 80%;
  background: var(--color-accent);
  z-index: 0;
}

/* Dark border offset on frame */
.historia__image-frame::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-bg-dark);
  z-index: 0;
}

.historia__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Text column */
.historia__text {
  text-align: center;
}

.historia__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.historia__description {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.historia__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-bg-dark);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  padding: 14px 32px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.historia__btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: scale(1.03);
}

/* ========== GOOGLE REVIEWS ========== */

.reviews {
  background-color: var(--color-bg-light) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-3xl) !important;
}

.reviews__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

/* Sidebar */
.reviews__sidebar {
  text-align: center;
}

.reviews__rating-label {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-sm);
}

.reviews__stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.reviews__count {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.reviews__google-logo {
  margin: 0 auto;
}

/* Carousel wrapper */
.reviews__carousel-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 800px;
}

.reviews__carousel {
  flex: 1;
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.4s ease-in-out;
}

/* Cards */
.reviews__card {
  flex: 0 0 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.reviews__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.reviews__card-g {
  flex-shrink: 0;
}

.reviews__card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reviews__card-info strong {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
}

.reviews__card-info span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.reviews__card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4285F4;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.reviews__card-stars {
  display: flex;
  gap: 1px;
  margin-bottom: var(--space-sm);
}

.reviews__card-text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* Arrows */
.reviews__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.reviews__arrow:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

/* ========== EX PRESIDENTES ========== */
.ex-presidentes {
  background: #fafafa;
  padding: var(--space-3xl) 0;
  position: relative;
}

.ex-presidentes__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.ex-presidentes__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.ex-presidentes__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.ex-presidentes__desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Tabs */
.ex-presidentes__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}

.ex-presidentes__tab {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid #ddd;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.ex-presidentes__tab:not(.ex-presidentes__tab--active):hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.ex-presidentes__tab--active,
.ex-presidentes__tab--active:hover {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

.ex-presidentes__tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Panels */
.ex-presidentes__panel {
  display: none;
}

.ex-presidentes__panel--active {
  display: block;
  animation: exPresFade 0.5s ease;
}

@keyframes exPresFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid */
.ex-presidentes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

/* Card */
.ex-presidente {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ex-presidente:hover {
  transform: translateY(-4px);
  border-color: #ddd;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.ex-presidente__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f0f0f0;
  margin-bottom: var(--space-md);
}

.ex-presidente__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ex-presidente:hover .ex-presidente__photo img {
  transform: scale(1.04);
}

.ex-presidente__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.01em;
}

.ex-presidente__years {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Horizontal carousel (for larger decades) */
.ex-presidentes__carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.ex-presidentes__viewport {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.ex-presidentes__viewport::-webkit-scrollbar {
  display: none;
}

.ex-presidentes__viewport .ex-presidente {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

.ex-presidentes__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.ex-presidentes__arrow:hover {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ex-presidentes__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.ex-presidentes__arrow--prev { left: -8px; }
.ex-presidentes__arrow--next { right: -8px; }

/* Responsive */
@media (min-width: 640px) {
  .ex-presidentes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ex-presidentes__viewport .ex-presidente {
    flex: 0 0 calc((100% - var(--space-lg)) / 2);
  }
}

@media (min-width: 1024px) {
  .ex-presidentes__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
  .ex-presidentes__viewport .ex-presidente {
    flex: 0 0 calc((100% - (var(--space-lg) * 2)) / 3);
  }
  .ex-presidentes__arrow--prev { left: -22px; }
  .ex-presidentes__arrow--next { right: -22px; }
}

/* ========== ZORIAK ========== */

.zoriak {
  background-color: var(--color-bg-light) !important;
  color: var(--color-text-primary) !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Banner verde — sponsor credit, editorial treatment */
.zoriak__banner {
  background: linear-gradient(180deg, #7AC142 0%, #6eb338 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.zoriak__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.zoriak__banner > .container {
  position: relative;
}

.zoriak__sponsor-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 7px 22px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Logo wordmark */
.zoriak__logo-wrapper {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.zoriak__logo {
  width: clamp(180px, 38vw, 340px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.14));
}

/* Slogan tagline */
.zoriak__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

/* Hairline divider — editorial */
.zoriak__divider {
  width: 56px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
}

.zoriak__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Stagger entrance — fires once on page load */
.zoriak__banner .container > * {
  opacity: 0;
  transform: translateY(14px);
  animation: zoriakReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.zoriak__banner .container > .zoriak__sponsor-badge { animation-delay: 0.1s; }
.zoriak__banner .container > .zoriak__logo-wrapper  { animation-delay: 0.25s; }
.zoriak__banner .container > .zoriak__slogan        { animation-delay: 0.4s; }
.zoriak__banner .container > .zoriak__divider       { animation-delay: 0.55s; }
.zoriak__banner .container > .zoriak__subtitle      { animation-delay: 0.7s; }

@keyframes zoriakReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoriak__banner .container > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Líneas terapéuticas */
.zoriak__lines {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
  background: #f5f5f5;
}

.zoriak__lines-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.zoriak__lines-desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.zoriak__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.zoriak__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.zoriak__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

.zoriak__icon:hover {
  transform: scale(1.1);
}

.zoriak__icon--green  { background: #7AC142; }
.zoriak__icon--gray   { background: #B0B0B0; }
.zoriak__icon--teal   { background: #00B4C5; }
.zoriak__icon--orange { background: #F58220; }
.zoriak__icon--red    { background: #E2253A; }
.zoriak__icon--navy   { background: #1B2A4A; }

.zoriak__label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
}

.zoriak__cta-wrapper {
  text-align: center;
}

.zoriak__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #FFFFFF;
  background: #7AC142;
  border-radius: 50px;
  padding: 14px 36px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.zoriak__btn:hover {
  background: #5fa832;
  transform: scale(1.03);
}

/* Catálogo de productos */
.zoriak__catalog {
  background: #FFFFFF;
  padding: var(--space-3xl) 0;
  border-top: 1px solid #eee;
}

.zoriak__catalog-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.zoriak__catalog-desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.zoriak__catalog-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.zoriak__catalog-viewport {
  overflow: hidden;
}

.zoriak__catalog-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.zoriak__product {
  flex: 0 0 100%;
  background: #FFFFFF;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.zoriak__product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(122, 193, 66, 0.14);
  border-color: #7AC142;
}

.zoriak__product-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7AC142;
  background: rgba(122, 193, 66, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.zoriak__product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.zoriak__product-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.zoriak__product:hover .zoriak__product-image img {
  transform: scale(1.06);
}

.zoriak__product-name {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Arrows */
.zoriak__catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #eaeaea;
  color: #7AC142;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.zoriak__catalog-arrow:hover {
  background: #7AC142;
  border-color: #7AC142;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(122, 193, 66, 0.3);
}

.zoriak__catalog-arrow:focus-visible {
  outline: 2px solid #7AC142;
  outline-offset: 3px;
}

.zoriak__catalog-arrow--prev { left: -8px; }
.zoriak__catalog-arrow--next { right: -8px; }

/* Responsive: 2 cards tablet, 3 cards desktop */
@media (min-width: 640px) {
  .zoriak__product {
    flex: 0 0 calc((100% - var(--space-lg)) / 2);
  }
}

@media (min-width: 1024px) {
  .zoriak__product {
    flex: 0 0 calc((100% - (var(--space-lg) * 2)) / 3);
  }
  .zoriak__catalog-arrow--prev { left: -22px; }
  .zoriak__catalog-arrow--next { right: -22px; }
}

/* ========== APP DOWNLOAD ========== */
.app {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(240, 192, 0, 0.08), transparent 50%);
  pointer-events: none;
}

.app__content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.app__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.app__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.app__desc {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.app__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--color-accent);
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px rgba(240, 192, 0, 0.25);
}

.app__btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240, 192, 0, 0.35);
}

.app__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.app__hint {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-md);
}

/* Install Modal */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: modalFade 0.25s ease;
}

.install-modal[hidden] {
  display: none;
}

.install-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.install-modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.install-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), color var(--transition-base);
}

.install-modal__close:hover {
  background: #f2f2f2;
  color: var(--color-text-primary);
}

.install-modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 var(--space-xl);
  letter-spacing: -0.01em;
}

.install-modal__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.install-modal__steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.install-modal__steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 44px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.install-modal__steps li:last-child {
  border-bottom: none;
}

.install-modal__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-modal__cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: #fff;
  background: var(--color-text-primary);
  border-radius: 50px;
  padding: 14px 24px;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base);
}

.install-modal__cta:hover {
  background: #000;
  transform: translateY(-2px);
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .install-modal,
  .install-modal__content {
    animation: none;
  }
}

/* ========== UBICACIÓN ========== */

.ubicacion {
  background-color: var(--color-bg-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-3xl);
}

.ubicacion__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ubicacion__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.ubicacion__address {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.ubicacion__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.ubicacion__image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ubicacion__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.ubicacion__map-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ubicacion__map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
}

/* ========== SECTION BASE ========== */
section {
  padding-block: var(--space-3xl);
}

/* Collapse placeholder sections that have no visible content */
.doctores:not(:has(> .container)),
.citas:not(:has(> .container)),
.app:not(:has(> .container)),
.recursos:not(:has(> .container)) {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

/* Dark sections */
.doctores {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Main offset for fixed navbar (matches mobile min-height) */
main {
  margin-top: 64px;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-lg);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease-in-out;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__col--social {
  display: flex;
  flex-direction: column;
}

.footer__social-text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.footer__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-bg-dark);
  background: var(--color-accent);
  border-radius: 50px;
  padding: 14px 32px;
  text-align: center;
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.footer__btn:hover {
  background: var(--color-accent-dark);
  transform: scale(1.03);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  transition: all 0.2s ease-in-out;
}

.footer__social-link:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.footer__credits {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__credit-link {
  color: var(--color-accent);
  transition: opacity 0.2s ease-in-out;
}

.footer__credit-link:hover {
  opacity: 0.75;
}

/* ========== RESPONSIVE — sm: 640px ========== */
@media (min-width: 640px) {
  :root {
    --container-padding: 1.5rem;
  }
}

/* ========== RESPONSIVE — md: 768px ========== */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

/* ========== RESPONSIVE — lg: 1024px (navbar desktop) ========== */
@media (min-width: 1024px) {
  /* Navbar desktop layout */
  .navbar__hamburger {
    display: none;
  }

  /* Main offset — matches desktop navbar min-height */
  main {
    margin-top: 80px;
  }

  /* Navbar desktop — taller */
  .navbar__container {
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 72px;
  }

  .navbar__logo-seal {
    width: 143px;
    height: 143px;
  }

  /* Hide mobile-only login on desktop */
  .navbar__mobile-login {
    display: none;
  }

  /* Links container — rounded rect */
  .navbar__links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: static;
    width: auto;
    flex: 0.75;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background-color: var(--color-accent);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    gap: 30px;
    margin: 0 20px;
  }

  /* Desktop link style — dark text inside container, no border */
  .navbar__link {
    padding: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-bg-dark);
    border-bottom: none;
    transition: opacity 0.2s ease-in-out;
  }

  .navbar__link:hover {
    opacity: 0.75;
  }

  /* CTA — visible as plain white text */
  .navbar__cta {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-light);
    font-size: 22px;
    margin-right: 1rem;
  }

  .navbar.nav-open .navbar__cta {
    color: var(--color-text-light);
    padding: 0;
  }
}

/* ========== RESPONSIVE — xl: 1280px ========== */
@media (min-width: 1280px) {
  .navbar__links {
    padding: 12px 45px;
    gap: 45px;
  }

  .navbar__link {
    font-size: 20px;
  }

  .navbar__cta {
    font-size: 24px;
    margin-right: 2rem;
  }
}

/* ========== RESPONSIVE — md: 768px (hero + content) ========== */
@media (min-width: 768px) {
  /* --- Hero desktop --- */
  .hero__content {
    flex-direction: row;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .hero__left {
    flex: 0 0 60%;
    max-width: 60%;
  }

  /* Logo hero — desktop size */
  .hero__logo-text {
    font-size: 140px;
  }

  .hero__logo-seal {
    width: 255px;
    height: 255px;
  }

  /* Título desktop */
  .hero__title {
    font-size: 62px;
  }

  /* Subtítulo desktop */
  .hero__subtitle {
    font-size: 18px;
  }

  /* Doctor — absolute positioned, right side */
  .hero__doctor {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 90%;
    max-width: 45%;
    margin: 0;
    object-position: bottom right;
  }

  /* --- Reviews desktop (768px+) --- */
  .reviews__container {
    flex-direction: row;
    align-items: center;
  }

  .reviews__sidebar {
    flex: 0 0 200px;
    text-align: left;
  }

  .reviews__stars {
    justify-content: flex-start;
  }

  .reviews__google-logo {
    margin: 0;
  }

  .reviews__carousel-wrapper {
    flex: 1;
  }

  .reviews__card {
    flex: 0 0 calc(50% - 8px);
  }

  /* --- Zoriak desktop (768px+) --- */
  .zoriak__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }

  .zoriak__icon {
    width: 100px;
    height: 100px;
  }

  .zoriak__icon svg {
    width: 40px;
    height: 40px;
  }

  /* --- Footer desktop (768px+) --- */
  .footer__grid {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__col {
    flex: 1;
  }

  .footer__col--social {
    align-items: flex-end;
    text-align: right;
  }

  .footer__socials {
    justify-content: flex-end;
  }

  /* --- Ubicación desktop (768px+) --- */
  .ubicacion__grid {
    flex-direction: row;
  }

  .ubicacion__image-wrapper,
  .ubicacion__map-wrapper {
    flex: 1;
  }

  .ubicacion__image,
  .ubicacion__map {
    height: 380px;
  }

  /* --- Historia desktop (768px+) --- */
  .historia__grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3xl);
  }

  .historia__image-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
    width: auto;
  }

  .historia__text {
    flex: 1;
    text-align: left;
  }

  .historia__description {
    margin: 0 0 var(--space-xl);
  }

  /* Stats bar — horizontal row */
  .hero__stats {
    flex-direction: row;
    gap: 0;
    padding: 24px 40px;
  }

  .hero__stat-item {
    flex: 1;
  }

  .hero__stat-divider {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
  }
}

/* ========== RESPONSIVE — lg: 1024px ========== */
@media (min-width: 1024px) {
  section {
    padding-block: var(--space-4xl);
  }

  .zoriak__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .historia__image-frame {
    bottom: -16px;
    left: -16px;
  }

  .historia__image-frame::after {
    top: -12px;
    right: -12px;
  }

  .historia__grid {
    gap: var(--space-4xl);
  }
}

/* ========== RESPONSIVE — xl: 1280px ========== */
@media (min-width: 1280px) {
  :root {
    --container-padding: 2rem;
  }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  animation: whatsapp-pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55); }
}
