/* ============================================================
   Gimnasio Campestre — Main Stylesheet
   Colegio cristiano · Puerto Colombia, Atlántico
   Paleta según Manual de Identidad 2024:
   #A60A0A (rojo) · #1C3940 (azul petróleo) · #D9AA71 (dorado)
   Tipografías: Poppins + Questrial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Poppins:wght@400;500;600;700;800&family=Questrial&display=swap');

/* ----- 1. CSS Custom Properties ----- */
:root {
  /* Paleta institucional (Manual de Identidad 2024) */
  --color-primary:       #1C3940;
  --color-primary-light: #2E5866;
  --color-primary-dark:  #19313B;
  --color-secondary:     #D9AA71;
  --color-secondary-dark:#B8854A;
  --color-accent:        #A60A0A;
  --color-white:         #FFFFFF;
  --color-light:         #F7F5F1;
  --color-dark:          #19313B;
  --color-medium:        #5A6B72;
  --color-border:        #E3DFD8;
  --color-overlay:       rgba(25, 49, 59, 0.72);

  /* Typography */
  --font-family: 'Questrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bree Serif', 'Rockwell', Georgia, serif;
  --fs-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --fs-base: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --fs-md:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lg:   clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl:   clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  --fs-2xl:  clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-3xl:  clamp(2.75rem, 1.8rem + 3vw, 4rem);

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:  1.2;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Spacing scale */
  --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: 1200px;
  --container-pad: clamp(1rem, 3vw, 2rem);

  /* Misc */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.3s ease;

  /* Navbar height for scroll offset */
  --navbar-h: 118px;
}

/* ----- 2. Modern CSS Reset ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

/* Scroll offset for anchor links */
section[id],
div[id] {
  scroll-margin-top: var(--navbar-h);
}

/* ----- 3. Base Typography ----- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  color: var(--color-dark);
}

h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-dark);
}

.btn,
.section-label,
.timeline__year,
.badge {
  font-family: var(--font-heading);
}

.stat__number {
  font-family: var(--font-display);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl);  }
h4 { font-size: var(--fs-lg);  }
h5 { font-size: var(--fs-md);  }
h6 { font-size: var(--fs-base);}

p {
  margin-bottom: var(--space-md);
  color: var(--color-medium);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--color-medium);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  color: var(--color-medium);
  font-size: var(--fs-md);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Filo dorado antes y después de la etiqueta */
.section-label::before,
.section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-secondary);
}

.section-label--left::before {
  display: none;
}

/* ----- 4. Layout Utilities ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
  display: flex;
  gap: var(--space-md);
}

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

.flex--between {
  align-items: center;
  justify-content: space-between;
}

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

.flex--wrap {
  flex-wrap: wrap;
}

/* ----- 5. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.9rem;
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

.btn--secondary:hover {
  background: var(--color-secondary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background: #8A0808;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

/* ----- 6. Header / Navbar ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header.scrolled .header__inner {
  height: 88px;
}

/* Filo dorado heráldico bajo el header */
.header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, #C89355 50%, var(--color-secondary) 100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  transition: height var(--transition);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* El logo ya contiene el texto "GIMNASIO CAMPESTRE": no se repite en HTML */
.header__logo img {
  height: 100px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .header__logo img {
  height: 72px;
}

/* En movil se mantienen los 100px del logo; solo se reduce al hacer scroll */
@media (max-width: 767px) {
  .header.scrolled .header__logo img { height: 68px; }
}

.header__nav {
  display: none;
}

.header__nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  color: var(--color-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-accent);
}

.header__cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
/* Se usa transform en vez de right:-100% para que el menu cerrado no genere
   desbordamiento horizontal en la pagina. */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: calc(var(--navbar-h) + var(--space-xl)) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  z-index: 1005;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: var(--space-md) var(--space-sm);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-menu a:hover {
  color: var(--color-primary);
  padding-left: var(--space-md);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .header__cta {
    display: inline-flex;
  }
}

/* ----- 7. Hero Section ----- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  margin-top: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(217, 170, 113, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #24464F 0%, var(--color-primary-dark) 100%);
}

/* Textura de líneas doradas diagonales, muy sutil */
/* Capas del hero, de atras hacia adelante:
   1 .hero__video / .hero__bg  - video o imagen de fondo
   2 .hero::after              - velo azul institucional
   3 .hero::before             - textura de lineas doradas
   4 .hero__crest              - escudo marca de agua
   5 .hero__content            - texto y botones                    */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 80px,
    rgba(217, 170, 113, 0.06) 80px,
    rgba(217, 170, 113, 0.06) 81px
  );
  pointer-events: none;
}

/* Escudo como marca de agua */
.hero__crest {
  position: absolute;
  right: -6%;
  bottom: -12%;
  z-index: 4;
  width: min(48vw, 560px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  filter: grayscale(30%) brightness(1.6);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Velo azul institucional sobre el video */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Fuerte arriba y abajo (donde va el texto), mas abierto al centro para que
     se vea el video sin perder el azul institucional. */
  background: linear-gradient(
    180deg,
    rgba(25, 49, 59, 0.93) 0%,
    rgba(28, 57, 64, 0.72) 40%,
    rgba(28, 57, 64, 0.72) 60%,
    rgba(25, 49, 59, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 820px;
  padding: var(--space-4xl) var(--container-pad) var(--space-3xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  background: rgba(217, 170, 113, 0.1);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 2px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(217, 170, 113, 0.45);
  color: var(--color-secondary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero__title em {
  font-style: normal;
  color: var(--color-secondary);
}

/* Divisor dorado con rombo central */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0 auto var(--space-lg);
  width: 220px;
}

.hero__divider::before,
.hero__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary));
}

.hero__divider::after {
  background: linear-gradient(90deg, var(--color-secondary), transparent);
}

.hero__divider span {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  transform: rotate(45deg);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-loose);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  z-index: 5;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ----- 8. Section Styles ----- */
.section {
  padding: var(--space-4xl) 0;
}

.section--light {
  background: var(--color-light);
}

.section--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--primary .section-title,
.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

.section--primary p {
  color: rgba(255,255,255,0.85);
}

.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255,255,255,0.8);
}

.section-padding {
  padding: var(--space-4xl) 0;
}

/* ----- 8b. Foto de seccion (retrato o paisaje, con filo dorado) ----- */
.foto-seccion {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(25, 49, 59, 0.18);
}

.foto-seccion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Filo dorado inferior, guino al escudo */
.foto-seccion::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-secondary), #C89355, var(--color-secondary));
}

.foto-seccion figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(transparent, rgba(25, 49, 59, 0.85));
  color: var(--color-white);
  font-size: var(--fs-xs);
}

/* En escritorio la foto acompana al texto a la misma altura */
@media (min-width: 768px) {
  .foto-seccion--alta img {
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }
}

/* ----- 9. Card Components ----- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 32px rgba(25, 49, 59, 0.12);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-xl);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 170, 113, 0.16);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-medium);
  margin-bottom: var(--space-md);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  transition: gap var(--transition);
}

.card__link:hover {
  gap: var(--space-sm);
  color: var(--color-primary-dark);
}

/* Value card variant */
.card--value {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 4px solid var(--color-secondary);
}

.card--value .card__icon {
  margin-inline: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(217, 170, 113, 0.18);
}

/* Program card variant */
.card--program {
  border-left: 4px solid var(--color-secondary);
}

/* ----- 10. Stats / Counter Section ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: var(--space-xl);
}

.stat__number {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----- 11. Timeline Component ----- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 1px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--color-medium);
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
    max-width: 800px;
    margin-inline: auto;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    width: 50%;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
  }

  .timeline__item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-left: 0;
    padding-right: var(--space-2xl);
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-right: 0;
    padding-left: var(--space-2xl);
  }

  .timeline__dot {
    left: auto;
    right: auto;
  }

  .timeline__item:nth-child(odd) .timeline__dot {
    right: calc(-1 * var(--space-2xl) + 1px + 9px);
    left: auto;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    left: calc(-1 * var(--space-2xl) + 1px + 9px);
  }
}

/* ----- 12. Testimonials ----- */
.testimonials {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary-light);
  opacity: 0.3;
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: var(--fs-sm);
  color: var(--color-medium);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-light);
}

.testimonial__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-dark);
}

.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--color-medium);
}

/* ----- 13. CTA Banner ----- */
.cta {
  background:
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(166, 10, 10, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #24464F 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-4xl) var(--container-pad);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-secondary);
  border-bottom: 3px solid var(--color-secondary);
}

.cta__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
}

.cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -60px;
  left: -40px;
}

.cta__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.cta__text {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ----- 14. Contact Form ----- */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-size: var(--fs-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(217, 170, 113, 0.25);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__row {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--color-medium);
  margin-top: var(--space-xs);
}

/* ----- Formulario de inscripcion: bloques ----- */
.form__bloque {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  background: var(--color-white);
}

.form__legend {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  padding: 0 var(--space-sm);
  margin-left: calc(-1 * var(--space-sm));
}

.form__hint--bloque {
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--color-border);
}

.req {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* Casilla de autorizacion */
.form__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary);
}

.form__check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form__check label {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-medium);
  cursor: pointer;
}

/* Trampa antispam: invisible para personas, visible para robots */
.form__miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Firma electronica */
.firma {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-light);
  text-align: center;
}

.firma__canvas {
  width: 100%;
  max-width: 100%;
  height: 180px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: crosshair;
  touch-action: none;   /* evita que el dedo haga scroll al firmar */
  display: block;
}

.firma__ayuda {
  font-size: var(--fs-xs);
  color: var(--color-medium);
  margin: var(--space-sm) 0;
}

.firma__limpiar {
  margin-top: var(--space-xs);
}

.firma--error .firma__canvas {
  border-color: #D32F2F;
}

/* Mensajes de resultado del envio */
.form__mensaje {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.form__mensaje--ok {
  background: rgba(28, 57, 64, 0.06);
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
}

.form__mensaje--error {
  background: rgba(166, 10, 10, 0.06);
  border-left: 4px solid var(--color-accent);
  color: var(--color-accent);
}

/* Campo con error de validacion */
.input-error {
  border-color: #D32F2F !important;
  background: rgba(211, 47, 47, 0.03);
}

.error-msg {
  display: block;
  font-size: var(--fs-xs);
  color: #D32F2F;
  margin-top: var(--space-xs);
}

/* Boton mientras envia */
.btn[data-enviando="1"] {
  opacity: 0.7;
  pointer-events: none;
}

.form__error {
  font-size: var(--fs-xs);
  color: #D32F2F;
  margin-top: var(--space-xs);
}

/* ----- 15. Footer ----- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-4xl);
  border-top: 3px solid var(--color-secondary);
}

/* Version blanca del logo: va directo sobre el fondo oscuro, sin parche */
.footer__logo img {
  height: 100px;
  width: auto;
}

.footer__logo {
  display: block;
  margin-bottom: var(--space-md);
}

.footer__grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 320px;
}

/* (Las reglas de .footer__logo estan mas arriba, junto a la version blanca) */

.footer__description {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  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-white);
  transition: background var(--transition), transform var(--transition);
}

.footer__social a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer__heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__links a {
  display: block;
  font-size: var(--fs-sm);
  padding: var(--space-xs) 0;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--color-secondary);
  padding-left: var(--space-sm);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.footer__contact-icon {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover {
  color: var(--color-secondary);
}

/* ----- 16. WhatsApp Floating Button ----- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease-out infinite;
}

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

/* ----- 17. Animations ----- */

/* Fade-in on scroll — add via IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ----- 18. Breadcrumb ----- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--fs-sm);
  color: var(--color-medium);
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__separator {
  color: var(--color-border);
  user-select: none;
}

.breadcrumb__current {
  color: var(--color-medium);
  font-weight: var(--fw-medium);
}

/* ----- 19. FAQ Accordion (details/summary) ----- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  background: var(--color-light);
}

.faq-item__answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--color-medium);
  line-height: var(--lh-loose);
}

/* ----- 20. Gallery Grid ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 49, 59, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay-text {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

/* Masonry variant */
.gallery--masonry {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
}

.gallery--masonry .gallery__item--tall {
  grid-row: span 2;
}

.gallery--masonry .gallery__item--wide {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .gallery--masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
}

/* ----- 21. Badge / Tag ----- */
.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--primary {
  background: rgba(28, 57, 64, 0.08);
  color: var(--color-primary);
}

.badge--secondary {
  background: rgba(217, 170, 113, 0.2);
  color: var(--color-secondary-dark);
}

.badge--accent {
  background: rgba(166, 10, 10, 0.08);
  color: var(--color-accent);
}

.badge--light {
  background: var(--color-light);
  color: var(--color-medium);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  background: var(--color-light);
  color: var(--color-medium);
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ----- 22. Utility Classes ----- */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-white   { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-medium  { color: var(--color-medium); }

.bg-primary   { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-light     { background-color: var(--color-light); }
.bg-white     { background-color: var(--color-white); }
.bg-dark      { background-color: var(--color-primary-dark); }

.fw-regular   { font-weight: var(--fw-regular); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }

.mx-auto      { margin-inline: auto; }
.mb-0         { margin-bottom: 0; }
.mb-sm        { margin-bottom: var(--space-sm); }
.mb-md        { margin-bottom: var(--space-md); }
.mb-lg        { margin-bottom: var(--space-lg); }
.mb-xl        { margin-bottom: var(--space-xl); }
.mb-2xl       { margin-bottom: var(--space-2xl); }

.pt-0         { padding-top: 0; }
.pb-0         { padding-bottom: 0; }

.rounded      { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }

.shadow       { box-shadow: var(--shadow-md); }
.shadow-lg    { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.relative     { position: relative; }

.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;
}

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

.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

.divider--light {
  background: rgba(255,255,255,0.15);
}

/* ----- 23. Responsive Helpers ----- */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial;
  }
  .hide-tablet {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hide-tablet {
    display: initial;
  }
  .hide-desktop {
    display: none;
  }
}

/* ----- 24. Page Hero (subpages) ----- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 80% 10%, rgba(217, 170, 113, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #24464F 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: calc(var(--navbar-h) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  border-bottom: 3px solid var(--color-secondary);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 80px,
    rgba(217, 170, 113, 0.05) 80px,
    rgba(217, 170, 113, 0.05) 81px
  );
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.8);
}

/* ----- 25. Miscellaneous ----- */

/* News / blog listing card date strip */
.card__date {
  font-size: var(--fs-xs);
  color: var(--color-medium);
  margin-bottom: var(--space-sm);
}

/* Embed container (YouTube, maps) */
.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map section */
.map-section iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .map-section iframe {
    height: 450px;
  }
}

/* Back to top button (JS toggles .visible) */
.back-to-top {
  position: fixed;
  bottom: calc(var(--space-xl) + 72px);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

/* ----- 26. Errores de formulario (JS) ----- */
.input-error {
  border-color: #D32F2F !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
}

.error-msg {
  display: block;
  font-size: var(--fs-xs);
  color: #D32F2F;
  margin-top: var(--space-xs);
}

/* ----- 27. Lightbox de galería (JS) ----- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: var(--space-xl);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  font-size: 2.5rem;
  color: var(--color-white);
  line-height: 1;
  z-index: 2001;
}

/* Print */
@media print {
  .header,
  .whatsapp-float,
  .back-to-top,
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
}
