:root{
  --navy:#10243e;
  --blue:#1d4f7a;
  --gold:#e0ad36;
  --light:#f4f6f8;
  --white:#fff;
  --text:#17212b;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--light);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 6vw;
  min-height:74px;
  background:var(--navy);
}

.brand{
  color:#fff;
  text-decoration:none;
  font-size:1.3rem;
  font-weight:bold;
}

nav{
  display:flex;
  gap:1.4rem;
}

nav a{
  color:white;
  text-decoration:none;
}
.hero{
  min-height:520px;
  display:grid;
  place-items:center;
  padding:5rem 6vw;
  color:white;
  background:linear-gradient(120deg,#10243e,#1d4f7a);
}

.hero-content{
  max-width:1100px;
}

.hero h1{
  font-size:4rem;
  margin:.5rem 0 1rem;
}

.hero-text{
  max-width:650px;
  line-height:1.6;
}
.actions{
  display:flex;
  gap:1rem;
  margin-top:2rem;
}

.button{
  padding:.9rem 1.4rem;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
}

.button-primary{
  background:var(--gold);
  color:var(--navy);
}

.button-secondary{
  border:1px solid white;
  color:white;
}

.section{
  width:min(1180px,88%);
  margin:auto;
  padding:5rem 0;
}

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

.card{
  background:white;
  padding:2rem;
  border-radius:10px;
}
footer{
  background:var(--navy);
  color:white;
  padding:2rem 6vw;
}

@media(max-width:760px){

.site-header{
  flex-direction:column;
  padding:1rem;
}

nav{
  flex-wrap:wrap;
}

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

.hero h1{
  font-size:2.6rem;
}

}

.page-hero{
  padding:4rem 6vw;
  color:white;
  background:linear-gradient(120deg,var(--navy),var(--blue));
}

.page-hero h1{
  max-width:1000px;
  margin:.5rem 0 0;
  font-size:clamp(2.5rem,6vw,5rem);
}

.prose{
  max-width:850px;
}

.prose p{
  font-size:1.1rem;
  line-height:1.8;
}

.text-link{
  color:var(--blue);
  font-weight:bold;
}

.team-grid{
  grid-template-columns:repeat(3,1fr);
}

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

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

.sponsor-card{
  display:grid;
  place-items:center;
  min-height:180px;
  padding:1.5rem;
  text-align:center;
  background:white;
  border-radius:10px;
}

.sponsor-card img{
  max-width:180px;
  max-height:90px;
  object-fit:contain;
}

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

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

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

.news-card{
  padding:2rem;
  background:white;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(16,36,62,.08);
}

.news-card h2{
  margin:.4rem 0 1rem;
}

.news-card p{
  line-height:1.7;
}

.news-category{
  color:var(--blue);
  font-size:.85rem;
  font-weight:bold;
  text-transform:uppercase;
}

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

.news-meta{
    margin-top:1rem;
    color:#c9d3de;
    font-size:.95rem;
}

.noticia-completa{
    max-width:900px;
}

.noticia-contenido{
    line-height:1.8;
    white-space:pre-line;
}

.club-nav{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  padding:1rem 6vw;
  background:white;
  border-bottom:1px solid #dde3ea;
}

.club-nav a{
  color:var(--blue);
  font-weight:bold;
  text-decoration:none;
}

.club-section{
  scroll-margin-top:90px;
}

.club-section h2{
  margin-bottom:1.5rem;
  font-size:clamp(2rem,4vw,3rem);
}

.markdown-content{
  white-space:pre-line;
  line-height:1.8;
}

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

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

.organigrama-node{
  padding:1rem;
  text-align:center;
  font-weight:bold;
  background:white;
  border:1px solid #d8e0e8;
  border-radius:8px;
}

@media(max-width:760px){
  .directiva-grid,
  .organigrama-grid{
    grid-template-columns:1fr;
  }
}

.school-intro{
  text-align:center;
}

.school-intro > p{
  max-width:720px;
  margin:0 auto;
  line-height:1.8;
}

.school-intro .actions{
  justify-content:center;
}

.school-section{
  scroll-margin-top:90px;
}

.school-section:nth-of-type(even){
  background:#eef2f6;
}

.school-section h2{
  margin-top:.4rem;
  font-size:clamp(2rem,4vw,3rem);
}

.sponsor-hero{
  background:linear-gradient(135deg,#003b6f,#005ea8);
  color:#fff;
  text-align:center;
}

.sponsor-featured{
  border:3px solid #f0b429;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.sponsor-featured h3{
  font-size:2rem;
  color:var(--blue);
}


.sponsor-level{
  transition:.25s;
}

.sponsor-level:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.sponsor-level strong{
  display:block;
  margin:.8rem 0;
  font-size:1.8rem;
  color:#d89b00;
}


.sponsor-level ul{
  margin-top:1rem;
  padding-left:1.2rem;
}

.sponsor-level li{
  margin:.5rem 0;
}


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

.team-card h2{
  margin:.4rem 0 1rem;
}

.team-card h3{
  margin-top:1.5rem;
}

.team-card ul{
  padding-left:1.2rem;
}

.team-card li{
  margin:.4rem 0;
}

.team-contact{
  text-align:center;
  background:#eef2f6;
}

.team-contact h2{
  max-width:760px;
  margin:.5rem auto 1.5rem;
}

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

.socios-intro{
  max-width:900px;
}

.socios-intro p{
  line-height:1.8;
}

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

.socio-card{
  display:flex;
  flex-direction:column;
}

.socio-card h2{
  margin-top:0;
}

.socio-card ul{
  padding-left:1.2rem;
}

.socio-card li{
  margin:.5rem 0;
}

.socio-cuota{
  font-size:1.4rem;
  font-weight:bold;
  color:#d89b00;
}

.socios-alta{
  background:#eef2f6;
}

.socios-alta ol{
  max-width:800px;
  padding-left:1.4rem;
}

.socios-alta li{
  margin:.8rem 0;
}

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

.contact-grid{
  display:grid;
  grid-template-columns:minmax(280px,420px) 1fr;
  gap:1.5rem;
  align-items:stretch;
}

.contact-card h2{
  margin-top:0;
}

.contact-card a{
  color:var(--blue);
}

.contact-map{
  min-height:420px;
  overflow:hidden;
  border-radius:.8rem;
  background:#dfe5eb;
  box-shadow:0 10px 30px rgba(16,36,62,.08);
}

.contact-map iframe{
  width:100%;
  height:100%;
  min-height:420px;
  border:0;
}

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

  .contact-map,
  .contact-map iframe{
    min-height:320px;
  }
}

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

.album-card img{
  display:block;
  width:100%;
  margin-top:1rem;
  border-radius:.6rem;
}

.album-empty{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

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

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

.sitemap-list{
  margin:0;
  padding-left:1.2rem;
}

.sitemap-list li{
  margin:.8rem 0;
}

.sitemap-list a{
  color:var(--blue);
  font-weight:700;
  text-decoration:none;
}

.sitemap-list a:hover{
  text-decoration:underline;
}

.empresa-card h2{
  margin-top:0;
}

.empresa-card{
  transition:.2s;
}

.empresa-card:hover{
  transform:translateY(-4px);
}


/*
 * Main navigation state
 */

.site-header nav a {
  position:relative;
  padding:.35rem 0;
}

.site-header nav a.active::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-.45rem;
  height:3px;
  border-radius:999px;
  background:var(--gold);
}
