@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_semi_bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Nourd";
  src: url("fonts/nourd_heavy.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root{
  --color-abyss: #0B2E38;
  --color-ocean: #12586E;
  --color-calypso: #1C6E8C;
  --color-foam:  #F2F7F5;
  --color-kelp:  #3D7A5C;
  --color-sand:  #E3A857;
  --color-ink:   #10262B;
  --color-mist:  #63838C;

  --font-display: "Nourd", Georgia, serif;
  --font-body: "Nourd", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 14px;
  --content-width: 1120px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

h1, h2{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,247,245,0.75);
  margin: 0 0 0.75rem;
}
.eyebrow--dark{ color: var(--color-kelp); }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  row-gap: 0.6rem;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  color: var(--color-foam);
  background: linear-gradient(to bottom, rgba(28,110,140,0.65), rgba(28,110,140,0));
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled{
  background: rgba(20,90,115,0.94);
  backdrop-filter: blur(6px);
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-mark{ width: 28px; height: 28px; color: var(--color-sand); flex-shrink: 0; }
.brand-partner-logo{ height: 30px; width: auto; flex-shrink: 0; }

.brand-text{
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.brand-kicker{
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  opacity: 0.78;
  white-space: nowrap;
  margin-left: 1cm;
}
.brand-title{
  white-space: nowrap;
}

.site-nav{ display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem 1.35rem; justify-content: flex-end; }
.site-nav a{
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.site-nav a:hover{ border-color: currentColor; }

/* ---------------------------------------------------
   Mobile menu toggle (hamburger) + off-canvas nav
--------------------------------------------------- */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 61;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,20,25,0.5);
  z-index: 55;
}
.nav-overlay.is-open{ display: block; }

body.nav-locked{ overflow: hidden; }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero{
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,20,25,0.55) 0%, rgba(7,20,25,0.72) 55%, rgba(7,20,25,0.88) 100%),
    url("images/hero-underwater.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-foam);
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 6rem 6vw 8rem;
  text-align: center;
  margin: 0 auto;
}

.hero h1{
  white-space: nowrap;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero-lede{
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(242,247,245,0.82);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}

.cta{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-sand);
  color: var(--color-abyss);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227,168,87,0.35); }
.cta svg{ transition: transform 0.2s ease; }
.cta:hover svg{ transform: translateY(2px); }

.cta--outline{
  background: transparent;
  color: var(--color-ocean);
  border: 1.5px solid rgba(18,88,110,0.35);
  box-shadow: none;
}
.cta--outline:hover{
  background: rgba(18,88,110,0.06);
  box-shadow: none;
}
.cta--outline svg{ transform: none; }
.cta--outline:hover svg{ transform: translateX(3px); }

.hero-wave{
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
}


/* ---------------------------------------------------
   Map section
--------------------------------------------------- */
.map-section{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.map-intro{ max-width: 60ch; margin-bottom: 2rem; }
.map-intro h2{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--color-calypso);
  margin-bottom: 1rem;
}
.map-intro p{
  font-size: 1.02rem;
  line-height: 1.6;
  color: #33484D;
}

.legend{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.legend-chip{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(11,46,56,0.15);
  background: #fff;
  cursor: pointer;
  color: var(--color-ink);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.legend-chip:hover{ transform: translateY(-1px); }
.legend-chip.is-off{ opacity: 0.35; }
.legend-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot-color, var(--color-ocean));
  flex-shrink: 0;
}

.map-wrap{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,46,56,0.14);
  border: 1px solid rgba(11,46,56,0.08);
}

#map{
  width: 100%;
  height: 62vh;
  min-height: 420px;
  background: #dfeaea;
}

.map-status{
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 400;
  margin: 0;
  background: rgba(255,255,255,0.95);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-mist);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: none;
}
.map-status.is-hidden{ display: none; }
.map-status.is-error{ color: #A6432F; }

/* Custom markers */
.marker-dot{
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Popups */
.leaflet-popup-content-wrapper{
  border-radius: 12px;
}
.leaflet-popup-content{ margin: 0.9rem 1rem; }
.org-popup{ font-family: var(--font-body); min-width: 200px; }
.org-popup h3{
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--color-abyss);
}
.org-tags{ display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.55rem; }
.org-tag{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-foam);
  color: var(--color-ocean);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}
.org-note{
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4A5F64;
  margin: 0 0 0.65rem;
}
.org-links{ display: flex; gap: 0.5rem; }
.org-link{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-ocean);
  background: rgba(18,88,110,0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}
.org-link svg{ width: 12px; height: 12px; }

/* ---------------------------------------------------
   Resources teaser
--------------------------------------------------- */
.resources-teaser{
  background: #E9F1EE;
  border-top: 1px solid rgba(11,46,56,0.06);
}
.resources-teaser-inner{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.resources-teaser-text{ max-width: 56ch; }
.resources-teaser-text h2{
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--color-calypso);
  margin: 0.4rem 0 0.75rem;
}
.resources-teaser-text p{
  font-size: 1rem;
  line-height: 1.6;
  color: #33484D;
  margin: 0;
}

/* ---------------------------------------------------
   7 principles of Ocean Literacy
--------------------------------------------------- */
.principles{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 2rem 6rem;
}

.principles-intro{
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.principles-intro h2{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--color-calypso);
}

.principles-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
}

.principle-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 220px;
}
.principle-card img{
  width: 112px;
  height: 112px;
  margin-bottom: 1rem;
}
.principle-card p{
  font-size: 0.92rem;
  line-height: 1.55;
  color: #33484D;
  margin: 0;
}
.principle-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--color-kelp);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  transform: translateY(-1px);
}

/* ---------------------------------------------------
   Footer partner badge (GT-COCEAN)
--------------------------------------------------- */
.footer-partner{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(242,247,245,0.08);
  border: 1px solid rgba(242,247,245,0.14);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
}
.footer-partner img{
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.footer-partner span{
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(242,247,245,0.8);
}

@media (max-width: 860px){
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}
.site-footer{
  background: var(--color-abyss);
  color: rgba(242,247,245,0.75);
  padding: 2.5rem 2rem 1.5rem;
}
.footer-inner{
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(242,247,245,0.12);
}
.footer-contact{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-contact a{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(242,247,245,0.85);
  transition: color 0.2s ease;
}
.footer-contact a:hover{ color: var(--color-sand); }
.footer-contact svg{ width: 17px; height: 17px; flex-shrink: 0; }
.footer-copy{
  text-align: center;
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

/* ---------------------------------------------------
   Reveal on scroll
--------------------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 860px){
  .about{ grid-template-columns: 1fr; }
  .about-graphic{ order: -1; max-width: 220px; margin: 0 auto; }
  .site-nav{ gap: 1rem; }
  .hero-content{ padding: 6rem 6vw 6rem; }
}

@media (max-width: 560px){
  .site-header{ padding: 1rem 1.25rem; }
  .brand span{ display: none; }
  .about, .map-section, .principles{ padding-left: 1.25rem; padding-right: 1.25rem; }
  .about-stats{ gap: 1.5rem; }
  .principle-card{ width: 148px; }
  .principle-card img{ width: 88px; height: 88px; }
}

/* ---------------------------------------------------
   Side critters — decorative, large-viewport only
--------------------------------------------------- */
.sea-critters{
  display: none;
}

@media (min-width: 1500px){
  .sea-critters{ display: block; }

  .critter{
    position: fixed;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(11,46,56,0.18));
  }

  /* Each width/height pair matches the image's real ratio exactly,
     so the browser never has to guess and stretch it. */
  .critter--lontra{
    left: 1.8vw;
    top: 14vh;
    width: 216px;
    height: 154px;
  }
  .critter--delfin{
    right: 1.8vw;
    top: 30vh;
    width: 256px;
    height: 172px;
  }
  .critter--medusa{
    left: 2vw;
    top: 54vh;
    width: 184px;
    height: 264px;
  }
  .critter--seal{
    right: 1.6vw;
    bottom: 5vh;
    width: 280px;
    height: 192px;
  }
}

/* Extra breathing room once the viewport is wide enough for bigger creatures */
@media (min-width: 1760px){
  .critter--lontra{ width: 128px; height: 91px; left: 2.4vw; }
  .critter--delfin{ width: 150px; height: 103px; right: 2.4vw; }
  .critter--medusa{ width: 108px; height: 155px; left: 2.6vw; }
  .critter--seal{ width: 164px; height: 112px; right: 2.2vw; }
}

/* ---------------------------------------------------
   Recursos page — compact hero
--------------------------------------------------- */
.site-nav a.is-active{
  border-color: currentColor;
  opacity: 1;
}

.page-hero{
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 100% at 20% 0%, #123f4d 0%, var(--color-abyss) 55%, #071c22 100%);
  color: var(--color-foam);
  padding-top: 7rem;
}
.page-hero-inner{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.page-hero h1{
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.page-hero-lede{
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(242,247,245,0.82);
  max-width: 58ch;
  margin: 0;
}
.hero-wave--small{ height: 60px; }

/* ---------------------------------------------------
   Recursos page — search + accordion
--------------------------------------------------- */
.resources-body{
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.resource-search-bar{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(11,46,56,0.12);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  margin-top: -2.75rem;
  box-shadow: 0 16px 34px rgba(11,46,56,0.14);
  position: relative;
  z-index: 2;
}
.search-icon{ width: 18px; height: 18px; color: var(--color-mist); flex-shrink: 0; }
.resource-search-bar input{
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: var(--color-ink);
}
.resource-search-bar input::placeholder{ color: var(--color-mist); }

.resource-result-count{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-mist);
  margin: 1.25rem 0 1rem;
  letter-spacing: 0.02em;
}

.resource-accordion{ display: flex; flex-direction: column; gap: 0.6rem; }

.resource-category{
  background: #fff;
  border: 1px solid rgba(11,46,56,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.resource-category summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-abyss);
}
.resource-category summary::-webkit-details-marker{ display: none; }
.resource-category summary::after{
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-mist);
  border-bottom: 2px solid var(--color-mist);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.resource-category[open] summary::after{ transform: rotate(-135deg); }

.resource-category-count{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-mist);
  background: var(--color-foam);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-right: auto;
  margin-left: 0.75rem;
}

.resource-category-body{
  padding: 0 1.35rem 1.35rem;
}
.resource-category-intro{
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-mist);
  margin: -0.25rem 0 0.9rem;
}

.resource-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.resource-item a, .resource-item-text{
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--color-ink);
  text-decoration: none;
}
.resource-item a{ transition: background 0.15s ease; }
.resource-item a:hover{ background: var(--color-foam); color: var(--color-ocean); }
.resource-item a svg{ flex-shrink: 0; opacity: 0.5; align-self: center; }
.resource-item-text{ color: var(--color-mist); font-style: italic; }

.resource-empty-note{
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-mist);
  margin: 0;
  padding: 0.4rem 0.6rem 0.2rem;
}

.resource-empty-state{
  text-align: center;
  color: var(--color-mist);
  font-size: 0.95rem;
  padding: 2.5rem 1rem;
}
.resource-empty-state a{ color: var(--color-ocean); font-weight: 600; }
.resource-empty-state.is-hidden{ display: none; }

@media (max-width: 560px){
  .resources-body{ padding-left: 1.25rem; padding-right: 1.25rem; }
  .page-hero-inner{ padding-left: 1.25rem; padding-right: 1.25rem; }
  .resource-category-count{ margin-left: 0.5rem; }
}
/* ==========================================
   Portal Cultura Oceánica
========================================== */

.ocean-portal{
    max-width:1200px;
    margin:0 auto;
    padding:2rem;
    padding-bottom:5rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:4rem;
}

.portal-video{
    flex:0 0 240px;
}

.portal-video iframe{
    width:240px;
    height:427px;
    border:none;
    border-radius:16px;
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.portal-text{
    flex:1;
}

.portal-text h2{
    color:var(--color-calypso);
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom:1rem;
}

.portal-highlight{
    font-weight:700;
    font-size:1.05rem;
    line-height:1.7;
    color:var(--color-abyss);
    margin-bottom:1.2rem;
}

.portal-text p{
    color:#33484D;
    line-height:1.7;
    font-size:1rem;
}

.portal-logo{
    flex:0 0 220px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.portal-logo img{
    width:200px;
    max-width:100%;
    height:auto;
}

@media (max-width:980px){
    .ocean-portal{
        flex-direction:column;
        text-align:center;
        gap:2rem;
    }

    .portal-video iframe{
        width:240px;
        height:427px;
    }

    .portal-logo{
        flex:auto;
        order:-1;
    }
}

/* ==========================================
   ¿Por qué nace el Grupo de Trabajo?
========================================== */

.why-group{
    background:#ffffff;
    padding:5rem 2rem;
}

.why-group-content{
    max-width:900px;
    margin:0 auto;
    text-align:center;
}

.why-group h2{
    color:var(--color-calypso);
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom:1.5rem;
}

.why-group p{
    font-size:1.05rem;
    line-height:1.9;
    color:#33484D;
    text-align:justify;
}

.why-group-logo{
    margin-top:3rem;
    display:flex;
    justify-content:center;
    align-items:center;
}

.why-group-logo img{
    width:571px;
    max-width:100%;
    height:auto;
}


/* ==========================================
   Members
========================================== */

.members{
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
}

.members-header{
    text-align:center;
    margin-bottom:3rem;
}

.members-header h2{
    color:var(--color-calypso);
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
}

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

.member-card{
    text-align:center;
}

.member-card img{
    width:220px;
    height:220px;
    object-fit:cover;
    border-radius:16px;
    border:5px solid #fff;
    box-shadow:0 12px 28px rgba(11,46,56,.14);
    transition:transform .25s ease,
               box-shadow .25s ease;
}

.member-card img:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 36px rgba(11,46,56,.20);
}

.member-avatar-fallback{
    width:220px;
    height:220px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    border:5px solid #fff;
    box-shadow:0 12px 28px rgba(11,46,56,.14);
    background:var(--color-ocean);
    color:#fff;
    font-family:var(--font-display);
    font-weight:600;
    font-size:2.6rem;
    letter-spacing:0.02em;
}

.member-card h3{
    margin-top:1rem;
    font-family:var(--font-display);
    font-size:1.25rem;
    font-weight:600;
    color:var(--color-abyss);
    letter-spacing:-0.01em;
}

.member-cv-link{
    display:inline-flex;
    align-items:center;
    gap:0.35rem;
    margin-top:0.6rem;
    padding:0.4rem 0.95rem;
    border-radius:999px;
    background:rgba(18,88,110,0.08);
    color:var(--color-ocean);
    font-size:0.85rem;
    font-weight:600;
    text-decoration:none;
    transition:background 0.2s ease;
}
.member-cv-link:hover{
    background:rgba(18,88,110,0.16);
}

.members-status{
    text-align:center;
    font-family:var(--font-mono);
    font-size:0.85rem;
    color:var(--color-mist);
    margin-top:2rem;
}
.members-status.is-hidden{ display:none; }
.members-status.is-error{ color:#A6432F; }

@media (max-width:900px){
    .members-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:600px){
    .members-grid{
        grid-template-columns:1fr;
    }

    .member-card img,
    .member-avatar-fallback{
        width:180px;
        height:180px;
    }
    .member-avatar-fallback{
        font-size:2.1rem;
    }
}


/* ==========================================
   Líneas de acción
========================================== */

.action-lines{
    max-width:var(--content-width);
    margin:0 auto;
    padding:5rem 2rem;
}

.action-lines-header{
    text-align:center;
    margin-bottom:3.5rem;
}

.action-lines-header h2{
    color:var(--color-calypso);
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
}

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

.action-card{
    text-align:center;
    padding:0 1rem;
}

.action-card h3{
    color:var(--color-abyss);
    font-family:var(--font-display);
    font-size:1.6rem;
    margin-bottom:1rem;
}

.action-card p{
    color:#33484D;
    font-size:1rem;
    line-height:1.8;
    margin:0;
}

@media (max-width:900px){
    .action-grid{
        grid-template-columns:1fr;
        gap:2.5rem;
    }
}


.news{
    max-width:var(--content-width);
    margin:0 auto;
    padding:5rem 2rem;
}

.news-header{
    text-align:center;
    margin-bottom:3rem;
}

.news-header h2{
    color:var(--color-calypso);
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
}

.news-card{
    padding:1.8rem 0;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.news-card:last-child{
    border-bottom:none;
}

.news-card h3{
    margin:0 0 1rem;
    color:var(--color-abyss);
    font-family:var(--font-display);
    font-size:1.5rem;
}

.news-image{
    display:block;
    width:100%;
    max-width:420px;
    height:220px;
    object-fit:cover;
    border-radius:12px;
    margin:0 0 1rem;
    box-shadow:0 8px 20px rgba(11,46,56,.12);
}

.news-card p{
    margin:0 0 1rem;
    color:#33484D;
    line-height:1.7;
}

.news-card a{
    color:var(--color-ocean);
    font-weight:600;
    text-decoration:none;
}

.news-card a:hover{
    text-decoration:underline;
}

.news-image{
  display:block;
  width:100%;
  max-height:220px;
  margin:16px 0;
  object-fit:cover;
  border-radius:12px;
}

/* ----------------------------------------
   Responsive (MÓVIL)
---------------------------------------- */
@media (max-width: 900px){

  .nav-toggle{
    display: flex;
  }

  .site-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    margin: 0;
    background: rgba(11,46,56,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
    color: var(--color-foam);
  }
  .site-nav.is-open{
    transform: translateX(0);
  }
  .site-nav a{
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(242,247,245,0.12);
    opacity: 1;
  }

  .site-header{
    padding: 0.8rem 1rem;
  }

  .hero h1{
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero{
    padding-top: 120px;
  }
}
/* ==========================================
   Galería (Conócenos)
========================================== */

.gallery{
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem 6rem;
}
.gallery.is-hidden{ display:none; }

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    gap:1.25rem;
}

.gallery-item{
    position:relative;
    aspect-ratio:4 / 3;
    padding:0;
    border:5px solid #fff;
    border-radius:16px;
    overflow:hidden;
    background:rgba(18,88,110,0.08);
    box-shadow:0 12px 28px rgba(11,46,56,.14);
    cursor:zoom-in;
    transition:transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover:not(:disabled),
.gallery-item:focus-visible{
    transform:translateY(-6px);
    box-shadow:0 18px 36px rgba(11,46,56,.20);
}
.gallery-item:focus-visible{ outline:3px solid var(--color-sand); outline-offset:2px; }
.gallery-item:disabled{ cursor:progress; }

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    animation:gallery-fade .4s ease;
}

.gallery-item.is-loading::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
    background-size:200% 100%;
    animation:gallery-shimmer 1.4s linear infinite;
}

@keyframes gallery-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes gallery-shimmer{ from{ background-position:150% 0; } to{ background-position:-50% 0; } }

/* Lightbox */
.lightbox{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:1rem;
    padding:2rem 1rem;
    background:rgba(7,28,34,.92);
}
.lightbox[hidden]{ display:none; }

.lightbox-figure{
    margin:0;
    max-width:min(1100px, 100%);
    text-align:center;
}
.lightbox-figure img{
    max-width:100%;
    max-height:80vh;
    border-radius:12px;
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}
.lightbox-figure figcaption{
    margin-top:0.9rem;
    color:var(--color-foam);
    font-size:0.95rem;
}

.lightbox-btn{
    flex-shrink:0;
    width:48px;
    height:48px;
    border:0;
    border-radius:50%;
    background:rgba(242,247,245,.12);
    color:var(--color-foam);
    font-size:2rem;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible{ background:rgba(242,247,245,.25); }
.lightbox-close{
    position:absolute;
    top:1rem;
    right:1rem;
}

@media (max-width:600px){
    .gallery{ padding:0 1rem 4rem; }
    .gallery-grid{ grid-template-columns:repeat(2, 1fr); gap:0.75rem; }
    .gallery-item{ border-width:3px; border-radius:12px; }
    .lightbox{ padding:4rem 0.5rem; }
    .lightbox-prev,
    .lightbox-next{
        position:absolute;
        bottom:1rem;
    }
    .lightbox-prev{ left:calc(50% - 56px); }
    .lightbox-next{ right:calc(50% - 56px); }
}
