/* Página institucional y portal del socio (maqueta, 08/10/2026). Colores del logo del Círculo. */
:root {
  color-scheme: light;
  --verde: #17753a; --verde-osc: #0f4f27; --verde-claro: #e8f4ec; --verde-medio: #2f9a57;
  --texto: #1f2933; --suave: #5b6876; --borde: #e3e8ec; --fondo: #ffffff; --gris: #f5f7f6;
  --sombra: 0 6px 24px rgba(15, 79, 39, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--texto); background: var(--fondo); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.cont { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.falta { color: #b45309; font-style: italic; }

/* ---- cabecera */
.cab { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--borde); }
.cab-fila { display: flex; align-items: center; gap: 14px; height: 72px; }
.marca { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.marca img { width: 46px; height: 46px; border-radius: 50%; }
.marca span { display: flex; flex-direction: column; line-height: 1.15; }
.marca b { font-size: 16px; color: var(--verde-osc); letter-spacing: .01em; }
.marca small { font-size: 12px; color: var(--suave); }
/* menú en pastillas, nunca en dos renglones; si no entra pasa al ☰ (23/10/2026) */
.nav { display: flex; gap: 2px; margin-left: auto; font-size: 13.5px; font-weight: 500; }
.nav a { color: var(--suave); padding: 7px 9px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover, .nav a.activo { color: var(--verde-osc); background: var(--verde-claro); }
.nav a.destacado { color: var(--verde); font-weight: 600; box-shadow: inset 0 0 0 1.5px #b8e3c6; }
.nav a.destacado:hover, .nav a.destacado.activo { box-shadow: inset 0 0 0 1.5px var(--verde); }
.cab-botones { display: flex; align-items: center; gap: 10px; flex: none; }
.menu-btn { display: none; width: 40px; height: 40px; background: var(--verde-claro); border: 0; border-radius: 12px; padding: 0 9px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--verde-osc); margin: 5px 0; border-radius: 2px; }

/* ---- botones */
/* estilo común (23/10/2026): pastilla; principal verde con degradé, secundario blanco con borde verde claro, de texto para tarjetas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  font-family: inherit; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn .fl { transition: transform .15s; }
.btn:hover .fl { transform: translateX(3px); }
.btn-primario, .btn-claro { background: linear-gradient(135deg, #1f8a46, var(--verde-osc)); color: #fff; box-shadow: 0 6px 18px rgba(23, 117, 58, .32); }
.btn-primario:hover, .btn-claro:hover { box-shadow: 0 10px 24px rgba(23, 117, 58, .4); }
.btn-claro { padding: 9px 18px; font-size: 14px; }
.btn-claro svg, .btn-borde svg { width: 18px; height: 18px; flex: none; }
.btn-borde { background: #fff; color: var(--verde-osc); box-shadow: inset 0 0 0 1.5px #b8e3c6, 0 2px 8px rgba(15, 79, 39, .06); }
.btn-borde:hover { background: var(--verde-claro); box-shadow: inset 0 0 0 1.5px var(--verde); }
.btn-texto { background: none; color: var(--verde); padding: 6px 2px; font-size: 14px; font-weight: 700; }
.btn-texto:hover { transform: none; color: var(--verde-osc); }

/* ---- hero */
.hero { background: linear-gradient(135deg, #f0f8f3 0%, #ffffff 55%, #e8f4ec 100%); padding: 70px 0 80px; overflow: hidden; }
.hero-fila { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.pildora { display: inline-block; background: var(--verde-claro); color: var(--verde-osc); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 16px 0 14px; color: var(--verde-osc); letter-spacing: -.01em; }
.hero p { font-size: 18px; color: var(--suave); margin: 0 0 26px; max-width: 560px; }
.hero-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tarjeta { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 34px; text-align: center; position: relative; }
.hero-tarjeta::before { content: ""; position: absolute; inset: -40px -40px auto auto; width: 160px; height: 160px; border-radius: 50%; background: var(--verde-claro); z-index: -1; }
.hero-tarjeta img { width: 190px; margin: 0 auto 22px; border-radius: 50%; }
.hero-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-datos div { background: var(--gris); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.hero-datos span { font-size: 12px; color: var(--suave); }
.hero-datos b { font-size: 15px; color: var(--verde-osc); }

/* ---- secciones */
.seccion { padding: 76px 0; }
.seccion-gris { background: var(--gris); }
.seccion-verde { background: linear-gradient(135deg, var(--verde-osc), var(--verde)); color: #fff; }
.titulo-sec { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.titulo-sec.izq { text-align: left; margin: 0 0 20px; }
section[id] { scroll-margin-top: 72px; }  /* que la cabecera fija no tape el título al ir a una sección */
.titulo-sec > span { color: var(--verde); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.titulo-sec h2 { font-size: 32px; line-height: 1.2; margin: 8px 0 10px; color: var(--verde-osc); }
.titulo-sec p { color: var(--suave); margin: 0; font-size: 16.5px; }
.titulo-sec.claro > span { color: #b8e3c6; }
.titulo-sec.claro h2 { color: #fff; }
.titulo-sec.claro p { color: #d6eedd; }
.titulo-sec.claro .falta { color: #fde68a; }
.grilla-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- autogestión */
.tarjeta-ag { background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.tarjeta-ag:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #b8e3c6; }
.tarjeta-ag b { font-size: 16.5px; color: var(--verde-osc); }
.tarjeta-ag span { font-size: 14px; color: var(--suave); line-height: 1.45; }

/* ---- íconos (dibujados con CSS mask sobre SVG en línea) */
.ic { display: inline-block; width: 44px; height: 44px; border-radius: 12px; background: var(--verde-claro); position: relative; flex: none; margin-bottom: 6px; }
.ic::after { content: ""; position: absolute; inset: 10px; background: var(--verde); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-recibo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V3l2 1.5L9 3l2 1.5L13 3l2 1.5L17 3l2 1.5V21l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L7 21l-2-1.5z'/%3E%3Cpath d='M9 9h6M9 13h6'/%3E%3C/svg%3E"); }
.ic-deuda { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }
.ic-grafico { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.ic-lista { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.ic-certificado { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M9 13.5 8 21l4-2 4 2-1-7.5'/%3E%3C/svg%3E"); }
.ic-debito { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7h13l-3-3M17 17H4l3 3'/%3E%3C/svg%3E"); }
.ic-carga { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 4v12M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E"); }
.ic-usuario { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.ic-lugar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-12a7 7 0 0 1 14 0c0 5.5-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.ic-tel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ic-reloj { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ic-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* ---- institución */
.inst-fila { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.inst-fila p { color: var(--suave); font-size: 16.5px; }
.cifras { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.cifras div { background: #fff; border-radius: 14px; padding: 14px 20px; border: 1px solid var(--borde); display: flex; flex-direction: column; min-width: 130px; }
.cifras b { font-size: 28px; color: var(--verde); line-height: 1.1; }
.cifras span { font-size: 13.5px; color: var(--suave); }
.foto-falta, .mapa-falta { min-height: 320px; border-radius: 22px; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--verde-osc); font-weight: 600; background: repeating-linear-gradient(45deg, #e8f4ec, #e8f4ec 14px, #f3faf5 14px, #f3faf5 28px); border: 2px dashed #b8e3c6; }
.foto-falta small, .mapa-falta small { font-weight: 400; color: var(--suave); }

/* ---- noticias */
.noticia { background: #fff; border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.noticia:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.noticia-img { height: 170px; background: linear-gradient(135deg, var(--verde-medio), var(--verde-osc)); }
.noticia-img.n2 { background: linear-gradient(135deg, #3aa4a0, #17605c); }
.noticia-img.n3 { background: linear-gradient(135deg, #8bbf4f, #3f7d20); }
.noticia-txt { padding: 18px 20px 22px; }
.noticia time { font-size: 12.5px; color: var(--verde); font-weight: 600; }
.noticia h3 { margin: 4px 0 6px; font-size: 18px; color: var(--verde-osc); }
.noticia p { margin: 0; color: var(--suave); font-size: 14.5px; }

/* ---- beneficios */
.beneficio { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.beneficio b { font-size: 16.5px; }
.beneficio span { color: #d6eedd; font-size: 14px; }
.beneficio .falta { color: #fde68a; }

/* ---- contacto */
.contacto-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.datos-contacto { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.datos-contacto li { display: flex; gap: 14px; align-items: center; }
.datos-contacto .ic { margin: 0; }
.datos-contacto div { display: flex; flex-direction: column; line-height: 1.35; }
.datos-contacto span { font-size: 12.5px; color: var(--suave); }
.datos-contacto b { font-size: 16px; }
.datos-contacto small { color: var(--suave); }

/* ---- pie */
.pie { background: var(--verde-osc); color: #d6eedd; padding: 28px 0; }
.pie-fila { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pie .marca b { color: #fff; }
.pie .marca small { color: #b8e3c6; }
.pie > .cont > small { width: 100%; text-align: center; font-size: 12.5px; color: #9fcfae; }

/* ---- portal del socio (socios.html) */
.portal { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.portal-lado { background: linear-gradient(150deg, var(--verde-osc), var(--verde) 70%, var(--verde-medio)); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.portal-lado .marca b { color: #fff; }
.portal-lado .marca small { color: #b8e3c6; }
.portal-lado h1 { font-size: 34px; line-height: 1.2; margin: auto 0 14px; }
.portal-lado p { color: #d6eedd; font-size: 16.5px; max-width: 440px; }
.portal-lado ul { list-style: none; padding: 0; margin: 18px 0 auto; display: grid; gap: 8px; }
.portal-lado li::before { content: "✓"; display: inline-block; width: 22px; color: #b8e3c6; font-weight: 700; }
.portal-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--gris); }
.caja-ingreso { background: #fff; width: 100%; max-width: 400px; border-radius: 20px; box-shadow: var(--sombra); padding: 34px; }
.caja-ingreso h2 { margin: 0 0 4px; color: var(--verde-osc); font-size: 24px; }
.caja-ingreso > p { margin: 0 0 22px; color: var(--suave); font-size: 14.5px; }
.caja-ingreso label { display: block; font-size: 13px; font-weight: 600; color: var(--suave); margin-bottom: 14px; }
.caja-ingreso input { width: 100%; margin-top: 5px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--borde); font-size: 15px; }
.caja-ingreso .btn { width: 100%; }
.aviso-pronto { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 14px; }
.links-ingreso { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.links-ingreso a { color: var(--verde); font-weight: 600; }
/* logo de GM Sistemas (chico, sin fondo, abajo de todo) y encabezado del ingreso en el celular (29/10/2026) */
.portal-form { position: relative; }
.portal-form .logo-gm { position: absolute; right: 18px; bottom: 14px; }
.logo-gm { height: 22px; width: auto; opacity: .9; }
.ing-cel { display: none; }
.pie > .cont > small.pie-ult { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }

/* ---- en construcción (página apagada) */
body.construccion { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 10%, #e8f4ec, transparent 45%), radial-gradient(circle at 85% 90%, #dff0e5, transparent 40%), #f7faf8; }
.obra { text-align: center; padding: 40px 20px; max-width: 560px; }
.obra-logo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 16px; box-shadow: var(--sombra); }
.obra-nombre { font-size: 18px; font-weight: 700; color: var(--verde-osc); letter-spacing: .02em; }
.obra h1 { font-size: 36px; margin: 18px 0 8px; color: var(--texto); }
.obra p { color: var(--suave); font-size: 17px; margin: 0 0 26px; }
.obra-btn { font-size: 16px; padding: 13px 26px; }
.obra-datos { margin-top: 30px; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--suave); }

/* ---- noticia abierta y fotos de la página */
.noticia { cursor: pointer; }
.noticia-img.con-foto { background-size: cover; background-position: center; }
.ver-todas { text-align: center; margin-top: 22px; }
/* Noticias como historial de publicaciones (10/10/2026): una columna, cada una completa, la más nueva arriba */
.seccion-pub { padding-top: 48px; }
.publicaciones { max-width: 780px; margin: 0 auto; display: grid; gap: 30px; }
.publicacion { background: #fff; border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); }
.pub-foto { display: block; width: 100%; height: auto; background: var(--gris); }
.pub-txt { padding: 20px 26px 24px; }
.pub-txt time { font-size: 13px; color: var(--verde); font-weight: 600; }
.pub-txt h3 { margin: 4px 0 10px; font-size: 23px; line-height: 1.25; color: var(--verde-osc); }
.pub-bajada { margin: 0 0 10px; font-size: 16.5px; color: #374151; font-weight: 500; }
.pub-leyenda p { margin: 0 0 10px; color: var(--suave); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 640px) { .pub-txt { padding: 16px 18px 20px; } .pub-txt h3 { font-size: 20px; } }
.ventana-fondo { position: fixed; inset: 0; background: rgba(16, 24, 20, .55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ventana-noticia { background: #fff; border-radius: 18px; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.ventana-noticia img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 18px 18px 0 0; }
.ventana-noticia .vn-txt { padding: 22px 26px 26px; }
.ventana-noticia time { color: var(--verde); font-weight: 600; font-size: 13px; }
.ventana-noticia h3 { margin: 4px 0 12px; font-size: 24px; color: var(--verde-osc); }
.ventana-noticia p { color: var(--texto); margin: 0 0 12px; }
.ventana-noticia .vn-cerrar { float: right; margin: 12px; background: #fff; border: 1px solid var(--borde); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; }
.sub-h { margin: 22px 0 4px; font-size: 17px; color: var(--verde-osc); }
/* comisión directiva (09/10/2026, como el ejemplo de Gustavo): foto cuadrada con esquinas redondeadas, nombre y cargo en cursiva */
.directivos { justify-content: center; }
.directivo { background: #fff; border-radius: 22px; padding: 30px 30px 24px; text-align: center; display: flex; flex-direction: column;
  align-items: center; box-shadow: 0 6px 24px rgba(15, 40, 30, .08); transition: transform .15s, box-shadow .15s; }
.directivo.con-texto { cursor: pointer; }
.directivo.con-texto:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 40, 30, .14); }
.dir-foto { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; height: auto; border-radius: 26px; object-fit: cover; margin-bottom: 18px; background: #e8edf0; }
.dir-iniciales { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--verde-claro), #d3e6dc);
  color: var(--verde); font-size: 64px; font-weight: 700; }
.directivo h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: #2f3b55; }
.dir-cargo { font-style: italic; color: #4a5568; font-size: 16px; }
.dir-mas { margin-top: 12px; background: #fff; border: 0; border-radius: 999px; padding: 7px 16px; color: var(--verde-osc); font: inherit; font-weight: 600;
  cursor: pointer; font-size: 14px; box-shadow: inset 0 0 0 1.5px #b8e3c6; transition: background .15s, box-shadow .15s; }
.dir-mas::after { content: " →"; }
.dir-mas:hover { background: var(--verde-claro); box-shadow: inset 0 0 0 1.5px var(--verde); }
.vn-directivo { text-align: center; }
.vn-directivo .dir-foto { margin: 10px auto 12px; display: block; max-width: 240px; }
.vn-directivo p { text-align: left; }
section[hidden], .nav a[hidden] { display: none !important; }
.foto-sede { min-height: 320px; border-radius: 22px; background-size: cover; background-position: center; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.foto-sede .fs-foto { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.foto-sede .fs-foto.on { opacity: 1; }
.comision { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.comision div { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--borde); }
.comision span { font-size: 12.5px; color: var(--suave); }
.comision b { font-size: 15px; }
.beneficio img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; background: #fff; }
.mapa-link { min-height: 320px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--verde-claro), #fff); border: 1px solid #b8e3c6; color: var(--verde-osc); font-weight: 600; }

/* ---- el menú pasa al ☰ cuando no entra en un renglón (también lo hace sitio.js si igual no entra) */
.cab.compacta .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 4px; padding: 10px 16px 16px;
  border-bottom: 1px solid var(--borde); box-shadow: 0 12px 24px rgba(15, 79, 39, .1); max-height: calc(100vh - 72px); overflow-y: auto; }
.cab.compacta .nav.abierto { display: flex; }
.cab.compacta .nav a { padding: 11px 14px; border-radius: 12px; font-size: 15px; color: var(--texto); }
.cab.compacta .nav a.destacado { background: var(--verde-claro); color: var(--verde-osc); box-shadow: none; }
.cab.compacta .menu-btn { display: block; }

/* ---- celular y tablet */
@media (max-width: 980px) {
  .grilla-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-fila, .inst-fila, .contacto-fila { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .portal { grid-template-columns: 1fr; }
  /* celular: directo el ingreso, con el logo arriba; sin la franja verde */
  .portal-lado { display: none; }
  .portal-form { flex-direction: column; justify-content: flex-start; min-height: 100vh; padding: 40px 20px 20px;
    background: linear-gradient(180deg, var(--verde-claro) 0, var(--gris) 300px); }
  .ing-cel { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
  .ing-cel img { width: 112px; height: 112px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(15, 79, 39, .15); }
  .ing-cel b { margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: .5px; color: var(--verde-osc); line-height: 1.2; }
  .ing-cel small { margin-top: 2px; font-size: 13.5px; color: var(--suave); }
  .portal-form .logo-gm { position: static; margin-top: auto; }
  .portal-form .caja-ingreso { margin-bottom: 26px; }
  .portal-form .links-ingreso { flex-direction: column; align-items: center; gap: 10px; }
}
@media (max-width: 620px) {
  .grilla-4, .grilla-3 { grid-template-columns: 1fr; }
  .cab-botones .btn-claro { padding: 8px 13px; font-size: 13px; gap: 6px; box-shadow: 0 3px 10px rgba(23, 117, 58, .28); }
  .cab-botones .btn-claro svg { display: none; }
  .marca { white-space: normal; flex: 1; min-width: 0; gap: 8px; }
  .marca img { width: 38px; height: 38px; }
  .hero-botones { flex-direction: column; align-items: stretch; }
  .cab-fila { gap: 10px; }
  .marca b { font-size: 14.5px; }
  .hero h1 br, .portal-lado h1 br { display: none; }
  .marca small { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 29px; }
  .seccion { padding: 54px 0; }
  .titulo-sec h2 { font-size: 26px; }
}

/* ---- Buscar médico (16/10/2026) */
.hero a.btn[hidden] { display: none !important; }
.med-buscador { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; max-width: 900px; margin: 0 auto; background: #fff; padding: 10px;
  border-radius: 18px; box-shadow: var(--sombra); }
.med-buscador input, .med-buscador select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #d3dbd6; font: inherit; font-size: 16px;
  background: #fff; color: var(--texto); }
.med-buscador input:focus, .med-buscador select:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(23, 117, 58, .15); }
.med-especs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px auto 0; max-width: 900px; }
.med-especs button { border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer;
  color: var(--verde-osc); }
.med-especs button:hover { background: var(--verde-claro); }
.med-cant { text-align: center; color: var(--suave); margin: 18px 0 12px; font-size: 14.5px; }
.med-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.med { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; }
.med-cab { display: flex; gap: 12px; align-items: center; }
.med-av { width: 50px; height: 50px; border-radius: 50%; background: var(--verde-claro); color: var(--verde-osc); display: grid; place-items: center;
  font-weight: 700; font-size: 18px; flex: none; }
.med-cab b { display: block; font-size: 16.5px; line-height: 1.25; } .med-esp { display: block; color: var(--verde); font-size: 13.5px; font-weight: 600; }
.med-hoy { margin-left: auto; align-self: flex-start; background: var(--verde-claro); color: var(--verde-osc); font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.med-os { margin-top: 10px; align-self: flex-start; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px;
  background: var(--verde-claro); color: var(--verde-osc); }
.med-os.no { background: #fdecec; color: #9b1c1c; }
.med-lugar { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--borde); font-size: 14.5px; }
.med-lugar.sin-linea { border-top: 0; margin-top: 2px; padding-top: 0; }
.med-dir { font-weight: 600; } .med-dir small { color: var(--suave); font-weight: 400; font-size: 13.5px; }
.med-fr { display: flex; gap: 8px; align-items: center; margin-top: 5px; color: var(--suave); }
.med .ic { width: 18px; height: 18px; border-radius: 0; background: none; margin: 0; }
.med .ic::after { inset: 0; }
.med-acc { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.med-acc a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 11px; font-weight: 700;
  font-size: 14px; transition: transform .15s, box-shadow .15s; }
.med-acc a:hover { transform: translateY(-2px); }
.med-acc .tel { background: linear-gradient(135deg, #1f8a46, var(--verde-osc)); color: #fff; box-shadow: 0 4px 12px rgba(23, 117, 58, .28); } .med-acc .tel .ic::after { background: #fff; }
.med-acc .map { background: #fff; color: var(--verde-osc); box-shadow: inset 0 0 0 1.5px #b8e3c6; }
.med-vacio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 24px; }
@media (max-width: 760px) {
  .med-buscador { grid-template-columns: 1fr 1fr; } .med-buscador input { grid-column: 1 / -1; }
  .med-lista { grid-template-columns: 1fr; }
}

/* In memoriam (Gustavo, 23/10/2026): carrusel de los socios fallecidos del año; foto en blanco y negro o la cinta negra.
   Tocando una tarjeta se abre la placa (como la del Colegio Médico de Tucumán, con nuestro logo). */
.memoria { background: linear-gradient(180deg, #f3f4f4, #e9ecec); }
.mem-titulo > span { color: #3a3f44; display: inline-flex; align-items: center; gap: 8px; }
.mem-titulo h2 { color: #23282d; }
.mem-cinta-chica { width: 13px; height: 18px; }
.mem-cinta-chica path, .mem-cinta path { fill: none; stroke: #111; stroke-width: 16; stroke-linejoin: round; }
.mem-anios { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.mem-anios button { border: 1.5px solid #c9cfd3; background: #fff; color: #3a3f44; border-radius: 999px; padding: 5px 14px; font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; }
.mem-anios button.on { background: #23282d; border-color: #23282d; color: #fff; }
.mem-retrato { width: 104px; height: 104px; margin: 12px auto 10px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #d4d8db, 0 6px 16px rgba(0, 0, 0, .15);
  overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.mem-retrato img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mem-retrato .mem-cinta { width: 40px; height: 56px; }
.mem-fecha { display: inline-block; margin-top: 5px; font-size: 11.5px; color: #3a3f44; background: #fff; border-radius: 999px; padding: 2px 12px; }
.mem-frase { text-align: center; margin: 22px 0 0; color: var(--suave); font-style: italic; font-size: 16.5px; }
.mem-placa { flex: 0 0 250px; background: linear-gradient(180deg, #f4f4f2, #e6e8e8); border-radius: 14px; padding: 12px 12px 14px;
  text-align: center; border: 6px solid #23282d; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.mp-cab { display: flex; align-items: center; gap: 7px; text-align: left; }
.mp-cab img { width: 32px; height: 32px; border-radius: 50%; }
.mp-cab b { color: var(--verde-osc); font-size: 12px; line-height: 1.2; }
.mp-cab .mem-cinta { width: 20px; height: 28px; margin-left: auto; flex: none; }
.mp-lamenta { font-size: 10.5px; text-transform: uppercase; color: #3a3f44; letter-spacing: .03em; line-height: 1.4; }
.mem-placa hr { border: 0; border-top: 1px solid #9aa1a6; margin: 7px 10px; }
.mem-placa h3 { margin: 0; font-size: 15px; text-transform: uppercase; color: #1d2125; line-height: 1.2; }
.mp-esp { font-size: 12px; color: #4a5156; margin-top: 2px; }
.mp-paz { margin-top: 8px; font-size: 10.5px; text-transform: uppercase; color: #6b7378; line-height: 1.45; }
.mp-paz b { display: block; font-style: italic; color: #4a5156; }
.mem-carrusel { position: relative; }
.mem-pista { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 4px 14px; }
.mem-pista::-webkit-scrollbar { display: none; }
.mem-pista.centrada { justify-content: center; }
.mem-placa { scroll-snap-align: start; }
.mem-flecha { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.mem-flecha svg { width: 20px; height: 20px; fill: none; stroke: #23282d; stroke-width: 2.5; stroke-linecap: round; }
.mem-flecha:disabled { opacity: .35; cursor: default; }
.mem-flecha[hidden] { display: none; }
.mem-flecha.izq { left: -18px; } .mem-flecha.der { right: -18px; }
@media (max-width: 600px) { .mem-placa { flex-basis: 230px; } .mem-carrusel { max-width: 250px; margin: 0 auto; } .mem-placa { scroll-snap-align: center; }
  .mem-flecha { width: 34px; height: 34px; } .mem-flecha.izq { left: -42px; } .mem-flecha.der { right: -42px; } }

/* Noticias como colegiomedicotucuman.com.ar/noticias (23/10/2026): foto a la izquierda, texto a la derecha, raya entre una y otra */
.noticias-lista { max-width: 1000px; margin: 0 auto; }
.nt { display: grid; grid-template-columns: 44% 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--borde); cursor: pointer; }
.nt:first-child { padding-top: 0; }
.nt:focus-visible { outline: 2px solid #b8e3c6; outline-offset: 6px; }
.nt-foto { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--gris); }
.nt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nt-foto .nt-logo { object-fit: contain; padding: 18%; }
.nt:hover .nt-foto img { transform: scale(1.03); }
.nt-txt { display: flex; flex-direction: column; min-width: 0; }
.nt-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--verde-medio); }
.nt-txt h3 { margin: 6px 0 12px; font-size: 21px; line-height: 1.3; color: var(--verde-osc); }
.nt:hover .nt-txt h3 { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.nt-txt p { margin: 0 0 14px; color: var(--texto); font-size: 15.5px; line-height: 1.6; }
.nt-pie { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--borde); display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.nt-leer { color: var(--verde); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; gap: 6px; }
.nt-leer .fl { transition: transform .15s; }
.nt:hover .nt-leer .fl, .nt:focus .nt-leer .fl { transform: translateX(4px); }
.nt-pie time { color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.ventana-noticia img.vn-foto-entera { max-height: none; object-fit: contain; background: var(--gris); }
@media (max-width: 720px) {
  .nt { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .nt-txt h3 { font-size: 19px; }
}
