:root {
  --bg: #ffffff;
  --text: #000000;       
  --muted: #555555;      
  --hero-darkness: 0.5;
  --nav-h: 60px;
  --radius: 12px;
  --border-weak: rgba(0, 0, 0, 0.12); 
  --gold: linear-gradient(135deg, #ffd700, #d4af37, #ffed4e);
  --gold-solid: #d4af37;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--text);
  background: transparent;
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
  z-index: 1; 
}

body::before {
  content: "";
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-image: url('logo/virgen.png'); 
  background-repeat: no-repeat;
  background-position: right center; 
  background-size: auto 85vh; 
  opacity: 0.15; 
  z-index: -1;
  pointer-events: none;
}
.hero{
  position:relative;
  width:100%;
  min-height:52vh;
  display:flex; align-items:center; justify-content:center;
  background:url('imagenes/quitocuidad.jpg') center/cover no-repeat fixed;
  isolation:isolate;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,var(--hero-darkness));
  z-index:-1;
}

.escudo{
  width:min(28vw, 180px);
  aspect-ratio:1/1; object-fit:contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
  user-select:none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); 
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.3)); 
  }
}

#navSentinel{ height:1px; }

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(120%) blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
}

.nav-inner{
  max-width:1200px; margin:0 auto;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:center;
  gap:.5rem; padding:0 14px;
}
.menu{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:.25rem;
  flex-wrap:wrap; justify-content:center;
}
.menu a{
  display:block; text-decoration:none; color:var(--text);
  padding:.65rem .9rem; border-radius:var(--radius);
  font-size:.97rem; letter-spacing:.2px; white-space:nowrap;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.menu a:hover, .menu a:focus-visible{
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.menu a:hover::before {
  left: 0;
  opacity: 1;
}

.menu a[aria-current="page"]{
  background: var(--gold);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.navbar--original{ position: sticky; top:0; z-index:40; } 
.navbar--clone{
  position: fixed; top:0; left:0; right:0; z-index:100;
  display:none; 
}
.navbar--clone.show{ display:block; }

section{ 
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-dummy{
  min-height:55vh; display:grid; place-items:center;
  color:var(--muted); padding:2rem;
}
.section-dummy h2{color:var(--text); font-weight:600; margin:0}

@media (max-width: 900px){
  :root{ --nav-h: 56px; }
  .hero{ min-height:46vh; background-attachment:scroll; }
  .escudo{ width:min(40vw,150px); }

  body{ padding-top: var(--nav-h); }      
  .navbar--original{ display:none; }      
  .navbar--clone{ display:block; }       

  .nav-inner{ justify-content:flex-start; }

  .menu{
    flex-wrap:nowrap; justify-content:flex-start;
    overflow-x:auto; -webkit-overflow-scrolling: touch;
    gap:.25rem; padding:0 .25rem;
    scrollbar-width: thin;
  }
  .menu::-webkit-scrollbar{ height:6px; }
  .menu::-webkit-scrollbar-thumb{ 
    background: var(--gold);
    border-radius:6px; 
  }
  .menu a{ padding:.75rem .85rem; font-size:.95rem; }
}

:focus-visible{
  outline:2px solid var(--gold-solid);
  outline-offset:2px;
  border-radius:10px;
}


.section-club{
  padding: 4rem 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-container{
  max-width: 900px;
  text-align: center;
  margin-inline: auto;
}

.club-escudo{
  width: min(160px, 45vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  user-select: none;
}

.club-title{
  font-size: 2.5rem;
  margin: .25rem 0 1.25rem;
  font-weight: 800;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.section-club p{
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--muted);
}


@media (max-width: 768px){
  .club-title{ font-size: 2rem; }
  .section-club p{ font-size: .97rem; }
  .section-club{ padding: 2.5rem 1rem; }
}


.section-team{
  padding: 3rem 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team{
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.team-title{
  text-align: center;
  font-weight: 800;
  font-size: 2.2rem;
  margin: 0 0 1rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.team-photo{
  margin: 0;
}

.team-photo img{
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  object-fit: cover;
}

.team-caption{
  margin-top: 0.85rem;
  color: var(--muted);
}

.fila{
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .35rem;
}

.fila .etq{
  color: var(--text);
  font-weight: 600;
}

.nombres{
  display: flex;
  gap: .4rem .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nombres span{
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-weak);
  border-radius: 999px;
  padding: .35rem .6rem;
  line-height: 1;
  white-space: nowrap;
}

.team-desc{
  color: var(--muted);
  max-width: 980px;
  margin: .5rem auto 0;
  text-align: center;
  line-height: 1.6;
}


@media (max-width: 768px){
  .team-title{ font-size: 1.8rem; }
  .nombres span{ font-size: .92rem; }
  .section-team{ padding: 2rem 1rem 3rem; }
}

@media (max-width: 480px){
  .nombres span{ font-size: .88rem; padding: .3rem .55rem; }
}


.section-youth{
  padding: 3.5rem 1rem 4rem;
}
.youth-wrap{ max-width: 1100px; margin-inline:auto; }

.youth-title{
  text-align:center;
  font-size:2.2rem;
  font-weight:800;
  margin:0 0 .35rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.youth-sub{
  text-align:center;
  color:var(--muted);
  margin:0 auto 1rem;
  max-width: 780px;
}


.youth-tabs{
  display:flex; gap:.5rem; flex-wrap:nowrap;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  padding:.25rem; margin: .5rem auto 1.25rem; 
  justify-content:center;
}
.youth-tab{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.55rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(212, 175, 55, 0.2);
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
  transition: all 0.3s ease;
}

.youth-tab:hover{ 
  background:rgba(255,255,255,.12); 
  transform:translateY(-1px); 
}

.youth-tab img{ width:18px; height:18px; object-fit:contain; }
.youth-tab.is-active{
  background: var(--gold);
  color: #000;
  font-weight: 600;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}


.youth-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1); 
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
  color: var(--text);
}
.youth-card-hd{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; margin-bottom:1rem;
}
.youth-cat{ 
  margin:0; 
  font-size:1.3rem; 
  font-weight:800;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary{
  display:inline-block;
  padding:.75rem 1rem;
  border-radius:999px;
  text-decoration:none; color:white;
  background: linear-gradient(180deg, #2f7cff, #1a5be9);
  box-shadow: 0 8px 22px rgba(47,124,255,.35);
}
.btn-primary:hover{ filter:brightness(1.05); }


.youth-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .9rem;
}
.ybox {
  background: #f9f9f9; 
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: .9rem .95rem;
}
.ybox--full{ grid-column: 1 / -1; }
.ylabel{ display:block; color:#9fb0ff; font-size:.85rem; margin-bottom:.2rem; }
.yvalue{ font-weight:600; color:var(--text); }


@media (max-width:900px){
  .youth-title{ font-size:1.8rem; }
  .section-youth{ padding: 2.5rem 1rem 3rem; }
}
@media (max-width:640px){
  .youth-grid{ grid-template-columns: 1fr; }
  .youth-card-hd{ flex-direction:column; align-items:flex-start; }
  .btn-primary{ width:100%; text-align:center; }
}


.section-sedes{
  padding: 3.5rem 1rem 4rem;
  display:flex; align-items:center; justify-content:center;
}
.sedes-wrap{ width:100%; max-width:1100px; margin-inline:auto; }
.sedes-title{
  text-align:center; 
  margin:0 0 .35rem; 
  font-weight:800; 
  font-size:2.2rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.sedes-sub{
  text-align:center; 
  color:var(--muted); 
  margin:0 0 1rem;
}


.map-wrap{
  position:relative; 
  width:100%; 
  max-width:1100px; 
  margin:0 auto 1rem;
  aspect-ratio:16 / 9;
  border-radius:16px; 
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  border:1px solid var(--border-weak);
}
.map-embed{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

.sede-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1.5rem;
  align-items:start;
}

.map-wrap.small{
  aspect-ratio: 4 / 3;
  border-radius:12px;
}

.sede-info{
  display:flex;
  flex-direction:column;
  gap:.8rem;
}
.sede-card {
  background: #f9f9f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: .9rem .95rem;
  color: var(--text);
}
.sede-card strong{ font-weight:700; }
.sede-card span{ color:var(--muted); }


@media (max-width:900px){
  .sedes-title{ font-size:1.8rem; }
  .section-sedes{ padding: 2.5rem 1rem 3rem; }
}
@media (max-width:768px){
  .sede-layout{ grid-template-columns: 1fr; }
  .map-wrap.small{ aspect-ratio:16/9; }
}


.section-store{
  padding:3.5rem 1rem 4rem;
  display:flex; align-items:center; justify-content:center;
}
.store-wrap{ max-width:1100px; width:100%; margin-inline:auto; }
.store-title{
  text-align:center; 
  font-size:2.2rem; 
  font-weight:800; 
  margin:0 0 .35rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.store-sub{ 
  text-align:center; 
  color:var(--muted); 
  margin:0 0 2rem;
}

.store-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:1.5rem;
}

/* --- ACTUALIZACIÓN DE TIENDA --- */

.product-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  display: flex; 
  flex-direction: column; 
  gap: .6rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  color: var(--text);
  /* Asegura que la tarjeta crezca si la imagen es alta */
  height: auto; 
}

.product-card img {
  width: 100%; 
  /* Eliminamos el max-height fijo para que no corte la imagen */
  max-height: none; 
  /* Cambiamos 'cover' por 'contain' para que se vea TODA la imagen sin recortes */
  object-fit: contain; 
  border-radius: 12px;
  /* Añadimos un fondo ligero por si la imagen tiene transparencias */
  background-color: #f9f9f9; 
  /* Ajusta este valor si quieres que se vea aún más grande en pantalla */
  aspect-ratio: 3/4; 
}

/* Ajuste para que en móviles no se vea gigante si hay solo un producto */
@media (max-width: 640px) {
  .product-card img { 
    max-height: 400px; /* Límite razonable para celulares */
  }
}
.product-name{ font-size:1.1rem; font-weight:600; margin:.5rem 0 0; }
.product-price{ font-size:1.05rem; color:rgb(255, 1, 1); margin:0; }

.btn-primary{
  display:inline-block;
  margin-top:auto;
  padding:.75rem 1rem;
  border-radius:999px;
  text-decoration:none;
  color:white;
  background: linear-gradient(180deg, #ae0f0a, #ae0f0a);
  box-shadow:0 8px 22px rgba(174, 15, 10);
}
.btn-primary:hover{ filter:brightness(1.05); }


@media (max-width:640px){
  .product-card img{ max-height:200px; }
  .store-title{ font-size:1.8rem; }
  .section-store{ padding: 2.5rem 1rem 3rem; }
}

.section-sponsors{
  padding: 3rem 1rem 3.5rem;
}
.sponsors-wrap{
  max-width: 1100px;
  margin-inline: auto;
}
.sponsors-title{
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 2rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.sponsors-logos{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.sponsors-logos img{
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  transition: transform .2s ease;
}
.sponsors-logos img:hover{
  transform: scale(1.05);
}

@media (max-width:600px){
  .sponsors-logos{ gap: 1rem; }
  .sponsors-logos img{ max-height: 55px; }
  .section-sponsors{ padding: 2rem 1rem 2.5rem; }
}


.section-contact{
  padding: 3rem 1rem 3.5rem;
}
.contact-wrap{
  max-width:900px;
  margin-inline:auto;
  text-align:center;
}
.contact-title{
  font-size:2.2rem;
  font-weight:800;
  margin:0 0 .5rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.contact-sub{
  color:var(--muted);
  margin:0 0 1.5rem;
}

.social-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.2rem;
}
.social-links a img{
  width:45px;
  height:45px;
  object-fit:contain;
  transition:transform .2s ease, filter .2s ease;
}
.social-links a img:hover{
  transform:scale(1.1);
  filter:brightness(1.2);
}


@media(max-width:600px){
  .social-links a img{ width:38px; height:38px; }
  .section-contact{ padding: 2rem 1rem 2.5rem; }
}


.section-history {
  padding: 3.5rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.history-wrap {
  max-width: 1100px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.history-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.history-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.player-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.player-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.player-card:hover .player-photo img {
  transform: scale(1.05);
}

.player-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.player-story {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}


@media (max-width: 768px) {
  .players-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .player-photo {
    width: 120px;
    height: 120px;
  }
  
  .history-title {
    font-size: 1.8rem;
  }
  
  .section-history {
    padding: 2.5rem 1rem 3rem;
  }
}




.site-footer {
  width: 100vw;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  
 
  background: #f0f0f0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  
  padding: 2rem 0;
  color: #555; 
  font-size: .9rem;
  z-index: 10;
}


.footer-text strong {
  color: #000; 
  font-weight: 700;
}

.footer-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto; 
  padding: 0 1.5rem; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}


.footer-logo img,
.dev-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}


.footer-text {
  flex: 1; 
}

.footer-text p {
  margin: .2rem 0;
  line-height: 1.4;
}

.footer-text strong {
  color: #fff; 
  font-weight: 700;
}


@media (max-width: 700px) {
  .footer-wrap {
    flex-direction: column; 
    gap: 1.5rem;
  }
  .footer-logo img,
  .dev-logo img {
    height: 40px;
  }
}

h1, h2, h3,
.club-title,
.team-title,
.youth-title,
.fem-title,
.sponsors-title,
.store-title,
.contact-title,
.sedes-title,
.history-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

body, p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.section-stats {
  padding: 3.5rem 1rem 4rem;
  display: flex;
  justify-content: center;
}
.stats-wrap {
  width: 100%;
  max-width: 1000px;
}
.stats-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.sub-header-gold {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800; 
  margin: 2rem 0 1.5rem;
  border-bottom: none !important; 
  padding-bottom: 0 !important;
  display: block !important;      
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.last-results, .key-figures { text-align: center; }

.next-match-card {
  background: #ffffff;
  border: 2px solid var(--gold-solid);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-name { font-weight: 700; font-size: 1.1rem; color: #000; } 
.match-date { color: #333; font-weight: 600; margin-top: 5px; }  

.match-label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.match-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}
.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 120px;
}
.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.team-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vs-text {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.match-date { color: #fff; font-weight: 600; margin-top: 5px; }
.match-stadium { color: var(--muted); font-size: 0.85rem; }


.results-grid {
  display: grid;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.result-item {
  background: #f4f4f4; 
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #000;
}
.res-date { color: var(--muted); font-size: 0.85rem; }
.res-match b { color: var(--gold-solid); margin: 0 5px; }
.res-win { color: #4cd137; font-weight: 800; }
.res-draw { color: #fbc531; font-weight: 800; }
.res-lose { color: #e84118; font-weight: 800; }


.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.figure-card {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}
.figure-card:hover { transform: translateY(-5px); border-color: var(--gold-solid); }
.figure-role {
  color: var(--gold-solid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.figure-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--gold-solid);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.figure-img img { width: 100%; height: 100%; object-fit: cover; }
.figure-name { margin: 0; color: #fff; font-size: 1.1rem; }
.figure-stat { margin: 5px 0 0; color: var(--muted); font-size: 0.9rem; }


@media (max-width: 600px) {
  .match-content { flex-direction: column; }
  .vs-text { font-size: 2rem; margin: 10px 0; }
  .result-item { flex-direction: column; gap: 5px; text-align: center; }
}

.figure-card.card-design {
  background: #ffffff; 
  border: 2px solid var(--gold-solid);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #000; 
  padding: 0;
  display: flex;
  flex-direction: column;
}
.figure-card.card-design:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.2); 
}

.card-top {
  display: flex;
  position: relative;
  padding: 1.5rem 1rem 1rem;
  background: transparent; 
}

.card-photo {
  width: 40%;
  display: flex;
  align-items: center; 
  justify-content: center;
  overflow: visible; 
}

.card-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(255, 230, 0, 0.1)); 
  transform: scale(1.1);
}

.card-info {
  width: 60%;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  justify-content: center;
}

.card-flag {
  width: 24px;
  height: auto;
  position: absolute;
  top: -5px;
  right: 5px;
}

.card-name-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffe600; 
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.card-name-full {
  font-size: 0.85rem;
  color: #e0e0e0; 
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-role {
  font-size: 0.8rem;
  color: #3498db; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.card-main-stat {
  font-size: 0.75rem;
  color: #a0a0a0; 
  font-weight: 600;
  text-transform: uppercase;
}

.card-bottom {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0.5rem;
  background: #f9f9f9;
  border-top: 1px solid rgba(0, 0, 0, 0.1); 
}

.card-name-full { font-size: 0.85rem; color: #555; font-weight: 600; margin-bottom: 0.5rem; }
.stat-icon {
  width: 24px; height: 24px; margin-bottom: 0.3rem;
  filter: none; 
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.3rem;
  filter: invert(1) brightness(100%); 
}

.stat-label {
  font-size: 0.7rem;
  color: #bbb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.3rem;
  color: #ffe600; 
  font-weight: 800;
}

@media (max-width: 480px) {
  .card-top { flex-direction: row; align-items: center; } 
  .card-name-main { font-size: 1.3rem; }
  .stat-value { font-size: 1.1rem; }
}


.next-match-card {
  background: #ffffff; 
  color: #000000;      
}

.team-name {
  color: #000000 !important;
  font-weight: 800;
  text-shadow: none;
}

.match-date { color: #333333 !important; }
.match-stadium { color: #666666 !important; }

.player-card {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.player-name {
  color: #000000 !important;
}

.player-story {
  color: #444444 !important;
}

.site-footer {
  background: #f5f5f5 !important; 
  color: #333333 !important;     
  border-top: 1px solid #ddd !important;
}

.footer-text p {
  color: #555555 !important;
}

.footer-text strong {
  color: #000000 !important; 
  font-weight: 800 !important;
}

.credits strong {
  color: #000000 !important; 
}

#year {
  color: #000000 !important;
}

.footer-text strong {
  font-weight: 500 !important; 
}

.site-footer, .footer-text p {
  font-weight: 400 !important; 
}

.credits strong {
  font-weight: 500 !important;
}

.titulo-con-linea {
  position: relative;
  display: inline-block; 
  padding-bottom: 10px;  
  margin-bottom: 25px;   
}

.titulo-con-linea::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%; 
  transform: translateX(-50%); 
  width: 60%; 
  height: 2px; 
  background: var(--gold); 
  opacity: 0.6; 
  border-radius: 2px;
}

.figures-grid {

  align-items: stretch; 
}

.figure-card.card-design {
  height: 100%; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}


.card-top {
  flex-grow: 1; 
}


.card-bottom {
  margin-top: auto; 
}

/* --- TEXTO "LOS CIUDADANOS" (SIN ANIMACIÓN Y ARRIBA) --- */

.hero-content {
  display: flex;
  flex-direction: column; /* Apila los elementos verticalmente */
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;      /* Letra muy gruesa */
  font-size: 3rem;       /* Tamaño grande */
  letter-spacing: 4px;   /* Espaciado entre letras */
  text-transform: uppercase;
  margin: 0 0 1rem 0;    /* Margen abajo para separarlo del escudo */
  
  /* Efecto Dorado */
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Sombra negra para que se lea sobre el fondo */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.9));
}

/* Ajuste para celulares */
@media (max-width: 768px) {
  .hero-text {
    font-size: 1.8rem; /* Un poco más pequeño en celular */
    letter-spacing: 2px;
  }
}