/*
Theme Name: UNIC Sindicato
Theme URI: https://sindicatounic.org
Author: UNIC - Unión de Trabajadores Oficiales de Colpensiones
Description: Tema del sitio de la Unión de Trabajadores Oficiales de Colpensiones - UNIC. Trae tres opciones de diseño (Institucional, Colectivo y Cercano) que se eligen en Apariencia > Personalizar > UNIC: diseño, con un selector de demostración para presentarlas.
Version: 2.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: unic
*/

/* =========================================================
   Tokens. A (Institucional) es la base; B y C los cambian abajo.
   ========================================================= */
:root {
	--fondo: #f8f9fb;
	--superficie: #e9eef4;
	--superficie-2: #dde5ee;
	--tinta: #241824;
	--suave: #5d5460;
	--linea: rgba(36, 24, 36, .13);
	--accion: #3c243c;
	--accion-hover: #51334f;
	--accion-tinta: #ffffff;
	--banda: #2a1b2a;
	--banda-2: #372637;
	--banda-tinta: #f6f2f6;
	--banda-suave: #b9aebb;
	--banda-linea: rgba(246, 242, 246, .16);
	--lila: #b9a8cc;
	--azul: #b5c6d8;
	--ok: #2f6b4f;
	--error: #a12a3a;
	--tarjeta: #ffffff;
	--sombra: 0 1px 2px rgba(36, 24, 36, .06), 0 12px 32px -12px rgba(36, 24, 36, .18);

	--f-titulo: "Newsreader", Georgia, "Times New Roman", serif;
	--f-texto: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--titulo-peso: 400;
	--titulo-track: -0.022em;
	--titulo-alto: 1.04;

	--t-h1: clamp(40px, 3.6vw + 16px, 72px);
	--t-h2: clamp(30px, 1.9vw + 18px, 48px);
	--t-lead: clamp(17px, .3vw + 15.5px, 20px);

	--ancho: 1280px;
	--canal: clamp(16px, 5.5vw, 80px);
	--barra-alto: 72px;
	--r-lg: 20px; --r-md: 12px; --r-sm: 8px; --r-boton: 999px;
	--sec-arriba: clamp(80px, 9vw, 128px);
	--sec-abajo: clamp(64px, 6vw, 96px);
	--ease: cubic-bezier(.23, 1, .32, 1);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--barra-alto); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--fondo); color: var(--tinta);
	font: 400 16.5px/1.6 var(--f-texto);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--lila); color: #241824; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; color: inherit; }
h1, h2 { font-family: var(--f-titulo); font-weight: var(--titulo-peso); letter-spacing: var(--titulo-track); line-height: var(--titulo-alto); }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); line-height: calc(var(--titulo-alto) + .04); }
h3 { font-family: var(--f-texto); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accion); outline-offset: 3px; border-radius: 4px; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tarjeta); padding: 10px 16px; border-radius: var(--r-sm); }
.saltar:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contenedor {
	width: 100%; max-width: calc(var(--ancho) + 2 * var(--canal)); margin-inline: auto;
	padding-left: max(var(--canal), env(safe-area-inset-left, 0px));
	padding-right: max(var(--canal), env(safe-area-inset-right, 0px));
}
.seccion { padding-block: var(--sec-arriba) var(--sec-abajo); }
.seccion--suave { background: var(--superficie); }
.seccion--banda { background: var(--banda); color: var(--banda-tinta); }
.seccion__cabeza { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.seccion__cabeza p { font-size: var(--t-lead); color: var(--suave); max-width: 60ch; line-height: 1.55; }
.seccion--banda .seccion__cabeza p { color: var(--banda-suave); }
.seccion__cabeza--fila { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }

/* Botones: uno lleno para la acción principal, uno secundario. */
.boton, .wp-block-button__link {
	--alto: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--alto); padding: 0 24px; border-radius: var(--r-boton); border: 0; cursor: pointer;
	font: 600 16px/1 var(--f-texto); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease), box-shadow .2s var(--ease);
}
.boton:active, .wp-block-button__link:active { transform: scale(.97); }
.boton--principal, .wp-block-button__link { background: var(--accion); color: var(--accion-tinta); }
.boton--secundario { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton--grande { --alto: 64px; font-size: 18px; padding: 0 32px; }
.flecha { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
@media (hover: hover) {
	.boton--principal:hover, .wp-block-button__link:hover { background: var(--accion-hover); color: var(--accion-tinta); }
	.boton--secundario:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
	.boton:hover .flecha { transform: translateX(3px); }
}
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.enlace {
	font-weight: 600; text-decoration: none; padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
	transition: background-size .28s var(--ease);
}
@media (hover: hover) { .enlace:hover { background-size: 30% 1.5px; } }

/* =========================================================
   Cabecera
   ========================================================= */
.sitio-cabecera { position: sticky; top: 0; z-index: 30; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.admin-bar .sitio-cabecera { top: 32px; }
@media (max-width: 782px) { .admin-bar .sitio-cabecera { top: 0; } }
.sitio-cabecera__barra { display: flex; align-items: center; gap: 24px; min-height: var(--barra-alto); }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: inherit; }
.marca img { width: 44px; height: 42px; object-fit: contain; }
.marca__texto { display: grid; line-height: 1.05; }
.marca__sigla { font: 650 20px/1 var(--f-texto); letter-spacing: .12em; }
.marca__nombre { font-size: 12.5px; color: var(--suave); margin-top: 4px; }
.menu-principal ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu-principal a { display: block; padding: 10px 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--suave); border-radius: var(--r-sm); transition: color .2s var(--ease); }
.menu-principal .current-menu-item > a { color: var(--tinta); }
@media (hover: hover) { .menu-principal a:hover { color: var(--tinta); } }
.menu-principal .menu-afiliate { margin-left: 12px; }
.menu-principal .menu-afiliate > a { background: var(--accion); color: var(--accion-tinta); border-radius: var(--r-boton); padding: 0 20px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; transition: background-color .2s var(--ease), transform .16s var(--ease); }
.menu-principal .menu-afiliate > a:active { transform: scale(.97); }
@media (hover: hover) { .menu-principal .menu-afiliate > a:hover { background: var(--accion-hover); color: var(--accion-tinta); } }
.menu-boton { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); place-items: center; cursor: pointer; }
.menu-boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

@media (max-width: 1100px) { .marca__nombre { display: none; } }
@media (max-width: 920px) {
	.menu-boton { display: grid; }
	.menu-principal {
		position: fixed; inset: var(--barra-alto) 0 0; z-index: 29; background: var(--fondo);
		padding: 16px max(var(--canal), env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
		opacity: 0; visibility: hidden; transform: translateY(-6px);
		transition: opacity .2s var(--ease), transform .26s var(--ease), visibility 0s .26s;
	}
	.menu-principal.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .26s var(--ease); }
	.menu-principal ul { flex-direction: column; align-items: stretch; gap: 0; }
	.menu-principal a { padding: 0; min-height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--linea); font-family: var(--f-titulo); font-size: 26px; color: var(--tinta); border-radius: 0; }
	.menu-principal .menu-afiliate { margin: 24px 0 0; }
	.menu-principal .menu-afiliate > a { width: 100%; justify-content: center; font-family: var(--f-texto); font-size: 17px; min-height: 52px; border: 0; }
	body.menu-abierto { overflow: hidden; }
}

/* =========================================================
   Portada (hero)
   ========================================================= */
.portada { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6vw, 88px); }
.portada__rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.portada__texto { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.portada__lead { font-size: var(--t-lead); line-height: 1.55; color: var(--suave); max-width: 46ch; }
.portada__texto .botones { margin-top: 8px; }
.datos { margin: auto 0 0; padding-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.datos div { border-top: 1px solid var(--linea); padding-top: 14px; }
.datos dt { font-size: 13px; font-weight: 500; color: var(--suave); }
.datos dd { margin: 4px 0 0; font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
.portada__visual {
	grid-column: 7 / span 6; position: relative; border-radius: var(--r-lg); background: var(--superficie);
	min-height: 600px; overflow: hidden; display: grid; place-items: center; padding: 48px 32px 104px;
}
.columnas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.columnas g { stroke: var(--superficie-2); }

.tramite { position: relative; width: min(100%, 420px); background: var(--tarjeta); border-radius: 16px; box-shadow: var(--sombra); border: 1px solid var(--linea); overflow: hidden; color: var(--tinta); }
.tramite__top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linea); }
.tramite__top img { width: 22px; height: 21px; }
.tramite__top b { font-size: 14px; font-weight: 600; }
.tramite__top span { margin-left: auto; font-size: 12.5px; color: var(--suave); font-variant-numeric: tabular-nums; }
.tramite__cuerpo { padding: 20px 20px 22px; display: grid; gap: 16px; }
.tramite__quien { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--superficie); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.tramite__quien p { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tramite__quien small { display: block; font-size: 13px; color: var(--suave); font-weight: 400; }
.barra { height: 6px; border-radius: 99px; background: var(--superficie); overflow: hidden; }
.barra i { display: block; height: 100%; width: calc(var(--k, .5) * 100%); background: var(--accion); border-radius: inherit; transition: width .5s var(--ease); }
.mini-pasos { list-style: none; margin: 0; padding: 0; }
.mini-pasos li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.mini-pasos li + li { border-top: 1px solid var(--linea); }
.tilde { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linea); display: grid; place-items: center; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.tilde svg { width: 12px; height: 12px; fill: none; stroke: var(--accion-tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s var(--ease) .05s; }
.mini-pasos li.hecho .tilde { background: var(--accion); box-shadow: none; }
.mini-pasos li.hecho .tilde svg { stroke-dashoffset: 0; }
.mini-pasos li.ahora span:nth-child(2) { font-weight: 600; }
.mini-pasos em { font-style: normal; font-size: 12.5px; color: var(--suave); font-variant-numeric: tabular-nums; }
.flotante { position: absolute; left: 24px; bottom: 24px; width: min(300px, calc(100% - 48px)); background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 4px; color: var(--tinta); }
.flotante__fila { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--suave); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: respira 2.4s var(--ease) infinite; }
@keyframes respira { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.flotante b { font-size: 15px; font-weight: 600; }

/* =========================================================
   Servicios
   ========================================================= */
.servicios { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.servicios__lista { grid-column: 1 / span 6; border-top: 1px solid var(--linea); }
.servicios__lista button {
	width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; text-align: left;
	padding: 18px 4px; background: none; border: 0; border-bottom: 1px solid var(--linea); color: inherit; font: inherit; cursor: pointer;
}
.servicios__num { display: none; }
.servicios__nombre { grid-column: 2; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.servicios__linea { grid-column: 2; font-size: 15px; color: var(--suave); }
.servicios__chev { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--suave); transition: background-color .2s var(--ease), color .2s var(--ease), transform .25s var(--ease); }
.servicios__chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.servicios__lista button[aria-selected="true"] .servicios__chev { background: var(--accion); color: var(--accion-tinta); transform: translateX(2px); }
@media (hover: hover) { .servicios__lista button:hover .servicios__chev { color: var(--tinta); } .servicios__lista button[aria-selected="true"]:hover .servicios__chev { color: var(--accion-tinta); } }
.servicios__paneles { grid-column: 7 / span 6; align-self: stretch; display: grid; }
.servicio-panel { border-radius: var(--r-lg); background: var(--superficie); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.servicio-panel[hidden] { display: none; }
.servicio-panel__icono { width: 56px; height: 56px; border-radius: 14px; background: var(--tarjeta); display: grid; place-items: center; border: 1px solid var(--linea); color: var(--tinta); }
.servicio-panel__icono svg { width: 26px; height: 26px; }
.servicio-panel h3 { font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: clamp(28px, 1.2vw + 20px, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.servicio-panel p { font-size: 17px; line-height: 1.6; max-width: 52ch; }
.servicio-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.servicio-panel li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.servicio-panel li svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--accion); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.servicio-panel .servicio-panel__base { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--suave); }

/* =========================================================
   Cuota
   ========================================================= */
.cuota { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.cuota__form { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.cuota__form label { font-size: 13px; font-weight: 500; color: var(--banda-suave); margin-bottom: -12px; }
.dinero { display: flex; align-items: center; height: 60px; border-radius: var(--r-md); background: var(--banda-2); box-shadow: inset 0 0 0 1px var(--banda-linea); padding: 0 18px; transition: box-shadow .2s var(--ease); }
.dinero:focus-within { box-shadow: inset 0 0 0 2px var(--banda-tinta); }
.dinero span { font-size: 20px; color: var(--banda-suave); margin-right: 8px; }
.dinero input { flex: 1; min-width: 0; background: none; border: 0; outline: none; box-shadow: none; padding: 0; color: var(--banda-tinta); font: 500 22px/1 var(--f-texto); font-variant-numeric: tabular-nums; caret-color: var(--lila); }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: transparent; color: var(--banda-tinta); box-shadow: inset 0 0 0 1px var(--banda-linea); font: 500 14px/1 var(--f-texto); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .16s var(--ease); }
.ficha:active { transform: scale(.96); }
.ficha[aria-pressed="true"] { background: var(--banda-tinta); color: var(--banda); box-shadow: none; }
@media (hover: hover) { .ficha:hover { box-shadow: inset 0 0 0 1px var(--banda-tinta); } }
.cuota__nota { font-size: 14.5px; color: var(--banda-suave); line-height: 1.55; max-width: 48ch; }
.cuota__resultado { grid-column: 7 / span 6; border-radius: var(--r-lg); background: var(--banda-2); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 24px; box-shadow: inset 0 0 0 1px var(--banda-linea); }
.cuota__etiqueta { font-size: 14px; color: var(--banda-suave); }
.cuota__grande { margin-top: -8px; font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: clamp(56px, 5vw + 20px, 104px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.medidor { display: grid; gap: 8px; }
.medidor__pista { height: 10px; border-radius: 99px; background: rgba(246, 242, 246, .08); overflow: hidden; }
.medidor__pista i { display: block; height: 100%; width: 3.2%; background: var(--lila); border-radius: 99px; }
.medidor p { font-size: 13.5px; color: var(--banda-suave); }
.cuota__mas { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--banda-linea); }
.cuota__mas dt { font-size: 13px; color: var(--banda-suave); }
.cuota__mas dd { margin: 4px 0 0; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* =========================================================
   Afiliación
   ========================================================= */
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pasos button { text-align: left; background: none; border: 0; border-top: 2px solid var(--linea); padding: 20px 0 0; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 8px; align-content: start; transition: border-color .25s var(--ease); }
.pasos button[aria-selected="true"] { border-top-color: var(--accion); }
.pasos__n { font-size: 13px; font-weight: 600; color: var(--suave); font-variant-numeric: tabular-nums; }
.pasos button[aria-selected="true"] .pasos__n { color: var(--tinta); }
.pasos__t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.pasos__p { font-size: 15.5px; color: var(--suave); line-height: 1.5; }
@media (hover: hover) { .pasos button:hover { border-top-color: var(--suave); } .pasos button[aria-selected="true"]:hover { border-top-color: var(--accion); } }
.afiliarse { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.afiliarse__paneles { grid-column: 1 / span 7; display: grid; }
.paso-panel { border-radius: var(--r-lg); background: var(--superficie); padding: clamp(28px, 3.5vw, 44px); display: grid; gap: 14px; align-content: start; }
.paso-panel[hidden] { display: none; }
.paso-panel__k { font-size: 13px; font-weight: 600; color: var(--suave); }
.paso-panel h3 { font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: clamp(26px, 1vw + 20px, 32px); letter-spacing: -0.02em; }
.paso-panel p { font-size: 16.5px; max-width: 56ch; }
.paso-panel__cuando { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--suave); margin-top: 6px; }
.paso-panel__cuando svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.requisitos { grid-column: 8 / span 5; border-radius: var(--r-lg); background: var(--tarjeta); border: 1px solid var(--linea); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.requisitos h3 { font-size: 18px; margin-bottom: 4px; }
.requisitos label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.45; cursor: pointer; padding: 4px 0; }
.requisitos input { -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--suave); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.requisitos input::after { content: ""; width: 10px; height: 6px; border: solid var(--accion-tinta); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(.4); opacity: 0; transition: transform .22s var(--ease), opacity .15s; }
.requisitos input:checked { background: var(--accion); box-shadow: none; }
.requisitos input:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.requisitos__resultado { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--linea); display: grid; gap: 12px; }
.requisitos__resultado p { font-size: 14.5px; color: var(--suave); min-height: 2.9em; }
.requisitos__resultado p.ok { color: var(--ok); font-weight: 600; }
.requisitos .boton[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* =========================================================
   Nosotros
   ========================================================= */
.nosotros { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.nosotros__mv { grid-column: 1 / span 7; display: grid; gap: 32px; }
.nosotros__mv h3 { font-size: 15px; font-weight: 600; color: var(--suave); margin-bottom: 10px; }
.nosotros__mv div p { font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: clamp(19px, .45vw + 16px, 23px); line-height: 1.45; letter-spacing: -0.005em; max-width: 58ch; }
.nosotros__lado { grid-column: 9 / span 4; display: grid; gap: 24px; }
.nosotros__simbolo { border-radius: var(--r-lg); background: var(--fondo); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.nosotros__simbolo img { width: 58%; }
.principios { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.principios li { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 99px; background: var(--fondo); box-shadow: inset 0 0 0 1px var(--linea); }
.nosotros__base { font-size: 14px; color: var(--suave); line-height: 1.55; }

/* =========================================================
   Noticias (tarjetas) y preguntas
   ========================================================= */
.rejilla { display: grid; gap: 24px; }
.rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entrada-tarjeta { position: relative; display: flex; flex-direction: column; gap: 0; border-radius: var(--r-lg); background: var(--tarjeta); border: 1px solid var(--linea); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .entrada-tarjeta:hover { transform: translateY(-2px); box-shadow: var(--sombra); } .entrada-tarjeta:hover .entrada-tarjeta__imagen img { transform: scale(1.03); } }
.entrada-tarjeta__imagen { aspect-ratio: 16 / 9; background: var(--superficie); display: block; overflow: hidden; }
.entrada-tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.entrada-tarjeta__imagen--vacia { display: grid; place-items: center; }
.entrada-tarjeta__imagen--vacia img { width: 26%; height: auto; object-fit: contain; }
.entrada-tarjeta__cuerpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.entrada-tarjeta h3 { font-size: 19px; }
.entrada-tarjeta h3 a { text-decoration: none; }
.entrada-tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.entrada-tarjeta p { color: var(--suave); font-size: 15.5px; }
.meta { font-size: 13.5px; color: var(--suave); }
.categoria-chip { position: relative; z-index: 1; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--superficie); text-decoration: none; }

.preguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.preguntas > div { padding: 24px 0; border-top: 1px solid var(--linea); display: grid; gap: 8px; align-content: start; }
.preguntas h3 { font-size: 18px; }
.preguntas p { font-size: 16px; color: var(--suave); line-height: 1.6; max-width: 56ch; }

/* =========================================================
   Cierre y pie
   ========================================================= */
.cierre { background: var(--banda); color: var(--banda-tinta); padding-block: var(--sec-arriba) clamp(64px, 7vw, 104px); }
.cierre__in { display: grid; gap: 28px; justify-items: start; }
.cierre h2 { font-size: clamp(40px, 4vw + 14px, 80px); max-width: 16ch; }
.cierre p { font-size: var(--t-lead); color: var(--banda-suave); max-width: 52ch; }
.cierre .boton--principal { background: var(--banda-tinta); color: var(--banda); }
@media (hover: hover) { .cierre .boton--principal:hover { background: #ffffff; color: var(--banda); } }
.sitio-pie { background: var(--banda); color: var(--banda-tinta); padding: 0 0 32px; }
.sitio-pie .contenedor > * { border-top: 1px solid var(--banda-linea); }
.sitio-pie__rejilla { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 24px; padding-top: 40px; }
.sitio-pie .marca__nombre { color: var(--banda-suave); display: block; }
.sitio-pie__marca p { font-size: 15px; color: var(--banda-suave); max-width: 36ch; margin-top: 16px; }
.sitio-pie__titulo { margin: 0 0 12px; font: 600 13px/1.3 var(--f-texto); color: var(--banda-suave); letter-spacing: 0; }
.sitio-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.sitio-pie a { text-decoration: none; }
@media (hover: hover) { .sitio-pie a:hover { text-decoration: underline; } }
.sitio-pie__base { margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--banda-suave); }
body:not(.home) .sitio-pie { padding-top: 0; }
body:not(.home) .sitio-pie .contenedor > .sitio-pie__rejilla { border-top: 0; padding-top: 64px; }

/* =========================================================
   Páginas interiores, noticias y formularios
   ========================================================= */
.cabecera-pagina { padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--linea); }
.cabecera-pagina h1 { font-size: clamp(36px, 2.6vw + 18px, 60px); max-width: 20ch; }
.cabecera-pagina p { color: var(--suave); margin-top: 14px; font-size: var(--t-lead); max-width: 60ch; }
.contenido { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 7vw, 104px); }
.contenido--estrecho { max-width: calc(780px + 2 * var(--canal)); }
.entrada-contenido { font-size: 17.5px; line-height: 1.7; }
.entrada-contenido > * + * { margin-top: 1.1em; }
.entrada-contenido h2 { margin-top: 1.8em; font-size: clamp(26px, 1vw + 20px, 34px); }
.entrada-contenido h3 { margin-top: 1.6em; }
.entrada-contenido a { color: var(--accion); }
.entrada-contenido blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accion); font-family: var(--f-titulo); font-size: 1.2em; }
.entrada-contenido ul, .entrada-contenido ol { padding-left: 1.3em; }
.entrada-imagen { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
.entrada-imagen img { display: block; width: 100%; }
.paginacion { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.paginacion .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--linea); text-decoration: none; }
.paginacion .current { background: var(--accion); color: var(--accion-tinta); box-shadow: none; }
.navegacion-entradas { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linea); }
.navegacion-entradas a { text-decoration: none; font-weight: 600; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=number], input[type=url], select, textarea {
	width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r-md);
	background: var(--tarjeta); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); transition: box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accion); }

/* Formulario de afiliación (plugin), con los tokens del diseño activo */
body .unic-af { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--r-lg); box-shadow: none; padding: clamp(20px, 3vw, 36px); }
body .unic-af legend { color: var(--tinta); font-family: var(--f-titulo); font-weight: var(--titulo-peso); font-size: 24px; letter-spacing: -0.01em; }
body .unic-af label { font-weight: 600; font-size: 14px; }
body .unic-af .ayuda { color: var(--suave); }
body .unic-af input[type=text], body .unic-af input[type=email], body .unic-af input[type=tel], body .unic-af input[type=date], body .unic-af select { border: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--linea); }
body .unic-af input:focus, body .unic-af select:focus { box-shadow: inset 0 0 0 2px var(--accion); }
body .unic-af .check { background: var(--fondo); border-color: var(--linea); border-radius: var(--r-md); }
body .unic-af .check input { accent-color: var(--accion); }
body .unic-af button { background: var(--accion); color: var(--accion-tinta); border-radius: var(--r-boton); min-height: 52px; font-family: var(--f-texto); font-weight: 600; transition: background-color .2s var(--ease), transform .16s var(--ease); }
body .unic-af button:active { transform: scale(.97); }
@media (hover: hover) { body .unic-af button:hover { background: var(--accion-hover); } }

/* Bloques de WordPress */
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--r-md); }
.has-unic-ciruela-color { color: #3c243c; }
.has-unic-ciruela-background-color { background-color: #3c243c; }
.has-unic-lila-background-color { background-color: #b9a8cc; }
.has-unic-azul-background-color { background-color: #b5c6d8; }

/* =========================================================
   Selector de diseños (solo para la demostración)
   ========================================================= */
.selector-demo {
	position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
	display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
	background: #1d141d; color: #f6f2f6; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
	font: 500 14px/1 "Hanken Grotesk", "Figtree", system-ui, sans-serif; max-width: calc(100% - 24px);
}
.selector-demo__t { padding: 0 10px 0 12px; color: #b9aebb; font-size: 13px; }
.selector-demo a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: #f6f2f6; white-space: nowrap; transition: background-color .2s var(--ease), transform .16s var(--ease); }
.selector-demo a:active { transform: scale(.96); }
.selector-demo a[aria-current="true"] { background: #f6f2f6; color: #1d141d; }
@media (hover: hover) { .selector-demo a:not([aria-current="true"]):hover { background: rgba(246, 242, 246, .12); } }
.con-selector .sitio-pie { padding-bottom: 96px; }
@media (max-width: 520px) { .selector-demo__t { display: none; } .selector-demo a { padding: 0 10px; font-size: 13px; } }

/* =========================================================
   Responsive (común)
   ========================================================= */
@media (max-width: 1023px) {
	.portada__texto, .portada__visual, .servicios__lista, .servicios__paneles, .cuota__form, .cuota__resultado, .afiliarse__paneles, .requisitos, .nosotros__mv, .nosotros__lado { grid-column: 1 / -1; }
	.portada__visual { min-height: 520px; }
	.datos { padding-top: 16px; }
	.pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.nosotros__lado { grid-template-columns: 200px 1fr; align-items: start; }
	.preguntas, .rejilla--3, .rejilla--2 { grid-template-columns: 1fr; }
	.rejilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sitio-pie__rejilla { grid-template-columns: 1fr 1fr; }
	.sitio-pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
	:root { --barra-alto: 60px; }
	.marca img { width: 36px; height: 34px; }
	.portada__texto .botones .boton, .requisitos .boton { width: 100%; }
	.datos { grid-template-columns: 1fr 1fr; }
	.datos div:last-child { grid-column: 1 / -1; }
	.portada__visual { min-height: 0; padding: 28px 16px 124px; }
	.flotante { left: 16px; bottom: 16px; width: calc(100% - 32px); }
	.pasos { grid-template-columns: 1fr; row-gap: 8px; }
	.nosotros__lado { grid-template-columns: 1fr; }
	.nosotros__simbolo { aspect-ratio: 16 / 9; }
	.nosotros__simbolo img { width: 34%; }
	.cuota__mas, .rejilla--3, .sitio-pie__rejilla { grid-template-columns: 1fr; }
	.boton--grande { width: 100%; }
	.cierre__in { justify-items: stretch; }
	.sitio-pie__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   B · COLECTIVO
   Bloques fuertes, titulares condensados y enormes, esquinas rectas.
   La portada es una banda ciruela de borde a borde con las columnas del logo.
   ========================================================= */
.estilo-colectivo {
	--fondo: #ffffff;
	--superficie: #f1edf4;
	--superficie-2: #e4dcea;
	--tinta: #1c111c;
	--suave: #5a4f5c;
	--linea: rgba(28, 17, 28, .14);
	--accion: #3c243c;
	--accion-hover: #241424;
	--banda: #3c243c;
	--banda-2: #4a2f4a;
	--banda-tinta: #ffffff;
	--banda-suave: #d6c8dd;
	--banda-linea: rgba(255, 255, 255, .2);
	--f-titulo: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--f-texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--titulo-peso: 800;
	--titulo-track: -0.02em;
	--titulo-alto: .94;
	--t-h1: clamp(48px, 6vw + 14px, 112px);
	--t-h2: clamp(36px, 3vw + 16px, 72px);
	--r-lg: 4px; --r-md: 4px; --r-sm: 2px; --r-boton: 4px;
}
.estilo-colectivo h1, .estilo-colectivo h2, .estilo-colectivo .datos dd, .estilo-colectivo .cuota__grande,
.estilo-colectivo .servicio-panel h3, .estilo-colectivo .paso-panel h3, .estilo-colectivo .servicios__num { font-stretch: 72%; font-variation-settings: "wdth" 72; }
.estilo-colectivo .marca__sigla { font-weight: 900; letter-spacing: .06em; font-size: 22px; }
.estilo-colectivo .sitio-cabecera { border-bottom-color: transparent; background: var(--banda); color: var(--banda-tinta); }
.estilo-colectivo .marca__nombre { color: var(--banda-suave); }
.estilo-colectivo .menu-principal a { color: var(--banda-suave); }
.estilo-colectivo .menu-principal .current-menu-item > a { color: #fff; }
@media (hover: hover) { .estilo-colectivo .menu-principal a:hover { color: #fff; } }
.estilo-colectivo .menu-principal .menu-afiliate > a { background: var(--lila); color: #1c111c; }
@media (hover: hover) { .estilo-colectivo .menu-principal .menu-afiliate > a:hover { background: #cbbdda; color: #1c111c; } }
.estilo-colectivo .menu-boton { color: #fff; box-shadow: inset 0 0 0 1.5px var(--banda-linea); }
@media (max-width: 920px) {
	.estilo-colectivo .menu-principal { background: var(--banda); }
	.estilo-colectivo .menu-principal a { color: #fff; border-bottom-color: var(--banda-linea); }
}
.estilo-colectivo .portada { background: var(--banda); color: var(--banda-tinta); padding-block: clamp(48px, 6vw, 96px) 0; overflow: hidden; }
.estilo-colectivo .portada__rejilla { align-items: end; }
.estilo-colectivo .portada__texto { grid-column: 1 / span 7; padding-bottom: clamp(48px, 6vw, 88px); }
.estilo-colectivo .portada h1 { max-width: 13ch; font-size: clamp(48px, 5vw + 14px, 100px); }
.estilo-colectivo .portada__lead { color: var(--banda-suave); }
.estilo-colectivo .portada .boton--principal { background: var(--lila); color: #1c111c; }
@media (hover: hover) { .estilo-colectivo .portada .boton--principal:hover { background: #cbbdda; color: #1c111c; } }
.estilo-colectivo .portada .boton--secundario { color: #fff; box-shadow: inset 0 0 0 1.5px var(--banda-linea); }
@media (hover: hover) { .estilo-colectivo .portada .boton--secundario:hover { box-shadow: inset 0 0 0 1.5px #fff; } }
.estilo-colectivo .datos div { border-top-color: var(--banda-linea); }
.estilo-colectivo .datos dt { color: var(--banda-suave); }
.estilo-colectivo .datos dd { font-size: clamp(28px, 1.4vw + 12px, 36px); line-height: 1; }
.estilo-colectivo .portada__visual { grid-column: 8 / span 5; background: transparent; border-radius: 0; min-height: 640px; padding: 40px 0 0; align-items: end; place-items: end center; }
.estilo-colectivo .columnas g { stroke: var(--lila); opacity: .9; }
.estilo-colectivo .columnas path:nth-child(odd) { stroke: var(--azul); }
.estilo-colectivo .tramite { margin-bottom: 96px; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.estilo-colectivo .flotante { border-radius: 4px; left: 0; bottom: 32px; }
.estilo-colectivo .barra, .estilo-colectivo .barra i { border-radius: 0; }
.estilo-colectivo .servicios__lista { counter-reset: s; }
.estilo-colectivo .servicios__lista button { grid-template-columns: 72px 1fr auto; padding: 22px 0; }
.estilo-colectivo .servicios__num { display: block; grid-row: 1 / span 2; font-family: var(--f-titulo); font-weight: 800; font-size: 44px; line-height: 1; color: var(--superficie-2); transition: color .25s var(--ease); }
.estilo-colectivo .servicios__lista button[aria-selected="true"] .servicios__num { color: var(--accion); }
.estilo-colectivo .servicios__nombre { font-size: 20px; font-weight: 700; }
.estilo-colectivo .servicios__chev { border-radius: 2px; }
.estilo-colectivo .servicio-panel { background: var(--banda); color: var(--banda-tinta); }
.estilo-colectivo .servicio-panel h3 { font-size: clamp(34px, 2vw + 20px, 52px); line-height: .98; }
.estilo-colectivo .servicio-panel__icono { background: var(--lila); border: 0; color: #1c111c; border-radius: 4px; }
.estilo-colectivo .servicio-panel li svg { stroke: var(--lila); }
.estilo-colectivo .servicio-panel .servicio-panel__base { color: var(--banda-suave); border-top-color: var(--banda-linea); }
.estilo-colectivo .seccion--banda { background: var(--lila); color: #1c111c; --banda-tinta: #1c111c; --banda-suave: #4a3e4c; --banda-linea: rgba(28, 17, 28, .2); --banda-2: #cfc2dc; }
.estilo-colectivo .seccion--banda .dinero { background: #fff; }
.estilo-colectivo .seccion--banda .ficha[aria-pressed="true"] { background: #1c111c; color: #fff; }
.estilo-colectivo .cuota__resultado { background: #1c111c; color: #fff; box-shadow: none; --banda-suave: #c9bccd; --banda-linea: rgba(255, 255, 255, .16); }
.estilo-colectivo .cuota__grande { font-size: clamp(72px, 7vw + 20px, 152px); line-height: .9; }
.estilo-colectivo .medidor__pista { background: rgba(255, 255, 255, .1); border-radius: 0; }
.estilo-colectivo .medidor__pista i { border-radius: 0; }
.estilo-colectivo .pasos button { border-top-width: 6px; }
.estilo-colectivo .pasos__n { font-family: var(--f-titulo); font-weight: 800; font-size: 15px; font-stretch: 72%; }
.estilo-colectivo .pasos__t { font-size: 22px; font-weight: 800; }
.estilo-colectivo .paso-panel { background: var(--superficie); }
.estilo-colectivo .requisitos { border: 2px solid var(--tinta); }
.estilo-colectivo .requisitos input { border-radius: 2px; }
.estilo-colectivo .nosotros__mv div p { font-family: var(--f-texto); font-weight: 500; font-size: clamp(19px, .5vw + 16px, 24px); letter-spacing: -0.01em; }
.estilo-colectivo .nosotros__simbolo { background: var(--banda); }
.estilo-colectivo .principios li { border-radius: 2px; background: #fff; }
.estilo-colectivo .entrada-tarjeta { border-width: 0 0 2px; border-color: var(--tinta); }
.estilo-colectivo .entrada-tarjeta__cuerpo { padding-inline: 0; }
.estilo-colectivo .categoria-chip { border-radius: 2px; background: var(--lila); }
.estilo-colectivo .preguntas h3 { font-size: 20px; font-weight: 700; }
.estilo-colectivo .cierre { background: #1c111c; }
.estilo-colectivo .cierre h2 { font-size: clamp(56px, 7vw + 10px, 144px); max-width: 12ch; }
.estilo-colectivo .cierre .boton--principal { background: var(--lila); color: #1c111c; }
.estilo-colectivo .sitio-pie { background: #1c111c; }
.estilo-colectivo .cabecera-pagina { background: var(--banda); color: #fff; border: 0; }
.estilo-colectivo .cabecera-pagina p { color: var(--banda-suave); }
@media (max-width: 1023px) {
	.estilo-colectivo .portada__texto, .estilo-colectivo .portada__visual { grid-column: 1 / -1; }
	.estilo-colectivo .portada__texto { padding-bottom: 8px; }
	.estilo-colectivo .portada__visual { min-height: 540px; }
}
@media (max-width: 639px) {
	.estilo-colectivo .portada h1 { font-size: 46px; }
	.estilo-colectivo .portada__visual { min-height: 0; padding: 24px 0 0; }
	.estilo-colectivo .tramite { margin-bottom: 120px; }
	.estilo-colectivo .flotante { left: 0; width: 100%; }
	.estilo-colectivo .servicios__lista button { grid-template-columns: 52px 1fr auto; }
	.estilo-colectivo .servicios__num { font-size: 32px; }
	.estilo-colectivo .datos dd { font-size: 30px; }
}

/* =========================================================
   C · CERCANO
   Claro y amable: todo centrado en la persona, tarjetas redondeadas,
   tonos del logo en suave y una tipografía geométrica cálida.
   ========================================================= */
.estilo-cercano {
	--fondo: #f2f5f9;
	--superficie: #ffffff;
	--superficie-2: #e3e9f1;
	--tinta: #231a28;
	--suave: #5b5563;
	--linea: rgba(35, 26, 40, .1);
	--accion: #3c243c;
	--accion-hover: #563a57;
	--banda: #e6dff0;
	--banda-2: #ffffff;
	--banda-tinta: #231a28;
	--banda-suave: #574e5e;
	--banda-linea: rgba(35, 26, 40, .12);
	--tarjeta: #ffffff;
	--sombra: 0 1px 2px rgba(35, 26, 40, .05), 0 18px 40px -18px rgba(35, 26, 40, .22);
	--f-titulo: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--titulo-peso: 700;
	--titulo-track: -0.03em;
	--titulo-alto: 1.06;
	--t-h1: clamp(40px, 3.4vw + 18px, 68px);
	--t-h2: clamp(30px, 1.6vw + 20px, 46px);
	--r-lg: 28px; --r-md: 16px; --r-sm: 12px; --r-boton: 999px;
}
.estilo-cercano .sitio-cabecera { background: rgba(242, 245, 249, .96); border-bottom-color: transparent; }
.estilo-cercano .marca__sigla { font-weight: 800; letter-spacing: .08em; }
.estilo-cercano .menu-principal a { font-weight: 600; }
.estilo-cercano .portada { text-align: center; padding-block: clamp(48px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.estilo-cercano .portada__rejilla { display: block; }
.estilo-cercano .portada__texto { align-items: center; gap: 24px; max-width: 900px; margin: 0 auto; padding: 0; }
.estilo-cercano .portada__texto::before {
	content: ""; width: 112px; height: 108px; margin-bottom: 4px;
	background: var(--tarjeta) url("assets/simbolo.png") center / 64% no-repeat; border-radius: 50%; box-shadow: var(--sombra);
}
.estilo-cercano .portada__lead { margin-inline: auto; max-width: 52ch; }
.estilo-cercano .botones { justify-content: center; }
.estilo-cercano .datos { margin-top: 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.estilo-cercano .datos div { border: 0; padding: 10px 18px; background: var(--tarjeta); border-radius: 999px; display: flex; gap: 8px; align-items: baseline; box-shadow: 0 1px 2px rgba(35, 26, 40, .06); }
.estilo-cercano .datos dt { font-size: 14px; }
.estilo-cercano .datos dd { margin: 0; font-family: var(--f-texto); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.estilo-cercano .portada__visual { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1040px; min-height: 0; padding: 56px 32px 56px; background: linear-gradient(180deg, #e6dff0 0%, #dfe7f0 100%); text-align: left; }
.estilo-cercano .columnas { display: none; }
.estilo-cercano .tramite { border-radius: 22px; border: 0; }
.estilo-cercano .flotante { left: auto; right: 32px; bottom: 32px; border-radius: 18px; border: 0; box-shadow: var(--sombra); }
.estilo-cercano .seccion__cabeza { margin-inline: auto; text-align: center; justify-items: center; }
.estilo-cercano .seccion__cabeza p { margin-inline: auto; }
.estilo-cercano .seccion__cabeza--fila { text-align: left; }
.estilo-cercano .servicios { align-items: stretch; }
.estilo-cercano .servicios__lista { border: 0; display: grid; gap: 8px; align-content: start; }
.estilo-cercano .servicios__lista button { border: 0; border-radius: 18px; padding: 16px 18px; background: transparent; transition: background-color .2s var(--ease); }
.estilo-cercano .servicios__lista button[aria-selected="true"] { background: var(--tarjeta); box-shadow: 0 1px 2px rgba(35, 26, 40, .06); }
@media (hover: hover) { .estilo-cercano .servicios__lista button:hover { background: rgba(255, 255, 255, .6); } }
.estilo-cercano .servicio-panel { background: var(--tarjeta); box-shadow: var(--sombra); }
.estilo-cercano .servicio-panel__icono { background: #e6dff0; border: 0; border-radius: 18px; }
.estilo-cercano .servicio-panel h3, .estilo-cercano .paso-panel h3 { font-size: clamp(26px, 1vw + 20px, 32px); letter-spacing: -0.025em; }
.estilo-cercano .seccion--banda .dinero { background: #fff; box-shadow: inset 0 0 0 1.5px var(--banda-linea); }
.estilo-cercano .seccion--banda .dinero:focus-within { box-shadow: inset 0 0 0 2px var(--accion); }
.estilo-cercano .dinero input { caret-color: var(--accion); }
.estilo-cercano .seccion--banda .ficha { background: rgba(255, 255, 255, .6); box-shadow: none; }
.estilo-cercano .seccion--banda .ficha[aria-pressed="true"] { background: var(--accion); color: #fff; }
.estilo-cercano .cuota__resultado { box-shadow: var(--sombra); }
.estilo-cercano .cuota__grande { color: var(--accion); font-weight: 800; letter-spacing: -0.04em; }
.estilo-cercano .medidor__pista { background: #efeaf5; }
.estilo-cercano .medidor__pista i { background: var(--accion); }
.estilo-cercano .pasos { gap: 16px; }
.estilo-cercano .pasos button { border: 0; border-radius: 22px; padding: 22px; background: var(--tarjeta); box-shadow: 0 1px 2px rgba(35, 26, 40, .06); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.estilo-cercano .pasos button[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--accion); }
@media (hover: hover) { .estilo-cercano .pasos button:hover { transform: translateY(-2px); } }
.estilo-cercano .pasos__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6dff0; color: var(--tinta); font-size: 0; }
.estilo-cercano .pasos__n::first-letter { font-size: 0; }
.estilo-cercano .pasos button:nth-child(1) .pasos__n::after { content: "1"; font-size: 15px; }
.estilo-cercano .pasos button:nth-child(2) .pasos__n::after { content: "2"; font-size: 15px; }
.estilo-cercano .pasos button:nth-child(3) .pasos__n::after { content: "3"; font-size: 15px; }
.estilo-cercano .pasos button:nth-child(4) .pasos__n::after { content: "4"; font-size: 15px; }
.estilo-cercano .pasos button[aria-selected="true"] .pasos__n { background: var(--accion); color: #fff; }
.estilo-cercano .paso-panel { background: #e6dff0; }
.estilo-cercano .requisitos { border: 0; box-shadow: var(--sombra); }
.estilo-cercano .requisitos input { border-radius: 8px; }
.estilo-cercano .seccion--suave { background: #fff; }
.estilo-cercano .nosotros__mv div p { font-family: var(--f-texto); font-weight: 500; font-size: clamp(19px, .45vw + 16px, 22px); }
.estilo-cercano .nosotros__simbolo { background: #e6dff0; border-radius: 50%; }
.estilo-cercano .principios li { background: #e6dff0; box-shadow: none; }
.estilo-cercano .entrada-tarjeta { border: 0; box-shadow: 0 1px 2px rgba(35, 26, 40, .06); }
.estilo-cercano .preguntas { gap: 16px; }
.estilo-cercano .preguntas > div { border: 0; background: var(--tarjeta); border-radius: 22px; padding: 24px 26px; }
.estilo-cercano .cierre { background: transparent; color: var(--tinta); padding-block: 0 clamp(64px, 7vw, 104px); }
.estilo-cercano .cierre__in { background: var(--accion); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); justify-items: center; text-align: center; max-width: calc(var(--ancho)); }
.estilo-cercano .cierre p { color: #dccfe2; }
.estilo-cercano .cierre .boton--principal { background: #fff; color: var(--accion); }
.estilo-cercano .sitio-pie { background: transparent; color: var(--tinta); }
.estilo-cercano .sitio-pie .contenedor > * { border-top-color: var(--linea); }
.estilo-cercano .sitio-pie .marca__nombre, .estilo-cercano .sitio-pie__marca p, .estilo-cercano .sitio-pie__titulo, .estilo-cercano .sitio-pie__base { color: var(--suave); }
.estilo-cercano.home .sitio-pie .contenedor > .sitio-pie__rejilla { border-top: 0; }
.estilo-cercano .cabecera-pagina { text-align: center; border: 0; }
.estilo-cercano .cabecera-pagina h1, .estilo-cercano .cabecera-pagina p { margin-inline: auto; }
@media (max-width: 1023px) {
	.estilo-cercano .cierre__in { margin-inline: var(--canal); width: auto; }
}
@media (max-width: 639px) {
	.estilo-cercano .portada__visual { padding: 24px 16px 132px; }
	.estilo-cercano .flotante { right: 16px; left: 16px; width: auto; bottom: 16px; }
	.estilo-cercano .datos div { width: 100%; justify-content: center; }
	.estilo-cercano .cierre__in { margin-inline: 16px; border-radius: 28px; }
}

/* =========================================================
   HACER PARTE DE UNIC: afiliación y calculadora, en tono discreto
   (va después de lo que es y hace el sindicato)
   ========================================================= */
.tramite__frase { font-size: 15px; line-height: 1.45; color: var(--suave); margin: 0; }
.unete__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); align-items: center; }
.unete__texto { grid-column: 1 / span 6; display: grid; gap: 16px; align-content: start; }
.unete__k { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--suave); margin: 0; }
.unete__texto h2 { margin: 0; max-width: 20ch; }
.unete__texto > p:not(.unete__k) { color: var(--suave); max-width: 50ch; margin: 0; }
.unete__texto .enlace { justify-self: start; }
.unete__calc { grid-column: 8 / span 5; }
.cuota-mini {
	--banda: var(--tarjeta); --banda-2: var(--superficie); --banda-tinta: var(--tinta); --banda-suave: var(--suave); --banda-linea: var(--linea);
	display: grid; gap: 14px; padding: clamp(20px, 2.4vw, 28px); background: var(--tarjeta); color: var(--tinta);
	border: 1px solid var(--linea); border-radius: var(--r-lg);
}
.cuota-mini label { font-size: 14px; font-weight: 500; color: var(--suave); }
.cuota-mini .dinero { height: 52px; }
.cuota-mini .dinero input, .cuota-mini .dinero input:focus { font-size: 19px; outline: none; box-shadow: none; border: 0; background: none; min-height: 0; height: auto; padding: 0; }
.cuota-mini .fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.cuota-mini .ficha { height: 32px; font-size: 13px; }
.cuota-mini__res { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--linea); }
.cuota-mini__res p { margin: 0; font-size: 14px; color: var(--suave); font-variant-numeric: tabular-nums; }
.cuota-mini__res strong { display: block; font-family: var(--f-titulo); font-size: clamp(32px, 2vw + 18px, 44px); line-height: 1.1; color: var(--tinta); font-weight: var(--titulo-peso, 600); letter-spacing: -0.02em; }
.cuota-mini__nota { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--suave); }
.estilo-colectivo .cuota-mini { border-radius: 4px; border-width: 2px; border-color: var(--tinta); }
.estilo-colectivo .cuota-mini__res strong { font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; }
.estilo-cercano .cuota-mini { border: 0; border-radius: 24px; box-shadow: var(--sombra); }
.estilo-cercano .unete__texto { text-align: left; }
@media (max-width: 900px) {
	.unete__texto, .unete__calc { grid-column: 1 / -1; }
}

/* =========================================================
   DOCUMENTOS: estatutos, actas, acuerdos…
   ========================================================= */
.cabecera-pagina__intro p { margin: 0; }
.nosotros__enlaces { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.documentos { display: grid; gap: 40px; }
.documentos__vacio { padding: 28px; border: 1px dashed var(--linea); border-radius: var(--r-lg); background: var(--tarjeta); color: var(--suave); }
.documentos__vacio p { margin: 0 0 6px; }
.documentos__filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha-doc { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); font: 500 14px/1 var(--f-texto); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ficha-doc span { font-size: 12px; color: var(--suave); font-variant-numeric: tabular-nums; }
.ficha-doc[aria-pressed="true"] { background: var(--accion); color: var(--accion-tinta); box-shadow: none; }
.ficha-doc[aria-pressed="true"] span { color: inherit; opacity: .75; }
.documentos__grupo h2 { font-size: clamp(22px, 1vw + 16px, 28px); margin: 0 0 12px; }
.documentos__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.documento { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.documento__icono { width: 44px; height: 44px; border-radius: 12px; background: var(--superficie); display: grid; place-items: center; color: var(--accion); }
.documento__icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.documento__texto h3 { margin: 0; font-family: var(--f-texto); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.documento__texto h3 a { color: inherit; text-decoration: none; }
@media (hover: hover) { .documento__texto h3 a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.documento__texto p { margin: 4px 0 0; font-size: 15px; color: var(--suave); }
.documento__meta { display: block; margin-top: 6px; font-size: 13px; color: var(--suave); }
.documento__acciones { display: flex; gap: 8px; }
.boton--chico { min-height: 38px; height: 38px; padding: 0 16px; font-size: 14px; }
.estilo-colectivo .documento__icono, .estilo-colectivo .ficha-doc { border-radius: 4px; }
.estilo-cercano .documento { padding: 16px; margin-top: 10px; border: 0; border-radius: 20px; background: var(--tarjeta); box-shadow: 0 1px 2px rgba(35, 26, 40, .06); }
.estilo-cercano .documentos__lista { border: 0; }
@media (max-width: 640px) {
	.documento { grid-template-columns: 40px 1fr; }
	.documento__acciones { grid-column: 2; }
}

/* =========================================================
   ANIMACIONES POR DISEÑO
   Entrada de la portada al cargar y aparición de secciones al bajar.
   Solo transform/opacity (y clip-path en titulares) para ir fluido en
   celulares. Nada se anima si la persona pidió reducir el movimiento:
   la clase .anima solo se pone en ese caso (ver functions.php).
   ========================================================= */
:root {
	--anim-sal: cubic-bezier(.16, 1, .3, 1);     /* salida suave, casi sin final */
	--anim-resorte: cubic-bezier(.34, 1.56, .64, 1); /* rebote corto, para Cercano */
}

/* Elementos que aparecen al bajar: ocultos hasta que JS les pone .visto */
.anima .revela { opacity: 0; transition: opacity .7s var(--anim-sal), transform .8s var(--anim-sal), clip-path .9s var(--anim-sal); transition-delay: calc(var(--i, 0) * 70ms); will-change: transform, opacity; }
.anima .revela.visto, .anima-listo .revela { opacity: 1 !important; transform: none !important; clip-path: inset(0 0 0 0) !important; will-change: auto; }

/* Portada: cada pieza entra con un retraso escalonado */
@keyframes unic-entra { to { opacity: 1; transform: none; filter: blur(0); clip-path: inset(-10% -10% -10% -10%); } }
.anima .portada__texto > *, .anima .portada__visual .tramite, .anima .portada__visual .flotante, .anima .datos > div {
	opacity: 0; animation: unic-entra .9s var(--anim-sal) forwards;
}
.anima-listo .portada__texto > *, .anima-listo .portada__visual .tramite, .anima-listo .portada__visual .flotante, .anima-listo .datos > div { opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; clip-path: none !important; }
.anima .portada__texto > :nth-child(1) { animation-delay: .05s; }
.anima .portada__texto > :nth-child(2) { animation-delay: .17s; }
.anima .portada__texto > :nth-child(3) { animation-delay: .27s; }
.anima .portada__texto > :nth-child(4) { animation-delay: .35s; opacity: 1; animation: none; }
.anima .datos > div:nth-child(1) { animation-delay: .42s; }
.anima .datos > div:nth-child(2) { animation-delay: .50s; }
.anima .datos > div:nth-child(3) { animation-delay: .58s; }
.anima .portada__visual .tramite { animation-delay: .3s; }
.anima .portada__visual .flotante { animation-delay: .75s; }

/* ---------- A · Institucional: sobrio, subida corta y lenta ---------- */
.anima .estilo-institucional .portada__texto > :not(.datos),
.anima .estilo-institucional .datos > div { transform: translateY(14px); }
.anima .estilo-institucional .portada__visual .tramite { transform: translateY(24px); animation-duration: 1.1s; }
.anima .estilo-institucional .portada__visual .flotante { transform: translateY(12px); }
.anima .estilo-institucional .revela { transform: translateY(18px); }

/* ---------- B · Colectivo: con fuerza, titulares que suben desde un corte ---------- */
.anima .estilo-colectivo .portada h1 { clip-path: inset(0 0 100% 0); transform: translateY(32px); animation-duration: 1s; }
.anima .estilo-colectivo .portada__texto > :not(h1):not(.datos), .anima .estilo-colectivo .datos > div { transform: translateY(28px); }
.anima .estilo-colectivo .portada__visual .tramite { transform: translateY(90px); animation-duration: 1s; animation-delay: .45s; }
.anima .estilo-colectivo .portada__visual .flotante { transform: translateX(-40px); animation-delay: .9s; }
/* Las columnas del logo se dibujan de abajo hacia arriba */
@keyframes unic-dibuja { to { stroke-dashoffset: 0; } }
.anima .estilo-colectivo .columnas path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: unic-dibuja 1.6s var(--anim-sal) forwards; }
.anima .estilo-colectivo .columnas path:nth-child(1), .anima .estilo-colectivo .columnas path:nth-child(2) { animation-delay: .1s; }
.anima .estilo-colectivo .columnas path:nth-child(3), .anima .estilo-colectivo .columnas path:nth-child(4) { animation-delay: .22s; }
.anima .estilo-colectivo .columnas path:nth-child(5), .anima .estilo-colectivo .columnas path:nth-child(6) { animation-delay: .34s; }
.anima .estilo-colectivo .columnas path:nth-child(7) { animation-delay: .46s; }
.anima-listo .estilo-colectivo .columnas path { animation: none !important; stroke-dashoffset: 0 !important; }
.anima .estilo-colectivo .revela { transform: translateY(40px); transition-duration: .55s, .7s, .8s; }
/* Titulares de sección: el texto sube desde un corte (el corte va en los hijos para que el detector de scroll lo vea) */
.anima .estilo-colectivo .seccion__cabeza.revela > *, .anima .estilo-colectivo .cierre__in.revela > * { clip-path: inset(0 0 100% 0); transform: translateY(60%); transition: clip-path .8s var(--anim-sal), transform .8s var(--anim-sal); }
.anima .estilo-colectivo .seccion__cabeza.revela > :nth-child(2), .anima .estilo-colectivo .cierre__in.revela > :nth-child(n+2) { transition-delay: .1s; }
.anima .estilo-colectivo .revela.visto > *, .anima-listo .estilo-colectivo .revela > * { clip-path: inset(-10% -10% -10% -10%) !important; transform: none !important; }

/* ---------- C · Cercano: amable, aparece con un pequeño rebote ---------- */
@keyframes unic-pop { 0% { opacity: 0; transform: scale(.5) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
.anima .estilo-cercano .portada__texto::before { animation: unic-pop .7s var(--anim-resorte) both; }
.anima .estilo-cercano .portada__texto > :not(.datos) { transform: translateY(10px); filter: blur(6px); animation-duration: .8s; }
.anima .estilo-cercano .portada__texto > :nth-child(1) { animation-delay: .2s; }
.anima .estilo-cercano .portada__texto > :nth-child(2) { animation-delay: .3s; }
.anima .estilo-cercano .portada__texto > :nth-child(3) { animation-delay: .4s; }
.anima .estilo-cercano .datos > div { transform: scale(.85); animation-timing-function: var(--anim-resorte); animation-duration: .6s; }
.anima .estilo-cercano .datos > div:nth-child(1) { animation-delay: .5s; }
.anima .estilo-cercano .datos > div:nth-child(2) { animation-delay: .58s; }
.anima .estilo-cercano .datos > div:nth-child(3) { animation-delay: .66s; }
.anima .estilo-cercano .portada__visual .tramite { transform: translateY(30px) scale(.94); animation-delay: .55s; }
.anima .estilo-cercano .portada__visual .flotante { transform: scale(.8); animation-timing-function: var(--anim-resorte); animation-duration: .6s; animation-delay: 1s; }
.anima-listo .estilo-cercano .portada__texto::before { animation: none !important; }
.anima .estilo-cercano .revela { transform: translateY(20px) scale(.97); transition-timing-function: var(--anim-sal), var(--anim-resorte), var(--anim-sal); transition-duration: .6s, .7s, .6s; }
@media (hover: hover) {
	.estilo-cercano .principios li, .estilo-cercano .preguntas > div { transition: transform .3s var(--anim-resorte), box-shadow .3s var(--ease); }
	.estilo-cercano .principios li:hover, .estilo-cercano .preguntas > div:hover { transform: translateY(-3px); }
}

/* En celulares, distancias más cortas: se siente igual pero más rápido */
@media (max-width: 720px) {
	.anima .revela { transition-duration: .5s, .6s, .7s; }
	.anima .estilo-colectivo .revela { transform: translateY(24px); }
	.anima .estilo-colectivo .portada__visual .tramite { transform: translateY(40px); }
}
