/* =========================================================
   AEEB - Hoja de estilos común para Elementor / WordPress
   Pega este archivo en tu tema hijo o súbelo como CSS global
   vía Elementor > Site Settings > Custom CSS
   ========================================================= */

:root{
  --aeeb-lime:        #DAFF02;
  --aeeb-purple:      #685BC7;
  --aeeb-orange:      #FE572A;
  --aeeb-amber:       #FFB021;
  --aeeb-ink:         #1C1C1C;
  --aeeb-ink-2:       #262626;
  --aeeb-ink-3:       #202124;
  --aeeb-text:        #333333;
  --aeeb-muted:       #949494;
  --aeeb-paper:       #FBFCF6;
  --aeeb-bg-soft:     #F2F2F2;
  --aeeb-line:        #E5E5E5;
  --aeeb-footer:      #0C111F;

  --aeeb-radius:      8px;
  --aeeb-radius-sm:   4px;

  --aeeb-font-head:   "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --aeeb-font-body:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --aeeb-font-alt:    "Bricolage Grotesque", "Manrope", sans-serif;
}

/* ---------- base ---------- */
.aeeb *, .aeeb *::before, .aeeb *::after { box-sizing: border-box; }
.aeeb {
  font-family: var(--aeeb-font-body);
  color: var(--aeeb-ink);
  line-height: 1.5;
}
.aeeb img{ max-width:100%; display:block; }
.aeeb a{ color:inherit; text-decoration:none; }
.aeeb :is(h1,h2,h3,h4,h5){
  font-family: var(--aeeb-font-head);
  color: var(--aeeb-ink);
  margin:0;
  line-height:1.15;
}

.aeeb-container{
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- botones ---------- */
.aeeb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  height:42px; padding:0 18px;
  border-radius: var(--aeeb-radius-sm);
  font-family: var(--aeeb-font-head);
  font-weight:700; font-size:14px; line-height:1;
  cursor:pointer; border:1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.aeeb-btn:hover{ transform: translateY(-1px); }
.aeeb-btn--lime{ background:var(--aeeb-lime); color:#1E0035; }
.aeeb-btn--lime:hover{ background:#C9ED00; }
.aeeb-btn--outline{ background:transparent; color:#FBFCF6; border-color:#FBFCF6; }
.aeeb-btn--outline:hover{ background:#FBFCF6; color:var(--aeeb-ink); }
.aeeb-btn--dark{ background:#000; color:#fff; border-radius: var(--aeeb-radius); height:34px; padding:0 16px; }
.aeeb-btn--dark:hover{ background:#222; }
.aeeb-btn--purple{ background:var(--aeeb-purple); color:#fff; }
.aeeb-btn--purple:hover{ background:#564AB1; }

/* ---------- barra superior ad ---------- */
.aeeb-adbar{
  background:#000;
  color:#fff;
  font-family: var(--aeeb-font-body);
  font-size:13px;
  padding:10px 24px;
  display:flex; align-items:center; justify-content:center; gap:18px;
  flex-wrap:wrap;
}
.aeeb-adbar a{ color:var(--aeeb-lime); font-weight:600; }

/* ---------- HEADER / NAV ---------- */
.aeeb-header{
  position:sticky; top:0; z-index:50;
  background:#fff;
  border-bottom:1px solid var(--aeeb-line);
}
.aeeb-nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:14px 24px;
  max-width: 1728px; margin:0 auto;
  list-style:none;
}
.aeeb-nav__brand{ display:flex; align-items:center; gap:12px; }
.aeeb-nav__logo{
  width:54px; height:54px; border-radius:50%;
  background: var(--aeeb-purple);
  border: 3px solid #fff;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.aeeb-nav__logo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.aeeb-nav__brand-name{
  font-family:"Inter",sans-serif; font-weight:700; font-style:italic;
  font-size:22px; color:var(--aeeb-ink);
}
.aeeb-nav__links{
  display:flex; gap:28px; align-items:center;
  font-family:var(--aeeb-font-head); font-weight:500; font-size:15px;
}
.aeeb-nav__links a{ position:relative; padding:6px 0; color:var(--aeeb-ink); }
.aeeb-nav__links a:hover{ color:var(--aeeb-purple); }
.aeeb-nav__links a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--aeeb-orange); border-radius:2px;
}
.aeeb-nav__cta{ display:flex; gap:10px; align-items:center; }
.aeeb-nav__burger{
  display:none; width:40px; height:40px; border:1px solid var(--aeeb-line);
  border-radius:8px; background:#fff; cursor:pointer;
  align-items:center; justify-content:center;
}
.aeeb-nav__burger span{ width:18px; height:2px; background:var(--aeeb-ink); position:relative; display:block; }
.aeeb-nav__burger span::before,
.aeeb-nav__burger span::after{
  content:""; position:absolute; left:0; right:0; height:2px; background:var(--aeeb-ink);
}
.aeeb-nav__burger span::before{ top:-6px; }
.aeeb-nav__burger span::after{ top:6px; }

/* ---------- HERO ---------- */
.aeeb-hero{
  position:relative;
  min-height:540px;
  background:#111 center/cover no-repeat;
  color:#FBFCF6;
  overflow:hidden;
  isolation:isolate;
}
.aeeb-hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
  z-index:0;
}
.aeeb-hero__wrap{
  position:relative; z-index:2;
  max-width: 1520px; margin:0 auto;
  padding: 90px 100px 90px;
  display:grid; grid-template-columns: 1.2fr .8fr; gap:56px;
  align-items:flex-end;
}
.aeeb-hero__eyebrow{
  display:inline-block;
  background:var(--aeeb-orange); color:#fff;
  font-family:"DM Sans",var(--aeeb-font-body); font-weight:500;
  font-size:13px; padding:6px 14px; border-radius:3px;
  margin-bottom:12px;
}
.aeeb .aeeb-hero__title{
  font-family:var(--aeeb-font-body); font-weight:500;
  font-size: clamp(34px, 4vw, 50px);
  line-height:1.2;
  color: var(--aeeb-lime);
  max-width: 780px;
  text-wrap: balance;
}
.aeeb-hero__intro{
  margin-top:18px;
  font-size: 16px; line-height:1.55;
  color:#FBFCF6;
  max-width: 620px;
}
.aeeb-hero__actions{ display:flex; gap:16px; margin-top:28px; flex-wrap:wrap; }
.aeeb-hero__side{
  border: 2px solid var(--aeeb-lime);
  border-radius:12px;
  padding:16px;
  display:flex; flex-direction:column; gap:14px;
  max-width:380px;
  margin-left:auto;
}
.aeeb-hero__side-card{
  position:relative;
  border-radius:8px; overflow:hidden;
  aspect-ratio: 16/9;
}
.aeeb-hero__side-card img{ width:100%; height:100%; object-fit:cover; }
.aeeb-hero__side-card::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:60%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85));
}
.aeeb-hero__side-info{
  position:absolute; left:14px; right:14px; bottom:14px; z-index:2;
  color:#fff;
}
.aeeb-hero__side-info .date{
  font-family:"DM Sans",sans-serif; font-size:11px;
  color:rgba(255,255,255,.7); letter-spacing:.02em;
}
.aeeb-hero__side-info .title{
  font-family:var(--aeeb-font-head); font-weight:700; font-size:16px;
  color:#FFF5F5; margin-top:4px;
}
.aeeb-hero__dots{ display:flex; gap:8px; margin-top:4px; }
.aeeb-hero__dots span{ width:8px; height:8px; border-radius:50%; background:#fff4; }
.aeeb-hero__dots span.is-active{ width:26px; border-radius:100px; background:var(--aeeb-orange); }

/* curvas naranjas decorativas */
.aeeb-hero__glyph{
  position:absolute; left:-120px; top:40px;
  width:460px; height:420px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,176,33,.9), transparent 60%),
    radial-gradient(circle at 70% 65%, rgba(254,87,42,.7), transparent 65%);
  filter: blur(10px);
  z-index:1; opacity:.6;
  border-radius:50%;
  pointer-events:none;
}

/* ---------- Advertisement band ---------- */
.aeeb-adband{
  background:#fff; border-block:1px solid var(--aeeb-line);
  padding: 14px 0;
  overflow:hidden;
  width:100%;
}
.aeeb-adband__inner{
  display:flex; align-items:center; gap:56px;
  width:max-content;
  animation: aeeb-scroll 40s linear infinite;
  will-change: transform;
}
.aeeb-adband__inner:hover{ animation-play-state: paused; }
.aeeb-adband__item{
  display:inline-flex; align-items:center; gap:10px;
  flex-shrink:0;
  font-family:var(--aeeb-font-head); font-weight:600;
  color:var(--aeeb-ink); font-size:13px;
  opacity:.85;
  text-decoration:none;
}
.aeeb-adband__logo{
  width:40px; height:28px; border-radius:3px;
  background: linear-gradient(135deg, var(--aeeb-bg-soft), #e2e2e2);
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; color:#888; font-size:10px;
  border:1px solid var(--aeeb-line);
}
.aeeb-adband__logo--img{
  background:none; border:none; border-radius:0;
  width:auto; height:auto; min-width:28px;
  padding:0;
}
.aeeb-adband__logo--img img{
  display:block;
  max-height:40px;
  max-width:110px;
  width:auto;
  height:auto;
  object-fit:contain;
}
/* 8 copias en PHP → se desplaza 1/8 del total = loop perfecto a cualquier ancho */
@keyframes aeeb-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-12.5%); }
}

/* ---------- Sección noticias ---------- */
.aeeb-section{ padding: 80px 0; }
.aeeb-section--ink{ background: var(--aeeb-ink-2); color:#F9FAFC; position:relative; overflow:hidden; }
.aeeb .aeeb-section--ink .aeeb-section__title{ color:#F9FAFC; }

.aeeb-section__header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 32px; gap:16px; flex-wrap:wrap;
}
.aeeb-section__title{
  font-family:var(--aeeb-font-head); font-weight:700;
  font-size: clamp(24px, 2.4vw, 36px);
  color:var(--aeeb-ink);
}
.aeeb-section__subtitle{
  color:var(--aeeb-muted); font-size:15px; margin-top:4px;
}

/* ---------- Familia baloncesto card ---------- */
.aeeb-family{
  display:grid; grid-template-columns: 1.4fr 1fr;
  border-radius: var(--aeeb-radius); overflow:hidden;
  background:#fff;
  min-height: 200px;
  border:1px solid var(--aeeb-line);
}
.aeeb-family__img{ background: var(--aeeb-bg-soft) center/cover no-repeat; }
.aeeb-family__side{
  background: var(--aeeb-purple); color:#F9FAFC;
  padding: 28px 32px;
  display:flex; flex-direction:column; justify-content:center; gap:10px;
  position:relative; overflow:hidden;
}
.aeeb .aeeb-family__side h3{
  color:#F9FAFC;
  font-weight:700; font-size: clamp(15px, 1.4vw, 20px);
  line-height:1.25; margin-bottom:0;
}
.aeeb-family__side p{ color: var(--aeeb-amber); font-weight:600; font-size:14px; line-height:1.4; margin:0; }
.aeeb-family__blob{
  position:absolute; right:-30px; bottom:-40px;
  width:150px; height:150px; border-radius:50%;
  background: var(--aeeb-amber);
  opacity:.85;
  z-index:0;
}
.aeeb-family__side > *{ position:relative; z-index:1; }

/* ---------- Noticias grid ---------- */
.aeeb-news{
  display:grid; grid-template-columns: 2fr 1fr; gap:36px;
}
.aeeb-news__grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:28px;
}
.aeeb-card{
  background:#fff;
  border-radius: var(--aeeb-radius);
  overflow:hidden;
  border:1px solid var(--aeeb-line);
  transition: transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.aeeb-card:hover{ transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.2); }
.aeeb-card__media{ aspect-ratio: 16/11; background: var(--aeeb-bg-soft) center/cover no-repeat; }
.aeeb-card__body{ padding: 18px 20px 20px; display:flex; flex-direction:column; gap:10px; flex:1;}
.aeeb-card__meta{
  display:flex; gap:10px; align-items:center;
  font-size:12px; color: var(--aeeb-muted);
  font-family: var(--aeeb-font-head);
}
.aeeb-card__meta .dot{ width:3px; height:3px; border-radius:50%; background: var(--aeeb-muted); }
.aeeb-card__title{
  font-family:var(--aeeb-font-head); font-weight:700; font-size:18px;
  color: var(--aeeb-ink-3); line-height:1.3;
  text-wrap: pretty;
}
.aeeb-card__foot{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--aeeb-line); padding-top:12px; margin-top:auto;
  font-size:12px; color: var(--aeeb-muted);
}

.aeeb-news__side{
  background: #E7E7E7;
  border-radius: var(--aeeb-radius);
  padding: 24px;
  display:flex; flex-direction:column; gap:16px;
  min-height: 615px;
}
.aeeb-news__side h4{
  font-family: var(--aeeb-font-head); font-weight:700; font-size:16px;
  color: var(--aeeb-ink);
}
.aeeb-news__side-media{
  flex:1; border-radius: var(--aeeb-radius-sm);
  background: var(--aeeb-bg-soft) center/cover no-repeat;
  position:relative;
  overflow:hidden;
}
.aeeb-news__side-media::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3));
}

/* ---------- Pager ---------- */
.aeeb-pager{
  display:flex; gap:10px; justify-content:flex-end; align-items:center;
  margin-top: 28px;
}
.aeeb-pager button, .aeeb-pager a{
  width:48px; height:42px;
  border-radius: var(--aeeb-radius-sm);
  border:none; cursor:pointer;
  background: var(--aeeb-purple); color:#fff;
  font-family:var(--aeeb-font-head); font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
  transition: background .2s;
}
.aeeb-pager .is-muted{ background:transparent; color: var(--aeeb-ink); }
.aeeb-pager .is-current{ background: var(--aeeb-ink); color: #fff; }
.aeeb-pager button:hover{ background: #564AB1; }

/* ---------- Banner "Cumple tu sueño americano" ---------- */
.aeeb-banner-wide{
  position:relative;
  border-radius: var(--aeeb-radius); overflow:hidden;
  background:#111 center/cover no-repeat;
  min-height: 380px;
  display:grid; grid-template-columns: 1.4fr 1fr;
}
.aeeb-banner-wide::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 100%);
  z-index:1;
}
.aeeb-banner-wide__text{
  position:relative; z-index:2;
  padding: 48px 40px;
  color:#fff;
  display:flex; flex-direction:column; justify-content:center; gap:14px;
  max-width: 920px;
}
.aeeb-banner-wide__text h3{
  color:var(--aeeb-lime);
  font-family: var(--aeeb-font-head); font-weight:700;
  font-size: clamp(24px, 2.4vw, 34px); line-height:1.2;
}
.aeeb-banner-wide__text ul{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:8px; color:#fff; }
.aeeb-banner-wide__text ul li::marker{ color: var(--aeeb-orange); }
.aeeb-banner-wide__side{
  position:relative; z-index:2;
  background: var(--aeeb-orange);
}
.aeeb-banner-wide__side::before{
  content:""; position:absolute; right:-40px; bottom:-40px;
  width:260px; height:260px; border-radius:50%;
  background: var(--aeeb-amber);
}

/* ---------- Síguenos cards ---------- */
.aeeb-social-cta{
  background: var(--aeeb-lime);
  border-radius: var(--aeeb-radius);
  padding: 22px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.aeeb-social-cta strong{ font-family: var(--aeeb-font-head); font-size:16px; color:#000; max-width:220px; }
.aeeb-social-cta .chip{
  background:#fff; color:#000; font-family:var(--aeeb-font-head);
  font-weight:700; font-size:13px;
  padding:12px 16px; border-radius:4px;
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid #eee;
}
.aeeb-social-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:28px; margin-top:32px;
}
.aeeb-social-card{
  background:#1A1A1A; border-radius: var(--aeeb-radius);
  overflow:hidden;
  border:1px solid #2A2A2A;
  display:flex; flex-direction:column;
}
.aeeb-social-card__img{ aspect-ratio: 4/5; background:#333 center/cover no-repeat; }
.aeeb-social-card__body{ padding:18px; color:#F9FAFC; display:flex; flex-direction:column; gap:10px; flex:1;}
.aeeb .aeeb-social-card__body h4{ color:#fff; font-size:15px; font-weight:700; line-height:1.3; }
.aeeb-social-card__body p{ color: #B6B8BC; font-size:13px; line-height:1.5; }
.aeeb-social-card__foot{
  border-top:1px solid #2A2A2A; padding-top:12px; margin-top:auto;
  display:flex; justify-content:space-between; align-items:center;
  color: #949494; font-size:12px;
}

/* ---------- Hazte socio split ---------- */
.aeeb-socio{
  display:grid; grid-template-columns: 1fr 1fr; gap:56px;
  align-items:center;
}
.aeeb-socio__media{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: 200px 200px 20px 20px;
  overflow:hidden;
  background: var(--aeeb-bg-soft) center/cover no-repeat;
}
.aeeb-socio__media::before{
  content:""; position:absolute; right:-20px; top:10px;
  width: 220px; height:220px; border-radius:50%;
  background: var(--aeeb-amber); z-index:-1;
}
.aeeb-socio__media::after{
  content:""; position:absolute; right:-10px; bottom:20px;
  width: 140px; height:140px; border-radius:50%;
  background: var(--aeeb-amber);
}
.aeeb-socio h2{
  font-family: var(--aeeb-font-head); font-weight:500;
  font-size: clamp(28px, 3.2vw, 48px); line-height:1;
  color: #202020;
  text-wrap: balance;
}
.aeeb-socio p.lead{ color:#615E5B; font-size:17px; margin-top:16px; max-width:560px; }
.aeeb-socio__list{
  margin-top:28px; display:flex; flex-direction:column; gap:18px; max-width:560px;
}
.aeeb-socio__item{
  display:grid; grid-template-columns: 44px 1fr; gap:14px;
  align-items:flex-start;
}
.aeeb-socio__num{
  width:44px; height:44px; border-radius:50%;
  background: var(--aeeb-lime); color:#000;
  font-family:var(--aeeb-font-head); font-weight:800; font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.aeeb-socio__item h4{ font-family:var(--aeeb-font-head); font-weight:700; font-size:18px; color:var(--aeeb-ink); }
.aeeb-socio__item p{ color:#666; font-size:14px; margin-top:4px; }

/* ---------- FOOTER ---------- */
.aeeb-footer{
  background: var(--aeeb-footer);
  color:#FBFCF6;
  margin-top: 80px;
  position:relative; overflow:hidden;
}
.aeeb-footer__top{
  border-top: 40px solid var(--aeeb-footer);
  padding: 60px 0 30px;
  border-radius: 40px 40px 0 0;
}
.aeeb-footer__hero{
  display:flex; justify-content:space-between; align-items:center;
  border-bottom:1px solid #3D414C;
  padding-bottom:32px; gap:20px; flex-wrap:wrap;
}
.aeeb .aeeb-footer__hero h2{
  font-family:"Inter",sans-serif; font-weight:700;
  font-size: clamp(28px, 3.4vw, 44px);
  color:#fff; letter-spacing:-.02em;
}
.aeeb-footer__grid{
  margin-top:40px;
  display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:40px;
}
.aeeb-footer__brand{ display:flex; align-items:center; gap:14px; }
.aeeb-footer__brand .logo{
  width:64px; height:64px;
}
.aeeb-footer__brand .logo img{ width:100%; height:100%; object-fit:cover; }
.aeeb-footer__brand span{ font-family:"Inter",sans-serif; font-weight:700; font-style:italic; font-size:22px; color:#fff; }
.aeeb .aeeb-footer__col h4{
  font-family:"Inter",sans-serif; font-weight:700; font-size:18px;
  color:#fff; margin-bottom:16px;
}
.aeeb-footer__col a{ display:block; padding:6px 0; color:#B6B8BC; font-family:"Inter",sans-serif; font-size:15px; }
.aeeb-footer__col a:hover{ color:#fff; }
.aeeb-footer__bottom{
  border-top:1px solid #3D414C; margin-top:40px; padding:24px 0;
  text-align:center;
  color:#B6B8BC; font-size:13px;
}
.aeeb-footer__blob{
  position:absolute; right:-100px; top:80px;
  width:340px; height:340px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 65%);
  pointer-events:none;
}

/* ---------- Biblioteca / filtros ---------- */
.aeeb-filters{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px;
}
.aeeb-filter{
  padding:10px 18px; border-radius: 100px;
  background:#fff; border:1px solid var(--aeeb-line);
  font-family: var(--aeeb-font-head); font-weight:600; font-size:14px;
  color: var(--aeeb-ink); cursor:pointer;
  transition: all .2s ease;
}
.aeeb-filter:hover{ border-color: var(--aeeb-ink); }
.aeeb-filter.is-active{ background: var(--aeeb-ink); color:#fff; border-color: var(--aeeb-ink); }

.aeeb-resources{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:28px;
}
.aeeb-resource{
  background:#fff; border-radius: var(--aeeb-radius);
  overflow:hidden; border:1px solid var(--aeeb-line);
  display:flex; flex-direction:column;
  transition: transform .2s;
}
.aeeb-resource:hover{ transform: translateY(-3px); }
.aeeb-resource__img{
  aspect-ratio: 16/10;
  background: var(--aeeb-bg-soft) center/cover no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  position: relative;
}
.aeeb-resource__body{
  padding: 22px; display:flex; flex-direction:column; gap:10px; flex:1;
}
.aeeb-resource__tag{
  display:inline-block; padding:4px 10px; border-radius:4px;
  background: var(--aeeb-lime); color:#1E0035;
  font-family: var(--aeeb-font-head); font-weight:700; font-size:11px;
  text-transform: uppercase; letter-spacing:.04em;
  align-self:flex-start;
}
.aeeb-resource__title{ font-family:var(--aeeb-font-head); font-weight:700; font-size:18px; line-height:1.3; color:var(--aeeb-ink);}
.aeeb-resource__desc{ color: var(--aeeb-text); font-size:14px; line-height:1.5; }
.aeeb-resource__foot{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:auto; padding-top:14px; border-top:1px solid var(--aeeb-line);
  font-size:13px; color: var(--aeeb-muted); font-family: var(--aeeb-font-head);
}
.aeeb-resource__foot a{ color: var(--aeeb-purple); font-weight:700; }

/* ---------- Post plantilla ---------- */
.aeeb-post-hero{
  padding: 60px 0 40px;
  background:#fff;
  border-bottom:1px solid var(--aeeb-line);
}
.aeeb-post-breadcrumb{
  color: var(--aeeb-muted); font-size:13px; margin-bottom:16px;
  font-family: var(--aeeb-font-head);
}
.aeeb-post-breadcrumb a{ color: var(--aeeb-purple); }
.aeeb .aeeb-post-hero h1{
  font-family: var(--aeeb-font-alt), var(--aeeb-font-head);
  font-weight:500; font-size: clamp(34px, 4vw, 50px); line-height:1.1;
  color: var(--aeeb-ink-3); max-width: 920px; text-wrap:balance;
}
.aeeb-post-meta{
  display:flex; gap:22px; align-items:center; margin-top:18px;
  color: var(--aeeb-muted); font-size:13px;
}
.aeeb-post-meta .author{ color: var(--aeeb-ink); font-weight:600; }
.aeeb-post__featured{
  margin-top:36px; aspect-ratio:16/7;
  background: var(--aeeb-bg-soft) center/cover no-repeat;
  border-radius: var(--aeeb-radius);
}
.aeeb-post__content{
  padding: 60px 0;
  display:grid; grid-template-columns: 1fr 280px; gap: 64px;
  max-width: 1180px; margin:0 auto;
}
.aeeb-post__content article{
  font-family: var(--aeeb-font-body);
  font-size: 17px; line-height:1.7; color: var(--aeeb-text);
}
.aeeb-post__content article h2{
  font-family: var(--aeeb-font-alt); font-weight:500; font-size:28px;
  margin-top:36px; margin-bottom:14px;
}
.aeeb-post__content article p{ margin-bottom: 18px; }
.aeeb-post__content article blockquote{
  border-left:3px solid var(--aeeb-orange);
  padding:8px 20px; font-style: italic; color: var(--aeeb-ink);
  margin:24px 0;
}
.aeeb-post__aside{
  position:sticky; top:100px; align-self:start;
  display:flex; flex-direction:column; gap:24px;
}
.aeeb-post__aside .box{
  border:1px solid var(--aeeb-line); border-radius: var(--aeeb-radius);
  padding:20px;
}
.aeeb-post__aside h5{
  font-family: var(--aeeb-font-head); font-weight:700; font-size:14px;
  text-transform: uppercase; letter-spacing:.06em;
  color: var(--aeeb-ink-3); margin-bottom: 12px;
}
.aeeb-post__tags{ display:flex; flex-wrap:wrap; gap:8px; }
.aeeb-post__tags .tag{
  background: var(--aeeb-bg-soft); padding:6px 12px; border-radius:100px;
  font-size:12px; font-family: var(--aeeb-font-head); color: var(--aeeb-ink);
}

/* ---------- FAQ / Accordion ---------- */
.aeeb-accordion{ display:flex; flex-direction:column; gap:10px; }
.aeeb-accordion details{
  background:#fff; border:1px solid var(--aeeb-line); border-radius: var(--aeeb-radius);
  padding: 18px 24px;
}
.aeeb-accordion details[open]{ border-color: var(--aeeb-purple); }
.aeeb-accordion summary{
  cursor:pointer; font-family: var(--aeeb-font-head); font-weight:700;
  font-size:17px; color: var(--aeeb-ink);
  display:flex; justify-content:space-between; align-items:center;
  list-style:none;
}
.aeeb-accordion summary::after{
  content:"+"; font-size:24px; color: var(--aeeb-purple); transition: transform .2s;
}
.aeeb-accordion details[open] summary::after{ content:"−"; }
.aeeb-accordion details > p{ margin-top:12px; color: var(--aeeb-text); line-height:1.6; }

/* ---------- Modal ---------- */
.aeeb-modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.65);
  display:none; align-items:center; justify-content:center;
  z-index: 200; padding:20px;
}
.aeeb-modal.is-open{ display:flex; }
.aeeb-modal__box{
  background:#fff; border-radius: 16px;
  max-width: 520px; width:100%;
  padding: 40px 32px;
  position:relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.aeeb-modal__close{
  position:absolute; right:16px; top:16px; border:none; background:transparent;
  width:32px; height:32px; border-radius:50%; cursor:pointer;
  font-size:22px; color:#333;
}
.aeeb-modal__close:hover{ background: var(--aeeb-bg-soft); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px){

  /* HEADER MÓVIL
     Estructura esperada en header.php:
     .aeeb-nav__brand
     .aeeb-nav__links
     .aeeb-nav__cta
     .aeeb-nav__burger
  */
  .aeeb-nav{
    display:flex;
    align-items:center;
    justify-content:flex-start !important;
    gap:12px;
    position:relative;
    padding:12px 24px;
  }

  /* Logo a la izquierda. El margin-right:auto empuja CTA + hamburger a la derecha. */
  .aeeb-nav__brand{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
    margin-right:auto;
  }

  /* Botones de login / hazte socio a la derecha, antes del hamburger. */
  .aeeb-nav__cta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
    margin-left:0 !important;
  }

  /* Botón hamburguesa visible en móvil/tablet. */
  .aeeb-nav__burger{
    display:flex !important;
    width:40px;
    height:40px;
    flex-shrink:0;
    margin-left:0;
  }

  /* Menú principal oculto por defecto en móvil. */
  .aeeb-nav__links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:90;

    background:#fff;
    border-bottom:1px solid var(--aeeb-line);
    box-shadow:0 16px 32px rgba(0,0,0,.08);

    padding:18px 24px;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:14px;
    text-align:left;
  }

  /* El JS solo tiene que añadir/quitar .is-open en .aeeb-nav. */
  .aeeb-nav.is-open .aeeb-nav__links{
    display:flex !important;
  }

  .aeeb-nav__links li{
    width:100%;
    list-style:none;
    margin:0;
    padding:0;
  }

  .aeeb-nav__links a{
    display:block;
    width:100%;
    padding:12px 0;
    font-size:16px;
    text-align:left;
  }

  .aeeb-hero__wrap{ padding: 64px 48px 56px; grid-template-columns: 1fr; gap:32px; }
  .aeeb-hero__side{ max-width:100%; margin-left:0; }
  .aeeb-news{ grid-template-columns: 1fr; }
  .aeeb-news__side{ min-height:auto; }
  .aeeb-socio{ grid-template-columns: 1fr; gap:32px; }
  .aeeb-socio__media{ max-width: 520px; margin:0 auto; width:100%; aspect-ratio: 4/5; }
  .aeeb-post__content{ grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .aeeb-post__aside{ position:static; }
}
@media (max-width: 900px){
  .aeeb-news__grid{ grid-template-columns: 1fr; }
  .aeeb-family{ grid-template-columns: 1fr; }
  .aeeb-family__img{ min-height: 150px; }
  .aeeb-banner-wide{ grid-template-columns: 1fr; }
  .aeeb-banner-wide__side{ min-height:140px; }
  .aeeb-social-grid{ grid-template-columns: repeat(2, 1fr); gap:20px; }
  .aeeb-footer__grid{ grid-template-columns: 1fr 1fr; }
  .aeeb-resources{ grid-template-columns: 1fr 1fr; }
  .aeeb-section{ padding: 56px 0; }
}
@media (max-width: 620px){

  /* Header más compacto en móvil pequeño. */
  .aeeb-nav{
    gap:10px;
    padding:10px 16px;
  }

  .aeeb-nav__logo{
    width:44px;
    height:44px;
  }

  .aeeb-nav__brand-name{
    font-size:18px;
  }

  .aeeb-nav__burger{
    margin-left:0;
  }

  .aeeb-nav__links{
    padding:16px;
  }

  .aeeb-hero__wrap{ padding: 48px 24px 48px; }
  .aeeb-hero__title{ font-size: 30px; }
  .aeeb-social-grid{ grid-template-columns: 1fr; }
  .aeeb-footer__grid{ grid-template-columns: 1fr; }
  .aeeb-resources{ grid-template-columns: 1fr; }
  .aeeb-section__header{ flex-direction:column; align-items:flex-start; }
}
/* Arreglo para la paginación de WordPress */
.aeeb-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 60px;
}

.aeeb-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--aeeb-ink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aeeb-pager .page-numbers:hover {
    background: #e0e0e0;
}

.aeeb-pager .page-numbers.current {
    background: var(--aeeb-purple); /* El color morado de tu marca */
    color: #fff;
}

.aeeb-pager .prev, .aeeb-pager .next {
    background: #fff;
    border: 1px solid var(--aeeb-line);
}
/* =================================================================
   ESTILOS EDITORIALES (FORZADOS PARA LIMPIAR JOOMLA)
================================================================= */

/* 1. Limpiar la basura de Joomla (Justificados y tamaños fijos) */
.aeeb-content p, 
.aeeb-content span, 
.aeeb-content div {
    text-align: left !important; /* El texto justificado en web cansa la vista, lo forzamos a la izquierda */
    font-size: 18px !important; /* Forzamos un tamaño legible */
    font-family: var(--aeeb-font-body), sans-serif !important;
    line-height: 1.85 !important;
    color: #333333 !important;
}

/* 2. Contenedor de lectura óptimo (Hacemos la columna más estrecha) */
.aeeb-content {
    max-width: 720px !important; /* Aún más estrecho para que la línea no sea infinita */
    margin: 0 auto !important; 
}

/* 3. Espaciado entre párrafos para que respire */
.aeeb-content p {
    margin-bottom: 30px !important;
}

/* 4. Letra Capital de revista (Obligamos a que salga) */
.aeeb-content > p:first-of-type::first-letter,
.aeeb-content > div:first-of-type > p:first-of-type::first-letter {
    float: left !important;
    font-size: 6rem !important;
    line-height: 0.8 !important;
    padding-top: 8px !important;
    padding-right: 12px !important;
    color: var(--aeeb-purple) !important;
    font-family: var(--aeeb-font-headline) !important;
    font-weight: 800 !important;
}

/* 5. Frases destacadas (Negritas de Joomla) */
.aeeb-content strong {
    color: var(--aeeb-ink) !important;
    font-weight: 800 !important;
}

/* 6. Arreglar imágenes pequeñas de Joomla */
.aeeb-content img {
    width: 100% !important; /* Fuerzamos a que ocupen el ancho de la columna */
    height: auto !important;
    border-radius: 12px !important;
    margin: 40px 0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    object-fit: cover !important;
}
/* =================================================================
   VIDEOS ADAPTATIVOS (16:9)
================================================================= */
.aeeb-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 de YouTube */
    height: 0;
    overflow: hidden;
    margin: 40px 0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.aeeb-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}


/* ── ACB Academy coach grid ─────────────────────────────────────── */
.aeeb-academy-coaches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 32px auto 0;
    padding: 0 16px;
}
@media (min-width: 600px) {
    .aeeb-academy-coaches {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}
.aeeb-academy-coach {
    text-align: center;
}
.aeeb-academy-coach img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    display: block;
    transition: border-color .2s, transform .2s;
}
.aeeb-academy-coach img:hover {
    border-color: #685BC7;
    transform: translateY(-3px);
}
.aeeb-academy-coach p {
    margin-top: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}
.aeeb-academy-coach a {
    color: #1C1C1C;
    text-decoration: none;
}
.aeeb-academy-coach a:hover {
    color: #685BC7;
}

/* ── Bootstrap grid compat – Joomla migration (ejercicios + artículos) ── */
.ej-content .row{
  display:flex; flex-wrap:wrap; margin:0 -12px; align-items:flex-start;
}
.ej-content [class*="col-sm-"]{
  padding:0 12px; box-sizing:border-box; float:none!important;
}
.ej-content .col-sm-3  { flex:0 0 25%;    max-width:25%;    }
.ej-content .col-sm-4  { flex:0 0 33.33%; max-width:33.33%; }
.ej-content .col-sm-6  { flex:0 0 50%;    max-width:50%;    }
.ej-content .col-sm-8  { flex:0 0 66.67%; max-width:66.67%; }
.ej-content .col-sm-9  { flex:0 0 75%;    max-width:75%;    }
.ej-content .col-sm-12 { flex:0 0 100%;   max-width:100%;   }

/* Author photo: always small, in sidebar */
.ej-content .col-sm-3 img,
.aeeb-art-body .col-sm-3 img {
  border-radius:8px;
  box-shadow:0 2px 12px rgba(0,0,0,.12);
  width:100%; height:auto;
  object-fit:cover;
  display:block;
  margin:0;
}

@media(max-width:767px){
  .ej-content [class*="col-sm-"]{ flex:0 0 100%; max-width:100%; }
  .ej-content .col-sm-3{ order:-1; }
  .ej-content .col-sm-3 img,
  .aeeb-art-body .col-sm-3 img{ max-width:100px; }
}

/* =========================================================
   FIX HEADER MÓVIL PEQUEÑO
   Mantener login + hazte socio visibles
   ========================================================= */

@media (max-width: 620px){

  .aeeb-nav{
    gap: 8px;
    padding: 10px 12px;
  }

  .aeeb-nav__brand{
    margin-right: auto;
    min-width: 0;
  }

  .aeeb-nav__logo{
    width: 42px;
    height: 42px;
  }

  .aeeb-nav__brand-name{
    font-size: 17px;
  }

    /* Contenedor de los dos botones */
  .aeeb-nav__cta{
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 0 !important;
  }

  /* MISMO TAMAÑO PARA INICIAR SESIÓN Y HAZTE SOCIO */
  .aeeb-login-toggle,
  .aeeb-nav__cta .aeeb-btn--lime{
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    padding: 4px 6px !important;
    box-sizing: border-box !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-family: var(--aeeb-font-head) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    text-align: center !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;

    border-radius: var(--aeeb-radius-sm) !important;
    cursor: pointer;
  }

  /* Iniciar sesión: mismo look que botón normal */
  .aeeb-login-toggle{
    background: #fff !important;
    color: var(--aeeb-ink) !important;
    border: 1px solid var(--aeeb-line) !important;
    gap: 0 !important;
  }

  /* Quitamos el icono para que el texto ocupe todo el ancho */
  .aeeb-login-toggle svg{
	  display: block !important;
	  width: 17px !important;
	  height: 34px !important;
	  flex-shrink: 0 !important;
	  padding: inherit;
  }

  /* Hazte socio mantiene el color lima */
  .aeeb-nav__cta .aeeb-btn--lime{
    background: var(--aeeb-lime) !important;
    color: #1E0035 !important;
    border: 1px solid transparent !important;
  }
  .aeeb-nav__burger{
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    margin-left: 0;
  }
}

@media (max-width: 390px){

  .aeeb-nav{
    padding: 8px 8px;
    gap: 5px;
  }

  .aeeb-nav__brand-name{
    display: none;
  }

  .aeeb-nav__cta .aeeb-btn--lime{
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    font-size: 10px !important;
  }

  .aeeb-login-toggle,
  .aeeb-nav__burger{
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}