:root{--fepa-red:#801e1d;--fepa-red-dark:#681716;--fepa-ink:#f4f4f4;--fepa-muted:#b9b9b9;--fepa-line:#303030;--fepa-bg:#000;--fepa-white:#fff;--fepa-panel:#111;--fepa-sidebar:#090909}
html,body.fepa-portal-page{min-height:100%;margin:0!important;padding:0!important;width:100%!important;background:#000!important}
body.fepa-portal-page{background:#000!important;color:var(--fepa-ink)!important;font-family:Arial,Helvetica,sans-serif;max-width:none!important;width:100%!important;overflow-x:hidden!important}
body.fepa-portal-page .wp-site-blocks>header.wp-block-template-part,body.fepa-portal-page .wp-site-blocks>footer.wp-block-template-part,body.fepa-portal-page .wp-site-blocks>header,body.fepa-portal-page .wp-site-blocks>footer,body.fepa-portal-page .site-header,body.fepa-portal-page .site-footer,body.fepa-portal-page .entry-hero,body.fepa-portal-page .page-title,body.fepa-portal-page .entry-header{display:none!important}
body.fepa-portal-page .wp-site-blocks,body.fepa-portal-page main.wp-block-group,body.fepa-portal-page .wp-block-post-content,body.fepa-portal-page .is-layout-constrained,body.fepa-portal-page .is-layout-flow,body.fepa-portal-page .content-area,body.fepa-portal-page .site-container,body.fepa-portal-page .content-wrap,body.fepa-portal-page .site,body.fepa-portal-page #primary,body.fepa-portal-page #main{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
body.fepa-portal-page .wp-site-blocks{padding-block:0!important}body.fepa-portal-page .wp-block-post-content>*{max-width:none!important}body.fepa-portal-page .content-bg,body.fepa-portal-page .site-content,body.fepa-portal-page .entry-content,body.fepa-portal-page .entry-content-wrap{background:#000!important;margin:0!important;padding:0!important}
.fepa-shell{width:100%!important;max-width:none!important;min-height:100vh;min-height:100dvh;margin:0!important;padding:0!important;background:#000!important;display:flex;flex-direction:column;color:var(--fepa-ink);font-size:16px;line-height:1.6;box-sizing:border-box}
/* Cabecera independiente: 80 px exactos y logotipo rojo centrado de 160 px de ancho. */
.fepa-brand-header{position:relative;width:100%!important;height:80px!important;min-height:80px!important;max-height:80px!important;box-sizing:border-box;padding:0 22px!important;background:#000!important;border-bottom:1px solid #292929;display:flex;align-items:center;justify-content:center;flex:0 0 80px!important;overflow:hidden}
.fepa-brand{display:flex;align-items:center;justify-content:center;width:160px!important;max-width:160px!important;height:80px!important;margin:0 auto}
.fepa-brand img{display:block;width:160px!important;max-width:160px!important;height:auto!important;max-height:54px!important;object-fit:contain;filter:none!important}
.fepa-header-tools{position:absolute;right:clamp(16px,3vw,42px);top:0;height:80px;display:flex;align-items:center;margin:0}
.fepa-logout{appearance:none;background:transparent;border:1px solid #555;border-radius:4px;color:#fff;font-size:13px;font-weight:700;padding:8px 13px;cursor:pointer}.fepa-logout:hover{background:var(--fepa-red);border-color:var(--fepa-red)}
/* Acceso propio */
.fepa-auth-main{width:100%;min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:40px 20px;background:#000}
.fepa-auth-card{width:min(100%,440px);box-sizing:border-box;background:#101010;border:1px solid #303030;border-top:3px solid var(--fepa-red);border-radius:8px;padding:38px 36px;box-shadow:0 18px 55px rgba(0,0,0,.35)}
.fepa-auth-card h1{margin:0 0 10px;color:#fff;font-size:30px;line-height:1.2}.fepa-auth-intro{color:var(--fepa-muted);font-size:14px;margin:0 0 26px}
.fepa-login-form{display:flex;flex-direction:column;gap:10px}.fepa-login-form>label:not(.fepa-remember){color:#eee;font-size:13px;font-weight:700;margin-top:7px}.fepa-login-form input[type=text],.fepa-login-form input[type=password]{width:100%;height:46px;box-sizing:border-box;background:#050505;border:1px solid #454545;border-radius:4px;color:#fff;padding:0 13px;font:inherit;outline:none}.fepa-login-form input:focus{border-color:#b64b48;box-shadow:0 0 0 2px rgba(128,30,29,.25)}
.fepa-remember{display:flex;align-items:center;gap:9px;color:#c9c9c9;font-size:13px;margin:9px 0 12px}.fepa-remember input{accent-color:var(--fepa-red)}
.fepa-button{display:inline-flex;align-items:center;justify-content:center;background:var(--fepa-red);color:#fff!important;border:1px solid var(--fepa-red);border-radius:4px;padding:13px 25px;font-weight:700;text-decoration:none;transition:background .2s ease;cursor:pointer}.fepa-button:hover{background:var(--fepa-red-dark);color:#fff!important}.fepa-login-submit{width:100%;min-height:48px}
.fepa-login-error{background:#321313;border:1px solid #74302e;color:#ffd9d8;border-radius:4px;padding:11px 13px;font-size:13px;margin:0 0 18px}
/* Aplicación privada */
.fepa-app-shell{min-height:100vh;min-height:100dvh}.fepa-app-layout{display:grid;grid-template-columns:250px minmax(0,1fr);flex:1;min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px);width:100%;background:#000}
.fepa-sidebar{position:relative;display:flex;flex-direction:column;min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px);box-sizing:border-box;background:var(--fepa-sidebar);border-right:1px solid #292929;padding:30px 16px 22px}
.fepa-sidebar-caption{color:#8f8f8f;font-size:10px;font-weight:800;letter-spacing:.17em;padding:0 13px 17px}.fepa-sidebar-nav{display:flex;flex-direction:column;gap:6px}
.fepa-nav-link{display:flex;align-items:center;gap:13px;min-height:46px;padding:0 13px;border-radius:5px;color:#c8c8c8;text-decoration:none;font-size:14px;font-weight:600;transition:background .15s,color .15s}.fepa-nav-link:hover{background:#1a1a1a;color:#fff}.fepa-nav-link.is-active{background:rgba(128,30,29,.24);color:#fff;box-shadow:inset 3px 0 0 var(--fepa-red)}.fepa-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;color:#d17b78;font-size:19px;font-weight:700}
.fepa-sidebar-user{display:flex;align-items:center;gap:9px;margin-top:auto;padding:18px 10px 0;border-top:1px solid #292929;color:#c9c9c9;font-size:12px;overflow-wrap:anywhere}.fepa-user-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#78bd83}
.fepa-workspace{min-width:0;width:100%;box-sizing:border-box;background:#000;padding:clamp(26px,3.5vw,48px) clamp(20px,4vw,58px) 50px}.fepa-view{width:100%;max-width:none;animation:fepaFadeIn .16s ease}.fepa-view[hidden]{display:none!important}@keyframes fepaFadeIn{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.fepa-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 32px}.fepa-eyebrow{display:block;color:#d46a67;font-size:11px;font-weight:800;letter-spacing:.16em;line-height:1.4;margin-bottom:10px}.fepa-welcome h1,.fepa-page-heading h1{font-size:clamp(30px,4vw,42px);line-height:1.15;letter-spacing:-.035em;margin:0 0 10px;color:#fff;font-weight:700}.fepa-welcome p,.fepa-page-heading p{margin:0;color:var(--fepa-muted);font-size:16px}
.fepa-status{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;background:#142017;color:#b9e2c0;border:1px solid #294c32;border-radius:30px;padding:9px 15px;font-size:13px;font-weight:700}.fepa-status i{width:8px;height:8px;border-radius:50%;background:#68b879;display:block}
.fepa-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.fepa-dashboard-card{display:flex;flex-direction:column;gap:9px;box-sizing:border-box;background:#111;border:1px solid var(--fepa-line);border-radius:8px;padding:25px}.fepa-dashboard-label{color:#aaa;font-size:10px;font-weight:800;letter-spacing:.13em}.fepa-dashboard-card strong{color:#fff;font-size:27px;line-height:1.2;overflow-wrap:anywhere}.fepa-dashboard-note{color:#999;font-size:12px}.fepa-state-active{color:#9bd6a5!important}.fepa-section-heading{margin:34px 0 13px}.fepa-section-heading h2{color:#fff;font-size:19px;margin:0}.fepa-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fepa-quick-links a{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#101010;border:1px solid #303030;border-radius:6px;color:#eee;text-decoration:none;font-size:14px}.fepa-quick-links a:hover{border-color:var(--fepa-red);background:#171010}.fepa-quick-links a span{color:#d46a67;font-size:20px}
.fepa-page-heading{margin:0 0 28px}.fepa-page-heading h1{margin-bottom:9px}.fepa-card{width:100%!important;max-width:none!important;box-sizing:border-box;background:var(--fepa-panel)!important;color:#fff;border:1px solid var(--fepa-line);border-radius:8px;padding:28px;box-shadow:none}.fepa-card-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--fepa-line);padding-bottom:20px;margin-bottom:8px}.fepa-card-heading h2{margin:0;color:#fff;font-size:21px;line-height:1.3}.fepa-card-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--fepa-red);color:#fff;font-weight:800;font-size:13px;letter-spacing:.04em}.fepa-data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-top:20px}.fepa-data-item{display:flex;flex-direction:column;gap:6px;min-width:0}.fepa-data-item span{color:var(--fepa-muted);font-size:13px}.fepa-data-item strong{font-size:16px;overflow-wrap:anywhere;color:#fff}.fepa-help{width:100%!important;max-width:none!important;box-sizing:border-box;margin-top:24px;padding:20px 24px;border-left:3px solid var(--fepa-red);background:#111;border-radius:0 8px 8px 0;color:#fff}.fepa-help strong{font-size:15px}.fepa-help p{margin:4px 0 0;color:var(--fepa-muted);font-size:14px}.fepa-notice{border-top:4px solid var(--fepa-red)}.fepa-notice p{color:var(--fepa-muted);margin-bottom:0}
@media(max-width:760px){.fepa-brand-header{padding:0 12px!important}.fepa-brand{width:160px!important}.fepa-header-tools{right:10px}.fepa-logout{font-size:11px;padding:6px 8px}.fepa-app-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.fepa-sidebar{min-height:0;padding:10px 12px;border-right:0;border-bottom:1px solid #292929}.fepa-sidebar-caption,.fepa-sidebar-user{display:none}.fepa-sidebar-nav{flex-direction:row;gap:5px;overflow-x:auto;scrollbar-width:thin}.fepa-nav-link{flex:0 0 auto;min-height:42px;padding:0 11px;font-size:12px;gap:7px}.fepa-nav-icon{font-size:16px;width:17px}.fepa-workspace{padding:25px 16px 36px}.fepa-welcome{align-items:flex-start;flex-direction:column;gap:14px}.fepa-dashboard-grid,.fepa-quick-links{grid-template-columns:1fr}.fepa-data-grid{grid-template-columns:1fr;gap:17px}.fepa-card{padding:22px 18px}.fepa-auth-main{padding:24px 15px}.fepa-auth-card{padding:30px 22px}.fepa-auth-card h1{font-size:27px}}
@media(max-width:390px){.fepa-header-tools{right:6px}.fepa-logout{font-size:10px;padding:5px 6px}.fepa-brand{transform:translateX(-14px)}}


/* Tipografía corporativa LEMON MILK, servida localmente desde el plugin. */
@font-face{font-family:'LEMON MILK';src:url('../fonts/LEMONMILK-Pro-Regular.otf') format('opentype');font-style:normal;font-weight:400;font-display:swap}
body.fepa-portal-page,.fepa-shell,.fepa-shell *{font-family:'LEMON MILK',Arial,Helvetica,sans-serif!important}
.fepa-shell input,.fepa-shell button{font-family:'LEMON MILK',Arial,Helvetica,sans-serif!important}

/* Portada de acceso: fondo fotográfico y composición en dos columnas. */
.fepa-auth-shell{position:relative;isolation:isolate;background-color:#061326!important;background-image:linear-gradient(90deg,rgba(0,8,20,.46) 0%,rgba(0,8,20,.34) 48%,rgba(0,0,0,.60) 100%),url('../images/portal-background.webp')!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:scroll!important}
.fepa-brand-header--landing{background:transparent!important;border-bottom:0!important;justify-content:flex-start!important;padding:0 clamp(20px,4vw,64px)!important}
.fepa-brand-header--landing .fepa-brand{margin:0!important;justify-content:flex-start!important}
.fepa-landing-main{width:100%;flex:1;min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:clamp(28px,5vw,76px) clamp(20px,5vw,76px)}
.fepa-landing-grid{width:100%;max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);align-items:center;gap:clamp(36px,7vw,110px)}
.fepa-landing-copy{min-width:0;padding:10px 0;color:#fff;text-shadow:0 3px 24px rgba(0,0,0,.45)}
.fepa-landing-copy .fepa-eyebrow{color:#fff;opacity:.9;letter-spacing:.2em;margin-bottom:18px}
.fepa-landing-copy h1{max-width:780px;margin:0;color:#fff;font-size:clamp(42px,6.2vw,86px);line-height:1.08;letter-spacing:-.035em;font-weight:400;text-wrap:balance}
.fepa-auth-card{width:100%;max-width:460px;justify-self:end;background:rgba(10,10,12,.94);border:1px solid rgba(255,255,255,.18);border-top:4px solid var(--fepa-red);border-radius:8px;padding:clamp(26px,3vw,40px);box-shadow:0 22px 70px rgba(0,0,0,.42);backdrop-filter:blur(8px)}
.fepa-auth-card h2{margin:0 0 10px;color:#fff;font-size:clamp(22px,2vw,28px);line-height:1.25;font-weight:400}
.fepa-auth-card .fepa-eyebrow{margin-bottom:12px}
.fepa-auth-intro{line-height:1.7}
@media(max-width:900px){.fepa-landing-grid{grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:30px}.fepa-landing-copy h1{font-size:clamp(38px,5vw,60px)}}
@media(max-width:700px){.fepa-auth-shell{background-position:58% center!important}.fepa-brand-header--landing{padding:0 18px!important}.fepa-landing-main{min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px);padding:26px 18px 40px;align-items:center}.fepa-landing-grid{grid-template-columns:1fr;gap:24px;max-width:500px}.fepa-landing-copy{padding:0 2px}.fepa-landing-copy .fepa-eyebrow{margin-bottom:9px}.fepa-landing-copy h1{font-size:clamp(34px,9vw,52px)}.fepa-auth-card{justify-self:stretch;max-width:none;padding:27px 22px}}


/* Ajustes de la versión 0.5.3 */
.fepa-shell, .fepa-shell * { text-decoration: none !important; }
.fepa-shell [hidden] { display: none !important; }
.fepa-auth-shell { min-height: 100vh !important; min-height: 100svh !important; width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; background-size: cover !important; background-position: center center !important; }
.fepa-auth-shell .fepa-landing-main { min-height: calc(100vh - 80px) !important; min-height: calc(100svh - 80px) !important; }
.fepa-auth-card [hidden] { display: none !important; }
.fepa-recovery-prompt { margin: 18px 0 0; color: #ddd; font-size: 12px; line-height: 1.7; text-align: center; }
.fepa-text-button { appearance: none; border: 0; padding: 0; margin-left: 4px; background: transparent; color: #e18a87; font: inherit; cursor: pointer; text-decoration: none !important; }
.fepa-text-button:hover, .fepa-text-button:focus { color: #fff; text-decoration: none !important; }
.fepa-login-success { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #315c3b; border-radius: 5px; background: #142219; color: #d5f0da; font-size: 13px; line-height: 1.65; }
.fepa-reset-card { width: min(100%, 520px); margin: auto; }

/* v0.5.4: la portada y las pantallas de acceso ocupan el viewport completo,
   independientemente de los márgenes, bloques y espaciados del tema activo. */
html, body.fepa-portal-page { margin:0!important; padding:0!important; }
body.fepa-portal-page { overflow-x:hidden!important; }
body.fepa-portal-page .wp-site-blocks,
body.fepa-portal-page main,
body.fepa-portal-page .wp-block-post-content,
body.fepa-portal-page .entry-content { margin-block-start:0!important; padding-block-start:0!important; }
body.fepa-portal-page .fepa-auth-shell {
  position:fixed!important;
  inset:0!important;
  z-index:999999!important;
  display:flex!important;
  flex-direction:column!important;
  width:100vw!important;
  height:100vh!important;
  height:100svh!important;
  min-height:100vh!important;
  min-height:100svh!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
}
body.fepa-portal-page .fepa-auth-shell .fepa-brand-header { flex:0 0 80px!important; }
body.fepa-portal-page .fepa-auth-shell .fepa-landing-main {
  flex:1 0 auto!important;
  width:100%!important;
  min-height:calc(100vh - 80px)!important;
  min-height:calc(100svh - 80px)!important;
  margin:0!important;
  box-sizing:border-box!important;
}
@media(max-width:700px){
  body.fepa-portal-page .fepa-auth-shell { background-position:center center!important; }
  body.fepa-portal-page .fepa-auth-shell .fepa-landing-main { min-height:calc(100svh - 80px)!important; }
}

/* Gestión de cuotas */
.fepa-quota-table-wrap{width:100%;overflow-x:auto;margin-top:18px}.fepa-quota-table{width:100%;border-collapse:collapse;min-width:650px;color:#eee}.fepa-quota-table th{background:#292929;color:#fff;text-align:left;padding:12px 14px;font-weight:600}.fepa-quota-table td{padding:14px;border-bottom:1px solid #303030}.fepa-quota-table tr:hover td{background:#111}.fepa-data-wide{grid-column:1/-1}

/* v0.7.0: finanzas y adaptación móvil */
.fepa-finance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fepa-finance-toolbar h2{margin:0}
.fepa-year-select{min-width:110px;background:#080808;color:#fff;border:1px solid #555;border-radius:4px;padding:9px 12px;margin-left:8px}
.fepa-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 0;color:#aaa;font-size:13px}
.fepa-pagination>div{display:flex;gap:8px}
.fepa-pagination button{width:36px;height:36px;border:1px solid #555;border-radius:4px;background:#171717;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.fepa-pagination button:disabled{opacity:.35;cursor:not-allowed}
.fepa-contact-form{display:grid;gap:18px;max-width:680px}
.fepa-contact-form label{display:grid;gap:7px;color:#ddd;font-weight:600;font-size:14px}
.fepa-contact-form input,.fepa-contact-form textarea{width:100%;max-width:100%;box-sizing:border-box;background:#080808;color:#fff;border:1px solid #454545;border-radius:4px;padding:12px;font:inherit}
.fepa-quota-table-wrap{width:100%;max-width:100%;overflow-x:auto}
.fepa-quota-table{width:100%;border-collapse:collapse}
.fepa-quota-table th,.fepa-quota-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #303030;overflow-wrap:anywhere}
.fepa-quota-table th{color:#ddd;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.fepa-quota-table td{color:#eee;font-size:14px}
.fepa-app-layout,.fepa-workspace,.fepa-card,.fepa-view{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:780px){
 .fepa-app-layout{grid-template-columns:1fr!important;display:flex!important;flex-direction:column}
 .fepa-sidebar{min-height:0!important;height:auto;padding:12px!important;border-right:0;border-bottom:1px solid #292929}
 .fepa-sidebar-caption{padding:0 8px 8px}
 .fepa-sidebar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .fepa-nav-link{min-width:0;padding:8px 9px;min-height:42px;font-size:12px;gap:8px}
 .fepa-sidebar-user{display:none}
 .fepa-workspace{width:100%;padding:18px 12px!important;overflow:hidden}
 .fepa-page-heading h1{font-size:25px!important;overflow-wrap:anywhere}
 .fepa-card{padding:18px 14px!important;width:100%;overflow:hidden}
 .fepa-data-grid{grid-template-columns:1fr!important}
 .fepa-brand-header{padding:0 12px!important}
 .fepa-header-tools{right:10px}
 .fepa-logout{font-size:11px;padding:7px 9px}
 .fepa-quota-table{min-width:0;table-layout:fixed}
 .fepa-quota-table th,.fepa-quota-table td{padding:9px 5px;font-size:11px;overflow-wrap:anywhere}
 .fepa-quota-table th:nth-child(2),.fepa-quota-table td:nth-child(2){display:none}
 .fepa-finance-toolbar{align-items:flex-start}
 .fepa-pagination{flex-wrap:wrap}
}
@media(max-width:420px){
 .fepa-sidebar-nav{grid-template-columns:1fr 1fr}
 .fepa-nav-link{font-size:11px}
 .fepa-auth-card{padding:26px 20px}
 .fepa-brand img{max-width:125px!important}
}

/* Donaciones: presentación basada en la referencia facilitada */
.fepa-donations-card { padding: 28px; }
.fepa-donations-year { text-align: center; margin: 22px 0 28px; font-size: 1.15rem; }
.fepa-donations-year label { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.fepa-donations-year select { min-width: 90px; padding: 5px 8px; }
.fepa-donations-card .fepa-quota-table { width: 100%; border-collapse: collapse; }
.fepa-donations-card .fepa-quota-table thead { background: #333; color: #fff; }
.fepa-donations-card .fepa-quota-table th { color: #fff; text-align: left; }
.fepa-donations-card .fepa-quota-table td { background: #fff; }
.fepa-donation-legend { margin-top: 48px; padding: 28px; background: #fff; }
.fepa-donation-legend h2 { font-size: 1.2rem; margin: 0 0 24px; }
.fepa-donation-legend p { margin: 14px 0; }
.fepa-status-paid, .fepa-status-unpaid { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-right: 12px; color: #fff; font-weight: 700; }
.fepa-status-paid { background: #63c69b; }
.fepa-status-unpaid { background: #e84343; }
@media (max-width: 640px) {
 .fepa-donations-card { padding: 16px; }
 .fepa-donations-card .fepa-quota-table { min-width: 0; table-layout: fixed; }
 .fepa-donations-card .fepa-quota-table th, .fepa-donations-card .fepa-quota-table td { padding: 9px 6px; font-size: 12px; overflow-wrap: anywhere; }
 .fepa-donation-legend { margin-top: 24px; padding: 18px; }
}

/* Revisión responsive v0.7.0: evitar desbordamientos en paneles y tablas */
.fepa-app-shell, .fepa-app-shell * { box-sizing: border-box; }
.fepa-app-shell { width: 100%; max-width: 100%; overflow-x: clip; }
.fepa-workspace, .fepa-view, .fepa-card, .fepa-finance-card, .fepa-donations-card { min-width: 0; }
.fepa-donations-card .fepa-quota-table { min-width: 0; }
.fepa-donation-legend { color: #171717; }
.fepa-donation-legend h2, .fepa-donation-legend p { color: #171717; }
@media (max-width: 640px) {
  .fepa-app-shell { overflow-x: hidden; }
  .fepa-brand-header { min-width: 0; }
  .fepa-brand { min-width: 0; }
  .fepa-brand img { max-width: min(42vw, 150px) !important; height: auto; }
  .fepa-header-tools { max-width: 48%; }
  .fepa-logout { white-space: normal; }
  .fepa-sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fepa-nav-link { overflow-wrap: anywhere; }
  .fepa-donations-card .fepa-quota-table { table-layout: fixed; }
  .fepa-donations-card .fepa-quota-table th:nth-child(1),
  .fepa-donations-card .fepa-quota-table td:nth-child(1) { width: 42%; }
  .fepa-donations-card .fepa-quota-table th:nth-child(2),
  .fepa-donations-card .fepa-quota-table td:nth-child(2) { width: 19%; }
  .fepa-donations-card .fepa-quota-table th:nth-child(3),
  .fepa-donations-card .fepa-quota-table td:nth-child(3) { width: 17%; }
  .fepa-donations-card .fepa-quota-table th:nth-child(4),
  .fepa-donations-card .fepa-quota-table td:nth-child(4) { width: 22%; }
  .fepa-donations-card .fepa-quota-table th,
  .fepa-donations-card .fepa-quota-table td { font-size: 11px; line-height: 1.35; padding: 8px 4px; }
  .fepa-donation-legend { padding: 16px; }
  .fepa-contact-form { width: 100%; }
  .fepa-contact-form input, .fepa-contact-form textarea { min-width: 0; }
}


/* v0.8.1 — ajustes visuales solicitados para el panel del afiliado */
body.fepa-portal-page .ast-article-single,
body.fepa-portal-page article.page,
body.fepa-portal-page .entry-content,
body.fepa-portal-page .entry-content.clear {
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;
}
body.fepa-portal-page .fepa-app-shell {width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
.fepa-app-shell .fepa-brand-header {
  justify-content:flex-start!important;padding:0 28px!important;border:0!important;border-bottom:0!important;
}
.fepa-app-shell .fepa-brand {width:auto!important;max-width:none!important;margin:0!important;justify-content:flex-start!important;}
.fepa-app-shell .fepa-brand img {width:160px!important;max-width:160px!important;}
.fepa-app-shell .fepa-logout,
.fepa-app-shell .fepa-logout:hover,
.fepa-app-shell .fepa-logout:focus {
  background:var(--fepa-red)!important;border:0!important;border-radius:4px!important;color:#fff!important;
  text-transform:uppercase!important;font-size:12px!important;font-weight:700!important;letter-spacing:.04em;
  box-shadow:none!important;outline:none!important;
}
.fepa-app-layout {grid-template-columns:250px minmax(0,1fr)!important;}
.fepa-app-shell .fepa-sidebar {
  border:0!important;border-right:0!important;border-left:0!important;border-top:0!important;border-bottom:0!important;
  padding:30px 22px 22px!important;
}
.fepa-app-shell .fepa-sidebar-caption {padding-left:12px!important;}
.fepa-app-shell .fepa-nav-link {padding-left:14px!important;padding-right:14px!important;}
.fepa-app-shell .fepa-sidebar-user {border:0!important;padding-left:12px!important;}
.fepa-app-shell .fepa-nav-link:focus {outline:none!important;box-shadow:none!important;}
.fepa-app-shell .fepa-nav-link:focus-visible {
  outline:2px solid var(--fepa-red)!important;outline-offset:2px!important;box-shadow:none!important;
}
.fepa-app-shell .fepa-profile,
.fepa-app-shell .fepa-finance-card,
.fepa-app-shell .fepa-donations-card {
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:0!important;
}
.fepa-app-shell .fepa-profile .fepa-card-heading {border:0!important;padding:0!important;margin:0!important;}
.fepa-app-shell .fepa-profile .fepa-card-mark {display:none!important;}
.fepa-app-shell .fepa-profile .fepa-data-grid {padding-top:18px!important;}
.fepa-app-shell .fepa-finance-toolbar label,
.fepa-app-shell .fepa-donations-year label {color:#fff!important;font-size:14px!important;font-weight:600!important;}
.fepa-app-shell .fepa-year-select,
.fepa-app-shell .fepa-donations-year select {
  min-width:100px!important;min-height:40px!important;margin-left:8px!important;padding:8px 32px 8px 12px!important;
  color:#fff!important;background:#080808!important;border:1px solid #555!important;border-radius:8px!important;
  box-shadow:none!important;
}
.fepa-app-shell .fepa-quota-table-wrap {
  margin-top:18px!important;border:1px solid #414141!important;border-radius:12px!important;overflow:hidden!important;
}
.fepa-app-shell .fepa-quota-table {
  width:100%!important;min-width:650px;border-collapse:separate!important;border-spacing:0!important;
  border:0!important;border-radius:12px!important;overflow:hidden!important;
}
.fepa-app-shell .fepa-quota-table th,
.fepa-app-shell .fepa-quota-table td {
  border-right:1px solid #414141!important;border-bottom:1px solid #414141!important;
}
.fepa-app-shell .fepa-quota-table th:last-child,
.fepa-app-shell .fepa-quota-table td:last-child {border-right:0!important;}
.fepa-app-shell .fepa-quota-table tbody tr:last-child td {border-bottom:0!important;}
.fepa-app-shell .fepa-quota-table th {
  background:var(--fepa-red)!important;color:#fff!important;border-top:0!important;
  font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.04em;
}
.fepa-app-shell .fepa-quota-table td {background:#080808!important;color:#fff!important;}
.fepa-app-shell .fepa-quota-table tr:hover td {background:#151515!important;}
.fepa-app-shell .fepa-donation-legend {
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:9px 16px!important;
  margin:22px 0 0!important;padding:0!important;background:transparent!important;border:0!important;
  color:#fff!important;
}
.fepa-app-shell .fepa-donation-legend h2 {
  display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important;
  color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;
}
.fepa-app-shell .fepa-donation-legend p {
  display:inline-flex!important;align-items:center!important;gap:5px!important;margin:0!important;
  color:#fff!important;font-size:11px!important;line-height:1.4!important;white-space:nowrap;
}
.fepa-app-shell .fepa-status-paid,
.fepa-app-shell .fepa-status-unpaid {
  width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;
  border-radius:3px!important;font-size:10px!important;color:#fff!important;
}
@media(max-width:780px){
  .fepa-app-shell .fepa-sidebar {border:0!important;padding:12px 16px!important;}
  .fepa-app-shell .fepa-workspace {padding:22px 18px 36px!important;}
  .fepa-app-shell .fepa-brand-header {padding:0 16px!important;}
  .fepa-app-shell .fepa-donation-legend {gap:8px 12px!important;}
  .fepa-app-shell .fepa-quota-table {min-width:0!important;}
}
@media(max-width:420px){
  .fepa-app-shell .fepa-brand img {width:130px!important;max-width:130px!important;}
  .fepa-app-shell .fepa-header-tools {right:8px!important;}
  .fepa-app-shell .fepa-logout {font-size:10px!important;padding:7px 8px!important;}
}


/* v0.9.2 — Portada de accesos rápidos del afiliado */
.fepa-home-view{max-width:1100px!important;margin:0 auto!important;padding:clamp(12px,2vw,28px) 0 35px}
.fepa-home-heading{text-align:center;margin:8px 0 46px}
.fepa-home-heading h1{color:#fff;font-size:clamp(25px,3vw,36px);line-height:1.25;margin:10px 0 12px}
.fepa-home-heading p{color:#c7c7c7;font-size:17px;margin:0}
.fepa-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:940px;margin:0 auto}
.fepa-home-tile{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:22px 14px;border:1px solid #343434;border-radius:9px;background:linear-gradient(145deg,#151515,#090909);color:#fff;text-decoration:none!important;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.fepa-home-tile:hover,.fepa-home-tile:focus-visible{transform:translateY(-3px);border-color:#a33b38;background:#1a1111;color:#fff}
.fepa-home-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border:2px solid #a43b38;border-radius:16px;color:#c36a66;font-size:39px;line-height:1}
.fepa-home-title{color:#f4f4f4;font-size:16px;text-align:center;line-height:1.35}
.fepa-app-shell.fepa-showing-home .fepa-nav-link{opacity:.9}
@media(max-width:780px){
 .fepa-app-shell .fepa-sidebar{padding:8px 10px!important;border-bottom:1px solid #303030!important}
 .fepa-app-shell .fepa-sidebar-caption,.fepa-app-shell .fepa-sidebar-user{display:none!important}
 .fepa-app-shell .fepa-sidebar-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:thin;padding:2px 0 7px}
 .fepa-app-shell .fepa-nav-link{display:inline-flex!important;flex:0 0 auto!important;width:auto!important;min-width:max-content!important;min-height:40px!important;padding:0 12px!important;white-space:nowrap!important;font-size:12px!important}
 .fepa-app-shell.fepa-showing-home .fepa-sidebar{display:none!important}
 .fepa-home-view{padding-top:12px!important}
 .fepa-home-heading{margin:8px 0 28px}
 .fepa-home-heading h1{font-size:25px}
 .fepa-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .fepa-home-tile{min-height:145px;padding:17px 8px;gap:12px}
 .fepa-home-icon{width:54px;height:54px;font-size:33px;border-radius:13px}
 .fepa-home-title{font-size:14px}
 .fepa-home-tile:last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 6px)}
}
@media(max-width:380px){
 .fepa-home-grid{gap:9px}
 .fepa-home-tile{min-height:132px}
 .fepa-home-title{font-size:12px}
}


/* v0.9.3 — Iconos SVG personalizados y ajuste de la cuadrícula móvil */
.fepa-home-icon img{display:block;width:42px;height:42px;object-fit:contain}
.fepa-nav-icon img{display:block;width:21px;height:21px;object-fit:contain}
@media(max-width:780px){
 .fepa-home-tile:last-child{grid-column:auto!important;justify-self:stretch!important;width:auto!important}
}


/* v0.9.5 — Tablas compactas y selector de ejercicio */
.fepa-home-icon{
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;
}
.fepa-home-icon img{width:62px!important;height:62px!important;max-width:100%;object-fit:contain}
.fepa-app-shell .fepa-quota-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
.fepa-app-shell .fepa-quota-table{
  width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;
}
.fepa-app-shell .fepa-quota-table th,
.fepa-app-shell .fepa-quota-table td{
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  overflow-wrap:normal!important;word-break:normal!important;
  padding:10px 7px!important;font-size:clamp(10px,1.05vw,12px)!important;line-height:1.25!important;
}
.fepa-app-shell .fepa-quota-table th{letter-spacing:0!important}
.fepa-app-shell .fepa-finance-toolbar label{
  display:inline-flex!important;align-items:center!important;gap:12px!important;
}
.fepa-app-shell .fepa-donations-year label{
  display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important;
}
.fepa-app-shell .fepa-year-select,
.fepa-app-shell .fepa-donations-year select{
  width:92px!important;min-width:92px!important;max-width:92px!important;
  box-sizing:border-box!important;text-align:center!important;padding:7px 22px 7px 8px!important;
}
@media(max-width:780px){
  .fepa-app-shell .fepa-finance-toolbar{display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important}
  .fepa-app-shell .fepa-finance-toolbar label{display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important}
  .fepa-app-shell .fepa-quota-table th,
  .fepa-app-shell .fepa-quota-table td,
  .fepa-app-shell .fepa-donations-card .fepa-quota-table th,
  .fepa-app-shell .fepa-donations-card .fepa-quota-table td{
    padding:9px 4px!important;font-size:10px!important;letter-spacing:0!important;
  }
  .fepa-app-shell .fepa-quota-table th:nth-child(2),
  .fepa-app-shell .fepa-quota-table td:nth-child(2){display:none!important}
}
@media(max-width:380px){
  .fepa-app-shell .fepa-quota-table th,
  .fepa-app-shell .fepa-quota-table td{font-size:9px!important;padding:8px 3px!important}
}


/* v0.9.7 — Tablas de cuotas y donaciones a todo el ancho en móvil */
@media(max-width:780px){
  .fepa-app-shell .fepa-quota-table-wrap{
    display:block!important;width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;padding:0!important;
    overflow-x:hidden!important;box-sizing:border-box!important;
  }
  .fepa-app-shell table.fepa-quota-table{
    display:table!important;width:100%!important;min-width:100%!important;max-width:100%!important;
    table-layout:fixed!important;border-collapse:collapse!important;box-sizing:border-box!important;
  }
  .fepa-app-shell .fepa-quota-table thead,
  .fepa-app-shell .fepa-quota-table tbody{width:100%!important}
  .fepa-app-shell .fepa-quota-table tr{width:100%!important}
  .fepa-app-shell .fepa-quota-table th,
  .fepa-app-shell .fepa-quota-table td{
    box-sizing:border-box!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    padding-left:5px!important;padding-right:5px!important;
    font-size:10px!important;
  }
  /* Cuotas: se oculta Referencia y las cuatro columnas restantes se reparten todo el ancho. */
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table th:nth-child(2),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table td:nth-child(2){display:none!important}
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table th:nth-child(1),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table td:nth-child(1),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table th:nth-child(3),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table td:nth-child(3),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table th:nth-child(4),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table td:nth-child(4),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table th:nth-child(5),
  .fepa-app-shell [data-fepa-panel="cuotas"] .fepa-quota-table td:nth-child(5){width:25%!important}
  /* Donaciones: las cuatro columnas ocupan el 100 % del contenedor. */
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table th,
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table td{width:25%!important}
}


/* v0.9.8 — Restaurar la columna Pago en la tabla de donaciones móvil */
@media(max-width:780px){
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table th:nth-child(2),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table td:nth-child(2){
    display:table-cell!important;
    width:25%!important;
  }
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table th:nth-child(1),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table td:nth-child(1),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table th:nth-child(3),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table td:nth-child(3),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table th:nth-child(4),
  .fepa-app-shell [data-fepa-panel="donaciones"] .fepa-quota-table td:nth-child(4){
    display:table-cell!important;
    width:25%!important;
  }
}


/* v0.9.9 — Menú móvil desplazable sin barra visible ni borde inferior */
@media(max-width:780px){
  .fepa-app-shell .fepa-sidebar{
    border:0!important;border-bottom:0!important;box-shadow:none!important;
  }
  .fepa-app-shell .fepa-sidebar-nav{
    overflow-x:auto!important;overflow-y:hidden!important;
    scrollbar-width:none!important;-ms-overflow-style:none!important;
    border:0!important;border-bottom:0!important;box-shadow:none!important;
  }
  .fepa-app-shell .fepa-sidebar-nav::-webkit-scrollbar{
    display:none!important;width:0!important;height:0!important;
  }
}


/* v1.0.1 — Botón móvil de acceso con icono y orden de portada */
.fepa-mobile-login-trigger,.fepa-mobile-access-button{display:none}
@media(max-width:700px){
  .fepa-login-landing .fepa-brand-header--landing{
    position:relative!important;display:flex!important;align-items:center!important;
    justify-content:flex-start!important;min-height:76px!important;height:76px!important;
    padding:0 18px!important;
  }
  .fepa-login-landing .fepa-brand-header--landing .fepa-brand{
    margin:0!important;width:150px!important;max-width:150px!important;
  }
  .fepa-mobile-login-trigger{
    display:inline-flex!important;align-items:center!important;justify-content:center;
    gap:8px!important;position:absolute!important;right:18px!important;top:50%!important;
    transform:translateY(-50%);min-height:40px!important;padding:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;color:#fff!important;font-size:14px!important;
    font-weight:700!important;white-space:nowrap!important;cursor:pointer;
  }
  .fepa-mobile-login-icon{display:block!important;width:19px!important;height:19px!important;
    flex:0 0 19px!important;color:#fff!important;fill:#fff!important}
  .fepa-login-landing .fepa-landing-main{
    flex:1!important;min-height:0!important;height:auto!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:24px 18px 34px!important;box-sizing:border-box!important;
  }
  .fepa-login-landing .fepa-landing-grid{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;gap:0!important;width:100%!important;max-width:520px!important;
  }
  .fepa-login-landing .fepa-landing-copy{
    width:100%!important;text-align:center!important;padding:0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;
  }
  .fepa-login-landing .fepa-landing-copy h1{
    order:1!important;width:100%!important;max-width:none!important;text-align:center!important;
    font-size:clamp(38px,10vw,54px)!important;line-height:1.08!important;
  }
  .fepa-login-landing .fepa-landing-copy .fepa-eyebrow{
    order:2!important;display:block!important;text-align:center!important;
    margin:18px 0 0!important;font-size:14px!important;letter-spacing:.2em!important;
  }
  .fepa-login-landing .fepa-auth-card{display:none!important}
  .fepa-login-landing.fepa-mobile-login-open .fepa-mobile-login-trigger{display:none!important}
  .fepa-login-landing.fepa-mobile-login-open .fepa-landing-copy{display:none!important}
  .fepa-login-landing.fepa-mobile-login-open .fepa-landing-grid{
    width:100%!important;max-width:480px!important;margin:auto!important;
  }
  .fepa-login-landing.fepa-mobile-login-open .fepa-auth-card{
    display:block!important;width:100%!important;max-width:480px!important;
    max-height:calc(100dvh - 112px)!important;overflow-y:auto!important;
    margin:auto!important;padding:25px 20px!important;box-sizing:border-box!important;
  }
  .fepa-login-landing.fepa-mobile-login-open .fepa-landing-main{
    align-items:center!important;justify-content:center!important;padding:16px 18px!important;
  }
}


/* v1.0.5 — Secciones limpias y formulario de contacto ampliado */
.fepa-app-shell .fepa-workspace .fepa-view .fepa-card{
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;padding:0!important;
}
.fepa-app-shell .fepa-workspace .fepa-view .fepa-help{
  background:transparent!important;border:0!important;border-left:0!important;
  border-radius:0!important;box-shadow:none!important;padding:0!important;
}
.fepa-contact-form{width:100%!important;max-width:900px!important;gap:20px!important}
.fepa-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;width:100%}
.fepa-contact-form label{display:grid;gap:8px;color:#ddd;font-weight:600;font-size:14px;min-width:0}
.fepa-contact-form input,.fepa-contact-form textarea{
  width:100%;max-width:100%;box-sizing:border-box;background:#080808;color:#fff;
  border:1px solid #454545;border-radius:4px;padding:13px 14px;font:inherit;
}
.fepa-contact-form input{min-height:48px}
.fepa-contact-form textarea{min-height:210px;resize:vertical;line-height:1.5}
.fepa-contact-form .fepa-contact-message{width:100%}
.fepa-contact-feedback{max-width:900px;padding:10px 0;margin:0 0 16px;font-size:14px}
.fepa-contact-feedback.is-success{color:#8fd3a2}
.fepa-contact-feedback.is-error{color:#ef9999}
@media(max-width:700px){
 .fepa-contact-grid{grid-template-columns:1fr;gap:15px}
 .fepa-contact-form textarea{min-height:190px}
}
