/* ==========================================================================
   base.css — Shared foundation for all Freedom Forever custom pages
   Loaded via header.php on every custom page (homepage, about, newsroom, leadership)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  font-size: 16px;

  /* Colors */
  --color-green-dark: #2C5134;
  --color-green-mid: #323A34;
  --color-green-light: #97AE58;
  --color-lime: #CDEA80;
  --color-lime-muted: rgba(205, 234, 128, 0.25);
  --color-lime-bg: #F2FADF;
  --color-off-white: #F6F6F6;
  --color-off-white-green: #F8FBEF;
  --color-gray-dark: #666666;
  --color-gray-mid: #949494;
  --color-gray-light: #B3B3B3;
  --color-gray-border: #d1d1d1;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-nav-bg-light: rgba(224, 232, 205, 0.25);
  --color-nav-bg-dark: rgba(44, 81, 52, 0.25);
  --color-hero-overlay: rgba(0, 0, 0, 0.4);
  --color-card-border: rgba(205, 234, 128, 1);
  --color-news-hover: #F6FAF6;

  /* Font families */
  --font-display: "Articulat CF Bold", "Articulat CF", sans-serif;
  --font-body: "Neue Haas Unica Pro", sans-serif;
  --font-ui: "Articulat CF", sans-serif;

  /* Font sizes — unified scale */
  --text-label:   clamp(12px, 1vw, 1.125vw);
  --text-body:    clamp(16px, 1.2vw, 1.3vw);
  --text-body-lg: clamp(18px, 1.35vw, 1.55rem);
  --text-ui:      clamp(18px, 1vw, 1.1vw);
  --text-card:    clamp(18px, 1.1vw, 1.625vw);
  --text-nav:     clamp(18px, 1.2vw, 1.3rem);
  --text-footer:  clamp(18px, 1.5vw, 1.65rem);
  --text-h4:      clamp(20px, 3.25vw, 3.25vw);
  --text-h3:      clamp(26px, 3vw, 5.125vw);
  --text-h2:      clamp(32px, 4vw, 6.25vw);
  --text-h1:      clamp(36px, 6vw, 6rem);
  --text-hero:    clamp(40px, 6vw, 8vw);
  --text-hero-xl: clamp(65px, 8.5vw, 7rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.25rem;
  --space-4: 1.5rem;
  --space-6: 2rem;
  --space-8: 2.5rem;
  --space-10: 3rem;
  --space-section: 5%;
  --space-nav-pad: clamp(100px, 15vh, 140px);

  /* Radii */
  --radius-card: 15px;
  --radius-btn: 10px;
  --radius-pill: 100px;
  --radius-section: 52px;
  --radius-content: 4.35dvw;

  /* Transitions */
  --transition-default: all 0.3s ease-in-out;
  --transition-flip: transform 0.8s;
  --transition-menu: all 0.5s ease;

  /* Legacy aliases — used by styles.css (homepage) until Phase 4 rewrite */
  --primary: var(--color-nav-bg-light);
  --secondary: #7d7d7d;
  --three: var(--color-lime);
  --four: var(--color-green-light);
  --dark: var(--color-green-dark);
  --light: var(--color-off-white);
  --text-sx: clamp(14px, 0.85vw, 1.05rem);
  --text-sm: var(--text-nav);
  --text-md: var(--text-footer);
  --text-md2: var(--text-body-lg);
  --text-lg: clamp(24px, 2vw, 2.1rem);
  --text-lg2: clamp(24px, 2.05vw, 2.26rem);
  --text-xl: var(--text-h1);
  --font-size-h1: var(--text-hero);
  --font-size-h2: var(--text-h2);
  --font-size-h3: var(--text-h3);
  --font-size-h4: var(--text-h4);
  --font-size-h5: var(--text-label);
  --font-size-h6: var(--text-card);
  --font-size-p: var(--text-body);
  --font-size-btn: var(--text-ui);
}

/* ==========================================================================
   2. FONT FACES
   Neue Haas Unica Pro: loaded via neueStyleSheet.css in header.php
   Articulat CF: 3 separate family names (matches original site rendering)
   ========================================================================== */
/* Neue Haas Unica Pro — explicit weight mappings for non-standard weights
   neueStyleSheet.css only declares standard weights (100-900).
   Our CSS uses 250 and 350, so browsers guess wrong without these. */
@font-face {
  font-family: "Neue Haas Unica Pro";
  src: url("../fonts/Neue-Haas-Unica-Pro/Neue-Haas-Unica-Pro/NeueHaasUnicaPro-Thin.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
}
@font-face {
  font-family: "Neue Haas Unica Pro";
  src: url("../fonts/Neue-Haas-Unica-Pro/Neue-Haas-Unica-Pro/NeueHaasUnicaPro-UltraLight.ttf") format("truetype");
  font-weight: 250;
  font-style: normal;
}

@font-face {
  font-family: "Articulat CF";
  src: url("../fonts/Articulat/ArticulatCF-Regular.otf");
}

@font-face {
  font-family: "Articulat CF Bold";
  src: url("../fonts/Articulat/ArticulatCF-Bold.otf");
}

@font-face {
  font-family: "Articulat";
  src: url("../fonts/Articulat/ArticulatCF-Thin.otf");
}

/* ==========================================================================
   3. GLOBAL RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  width: 100%;
  scroll-behavior: smooth;
}

.ff-custom-page {
  overflow-x: hidden;
  width: 100%;
}

.ff-custom-page a {
  text-decoration: none;
  transition: var(--transition-menu);
}

.ff-custom-page li {
  list-style: none;
}

.ff-custom-page input {
  outline: none;
}

.ff-custom-page button,
.ff-custom-page a {
  cursor: pointer;
}

svg {
  position: relative;
  transition: var(--transition-menu);
}

::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   4. DISPLAY HELPERS
   ========================================================================== */
.no-mb {
  display: flex !important;
}

.no-desk {
  display: none !important;
}

/* ==========================================================================
   5. LAYOUT UTILITIES
   ========================================================================== */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.align-center  { align-items: center; }
.justify-center { justify-content: center; }

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

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

.start-row {
  display: flex;
  justify-content: start;
  align-items: start;
}

.start-column {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
}

.start-between-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.start-horizontal-center-vertical-row {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 1rem;
}

.start-horizontal-center-vertical-column {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
}

.center-horizontal-start-vertical-column {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}

.center-horizontal-end-vertical-column {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
}

.end-horizontal-center-vertical-column {
  display: flex;
  justify-content: center;
  align-items: end;
  flex-direction: column;
}

.end-horizontal-center-vertical-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.end-horizontal-center-vertical-row img {
  width: clamp(14px, 1vw, 1vw);
  height: clamp(14px, 1vw, 1vw);
}
.end-horizontal-center-vertical-row a {
  padding: 8px;
  border-radius: 100%;
  border: 1px solid var(--color-off-white);
}
.end-horizontal-center-vertical-row a:hover {
  scale: 1.1;
}

.center-horizontal-end-vertical-row {
  display: flex;
  justify-content: center;
  align-items: end;
}

.center-horizontal-start-vertical-row {
  display: flex;
  justify-content: center;
  align-items: start;
}

/* Width / Height */
.w-100 { width: 100%; }
.w-95  { width: 95%; }
.h-full, .h-100 { height: 100%; }
.h-90  { height: 90%; }

/* Gaps */
.gap-05 { gap: 0.5rem; }
.gap-1  { gap: 1rem; }
.gap-15 { gap: 1.5rem; }
.gap-2  { gap: 2rem; }
.gap-25 { gap: 2.5rem; }
.gap-3  { gap: 3rem; }

/* ==========================================================================
   6. COLOR & BACKGROUND UTILITIES
   ========================================================================== */
.bg-primary   { background-color: var(--color-nav-bg-light); }
.bg-secondary { background-color: var(--secondary); }
.bg-three     { background-color: var(--color-lime); }
.bg-four      { background-color: var(--color-green-light); }
.bg-dark      { background-color: var(--color-green-dark); }
.bg-light     { background-color: var(--color-white); }

.border-primary   { border: 1px solid var(--color-nav-bg-light); }
.border-secondary { border: 1px solid var(--secondary); }
.border-three     { border: 1px solid var(--color-lime); }
.border-four      { border: 1px solid var(--color-green-light); }
.border-dark      { border: 1px solid var(--color-green-dark); }
.border-light     { border: 1px solid var(--color-off-white); }

/* Text color cascading classes */
.primary, .primary a, .primary p,
.primary h1, .primary h2, .primary h3,
.primary h4, .primary h5, .primary h6 { color: var(--color-nav-bg-light); }

.secondary, .secondary a, .secondary p,
.secondary h1, .secondary h2, .secondary h3,
.secondary h4, .secondary h5, .secondary h6 { color: var(--secondary); }

.three, .three a, .three p,
.three h1, .three h2, .three h3,
.three h4, .three h5, .three h6 { color: var(--color-lime); }

.four, .four a, .four p,
.four h1, .four h2, .four h3,
.four h4, .four h5, .four h6 { color: var(--color-green-light); }

.dark, .dark a, .dark p,
.dark h1, .dark h2, .dark h3,
.dark h4, .dark h5, .dark h6 { color: var(--color-green-dark) !important; }

.light, .light a, .light p,
.light h1, .light h2, .light h3,
.light h4, .light h5, .light h6 { color: var(--color-off-white); }

/* ==========================================================================
   7. TYPOGRAPHY UTILITIES
   ========================================================================== */
.text-regular, .text-regular a, .text-regular p,
.text-regular h1, .text-regular h2, .text-regular h3,
.text-regular h4, .text-regular h5, .text-regular h6 { font-weight: 400; }

.text-semibold, .text-semibold a, .text-semibold p,
.text-semibold h1, .text-semibold h2, .text-semibold h3,
.text-semibold h4, .text-semibold h5, .text-semibold h6 { font-weight: 500; }

.text-bold, .text-bold a, .text-bold p,
.text-bold h1, .text-bold h2, .text-bold h3,
.text-bold h4, .text-bold h5, .text-bold h6 { font-weight: 700; }

.text-regular { display: flex; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-xs {
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  line-height: 130%;
}

.text-sm {
  color: var(--color-gray-dark);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 700;
  line-height: 100%;
}

.text-normal {
  font-size: var(--text-h4);
  color: var(--color-green-dark);
  font-family: var(--font-ui);
  font-weight: bold;
}

.text-xxl {
  color: var(--color-green-dark);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 100%;
}

.text-xl {
  color: var(--color-lime);
  font-family: var(--font-ui);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 100%;
}

.text-p-white {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 350;
  line-height: 130%;
}

.text-p-black {
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 120%;
}

/* ==========================================================================
   8. BUTTON UTILITIES
   ========================================================================== */
.btn-white {
  border-radius: var(--radius-btn);
  background: var(--color-off-white);
  color: var(--color-green-dark);
  padding: 15px 38px;
  font-size: var(--text-ui);
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  transition: var(--transition-default);
}
.btn-white:hover {
  background: var(--color-lime);
  color: var(--color-green-dark);
}

.btn-green {
  border-radius: var(--radius-btn);
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: 15px 38px;
  font-size: var(--text-ui);
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  transition: var(--transition-default);
}

/* ==========================================================================
   9. SECTION HEIGHTS — from old styles.css, used by about page
   These move to about.css in Phase 3
   ========================================================================== */
.advocacy,
.newsroom,
.team {
  height: 100vh;
}

/* ==========================================================================
   10. SHARED COMPONENTS — Green gradient card
   Used by: newsroom (quote card), about (mission card)
   ========================================================================== */
.linear-bg-green {
  background: linear-gradient(256deg, #2C5134 50.66%, #323A34 89.02%);
}

.mission-content {
  width: 80%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-content);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 10vh;
}

.mission-content p {
  color: var(--color-white);
  text-align: center;
  max-width: 50%;
  margin-top: 10%;
  margin-bottom: 10%;
}

.mission-content h6 {
  font-size: clamp(14px, 1.2vw, 1.2vw);
  margin-bottom: 5%;
  margin-top: 2%;
}

.bg-image-solar {
  position: absolute;
}
.bg-image-solar img {
  width: 80dvw;
}

.mission .panel-img {
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: fit-content;
  display: flex;
  justify-content: center;
  margin-top: 10%;
  width: 100%;
}
.panel-img img {
  width: 50%;
}

/* ==========================================================================
   10. NAV
   ========================================================================== */
nav {
  display: flex;
  position: fixed;
  height: 6rem;
  width: 100%;
  top: 0;
  z-index: 10;
  min-height: 70px;
  max-height: 120px;
  justify-content: center;
  align-items: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.content-nav {
  display: flex;
  width: 95%;
  align-items: center;
  justify-content: start;
  height: 80%;
  border-radius: 20px;
  background: var(--color-nav-bg-dark);
  backdrop-filter: blur(12.5px);
}

.logotipo-img {
  width: 26%;
  height: 100%;
  position: relative;
}
.logotipo-img a {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}
.logotipo-img a img {
  position: absolute;
  max-width: 250px;
  min-width: 120px;
  width: 85%;
  height: auto;
  top: 45%;
  transform: translateY(-50%);
  left: 5%;
  transition: all 0.8s ease;
}

.inactive-logo { opacity: 0; z-index: -1; }
.active-logo   { opacity: 1; z-index: 1; }

.center-content-nav {
  flex-grow: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.end-content-nav {
  width: 30.5%;
  display: flex;
  justify-content: end;
  gap: var(--space-4);
  padding-right: 1.5%;
}
.end-content-nav a {
  border-radius: var(--radius-btn);
  padding: 15px 30px;
  text-wrap: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nav link text styles */
.group-text-articulat span svg {
  transition: var(--transition-menu);
}

.group-text-articulatas a,
.group-text-articulatas span {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-nav);
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: fit-content;
  gap: 0.75rem;
  line-height: 100%;
  color: var(--color-off-white);
  transition: var(--transition-menu);
}

.group-text-articulat a,
.group-text-articulat span {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-nav);
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: fit-content;
  gap: 0.75rem;
  line-height: 100%;
  transition: var(--transition-menu);
}

.group-text-articulatas a img {
  opacity: 0;
  position: relative;
  left: -5%;
  transition: var(--transition-menu);
}
.group-text-articulat a:hover { transform: scale(1.1); }
.group-text-articulatas a:hover {
  color: var(--color-green-dark);
  transform: scale(1.05);
}
.group-text-articulatas a:hover img { opacity: 1; left: 0; }

/* Nav buttons */
.login-btn {
  color: var(--color-green-dark);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-off-white);
}
.login-btn:hover {
  color: var(--color-lime);
  border: 1px solid var(--color-lime);
  background-color: transparent;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 3.8vw;
  overflow: hidden;
  border-radius: var(--radius-btn);
  width: fit-content;
  transition: var(--transition-menu);
}

.inactive-fatherdrop { z-index: -4; height: 0; opacity: 0; }
.active-fatherdrop   { z-index: 4; opacity: 1; height: 180px !important; }
.inactive-drop       { opacity: 0; }
.active-drop         { opacity: 1; }

.dropdown-menu ul {
  top: 0;
  height: 100%;
  display: flex;
  padding-inline: 2vw;
  width: fit-content;
  flex-direction: column;
  justify-content: center;
  gap: 1.5vw;
  position: relative;
  background-image: url("../assets/bg (5).svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: var(--transition-menu);
  backdrop-filter: blur(30px);
}

.dropdown-menu a {
  font-size: min(1.14vw, 20px) !important;
  color: #26422c !important;
  width: 100%;
  text-wrap: nowrap;
}
.dropdown-menu a:hover {
  color: #26422c !important;
}

/* Hamburger menu icon (hidden on desktop) */
.menu-hamburguesa { display: none; }

/* ==========================================================================
   11. MOBILE MENU (#menu-desplegable — name MUST stay for JS)
   ========================================================================== */
.menu-desplegable {
  position: fixed;
  z-index: 20;
  background-color: var(--color-white);
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  transition: var(--transition-menu);
  justify-content: center;
}

.info-desplegable {
  width: 90%;
  height: 90%;
}

.info-desplegable-logo {
  height: 15%;
  min-height: 100px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.info-desplegable-logo img { width: 150px; height: auto; }
.info-desplegable-logo button {
  height: 25px;
  width: 40px;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: end;
}
.info-desplegable-logo button svg { width: 100%; height: 100%; }

.info-desplegable-lista {
  height: 70%;
  gap: 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.info-desplegable-lista a {
  color: var(--color-green-dark);
  text-align: center;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 42px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -1.26px;
}
.info-desplegable-lista a svg { width: 30px; height: auto; }
#menu svg { transition: var(--transition-menu); }
#menu.active svg { transform: rotate(180deg); }
.info-desplegable-lista .subnav-item a { font-size: 24px; }

.info-desplegable-lista-footer {
  height: 10%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info-desplegable-lista-footer a {
  width: 45%;
  height: 40px;
  display: flex;
  max-width: 200px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.6px;
}
.info-desplegable-lista-footer a:nth-child(1) { width: 50%; }

.inactive-menu { left: 100vw; }
.active-menu   { left: 0; }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
footer { width: 100%; }

.content-footer {
  width: 100%;
  padding: 8% 5%;
  border-top-left-radius: var(--radius-section);
  border-top-right-radius: var(--radius-section);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding-bottom: 6%;
  border-bottom: 1px solid #FFFFFF40;
}

footer h5 {
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-footer);
  line-height: 100%;
}

footer h6 {
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-footer);
  line-height: 100%;
  margin-bottom: 5%;
}

footer p,
footer a {
  color: var(--color-white);
  text-align: center;
  font-family: "Articulat";
  font-size: clamp(12px, 0.8vw, 1.3rem);
  line-height: 110%;
}

footer a { text-transform: capitalize; }

.logo-footer { width: 100%; }
.logo-footer img {
  width: 60%;
  height: auto;
  margin-top: -1.5%;
}

.redes-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.footer-li {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  position: relative;
}
.footer-li:hover a { color: var(--color-lime); opacity: 1; }
.footer-li:hover img { left: -25%; opacity: 1; }
.footer-links-col:nth-child(4) ul li:nth-child(1) img { left: 55%; }
.footer-li img {
  left: -20px;
  position: absolute;
  opacity: 0;
  transition: var(--transition-menu);
}

.text-legal-footer {
  text-decoration: underline;
  line-height: 1;
  padding-bottom: 0.25rem;
  text-decoration-color: var(--color-nav-bg-light);
}

.direction-footer {
  height: 18%;
  width: 100%;
  display: flex;
  margin-top: 40px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
}
.direction-footer p {
  width: 30%;
  text-align: center;
}

.footer-logo-links {
  height: 20%;
  padding-top: 9.5rem;
}

.texts-footer {
  height: 22.5%;
  min-height: 100px;
  width: 100%;
  margin-bottom: 40px;
}
.texts-footer p { width: 85%; }

.links-legal { height: 5%; }

/* ==========================================================================
   13. MODAL
   ========================================================================== */
.modal {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 8;
  background-color: #1e1e1ece;
}

.inactive-video-modal {
  opacity: 0;
  scale: 0;
  z-index: -44;
  pointer-events: none;
}
.active-video-modal {
  opacity: 1;
  scale: 1;
  z-index: 4;
}

.video-modal {
  width: 60%;
  height: 60%;
  display: flex;
  justify-content: center;
  background-color: var(--color-green-dark);
  align-items: center;
  border-radius: 20px;
}
.video-modal video {
  width: 98%;
  height: 96.5%;
  border-radius: 20px;
}

/* ==========================================================================
   14. SCROLLSMOOTHER (.smooth-wrapper / .smooth-content — names MUST stay)
   ========================================================================== */
.smooth-wrapper { width: 100%; }

.smooth-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* ==========================================================================
   15. POP-UP (success toast)
   ========================================================================== */
.pop-up {
  background-color: #000000af;
  height: 100vh;
  width: 100vw;
  position: absolute;
  transition: var(--transition-menu);
  display: flex;
  justify-content: center;
  align-items: start;
}

.inactive-pop { z-index: -6; opacity: 0; }
.active-pop   { z-index: 6; opacity: 1; }

.pop-up div {
  width: 17.5%;
  min-width: 150px;
  position: relative;
  max-width: 450px;
  display: flex;
  justify-content: center;
  height: 15.5%;
  transition: var(--transition-menu);
  align-items: center;
  gap: 0.75rem;
  min-height: 125px;
  max-height: 300px;
  margin-top: 35px;
  border-radius: var(--radius-btn);
  flex-direction: column;
}

.inactive-child { top: -25%; }
.active-child   { top: 0; }

.pop-up div h4 {
  font-family: var(--font-ui);
  font-size: var(--text-footer);
  line-height: 106%;
  letter-spacing: -0.66px;
}

.pop-up div p {
  font-family: var(--font-ui);
  font-size: var(--text-nav);
  line-height: 106%;
  letter-spacing: -0.66px;
}

/* ==========================================================================
   16. RESPONSIVE — Shared (nav, footer, mobile menu, display helpers)
   ========================================================================== */

/* Tablet & Mobile (< 1024px) */
@media screen and (max-width: 1023px) {
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  footer h6 { margin-bottom: 10px; }
}

@media screen and (max-width: 1024px) {
  .text-sm   { font-size: 12px; }
  .text-normal { font-size: 34px; }
  .text-xl   { font-size: 42px; }
  .text-xxl  { font-size: 34px; }
  .text-p-white { font-size: 16px; }
  .text-p-black { font-size: 16px; }

  .mission-content {
    width: calc(100% - 32px);
    margin-top: 10%;
  }
  .mission-content p {
    max-width: 80%;
    margin-top: 15%;
    font-size: 14px;
    opacity: 1 !important;
  }
}

/* Mobile (< 1024px) */
@media screen and (max-width: 1023px) {
  .no-desk { display: flex !important; }
  .no-mb   { display: none !important; }

  .video-modal {
    width: 95%;
    height: auto;
  }

  /* Nav mobile */
  .content-nav {
    background-color: transparent;
    padding-inline: 20px;
  }
  .logotipo-img { width: 45%; }
  .logotipo-img a img {
    width: 100px;
    min-width: 20px;
    left: 0;
  }

  .menu-hamburguesa {
    display: flex;
    flex-grow: 1;
    height: 100%;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: end;
    padding-right: 25px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .menu {
    position: absolute;
    right: 0;
    cursor: pointer;
    touch-action: manipulation;
  }
  .menu-active  { opacity: 1; z-index: 3; pointer-events: auto; }
  .menu-inactive { opacity: 0; z-index: 1; pointer-events: none; }

  /* Footer mobile */
  .content-footer {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    gap: 1.5rem;
    padding: 5rem 2rem;
  }

  .links-footer {
    width: 100%;
    height: fit-content;
  }

  #ff-site-footer {
    height: fit-content;
    min-height: auto;
  }

  .anchors-mobile {
    height: fit-content;
    flex-wrap: wrap;
    gap: 3rem;
  }
  .anchors-mobile div {
    width: fit-content;
    height: fit-content;
  }

  .footer-logo-links {
    height: fit-content;
    padding-top: 1.5rem;
    gap: 2rem;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .texts-footer {
    width: 95%;
    height: fit-content;
  }
  .texts-footer p { width: 100%; }

  .direction-footer {
    width: 100%;
    margin-bottom: 20px;
  }
  .direction-footer p {
    max-width: 400px;
    width: 80%;
    min-width: 320px;
  }

  .links-legal ul { flex-wrap: wrap; }

  .redes-footer ul {
    justify-content: center;
    margin-bottom: 20px;
  }
  .redes-footer img {
    width: 20px;
    height: 20px;
  }

  footer h5 { font-size: 14px; }

  .logo-footer { width: 100%; }
  .logo-footer img {
    max-width: 350px;
    width: 60%;
    min-width: 220px;
  }

  .particular {
    top: 0.2rem;
    position: relative;
  }
}

/* Desktop: ScrollSmoother fixed positioning */
@media (min-width: 1024px) {
  .smooth-wrapper {
    position: fixed;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
  }
}

/* Desktop 1024-1279 */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .logotipo-img {
    width: 25%;
    height: 100%;
    position: relative;
  }
  .group-text-articulat span { gap: 5px; }
}

/* Ultra-wide (2150px+) */
@media screen and (min-width: 2150px) {
  .content-nav { max-width: 1920px; }
}
