/* ==========================================================================
   MUSEO WAYUUWAA A'IN ALMA WAYUU - DESIGN SYSTEM & STYLESHEET
   Inspirado en la dignidad del pueblo Wayuu, el paisaje de La Guajira
   y la identidad cromática del logotipo oficial:
   Rojo Institucional (#C6151B), Amarillo Dorado (#F7BA00), Tonos Arena y Crema.
   ========================================================================== */

:root {
  --site-max-width: 1480px;
  --site-gutter: clamp(1.25rem, 3vw, 4rem);
  /* Paleta Institucional Principal */
  --color-primary: #C6151B;
  --color-primary-dark: #960D12;
  --color-primary-light: #E02B32;
  --color-secondary: #F7BA00;
  --color-secondary-dark: #C99600;
  --color-secondary-light: #FFD447;

  /* Tonos Paisaje Guajira y Neutros */
  --color-sand-50: #FCFAF7;
  --color-sand-100: #F6F1E9;
  --color-sand-200: #EBE1D3;
  --color-sand-300: #D8C7B0;
  --color-sand-700: #7A6953;
  
  --color-dark-900: #191716;
  --color-dark-800: #23201E;
  --color-dark-700: #332F2C;
  --color-dark-600: #4A4440;
  --color-muted: #6E6660;
  --color-border: #E5DDD0;
  --color-white: #FFFFFF;

  /* Estados y Alertas */
  --color-success: #1B7A42;
  --color-success-bg: #E8F5EE;
  --color-warning: #B26A00;
  --color-warning-bg: #FFF7EB;
  --color-danger: #C6151B;
  --color-danger-bg: #FDF0F0;
  --color-info: #1A5FA6;
  --color-info-bg: #EEF5FC;

  /* Tipografía */
  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevación y Sombras */
  --shadow-sm: 0 2px 4px rgba(35, 32, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(35, 32, 30, 0.08);
  --shadow-lg: 0 10px 25px rgba(35, 32, 30, 0.12);
  --shadow-xl: 0 20px 40px rgba(35, 32, 30, 0.16);
  --shadow-glow: 0 0 20px rgba(198, 21, 27, 0.35);

  /* Bordes y Transiciones */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reseteo y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-dark-800);
  background-color: var(--color-sand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark-900);
  letter-spacing: -0.02em;
}

/* Contenedores y Cuadrículas */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

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

/* La cabecera y los avisos conservan su composición anterior. */
.top-notice-content,
.site-header .nav-wrapper {
  max-width: 1760px;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}

.hero-section + .container {
  max-width: 1240px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sand {
  background-color: var(--color-sand-100);
  border-top: 1px solid var(--color-sand-200);
  border-bottom: 1px solid var(--color-sand-200);
}

.section-dark {
  background: linear-gradient(135deg, var(--color-dark-900) 0%, var(--color-dark-800) 100%);
  color: var(--color-sand-100);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--color-white);
}

/* Barra Superior Institucional */
.top-notice-bar {
  background: var(--color-dark-900);
  color: var(--color-sand-200);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-notice-badge {
  background: var(--color-primary);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.top-contact-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.top-contact-links a {
  color: var(--color-sand-200);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-contact-links a:hover {
  color: var(--color-secondary);
}

/* Header & Barra de Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-sand-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: 0.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  justify-self: start;
  min-width: 0;
}

.brand-logo-img {
  height: auto;
  max-height: 108px;
  max-width: 205px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-wordmark {
  max-width: 230px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(0.93rem, 1.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  border-top: 1px solid var(--color-sand-200);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0 0.6rem;
}

.nav-item a {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-700);
  padding: 0.55rem 0.2rem;
  line-height: 1.3;
  white-space: nowrap;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--motion-ease);
}

.nav-item a:hover {
  color: var(--color-primary);
}

.nav-item a:hover::after,
.nav-item a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  grid-column: 2;
  grid-row: 1;
}

.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-dark-900);
  cursor: pointer;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.42s var(--motion-ease),
              box-shadow 0.42s var(--motion-ease),
              background-color 0.28s ease,
              border-color 0.28s ease,
              color 0.28s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(198, 21, 27, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(198, 21, 27, 0.35);
}

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

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

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
}

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

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

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

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* Banner Hero Principal */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #24201f 0%, #342a2a 56%, #4b3035 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(198, 21, 27, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section--with-image .hero-overlay {
  background: linear-gradient(90deg, rgba(24, 17, 17, 0.88) 0%, rgba(28, 18, 19, 0.66) 48%, rgba(26, 17, 17, 0.25) 100%),
    linear-gradient(0deg, rgba(25, 17, 16, 0.3), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
}

.institution-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

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

.institution-visual {
  position: relative;
  padding-bottom: 1.5rem;
}

.institution-visual-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.institution-visual-image--logo {
  object-fit: contain;
  background: #fff;
  padding: 2rem;
  border: 2px solid var(--color-sand-200);
}

.institution-logo-badge {
  display: table;
  position: relative;
  z-index: 1;
  margin: -2.5rem 1rem 0 auto;
  background: var(--color-primary);
  color: #fff;
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247, 186, 0, 0.2);
  border: 1px solid rgba(247, 186, 0, 0.5);
  color: var(--color-secondary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-sand-100);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

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

/* Tarjetas y Elementos UI */
.card {
  background: var(--color-sand-200);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-sand-300);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.52s var(--motion-ease),
              box-shadow 0.52s var(--motion-ease),
              border-color 0.32s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sand-300);
}

.card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--color-sand-200);
  border-bottom: 2px solid var(--color-secondary);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--motion-ease);
}

.card:hover .card-img {
  transform: scale(1.035);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(35, 32, 30, 0.85);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.card-badge-primary {
  background: var(--color-primary);
}

.card-badge-gold {
  background: var(--color-secondary-dark);
  color: #fff;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--color-sand-200);
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-title a {
  color: var(--color-dark-900);
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-text {
  font-size: 0.94rem;
  color: var(--color-dark-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--color-sand-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Encabezados de Sección */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  column-gap: clamp(2rem, 5vw, 6rem);
  row-gap: 0.45rem;
  text-align: left;
  margin: 0 0 2.75rem;
}

.section-header .section-tag {
  grid-column: 1 / -1;
}

.section-header .section-title {
  grid-column: 1;
  margin-bottom: 0;
}

.section-header .section-title:last-child {
  grid-column: 1 / -1;
}

.section-header .section-description {
  grid-column: 2;
  margin-bottom: 0.15rem;
}

.container-narrow > .section-header {
  display: block;
}

.container-narrow > .section-header .section-title {
  margin-bottom: 1rem;
}

.section-tag {
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--color-dark-600);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Grillas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 1025px) {
  .grid-3 > article.card:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .grid-3 > article.card:only-child > .card-img-wrap {
    height: clamp(280px, 24vw, 360px);
    border-bottom: 0;
    border-right: 2px solid var(--color-secondary);
  }

  .grid-3 > article.card:only-child > .card-body:only-child {
    grid-column: 1 / -1;
  }
}

/* Formularios */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-dark-800);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--color-dark-900);
  background-color: var(--color-white);
  border: 1px solid var(--color-sand-300);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(198, 21, 27, 0.15);
}

.form-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--color-primary);
}

.form-help {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.form-errors {
  color: var(--color-danger);
  font-size: 0.85rem;
  list-style: none;
  margin-top: 0.35rem;
}

/* Toast Messages */
.toast-container {
  position: fixed;
  top: 95px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.toast {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.94rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease forwards;
}

.toast-success { background: var(--color-success-bg); color: var(--color-success); border-left: 4px solid var(--color-success); }
.toast-error { background: var(--color-danger-bg); color: var(--color-danger); border-left: 4px solid var(--color-danger); }
.toast-info { background: var(--color-info-bg); color: var(--color-info); border-left: 4px solid var(--color-info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Fototeca & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--motion-ease);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.045);
}

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(25, 23, 22, 0.9) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.8rem 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption-overlay,
.gallery-item:focus-visible .gallery-caption-overlay {
  opacity: 1;
  transform: translateY(0);
}

.cultural-card {
  transition: transform 0.52s var(--motion-ease),
              box-shadow 0.52s var(--motion-ease),
              border-color 0.32s ease;
}

.cultural-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 186, 0, 0.36) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

a:focus-visible,
button:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--color-secondary-dark);
  outline-offset: 3px;
}

/* Modal Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 14, 13, 0.94);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: var(--color-sand-100);
  margin-top: 1rem;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  background: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  font-size: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  color: #FFFFFF;
}

/* Pie de Página Institucional */
.site-footer {
  background: var(--color-dark-900);
  color: var(--color-sand-200);
  padding: 4.5rem 0 1.5rem 0;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--color-sand-300);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.footer-heading {
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-sand-200);
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-sand-300);
}

/* Responsividad (Media Queries) */
@media (max-width: 1024px) {
  .section-header { display: block; }
  .section-header .section-title { margin-bottom: 0.8rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 1500px) {
  .top-notice-bar { display: none; }

  .nav-wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 94px;
    padding-top: 0;
  }

  .brand-logo-img { max-height: 82px; max-width: 156px; }
  .brand-wordmark { max-width: 210px; font-size: 0.98rem; }
  .btn-mobile-toggle { display: block; grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: auto; grid-row: auto; width: auto; border: 0; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 94px);
    background: var(--color-white);
    flex-direction: column;
    padding: 1.25rem var(--site-gutter);
    align-items: stretch;
    gap: 0.25rem;
    display: none;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }

  .nav-links.active { display: flex; }
  .nav-item a { padding: 0.7rem 0.4rem; white-space: normal; }
}

@media (max-width: 768px) {
  .hero-photo { object-position: 88% center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .institution-highlights { grid-template-columns: 1fr; }
  .institution-actions .btn { width: 100%; text-align: center; }
  .institution-logo-badge { display: inline-block; margin: 1rem 0 0; }
}

@media (max-width: 480px) {
  .nav-wrapper { min-height: 76px; }
  .brand-link { gap: 0.55rem; }
  .brand-logo-img { max-width: 78px; max-height: 62px; }
  .brand-wordmark { max-width: 165px; font-size: 0.82rem; }
}

@media (hover: none) {
  .card:hover,
  .cultural-card:hover,
  .btn:hover,
  .floating-whatsapp:hover {
    transform: none;
  }

  .gallery-caption-overlay {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .cultural-card:hover,
  .btn:hover,
  .floating-whatsapp:hover,
  .card:hover .card-img,
  .gallery-item:hover .gallery-thumb {
    transform: none;
  }
}
