/* =====================================================
   EQUALIA.ONG — Modern Light & Clean Redesign
   Custom Design System & Styles (Pure White & Elegant Theme)
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ===================================================== */
:root {
  /* Primary & Accents */
  --clr-primary:        #c5399a;
  --clr-primary-light:  #d655b3;
  --clr-primary-pale:   #fce7f7;
  --clr-primary-dark:   #9e2e7c;
  --clr-accent:         #E8175D;
  --clr-accent-pale:    #FFE4EC;
  --clr-accent-warm:    #F97316;
  --clr-teal:           #0D9488;
  --clr-teal-pale:      #CCFBF1;

  /* Pure White Canvas & Crisp Light Backgrounds */
  --clr-bg:             #FFFFFF;
  --clr-bg-alt:         #F8F9FA;
  --clr-bg-subtle:      #F3F4F6;
  --clr-card:           #FFFFFF;
  --clr-dark-card:      #111827;

  /* Borders & Dividers */
  --clr-border:         #E5E7EB;
  --clr-border-light:   #F3F4F6;
  --clr-border-focus:   #d655b3;

  /* Typography Colors */
  --clr-text:           #111827;
  --clr-text-muted:     #4B5563;
  --clr-text-light:     #9CA3AF;
  --clr-white:          #FFFFFF;

  /* Quick Exit Alert Color */
  --clr-danger:         #DC2626;
  --clr-danger-pale:    #FEE2E2;

  /* Typography Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing System (8px base) */
  --sp-1:  0.25rem;   /* 4px  */
  --sp-2:  0.5rem;    /* 8px  */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-12: 3rem;      /* 48px */
  --sp-16: 4rem;      /* 64px */
  --sp-20: 5rem;      /* 80px */
  --sp-24: 6rem;      /* 96px */

  /* Layout Standards */
  --nav-height:      76px;
  --container-max:   1200px;
  --container-pad:   clamp(1.25rem, 4vw, 2.5rem);

  /* Radii */
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --radius-pill:   999px;

  /* Refined Soft Shadows */
  --shadow-subtle: 0 2px 8px rgba(0,0,0,0.03);
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:     0 10px 30px -5px rgba(0,0,0,0.06);
  --shadow-lg:     0 20px 45px -10px rgba(197,57,154,0.08);
  --shadow-hover:  0 20px 35px -5px rgba(197,57,154,0.12);

  /* Transitions */
  --ease:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =====================================================
   3. TYPOGRAPHY & HEADINGS
   ===================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { max-width: 65ch; color: var(--clr-text-muted); }
em { font-style: italic; color: var(--clr-primary); }

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.7;
}

/* =====================================================
   4. LAYOUT UTILITIES
   ===================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--sp-20) 0; }
.section-alt { background-color: var(--clr-bg-alt); }

.section-header { margin-bottom: var(--sp-12); }
.section-header.center { text-align: center; }
.section-header.center p { margin: var(--sp-4) auto 0; }
.section-header h2 { margin-top: var(--sp-2); }

/* Labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
}

.text-primary  { color: var(--clr-primary); }
.text-accent   { color: var(--clr-accent); }

/* =====================================================
   5. BUTTONS & CONTROLS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.82rem; }

/* Primary Button */
.btn-primary {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
  box-shadow: 0 4px 14px rgba(197,57,154,0.18);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,57,154,0.28);
}

/* Secondary Outline */
.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}
.btn-outline:hover {
  background: var(--clr-bg-subtle);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

/* Primary Ghost */
.btn-ghost-primary {
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  border-color: transparent;
}
.btn-ghost-primary:hover {
  background: var(--clr-primary);
  color: white;
}

/* Danger / Quick Exit Button */
.btn-quick-exit {
  background: var(--clr-danger-pale);
  color: var(--clr-danger);
  border-color: rgba(220, 38, 38, 0.2);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;

}
.btn-quick-exit:hover {
  background: var(--clr-danger);
  color: white;
  border-color: var(--clr-danger);
  box-shadow: 0 4px 14px rgba(220,38,38,0.25);
}

/* Ripple */
.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Floating Quick Exit Trigger */
.floating-quick-exit {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

/* =====================================================
   6. HEADER & NAVBAR (Pristine Light Glass)
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: all var(--ease);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--clr-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}

/* High Contrast Framed Logo Badge in Header */
.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--clr-primary-pale);
  border: 1px solid rgba(197, 57, 154, 0.18);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--ease);
}
.nav-logo:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 57, 154, 0.2);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-svg {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  line-height: 1;
  transition: color var(--ease);
}

.nav-logo:hover .logo-text {
  color: white;
}
.nav-logo:hover .logo-svg path {
  fill: white;
}
.nav-logo:hover .logo-svg rect {
  fill: var(--clr-primary);
}

/* Footer brand logo styling */
.footer-brand .logo-brand .logo-text {
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  border-radius: var(--radius-sm);
  transition: color var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px; left: 50%;
  width: 0; height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: all var(--ease);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active { color: var(--clr-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 65%; }

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--clr-bg-subtle);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-border);
}
.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--clr-text-muted);
  transition: all var(--ease);
}
.lang-btn.active {
  background: white;
  color: var(--clr-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}
.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--ease);
}

/* Mobile Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: white;
  z-index: 1002;
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform var(--ease);
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-close { align-self: flex-end; color: var(--clr-text-muted); }
.drawer-menu { display: flex; flex-direction: column; gap: var(--sp-2); }
.drawer-link { font-size: 1.05rem; font-weight: 600; padding: var(--sp-2) 0; color: var(--clr-text); }

/* =====================================================
   7. HERO SECTION (Luminous White)
   ===================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--sp-12));
  padding-bottom: var(--sp-20);
  background: #FFFFFF;
  overflow: hidden;
}

/* Subtle background glow mesh */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 232, 255, 0.6) 0%, rgba(204, 251, 241, 0.3) 50%, rgba(255,255,255,0) 70%);
  filter: blur(60px);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(229, 231, 235, 0.3) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(229, 231, 235, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-pale);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(197, 57, 154, 0.12);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--clr-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(197, 57, 154, 0.2);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: var(--sp-5);
  color: var(--clr-text);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-8);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--clr-bg-alt);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  transition: all var(--ease);
}
.chip:hover {
  background: white;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.chip-icon { width: 15px; height: 15px; color: var(--clr-primary); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orb-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-orb-card::before {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 23, 93, 0.12) 0%, rgba(197, 57, 154, 0.04) 70%);
}

.orb-header-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.orb-center-graphic {
  position: relative;
  margin: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.graphic-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 2px dashed rgba(197, 57, 154, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 25s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.graphic-core {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 25px rgba(197, 57, 154, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  transition: opacity var(--ease);
}
.scroll-line {
  width: 2px; height: 28px;
  background: var(--clr-border);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.scroll-line-inner {
  width: 100%; height: 50%;
  background: var(--clr-primary);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* =====================================================
   8. VOCES QUE RESISTEN (Elevated Light Card)
   ===================================================== */
.voces-section { background-color: var(--clr-bg-alt); }

.voces-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  border-left: 5px solid var(--clr-primary);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-10);
  align-items: center;
  margin-bottom: var(--sp-12);
}

.voces-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  background: var(--clr-accent-pale);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}

.badge-pulse {
  width: 8px; height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(232, 23, 93, 0.4);
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(232, 23, 93, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(232, 23, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 23, 93, 0); }
}

.voces-title { margin-bottom: var(--sp-4); }
.voces-desc { margin-bottom: var(--sp-6); font-size: 1.05rem; }

.voces-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.voces-quote-wrapper {
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 1px solid var(--clr-border-light);
  position: relative;
}

.quote-mark {
  width: 36px; height: 36px;
  color: var(--clr-primary);
  opacity: 0.2;
  margin-bottom: var(--sp-2);
}

.voces-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}

.voces-quote cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}
.cite-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--clr-primary); letter-spacing: 0.1em; }
.cite-source { font-size: 0.88rem; font-weight: 600; color: var(--clr-text-muted); }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.stat-item {
  background: white;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all var(--ease);
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary-pale);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

/* =====================================================
   9. NUESTRO IMPACTO (Clean Light Grid)
   ===================================================== */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.impacto-card {
  background: white;
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.impacto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--icon-color, var(--clr-primary));
  opacity: 0.8;
}
.impacto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-light);
}

.impacto-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-subtle);
  color: var(--icon-color, var(--clr-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.impacto-icon svg { width: 28px; height: 28px; }

.impacto-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-3);
}

/* =====================================================
   10. QUIÉNES SOMOS
   ===================================================== */
.quienes-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-12);
  align-items: center;
}

.quienes-text h2 { margin: var(--sp-2) 0 var(--sp-4); }
.quienes-text p { margin-bottom: var(--sp-4); }

.quienes-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 var(--sp-8);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: white;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}

.value-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 20px; height: 20px; }

.quienes-visual {
  position: relative;
}

.visual-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}

.visual-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-teal);
  background: var(--clr-teal-pale);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-6);
}

.visual-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.vs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border-light);
}
.vs-item:last-child { border-bottom: none; padding-bottom: 0; }
.vs-item strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--clr-primary); }
.vs-item span { font-size: 0.9rem; font-weight: 600; color: var(--clr-text-muted); }

/* =====================================================
   11. CENTRO DE RECURSOS (With Search & Filter System)
   ===================================================== */
.recursos-section { background-color: var(--clr-bg-alt); }

.resources-control-bar {
  max-width: 720px;
  margin: 0 auto var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
}

.search-box-wrap {
  width: 100%;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: white;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-pill);
  color: var(--clr-text);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all var(--ease);
}
.search-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(197, 57, 154, 0.1);
}
.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--clr-text-light);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.filter-chip {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: white;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
  box-shadow: 0 4px 12px rgba(197,57,154,0.18);
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.recurso-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
}
.recurso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-pale);
}

.recurso-icon-wrap {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recurso-purple { background: var(--clr-primary-pale); color: var(--clr-primary); }
.recurso-accent { background: var(--clr-accent-pale); color: var(--clr-accent); }
.recurso-teal { background: var(--clr-teal-pale); color: var(--clr-teal); }
.recurso-warm { background: #FFEDD5; color: #EA580C; }

.recurso-icon { width: 28px; height: 28px; }

.recurso-body { flex: 1; }
.recurso-body h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.recurso-body p { font-size: 0.9rem; margin: 0; }

.recurso-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clr-bg-subtle);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
}
.recurso-card:hover .recurso-arrow {
  background: var(--clr-primary);
  color: white;
  transform: translateX(4px);
}
.recurso-arrow svg { width: 18px; height: 18px; }

/* =====================================================
   12. BLOG / PUBLICACIONES
   ===================================================== */
.blog-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-10);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--img-color, var(--clr-primary)) 0%, #4d0e3b 100%);
  padding: var(--sp-4);
  display: flex;
  align-items: flex-start;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
  color: var(--clr-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.blog-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-light);
  margin-bottom: var(--sp-2);
}

.blog-body h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: var(--sp-3);
}
.blog-body h3 a:hover { color: var(--clr-primary); }
.blog-body p { font-size: 0.9rem; line-height: 1.6; }

/* =====================================================
   13. NEWSLETTER & CONTACTO
   ===================================================== */
.newsletter-section {
  position: relative;
  background: var(--clr-dark-card);
  color: white;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 var(--container-pad) var(--sp-16);
  padding: var(--sp-16) var(--sp-8);
}

.newsletter-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-content h2 { color: white; margin: var(--sp-2) 0 var(--sp-4); }
.newsletter-content p { color: rgba(255,255,255,0.75); margin: 0 auto var(--sp-8); }

.newsletter-form {
  margin-bottom: var(--sp-8);
}

.form-group {
  display: flex;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.1);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: white;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.5); }

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
}

.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.social-link:hover {
  background: var(--clr-primary);
  transform: translateY(-3px);
}
.social-link svg { width: 20px; height: 20px; }

/* =====================================================
   14. FOOTER
   ===================================================== */
.footer {
  background: #0B0F17;
  color: white;
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: var(--sp-4) 0; }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: var(--sp-4);
}

.footer-nav ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color var(--ease); }
.footer-nav a:hover { color: white; }

.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: var(--sp-2); }
.footer-contact-btn { margin-top: var(--sp-4); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* =====================================================
   15. REPORT MODAL VIEWER
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.report-modal-card {
  background: white;
  width: min(840px, 95vw);
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--ease-bounce);
}
.modal-overlay.active .report-modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-bg-alt);
}
.modal-header h3 { font-size: 1.35rem; }
.modal-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.modal-close-btn:hover { background: var(--clr-danger-pale); color: var(--clr-danger); }

.modal-body {
  padding: var(--sp-8);
  overflow-y: auto;
}
.modal-body h4 { font-size: 1.1rem; margin: var(--sp-4) 0 var(--sp-2); color: var(--clr-primary); }

.modal-footer {
  padding: var(--sp-4) var(--sp-8);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-4);
}

/* =====================================================
   16. REVEAL ANIMATIONS
   ===================================================== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =====================================================
   18. PROYECTOS LANDING STYLES (proyecto.html)
   ===================================================== */
.proyectos-hero {
  padding-bottom: var(--sp-16);
}

.proyecto-orb-card {
  max-width: 440px;
}

.proyecto-hero-preview {
  margin: var(--sp-4) 0;
  padding: var(--sp-4);
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border-light);
}

.p-preview-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  background: var(--clr-accent-pale);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-2);
}

.proyectos-section {
  background-color: var(--clr-bg);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.proyecto-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.proyecto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--p-color, var(--clr-primary));
}

.proyecto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-light);
}

.proyecto-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.proyecto-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.proyecto-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-subtle);
  color: var(--p-color, var(--clr-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proyecto-icon svg { width: 22px; height: 22px; }

.proyecto-card-body {
  flex: 1;
  margin-bottom: var(--sp-6);
}

.proyecto-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-3);
  color: var(--clr-text);
}

.proyecto-card-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--clr-text-muted);
}

.proyecto-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border-light);
}

.proyecto-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text-light);
}

.proyecto-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-primary);
  transition: color var(--ease);
}
.proyecto-link:hover {
  color: var(--clr-primary-dark);
}

.btn-link-modal {
  background: none;
  border: none;
  cursor: pointer;
}

.cta-proyecto-section {
  background: var(--clr-bg-alt);
}
.cta-proyecto-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-proyecto-box h2 {
  margin: var(--sp-2) 0 var(--sp-4);
}

/* =====================================================
   19. VOCES QUE RESISTEN REPORT LANDING STYLES (voces-que-resisten.html)
   ===================================================== */
.report-hero {
  padding-bottom: var(--sp-16);
}

.report-orb-card {
  max-width: 420px;
}

.report-document-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-bg-alt);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  margin: var(--sp-4) 0;
}

.doc-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--clr-accent);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-mini-quote p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--clr-primary);
  line-height: 1.4;
}

.report-findings-section {
  background-color: var(--clr-bg);
}

.report-findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.report-finding-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  position: relative;
}

.report-finding-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-pale);
}

.finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.finding-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-primary);
  opacity: 0.3;
  line-height: 1;
}

.finding-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.report-finding-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--sp-3);
  color: var(--clr-text);
}

.report-finding-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--clr-text-muted);
}

.report-download-banner {
  background: var(--clr-bg-alt);
}

@media (max-width: 1024px) {
  .report-findings-grid { grid-template-columns: 1fr; }
  .report-finding-card[style*="grid-column"] { grid-column: span 1 !important; }
}


/* =====================================================
   RESPONSIVE DESIGN (MOBILE & TABLET BREAKPOINTS)
   ===================================================== */

@media (max-width: 900px) {
  /* Navbar: Hide desktop links and show mobile toggle */
  #navbar .nav-menu,
  #navbar .lang-switcher,
  #navbar .btn-quick-exit {
    display: none !important;
  }
  
  #navbar .nav-toggle {
    display: flex !important;
  }

  .nav-container {
    padding: 0 1.25rem !important;
  }

  /* Hero Section Stacking */
  .hero {
    padding-top: calc(var(--nav-height) + 2rem) !important;
    padding-bottom: 3rem !important;
  }

  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.8rem) !important;
  }

  .hero-subtitle {
    font-size: 0.98rem !important;
    max-width: 100% !important;
  }

  .hero-chips {
    justify-content: center !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-visual {
    width: 100% !important;
  }

  /* Galería Page (/galeria/) Stacking on Mobile */
  .page-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .gallery-col {
    position: relative !important;
    top: 0 !important;
    height: 50vh !important;
    min-height: 320px !important;
  }

  .info-col {
    padding: 2rem 1.25rem !important;
    border-left: none !important;
    border-top: 1px solid var(--clr-border) !important;
  }

  /* Grid Layouts Stacking */
  .posts-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .report-findings-grid,
  .post-featured {
    grid-template-columns: 1fr !important;
  }

  .post-featured .post-img {
    min-height: 240px !important;
  }

  /* Footer Mobile Alignment */
  .footer-grid,
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .footer-logo-link,
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-socials {
    justify-content: center !important;
  }

  /* Floating Quick Exit Position on Mobile */
  .floating-quick-exit {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem !important;
  }
  
  .section {
    padding: 3.5rem 0 !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
