:root{
  --menu-h: var(--menu-h, 56px);
  --header-h: var(--header-h, 220px);
  --footer-h: var(--footer-h, 64px);

  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f5f5f5;
  --panel-soft-2: #fafafa;

  --text: #222222;
  --muted: rgba(34,34,34,.7);

  --border: rgba(0,0,0,.12);

  /* COLOR CORPORATIVO GLOBAL DESDE header.php */
  --color-corporativo: var(--color-corporativo, #2f6fed);
  --color-corporativo-suave: var(--color-corporativo-suave, #e7f3ff);
  --color-corporativo-suave-2: var(--color-corporativo-suave-2, #f5f9ff);
  --color-corporativo-suave-3: var(--color-corporativo-suave-3, #dfeeff);
  --color-corporativo-borde: var(--color-corporativo-borde, #bcd3ff);
  --color-corporativo-borde-fuerte: var(--color-corporativo-borde-fuerte, #9fc0ff);

  --color-corporativo-rgba-04: var(--color-corporativo-rgba-04, rgba(47,111,237,0.04));
  --color-corporativo-rgba-06: var(--color-corporativo-rgba-06, rgba(47,111,237,0.06));
  --color-corporativo-rgba-08: var(--color-corporativo-rgba-08, rgba(47,111,237,0.08));
  --color-corporativo-rgba-10: var(--color-corporativo-rgba-10, rgba(47,111,237,0.10));
  --color-corporativo-rgba-12: var(--color-corporativo-rgba-12, rgba(47,111,237,0.12));
  --color-corporativo-rgba-14: var(--color-corporativo-rgba-14, rgba(47,111,237,0.14));
  --color-corporativo-rgba-18: var(--color-corporativo-rgba-18, rgba(47,111,237,0.18));
  --color-corporativo-rgba-22: var(--color-corporativo-rgba-22, rgba(47,111,237,0.22));

  --accent: var(--color-corporativo);
  --btn-color: var(--color-corporativo);

  --radius: 16px;
  --maxw: 1100px;
  --section-gap: 18px;
}

/* GLOBAL */

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.container{
  width:min(var(--maxw),calc(100% - 32px));
  margin-inline:auto;
}

.site{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* MENU */

.menu{
  height:var(--menu-h);
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:#ffffff;
  z-index:1000;
}

.menu-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-direction:row;
  color:var(--text);
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.brand:hover{
  text-decoration:none;
}

.logo{
  height:32px;
  width:auto;
  display:block;
  flex:0 0 auto;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
}

.nav a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
}

.nav a:hover,
.nav a.active{
  background:rgba(0,0,0,.05);
  color:var(--text);
  text-decoration:none;
}

.menu-toggle{
  display:none;
}

/* HEADER */

.header {
  padding:var(--section-gap) 0;
  padding-bottom: 0 !important;
}

.header-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  background:var(--panel-soft);
  text-align:center;
}

.logo-grande{
  height:90px;
  margin:auto;
  margin-bottom:14px;
}

.header-main h1{
  margin:0 0 12px 0;
}

.frase1{
  font-size:18px;
  margin-bottom:8px;
}

.frase2{
  font-size:16px;
  color:var(--muted);
}

/* CONTENT */

.content{
  flex:1;
  padding-bottom:22px;
}

.grid{
  display:grid;
  gap:14px;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  padding:16px;
}

.card h2{
  margin:0 0 10px 0;
}

/* SISTEMA GLOBAL WOW */

.card-wow{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
  border:1px solid #e5e7eb;
  border-left:5px solid var(--color-corporativo);
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 38px rgba(15,23,42,0.06);
}

.card-wow::after{
  content:"";
  position:absolute;
  right:-36px;
  top:-36px;
  width:120px;
  height:120px;
  background:radial-gradient(circle, var(--color-corporativo-rgba-08) 0%, rgba(0,0,0,0) 72%);
  pointer-events:none;
}

.card-wow > *{
  position:relative;
  z-index:1;
}

.hero-wow{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, var(--color-corporativo-rgba-14), transparent 34%),
    linear-gradient(135deg, var(--color-corporativo-suave) 0%, var(--color-corporativo-suave-2) 55%, #ffffff 100%);
  border:1px solid var(--color-corporativo-borde);
  border-radius:28px;
  padding:28px 30px;
  box-shadow:0 20px 44px var(--color-corporativo-rgba-10);
}

.hero-wow::after{
  content:"";
  position:absolute;
  right:-55px;
  bottom:-55px;
  width:190px;
  height:190px;
  background:radial-gradient(circle, var(--color-corporativo-rgba-12) 0%, rgba(0,0,0,0) 72%);
  pointer-events:none;
}

.hero-wow > *{
  position:relative;
  z-index:1;
}

.titulo-wow{
  margin:0 0 10px 0;
  color:var(--color-corporativo);
  font-size:2rem;
  line-height:1.05;
  letter-spacing:-0.02em;
}

.subtitulo-wow{
  margin:0;
  color:#4b5563;
  line-height:1.7;
  font-size:1rem;
}

.titulo-seccion{
  margin:0 0 14px 0;
  color:var(--color-corporativo);
  font-size:1.3rem;
  letter-spacing:-0.01em;
}

.panel-suave{
  background:linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border:1px solid #e8edf3;
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(15,23,42,0.04);
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--color-corporativo-suave);
  border:1px solid var(--color-corporativo-borde);
  color:#374151;
  border-radius:999px;
  padding:8px 12px;
  font-weight:600;
  box-shadow:0 8px 18px rgba(15,23,42,0.04);
}

.acciones-derecha{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.acciones-centro{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.acciones-entre{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* BUTTONS */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--btn-color);
  background:var(--btn-color);
  color:#ffffff;
  cursor:pointer;
  transition:
    transform .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
  box-shadow:0 8px 18px var(--color-corporativo-rgba-10);
  font:inherit;
  line-height:1.2;
  text-decoration:none;
}

.btn:hover{
  filter:brightness(.96);
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 12px 24px var(--color-corporativo-rgba-18);
}

.btn:focus{
  outline:none;
  box-shadow:
    0 0 0 4px var(--color-corporativo-rgba-12),
    0 8px 18px var(--color-corporativo-rgba-10);
}

.btn:active{
  transform:translateY(0);
}

.btn-secundario{
  background:#f0f0f0;
  border:1px solid #d1d5db;
  color:var(--text);
  box-shadow:none;
}

.btn-secundario:hover{
  background:#e5e5e5;
  filter:none;
  box-shadow:none;
}

.btn-secundario:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}

.btn-sm{
  padding:8px 12px;
  font-size:.92rem;
  border-radius:999px;
}

.btn-lg{
  padding:14px 22px;
  font-size:1.05rem;
  font-weight:800;
  border-radius:999px;
  min-height:52px;
}

.btn-inscribete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:18px;
  padding:14px 28px;
  font-size:18px;
  font-weight:600;
  background:var(--btn-color);
  color:#ffffff;
  border-radius:12px;
  border:1px solid var(--btn-color);
  box-shadow:0 10px 22px var(--color-corporativo-rgba-18);
}

/* FORM */

.form{
  display:grid;
  gap:10px;
  max-width:420px;
  width:100%;
}

.input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid #d6dbe4;
  font-size:0.98rem;
  line-height:1.25;
  background:linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
  color:#111827;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease,
    background .2s ease;
}

.input::placeholder{
  color:#9ca3af;
}

.input:hover{
  border-color:var(--color-corporativo-borde);
}

/* FORZAR COLOR CORPORATIVO EN FOCUS */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-corporativo) !important;
  box-shadow: 0 0 0 3px var(--color-corporativo-rgba-12) !important;
  outline: none !important;
}

/* Para navegadores modernos (muy importante en escritorio) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none !important;
  border-color: var(--color-corporativo) !important;
  box-shadow: 0 0 0 3px var(--color-corporativo-rgba-12) !important;
}

.input:hover{
  border-color: var(--color-corporativo-borde);
}

textarea.input,
select.input{
  font:inherit;
}

/* BUSCADOR SOCIOS */

.buscador-socios{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:16px;
}

.buscador-socios .input{
  flex:1 1 320px;
  max-width:520px;
}

/* BARRA ACCIONES */

.barra-acciones-socios{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:15px;
}

/* TABLA SOCIOS */

.tabla-socios-wrap{
  width:100%;
  overflow-x:auto;
  margin-bottom:15px;
}

.tabla-socios{
  width:100%;
  border-collapse:collapse;
  font-size:0.75rem;
}

.tabla-socios th,
.tabla-socios td{
  border:1px solid var(--border);
  padding:4px 6px;
  text-align:left;
  white-space:nowrap;
}

.tabla-socios th{
  background:var(--panel-soft);
  font-weight:600;
}

.tabla-socios td{
  color:var(--muted);
}

.tabla-socios td:first-child{
  font-weight:600;
  color:var(--accent);
}

/* ICONOS TABLA */

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:6px;
  background:#f0f0f0;
  color:#444;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  line-height:1;
}

.icon-btn:hover{
  background:#e3e3e3;
  text-decoration:none;
}

.icon-btn.baja{
  background:#fff1d6;
  color:#a35a00;
}

.icon-btn.baja:hover{
  background:#ffe4b3;
}

.acciones-tabla{
  display:flex;
  gap:4px;
}

/* SOCIOS MOBILE */

.socios-mobile{
  display:none;
}

.socio-card{
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
  margin-bottom:8px;
  background:var(--panel-soft-2);
}

.socio-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:4px;
  gap:8px;
}

.socio-numero{
  font-weight:700;
  font-size:1rem;
}

.socio-nombre{
  font-weight:600;
  margin-bottom:4px;
  font-size:0.9rem;
}

.socio-info{
  font-size:0.75rem;
  color:var(--muted);
  line-height:1.4;
}

/* DESCARGAS */

.tabla-descargas-wrap{
  width:100%;
  overflow-x:auto;
}

.tabla-descargas{
  width:100%;
  border-collapse:collapse;
  font-size:0.8rem;
}

.tabla-descargas th,
.tabla-descargas td{
  border:1px solid var(--border);
  padding:8px;
  text-align:left;
  vertical-align:top;
}

.tabla-descargas th{
  background:var(--panel-soft);
  font-weight:600;
}

.doc-info{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.doc-info-mobile{
  margin-bottom:8px;
}

.doc-icono{
  font-size:20px;
  line-height:1;
  flex:0 0 auto;
}

.doc-texto{
  min-width:0;
}

.doc-nombre{
  font-weight:600;
  color:var(--text);
  line-height:1.3;
  font-size:0.85rem;
}

.doc-tipo{
  margin-top:2px;
  font-size:0.65rem;
  font-weight:600;
  color:var(--accent);
  letter-spacing:.5px;
  text-transform:uppercase;
}

.btn-descargar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 10px;
  background:var(--btn-color);
  color:#fff;
  border-radius:8px;
  border:1px solid var(--btn-color);
  box-shadow:0 8px 18px var(--color-corporativo-rgba-10);
}

.btn-descargar:hover{
  text-decoration:none;
  filter:brightness(.96);
}

.descargas-mobile{
  display:none;
  margin-top:14px;
}

.descarga-item{
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px;
  margin-bottom:10px;
  background:var(--panel-soft-2);
}

.descarga-item h3{
  margin:0;
  font-size:1rem;
  color:var(--text);
  line-height:1.3;
}

.descarga-item p{
  margin:0 0 8px 0;
  color:var(--muted);
  line-height:1.5;
  font-size:0.85rem;
}

/* FOOTER */

.footer{
  min-height:var(--footer-h);
  display:flex;
  align-items:center;
  justify-content:center;
  border-top:1px solid var(--border);
}

.footer-content{
  text-align:center;
  line-height:1.6;
  font-size:0.9rem;
}

/* MOBILE */

@media (max-width:780px){

  .nav{
    display:none;
    position:absolute;
    top:calc(var(--menu-h) + 8px);
    right:16px;
    left:16px;
    flex-direction:column;
    align-items:stretch;
    padding:10px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:#ffffff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    z-index:1001;
  }

  .nav.open{
    display:flex;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#ffffff;
    color:var(--text);
    cursor:pointer;
  }

  .tabla-socios-wrap{
    display:none;
  }

  .socios-mobile{
    display:block;
  }

  .tabla-descargas-wrap{
    display:none;
  }

  .descargas-mobile{
    display:block;
  }

  .brand{
    gap:8px;
  }

  .logo{
    height:30px;
  }

  .form{
    max-width:100%;
  }

  .btn{
    min-height:44px;
  }
}

@media (max-width:768px){
  .card-wow{
    padding:18px;
    border-radius:22px;
  }

  .hero-wow{
    padding:22px 18px;
    border-radius:22px;
  }

  .titulo-wow{
    font-size:1.7rem;
  }

  .btn-lg{
    min-height:56px;
    font-size:1.08rem;
  }

  .banner-img{
    width:320px;
    height:50px;
  }
}

/* ===== BANNER PUBLICITARIO ===== */

.banner-container{
  width:100%;
  background:#f5f5f5;
  text-align:center;
  padding:5px 0;
  border-bottom:1px solid var(--border);
}

.banner-img{
  max-width:100%;
  height:auto;
  display:inline-block;
}

@media (min-width:769px){
  .banner-img{
    width:728px;
    height:90px;
  }
}