/* ==========================================================================
   CEMER - Premium Design System (Vanilla CSS Version)
   ========================================================================== */

/* --- Design Tokens / Variables --- */
:root {
  /* Colors */
  --color-background: #0b0d12;
  --color-background-mid: #0f1219;
  --color-foreground: #ffffff;
  --color-primary: #d4af5f;       /* Gold */
  --color-accent: #f4d77a;        /* Light Gold */
  --color-dark-gold: #9c6b2f;     /* Darker metallic gold shadow */
  
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-text-dim: rgba(255, 255, 255, 0.4);
  
  --color-border: rgba(212, 175, 95, 0.15);
  --color-border-hover: rgba(212, 175, 95, 0.3);
  
  /* Typography — fase P0: Cinzel/Playfair/Inter ya no se descargan.
     Los tres alias se conservan porque 11 reglas de esta hoja los consumen;
     se remapean a la superfamilia IBM Plex definida en typography.css en vez
     de eliminarlos, que dejaria esas reglas sin familia declarada.
     Retirar los alias es tarea de P2 (limpieza de CSS legacy). */
  --font-cinzel: var(--font-serif);
  --font-playfair: var(--font-serif);
  --font-inter: var(--font-sans);
  
  /* Animation Speeds */
  --transition-smooth: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base & Reset Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-background);
  /* Clip horizontal overflow del drawer off-canvas (position:fixed) en móvil:
     body overflow-x:hidden no alcanza para elementos fixed — el clip debe
     estar en la raíz. No rompe position:sticky (que se ancla a la raíz). */
  overflow-x: hidden;
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-inter);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 95, 0.25);
  border-radius: 9999px;
  border: 2px solid var(--color-background);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 95, 0.5);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none; /* Let clicks pass through outside the nav */
}

nav {
  pointer-events: auto; /* Re-enable clicks for the nav itself */
  max-width: 1280px; /* max-w-7xl */
  margin: 12px auto 0;
  border-radius: 9999px;
  padding: 0 20px;
  border: 1px solid transparent;
  background-color: transparent;
  transition: var(--transition-smooth);
  display: flex;
  flex-wrap: wrap; /* Supports mobile drawer dropdown */
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: relative;
}

@media (min-width: 768px) {
  nav {
    margin-top: 16px;
    padding: 0 28px;
    min-height: 68px;
  }
}

/* Scrolled state (toggled via JavaScript) */
nav.scrolled {
  max-width: 1152px; /* max-w-6xl */
  margin-top: 12px;
  background-color: rgba(11, 13, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.6);
}

/* --- Logo Branding --- */
.cemer-logo {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* --- Desktop Menu --- */
.desktop-menu {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1024px) {
  .desktop-menu {
    display: flex;
  }
}

.menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--fw-regular);
  color: var(--color-text-secondary);
  transition: color 0.3s, background-color 0.3s;
}

.menu-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.menu-item.active {
  color: #ffffff;
}

.menu-item i {
  width: 16px;
  height: 16px;
  color: rgba(212, 175, 95, 0.8);
}

.menu-item .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.menu-item:hover .chevron {
  transform: rotate(180deg);
}

/* Underline effect (Premium underline) */
.menu-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover::after,
.menu-item.active::after {
  width: 100%;
  left: 0;
}

/* --- Dropdown Menu --- */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 16px;
  width: 360px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-content {
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 95, 0.2);
  background-color: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}

.dropdown-header {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.dropdown-header i {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.dropdown-header span {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(212, 175, 95, 0.7);
  font-weight: var(--fw-semibold);
}

.dropdown-item {
  display: flex;
  align-items: start;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item-icon {
  margin-top: 2px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 95, 0.2), transparent);
  border: 1px solid rgba(212, 175, 95, 0.2);
  flex-shrink: 0;
}

.dropdown-item-icon i {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.dropdown-item-info {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  color: #ffffff;
}

.dropdown-item-title i.arrow {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease-in-out;
}

.dropdown-item:hover .dropdown-item-title i.arrow {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-item-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  line-height: 1.4;
}

/* --- Header Action Buttons --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #056e34, #8bc53f);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(5, 110, 52, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}

.btn-contact:hover {
  box-shadow: 0 8px 24px -6px rgba(139, 197, 63, 0.5);
  transform: scale(1.03);
}

.btn-contact:active {
  transform: scale(0.98);
}

.btn-contact i {
  width: 16px;
  height: 16px;
}

@media (max-width: 767px) {
  .btn-contact.desktop-only {
    display: none;
  }
}

.mobile-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: background-color 0.2s;
}

.mobile-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-toggle i {
  width: 20px;
  height: 20px;
}

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

/* --- Mobile Menu Drawer --- */
.mobile-drawer {
  display: block;
  overflow: hidden;
  max-height: 0;
  width: 100%;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.mobile-drawer.open {
  max-height: 500px;
  opacity: 1;
}

.mobile-nav-list {
  padding: 8px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-small);
  transition: background-color 0.2s;
}

.mobile-nav-item:not(.static-nav-item):hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.mobile-sub-menu {
  margin-left: 36px;
  margin-top: 2px;
  margin-bottom: 8px;
  border-left: 1px solid rgba(212, 175, 95, 0.15);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-sub-item {
  display: block;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, background-color 0.2s;
}

.mobile-sub-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-btn-contact {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #056e34, #8bc53f);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(5, 110, 52, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}

.mobile-btn-contact i {
  width: 16px;
  height: 16px;
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Eyebrow Badge --- */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 95, 0.25);
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 16px;
  margin-bottom: 32px;
  
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.status-dot {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}

.status-dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot-core {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.eyebrow-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(212, 175, 95, 0.9);
  font-weight: 500;
}

/* --- Hero Title & Text Shimmer --- */
.hero-title {
  font-family: var(--font-cinzel);
  font-size: clamp(54px, 15vw, 180px);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
  
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.shimmer-text {
  background: linear-gradient(to right, #ffffff 20%, #f4d77a 40%, #d4af5f 60%, #ffffff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cemer-shimmer 8s linear infinite;
  display: inline-block;
}

/* --- Subtitle --- */
.hero-subtitle {
  max-width: 640px;
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 40px;
  
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* --- Hero CTAs --- */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.70s forwards;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f4d77a, #d4af5f, #9c6b2f);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #0b0d12;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(212, 175, 95, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-primary {
    width: auto;
  }
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 14px 50px -10px rgba(212, 175, 95, 0.8);
  transform: scale(1.03);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary i {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  transition: var(--transition-fast);
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-border-hover);
}

.btn-secondary i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* --- Stats Strip --- */
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 600px;
  
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.90s forwards;
}

@media (min-width: 768px) {
  .hero-stats {
    gap: 64px;
  }
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-family: var(--font-playfair);
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 600;
  background: linear-gradient(to bottom, #ffffff, rgba(212, 175, 95, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin-top: 4px;
  font-size: clamp(9px, 1.5vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-text-dim);
}

/* --- Scroll Cue --- */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  
  opacity: 0;
  animation: 
    fadeIn 0.8s ease-in 1.4s forwards,
    scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  background: none;
  border: none;
}

.scroll-cue-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  color: var(--color-inst-green);
  transition: color 0.3s;
}

.scroll-cue:hover .scroll-cue-text {
  color: var(--color-inst-green);
}

.scroll-cue:hover .scroll-arrow {
  color: #ffffff;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

.scroll-cue.fade-out {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate(-50%, -20px) !important;
}

.scroll-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-text-dim);
}

.scroll-mouse {
  position: relative;
  height: 40px;
  width: 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.scroll-dot {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: scrollDotAnim 1.8s ease-in-out infinite;
}

/* ==========================================================================
   Animated Hero Background Components
   ========================================================================== */
.hero-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.bg-base {
  position: absolute;
  inset: 0;
  background-color: #0b0d12;
  background: linear-gradient(180deg, #0b0d12, #0f1219, #0b0d12);
}

/* --- Gradient Mesh Orbs --- */
.mesh-container {
  position: absolute;
  inset: -20%;
  opacity: 0.7;
}

.mesh-orb-1 {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 175, 95, 0.35), transparent 60%);
  filter: blur(64px);
  animation: cemer-pan 18s ease-in-out infinite;
}

.mesh-orb-2 {
  position: absolute;
  bottom: -15%;
  right: 5%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.22), transparent 60%);
  filter: blur(64px);
  animation: cemer-pan-2 22s ease-in-out infinite;
}

.mesh-orb-3 {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(180, 83, 9, 0.28), transparent 60%);
  filter: blur(64px);
  animation: cemer-pan-3 26s ease-in-out infinite;
}

/* --- Floating Orbs --- */
.float-orb-1 {
  position: absolute;
  top: 18%;
  left: 8%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 24px 4px rgba(244, 215, 122, 0.6);
  animation: cemer-float 12s ease-in-out infinite;
}

.float-orb-2 {
  position: absolute;
  top: 35%;
  right: 12%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 18px 3px rgba(212, 175, 95, 0.6);
  animation: cemer-float-2 16s ease-in-out infinite;
}

.float-orb-3 {
  position: absolute;
  bottom: 28%;
  left: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.7);
  animation: cemer-float 12s ease-in-out infinite;
}

.float-orb-4 {
  position: absolute;
  bottom: 20%;
  right: 22%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 20px 4px rgba(244, 215, 122, 0.5);
  animation: cemer-float-2 16s ease-in-out infinite;
}

/* --- Concentric Decorative Rings --- */
.ring-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-outer {
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 95, 0.07);
  animation: cemer-spin-slow 40s linear infinite;
}

.ring-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 95, 0.05);
  animation: cemer-spin-slow 60s linear infinite reverse;
}

@media (min-width: 768px) {
  .ring-outer {
    width: 900px;
    height: 900px;
  }
  .ring-inner {
    width: 680px;
    height: 680px;
  }
}

/* --- Decorative Grid --- */
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    linear-gradient(to right, #d4af5f 1px, transparent 1px),
    linear-gradient(to bottom, #d4af5f 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* --- Grain Noise --- */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --- Bottom Fade --- */
.bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, #0b0d12, transparent);
  z-index: 2;
}

/* ==========================================================================
   Spacer / Next Section Preview
   ========================================================================== */
.spacer-section {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  z-index: 10;
  background-color: var(--color-background);
}

.spacer-content {
  max-width: 600px;
}

.spacer-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(212, 175, 95, 0.5);
  margin-bottom: 12px;
}

.spacer-text {
  color: var(--color-text-dim);
  font-size: 14px;
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */

/* Shimmer movement */
@keyframes cemer-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Gradient mesh panning */
@keyframes cemer-pan {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes cemer-pan-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1); }
  100% { transform: translate3d(0, 0, 0) scale(1.05); }
}

@keyframes cemer-pan-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Float movement for particles */
@keyframes cemer-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-28px) translateX(14px); }
}

@keyframes cemer-float-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(22px) translateX(-18px); }
}

/* Spin movement for background circles */
@keyframes cemer-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bouncing scroll mouse dot */
@keyframes scrollDotAnim {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 14px); opacity: 0.2; }
}

/* Status dot pulsation */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Standard Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   NEW HERO SECTION (Institutional Green/Orange Centered Edition)
   ========================================================================== */

:root {
  --color-inst-green: #10b981;
  --color-inst-green-glow: rgba(16, 185, 129, 0.15);
  --color-inst-orange: #f97316;
  --color-inst-orange-glow: rgba(249, 115, 22, 0.15);
  --color-inst-dark-bg: #090b0e;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 24px 120px; /* Separar mÃ¡s el tÃ­tulo del menÃº superior */
  overflow: hidden;
  background-color: var(--color-inst-dark-bg);
  box-sizing: border-box;
}

.hero-parallax-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center right; /* Imagen de fondo fija a la derecha */
  background-repeat: no-repeat;
  z-index: 1;
  transform: none !important; /* Totalmente fija, sin parallax en fondo */
}

/* Centered radial gradient overlay for high contrast readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 11, 14, 0.75) 0%, rgba(9, 11, 14, 0.94) 100%);
  z-index: 2;
}

.hero-ambient-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, var(--color-inst-green-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, var(--color-inst-orange-glow) 0%, transparent 50%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.hero-ambient-glow::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-inst-green);
  opacity: 0.08;
  filter: blur(120px);
}

.hero-tech-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(var(--color-inst-green) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 40%, transparent 90%);
  animation: techPulse 6s ease-in-out infinite alternate;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

@keyframes techPulse {
  0% { opacity: 0.08; }
  100% { opacity: 0.16; }
}

.hero-container-center {
  position: relative;
  z-index: 10;
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.hero-title-center {
  font-family: var(--font-playfair);
  font-size: clamp(32px, 4.8vw, 52px); /* Centrado visual y mejor balance de lÃ­neas */
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0;
  text-align: center;
}

.highlight-text {
  color: var(--color-inst-green);
  background: linear-gradient(135deg, #34d399, var(--color-inst-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.highlight-text-orange {
  color: var(--color-inst-orange);
  background: linear-gradient(135deg, #fb923c, var(--color-inst-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.spacer-section .spacer-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.spacer-section.reveal .spacer-content {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================================================== 
   Sobre CEMER Section
   ========================================================================== */
.about-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(96px, 12vw, 150px) 24px;
  background:
    linear-gradient(135deg, rgba(9, 11, 14, 0.96), rgba(12, 18, 20, 0.98)),
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.16), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(249, 115, 22, 0.14), transparent 38%);
  border-top: 1px solid rgba(16, 185, 129, 0.18);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.65) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 95, 0.45) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 70%);
}

.about-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-inst-dark-bg), transparent);
}

.about-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section.reveal .about-inner {
  opacity: 1;
  transform: translateY(0);
}

.section-eyebrow {
  margin-bottom: 18px;
  color: rgba(16, 185, 129, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.about-copy h2 {
  margin: 0 0 28px;
  font-family: var(--font-playfair);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
}

.about-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-inter);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.85;
  text-wrap: pretty;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px -36px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.about-card:nth-child(even) {
  border-color: rgba(249, 115, 22, 0.24);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 80px -34px rgba(16, 185, 129, 0.4);
}

.about-card:nth-child(even):hover {
  border-color: rgba(249, 115, 22, 0.58);
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 80px -34px rgba(249, 115, 22, 0.36);
}

.about-card i {
  width: 30px;
  height: 30px;
  color: var(--color-inst-green);
}

.about-card:nth-child(even) i {
  color: var(--color-inst-orange);
}

.about-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.25;
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-lead {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding: 160px 18px 110px;
  }

  .hero-title-center {
    font-size: clamp(29px, 10vw, 42px);
  }

  .about-section {
    padding: 88px 18px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .hero-tech-particles,
  .hero-container-center,
  .about-inner {
    animation: none !important;
    transition: none !important;
  }

  .about-inner,
  .hero-container-center {
    opacity: 1;
    transform: none;
  }
}

/* Inline SVG icon compatibility after removing external icon CDN. */
.menu-item svg,
.dropdown-header svg,
.dropdown-item-icon svg,
.dropdown-item-title svg.arrow,
.btn-contact svg,
.mobile-toggle svg,
.mobile-nav-item svg,
.mobile-btn-contact svg,
.scroll-arrow,
.about-card svg {
  flex-shrink: 0;
  display: inline-block;
}

.menu-item svg {
  width: 16px;
  height: 16px;
  color: rgba(212, 175, 95, 0.8);
}

.menu-item .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.dropdown-header svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.dropdown-item-icon svg,
.btn-contact svg,
.mobile-btn-contact svg {
  width: 16px;
  height: 16px;
}

.dropdown-item-title svg.arrow {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease-in-out;
}

.dropdown-item:hover .dropdown-item-title svg.arrow {
  opacity: 1;
  transform: translateX(0);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Sobre CEMER institutional image replaces the previous axis cards. */
.sobre-cemer-media {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(10px, 1.6vw, 16px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 26px 80px -48px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(16, 185, 129, 0.08),
    0 0 58px rgba(249, 115, 22, 0.055);
  overflow: hidden;
}

.sobre-cemer-media::before {
  content: "";
  position: absolute;
  inset: -28%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(249, 115, 22, 0.14), transparent 36%);
  opacity: 0.85;
}

.sobre-cemer-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 18px 48px -34px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sobre-cemer-media:hover .sobre-cemer-image {
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.02);
}

@media (max-width: 900px) {
  .sobre-cemer-media {
    max-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobre-cemer-image {
    transition: none !important;
  }

  .sobre-cemer-media:hover .sobre-cemer-image {
    transform: none;
  }
}

/* ========================================================================== 
   Propósitos & Innovación Section
   ========================================================================== */
.purpose-section {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: clamp(92px, 11vw, 144px) 24px;
  background:
    radial-gradient(circle at 8% 14%, rgba(16, 185, 129, 0.08), transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(249, 115, 22, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f8f5 100%);
  color: #111827;
}

.purpose-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 115, 22, 0.55) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 72%);
}

.purpose-container {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.purpose-media-card {
  position: relative;
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 26px 70px -48px rgba(17, 24, 39, 0.45),
    0 12px 30px -24px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.purpose-media-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.14), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(249, 115, 22, 0.12), transparent 36%);
}

.purpose-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  background: #ffffff;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.purpose-media-card:hover .purpose-image {
  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.02);
}

.purpose-content {
  max-width: 610px;
}

.purpose-eyebrow {
  margin-bottom: 16px;
  color: #0f8d52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.purpose-content h2 {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-playfair);
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.purpose-title-line {
  width: min(180px, 52%);
  height: 4px;
  margin: 24px 0 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-inst-green), var(--color-inst-orange));
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.purpose-text {
  color: rgba(15, 23, 42, 0.78);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.82;
  text-wrap: pretty;
}

.purpose-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 34px;
}

.purpose-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #14532d;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.08);
}

.purpose-badges span:nth-child(even) {
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.08);
}

.purpose-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #047a3b, #10b981);
  box-shadow: 0 16px 34px -20px rgba(4, 122, 59, 0.8);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, background 0.28s;
}

.purpose-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #056e34, #12a86f);
  box-shadow: 0 20px 42px -22px rgba(4, 122, 59, 0.9);
}

@media (max-width: 900px) {
  .purpose-container {
    grid-template-columns: 1fr;
  }

  .purpose-content {
    order: 1;
    max-width: none;
  }

  .purpose-media-card {
    order: 2;
    max-width: 720px;
  }
}

@media (max-width: 560px) {
  .purpose-section {
    padding: 84px 18px;
  }

  .purpose-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purpose-image,
  .purpose-button {
    transition: none !important;
  }

  .purpose-media-card:hover .purpose-image,
  .purpose-button:hover {
    transform: none;
  }
}

/* ========================================================================== 
   Institutional Footer
   ========================================================================== */
/* ========================================================================== 
   Colophon Footer (SPRINT UI-05 Rediseño Institucional)
   ========================================================================== */
.cemer-colophon-footer {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: clamp(56px, 6vw, 84px) 24px clamp(32px, 4vw, 48px);
  background: #00271d;
  color: #ffffff;
  border-top: 1px solid rgba(199, 163, 60, 0.25);
}

.cemer-colophon__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(to right, rgba(40, 150, 92, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cemer-colophon__container {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
}

/* Nivel 2 y 3: Body Grid Asimétrico (Sprint UI-Final: de 4 a 3 columnas al
   consolidar los enlaces esenciales en una sola columna, evitando el espejo
   del menú principal). */
.cemer-colophon__body-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}

.cemer-colophon__logo-wrap {
  display: inline-block;
  margin-bottom: 20px;
}

.cemer-colophon__logo {
  height: 48px;
  width: auto;
  display: block;
}

.cemer-colophon__tagline {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  line-height: 1.68;
  max-width: 360px;
}

.cemer-colophon__institution-seal {
  display: inline-block;
  font-size: 0.78125rem;
  font-weight: 700;
  color: #c7a33c;
  letter-spacing: 0.04em;
}

.cemer-colophon__nav-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px 0;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7a33c;
}

.cemer-colophon__nav-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #c7a33c;
  flex: 0 0 auto;
}

.cemer-colophon__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cemer-colophon__link-list .footer-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cemer-colophon__link-list .footer-link:hover,
.cemer-colophon__link-list .footer-link:focus-visible {
  color: #c7a33c;
  transform: translateX(4px);
}

.footer-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #28965c;
}

.footer-link__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.footer-link__label {
  min-width: 0;
}

.cemer-colophon__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cemer-colophon__address .address-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cemer-colophon__address .address-icon {
  width: 16px;
  height: 16px;
  color: #28965c;
  flex-shrink: 0;
  margin-top: 2px;
}

.cemer-colophon__address a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cemer-colophon__address a:hover {
  color: #28965c;
}

/* Nivel 4: Bar Legal & Redes Discretas */
.cemer-colophon__footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cemer-colophon__copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cemer-colophon__social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cemer-colophon__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cemer-colophon__social-link:hover,
.cemer-colophon__social-link:focus-visible {
  background: rgba(199, 163, 60, 0.15);
  border-color: #c7a33c;
  color: #c7a33c;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 980px) {
  .cemer-colophon__body-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .cemer-colophon__body-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cemer-colophon-footer {
    padding: 48px 18px 32px;
  }

  .cemer-colophon__footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1120px) {
  .footer-main-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 68px 18px 30px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-map-frame {
    height: 240px;
  }

  .footer-social-row {
    justify-content: flex-start;
  }

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

  .footer-legal {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav a,
  .footer-contact a,
  .footer-legal a,
  .footer-social {
    transition: none !important;
  }

  .footer-nav a:hover,
  .footer-contact a:hover,
  .footer-legal a:hover,
  .footer-social:hover {
    transform: none;
  }
}

/* ========================================================================== 
   Main Menu Refinements
   ========================================================================== */
.dropdown-trigger {
  font: inherit;
}

.dropdown-container:focus-within .dropdown-menu,
.dropdown-container.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-container:hover .dropdown-trigger .chevron,
.dropdown-container:focus-within .dropdown-trigger .chevron,
.dropdown-container.open .dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.dropdown-content {
  border-color: rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(145deg, rgba(11, 13, 18, 0.94), rgba(7, 18, 22, 0.92)),
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.12), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(249, 115, 22, 0.1), transparent 36%);
  box-shadow: 0 22px 70px -32px rgba(0, 0, 0, 0.9), 0 0 36px rgba(16, 185, 129, 0.08);
}

.dropdown-content::before {
  content: "";
  display: block;
  height: 2px;
  margin: -8px -8px 8px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.7), rgba(249, 115, 22, 0.56));
}

.mobile-dropdown-toggle {
  width: 100%;
  justify-content: flex-start;
}

.mobile-dropdown-toggle .mobile-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.mobile-channel.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-channel .mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s, margin 0.25s;
}

.mobile-channel.open .mobile-sub-menu {
  max-height: 260px;
  margin-top: 2px;
  margin-bottom: 8px;
  opacity: 1;
}

.mobile-channel .mobile-sub-item {
  border: 1px solid transparent;
}

.mobile-channel .mobile-sub-item:hover,
.mobile-channel .mobile-sub-item:focus-visible {
  border-color: rgba(16, 185, 129, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-dropdown-toggle .mobile-chevron,
  .mobile-channel .mobile-sub-menu {
    transition: none !important;
  }
}

/* ========================================================================== 
   Footer Alignment Refactor
   ========================================================================== */
.site-footer {
  padding: clamp(68px, 7vw, 92px) 24px 32px;
}

.site-footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.footer-brand,
.footer-nav,
.footer-contact,
.footer-map {
  align-self: start;
  min-height: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  margin-bottom: 18px;
}

.footer-logo {
  width: clamp(148px, 15vw, 188px);
}

.footer-institution-name {
  max-width: 390px;
  margin-bottom: 14px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.footer-description {
  max-width: 410px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.68;
}

.footer-seal {
  margin-bottom: 20px;
}

.footer-social-row {
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
}

.footer-social {
  width: 42px;
  height: 42px;
}

.footer-nav,
.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav h2,
.footer-contact h2,
.footer-map h2 {
  min-height: 18px;
  margin: 0 0 20px;
}

.footer-contact address {
  max-width: 240px;
}

.footer-map-frame {
  height: 250px;
  margin-top: 0;
}

.footer-bottom {
  align-items: center;
  margin-top: 46px;
  padding-top: 24px;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .footer-main-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 56px 72px;
  }

  .footer-contact address {
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 62px 18px 28px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-description,
  .footer-institution-name,
  .footer-contact address {
    max-width: none;
  }

  .footer-nav,
  .footer-contact {
    text-align: center;
  }

  .footer-nav,
  .footer-contact address {
    align-items: center;
  }

  .footer-social-row {
    justify-content: center;
  }

  .footer-map h2 {
    text-align: center;
  }

  .footer-map-frame {
    height: 230px;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
    margin-top: 38px;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* ========================================================================== 
   Institutional Link & Footer Navigation Alignment
   ========================================================================== */
.about-institutional-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  margin-top: 34px;
  border-radius: 999px;
  padding: 14px 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #047a3b, #10b981 58%, #f97316 145%);
  box-shadow: 0 18px 38px -24px rgba(16, 185, 129, 0.82);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, background 0.28s;
}

.about-institutional-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #056e34, #12a86f 56%, #fb923c 150%);
  box-shadow: 0 22px 48px -26px rgba(16, 185, 129, 0.95);
}

.footer-main-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.footer-brand,
.footer-nav,
.footer-contact,
.footer-channel {
  align-self: start;
  min-width: 0;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list h2,
.footer-contact h2 {
  margin: 0 0 20px;
}

.footer-link-list a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.25s, transform 0.25s;
}

.footer-link-list a:hover {
  color: #34d399;
  transform: translateX(3px);
}

.footer-link-list svg {
  width: 16px;
  height: 16px;
  color: rgba(16, 185, 129, 0.78);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact address {
  max-width: 260px;
  gap: 14px;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #047a3b, #10b981);
  box-shadow: 0 16px 34px -24px rgba(16, 185, 129, 0.9);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}

.footer-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -26px rgba(16, 185, 129, 0.95);
}

@media (max-width: 1120px) {
  .footer-main-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 56px 72px;
  }
}

@media (max-width: 720px) {
  .about-institutional-link {
    width: 100%;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-link-list,
  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .footer-link-list a {
    width: fit-content;
    text-align: left;
  }

  .footer-contact-button {
    width: min(100%, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-institutional-link,
  .footer-link-list a,
  .footer-contact-button {
    transition: none !important;
  }

  .about-institutional-link:hover,
  .footer-link-list a:hover,
  .footer-contact-button:hover {
    transform: none;
  }
}

/* Contact route placeholder */
.contact-placeholder-section {
  min-height: 70vh;
  padding: 160px 24px 96px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(249, 115, 22, 0.1), transparent 36%),
    #04111f;
}

.contact-placeholder-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  color: #ffffff;
}

.contact-placeholder-inner h1 {
  margin: 0 0 22px;
  font-family: var(--font-playfair);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.contact-placeholder-inner p:not(.section-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

/* ========================================================================== 
   Compact Footer Refinement
   ========================================================================== */
.site-footer {
  padding: clamp(48px, 5.6vw, 70px) 24px 24px;
}

.footer-compact-grid {
  grid-template-columns: 1.45fr 0.8fr 1fr;
  gap: clamp(36px, 5vw, 58px);
  align-items: start;
}

.footer-compact-grid .footer-logo-link {
  margin-bottom: 14px;
}

.footer-compact-grid .footer-logo {
  width: clamp(132px, 13vw, 166px);
}

.footer-compact-grid .footer-description {
  max-width: 390px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.58;
}

.footer-compact-grid .footer-seal {
  margin-bottom: 16px;
  padding: 8px 12px;
  font-size: 11px;
}

.footer-compact-grid .footer-social-row {
  gap: 8px;
}

.footer-compact-grid .footer-social {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.footer-compact-grid .footer-link-list {
  gap: 10px;
}

.footer-compact-grid .footer-link-list h2 {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.footer-compact-grid .footer-link-list a {
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.35;
}

.footer-compact-grid .footer-link-list svg {
  width: 14px;
  height: 14px;
}

.footer-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-contact-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.footer-contact-strip a:not(.footer-contact-button) {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
}

.footer-contact-strip a:not(.footer-contact-button):hover {
  color: #34d399;
}

.footer-contact-strip .footer-contact-button {
  flex: 0 0 auto;
  min-height: 36px;
  margin-top: 0;
  padding: 8px 14px;
  font-size: 12px;
}

.footer-bottom-compact {
  margin-top: 20px;
  padding-top: 18px;
}

.footer-bottom-compact p,
.footer-bottom-compact .footer-legal a,
.footer-bottom-compact .footer-legal span {
  font-size: 12px;
}

@media (max-width: 1120px) {
  .footer-compact-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 42px 58px;
  }

  .footer-compact-grid .footer-channel {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 44px 18px 22px;
  }

  .footer-compact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-compact-grid .footer-channel {
    grid-column: auto;
  }

  .footer-contact-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 28px;
  }

  .footer-contact-strip .footer-contact-button {
    width: min(100%, 220px);
  }

  .footer-bottom-compact {
    margin-top: 18px;
    padding-top: 16px;
  }
}

/* ==========================================================================
   Error Pages
   ========================================================================== */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.error-inner {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-family: var(--font-cinzel);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.error-title {
  font-family: var(--font-playfair);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.error-message {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-home-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-background);
  font-family: var(--font-cinzel);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.error-home-link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
