/* =========================================================
   Asociación Mutual Árabe · Estilos
   ========================================================= */
:root {
  --navy-900: #0a0d4a;
  --navy-800: #0f1366;
  --navy-700: #13177a;
  --navy-600: #1a22a3;
  --royal: #2433d6;
  --gold: #c9a24a;
  --gold-600: #b08a36;
  --gold-100: #f5ecd6;
  --ink: #1b1d2e;
  --muted: #5d6178;
  --line: #e4e6ef;
  --bg: #ffffff;
  --bg-tint: #f4f5fb;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15, 19, 102, .06);
  --shadow: 0 18px 40px -18px rgba(15, 19, 102, .28);
  --shadow-lg: 0 30px 70px -25px rgba(10, 13, 74, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.i { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
body.no-scroll { overflow: hidden; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--royal); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light { color: #fff; }
.title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); color: var(--navy-800); letter-spacing: .01em; }
.title em, .hero__title em { font-style: normal; background: linear-gradient(100deg, var(--royal), var(--navy-600) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title--light { color: #fff; }
.title--light em { background: linear-gradient(100deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: 1.1rem; color: var(--ink); }
.section__sub { color: var(--muted); font-size: 1.05rem; max-width: 720px; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: linear-gradient(135deg, var(--royal), var(--navy-700)); color: #fff; box-shadow: 0 10px 25px -10px rgba(36, 51, 214, .7); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(36, 51, 214, .8); }
.btn--gold { background: linear-gradient(135deg, #dcb763, var(--gold-600)); color: var(--navy-900); box-shadow: 0 10px 25px -10px rgba(201, 162, 74, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }
.btn--outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .8); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__info { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--gold); }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .1); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255, 255, 255, .95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand__logo { height: 52px; width: auto; transition: height .3s; }
.header.is-scrolled .brand__logo { height: 44px; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav__link { position: relative; padding: .5rem .85rem; font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 10px; transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link.active { color: var(--royal); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__cta { margin-left: .6rem; padding: .65rem 1.3rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--bg-tint); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(88vh, 820px); min-height: 560px; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; display: flex; align-items: center; }
.hero__slide::before {
  content: ""; position: absolute; inset: -4%;
  background: var(--bg) center right / cover no-repeat;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 74, .96) 0%, rgba(15, 19, 102, .85) 35%, rgba(19, 23, 122, .35) 65%, rgba(19, 23, 122, .05) 100%),
    linear-gradient(0deg, rgba(10, 13, 74, .6), transparent 40%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide.is-active::before { transform: scale(1); }
.hero__content { position: relative; z-index: 2; max-width: 1200px; }
.hero__content > * { max-width: 640px; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem); line-height: 1.05; margin-bottom: 1.2rem; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero__title em { background: linear-gradient(100deg, #fff 10%, #f1d58f 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero__text { font-size: clamp(1rem, .95rem + .3vw, 1.18rem); color: rgba(255, 255, 255, .85); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 2.2rem; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.hero__dots { display: flex; gap: .6rem; }
.hero__dot { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); padding: 0; position: relative; overflow: hidden; }
.hero__dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: dotfill 6s linear forwards; transform-origin: left; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: .6rem; }
.hero__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.hero__arrow:hover { background: #fff; color: var(--navy-800); }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0; overflow: hidden; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: radial-gradient(1200px 600px at 85% 0%, #2a35c9 0%, transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 3.5rem; }
.section__head .section__sub { margin-inline: auto; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 1.5rem; flex-wrap: wrap; }
.section__head--row .title { margin-bottom: 0; }
.pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 4 36 20 20 36 4 20z' fill='none' stroke='%2313177a' stroke-opacity='.06' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23c9a24a' fill-opacity='.18'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.pattern--light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 4 36 20 20 36 4 20z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23c9a24a' fill-opacity='.35'/%3E%3C/svg%3E"); }

/* ---------- La Mutual ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; padding: 0 0 18% 0; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 88%; aspect-ratio: 4 / 3.2; }
.about__img--float { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 8px solid #fff; }
.about__badge { position: absolute; left: -10px; bottom: 6%; background: linear-gradient(135deg, var(--royal), var(--navy-800)); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite; }
.about__badge strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.about__badge span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.about__text p { color: var(--muted); }
.about__text .lead { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
.checks li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; }
.checks .i { color: #fff; background: var(--gold); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }

.timeline { list-style: none; padding: 0; margin: clamp(4rem, 8vw, 6rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--royal)); }
.timeline li { position: relative; padding-top: 4.2rem; }
.timeline li::before { content: ""; position: absolute; top: 18px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--royal); box-shadow: 0 0 0 6px rgba(36, 51, 214, .12); }
.timeline__year { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy-700); }
.timeline p { color: var(--muted); font-size: .95rem; margin: .3rem 0 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(3.5rem, 7vw, 5rem); }
.value { padding: 2.2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-100), #fff); color: var(--gold-600); margin-bottom: 1.2rem; font-size: 1.5rem; }
.value h3 { font-family: var(--font-display); color: var(--navy-800); font-size: 1.35rem; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; position: relative; }
.service {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; padding: 0; color: inherit; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.service:hover, .service:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; outline: none; }
.service__img { height: 150px; overflow: hidden; position: relative; }
.service__img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.08); }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 13, 74, .55)); }
.service__icon { position: absolute; left: 1.4rem; top: 112px; width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: var(--shadow); z-index: 2; transition: transform .5s var(--ease); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); }
.service__body { padding: 3rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-800); margin-bottom: .4rem; }
.service__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.service__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--royal); font-size: .9rem; }
.service__more .i { transition: transform .3s var(--ease); }
.service:hover .service__more .i { transform: translateX(4px); }
.service--featured { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border-color: transparent; }
.service--featured .service__body h3 { color: #fff; }
.service--featured .service__body p { color: rgba(255, 255, 255, .75); }
.service--featured .service__more { color: var(--gold); }

.extras { margin-top: 3.5rem; text-align: center; }
.extras h3 { font-family: var(--font-display); color: var(--navy-800); font-size: 1.3rem; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy-700); transition: background .3s, color .3s, transform .3s; }
.chip:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(3.5rem, 6vw, 5rem) 0; background: url("../img/galeria/2.jpg") center / cover fixed; color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10, 13, 74, .95), rgba(26, 34, 163, .85) 60%, rgba(201, 162, 74, .75)); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__title { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Galería ---------- */
.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--bg-tint); }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .5s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 74, .7)); opacity: 0; transition: opacity .4s; }
.gallery__item .i { position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; padding: 12px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--navy-800); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:hover .i { opacity: 1; }
.gallery__item:hover .i { transform: scale(1); }

/* ---------- Comisión ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; position: relative; }
.member { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(8px); transition: transform .45s var(--ease), background .45s, border-color .45s; }
.member:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .1); border-color: rgba(201, 162, 74, .6); }
.member__photo { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 13, 74, .85)); }
.member__body { padding: 1.6rem 1.6rem 1.8rem; }
.member__role { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.member h3 { font-family: var(--font-display); font-size: 1.3rem; }
.member ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.member li { padding: .35rem 0 .35rem 1.1rem; position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.member li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.council { margin-top: 3.5rem; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); background: #fff; color: var(--ink); position: relative; box-shadow: var(--shadow-lg); }
.council__title { font-family: var(--font-display); color: var(--navy-800); text-align: center; font-size: 1.5rem; margin-bottom: 2rem; }
.council__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.council h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold-100); }
.council ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.council li { padding: .35rem 0; font-weight: 500; }
.council li span { display: inline-block; min-width: 92px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-600); }

/* ---------- Novedades ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news__card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.news__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news__card:hover .news__img img { transform: scale(1.06); }
.tag { position: absolute; top: 1rem; left: 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy-700); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.news__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news__body h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-800); }
.news__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--royal); }
.link .i { transition: transform .3s var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; position: relative; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.contact__list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact__list b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list a { display: block; font-weight: 600; color: var(--navy-800); word-break: break-word; }
.contact__list a:hover { color: var(--royal); }
.contact__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--royal), var(--navy-800)); color: #fff; font-size: 1.15rem; }
.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); }
.form h3 { font-family: var(--font-display); color: var(--navy-800); font-size: 1.5rem; margin-bottom: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .82rem; font-weight: 700; color: var(--navy-800); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-tint);
  transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(36, 51, 214, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d64545; }
.form__note { margin: .9rem 0 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form__note.ok { color: #1a8a4a; } .form__note.err { color: #d64545; }
.map { margin-top: 3.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: 4.5rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--gold); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .3s, transform .3s; }
.footer__social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0; font-size: .85rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Flotantes ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #dcb763, var(--gold-600)); color: var(--navy-900); font-size: 1.4rem; box-shadow: 0 14px 30px -10px rgba(201, 162, 74, .9); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.2s infinite; }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }
.back-top { position: fixed; right: 30px; bottom: 92px; z-index: 40; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow); }
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 13, 74, .7); backdrop-filter: blur(6px); animation: fade .3s; }
.modal__panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .45s var(--ease); }
.modal__hero img { width: 100%; height: 220px; object-fit: cover; object-position: right center; }
.modal__body { padding: 2rem clamp(1.4rem, 4vw, 2.6rem) 2.4rem; }
.modal__body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--navy-800); }
.modal__body p { color: var(--muted); }
.modal__body .place { background: var(--bg-tint); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 0 0 1rem; color: var(--ink); }
.modal__body .place b { color: var(--navy-800); }
.modal__body .place small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--navy-800); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm); transition: transform .3s; }
.modal__close:hover { transform: rotate(90deg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(6, 8, 40, .95); display: grid; place-items: center; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .4s var(--ease); }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-size: 1.3rem; transition: background .3s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .9rem; letter-spacing: .1em; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { padding: .5rem .55rem; font-size: .88rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .burger { display: block; z-index: 70; }
  .header, .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(10, 13, 74, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav.is-open ~ .nav-overlay { opacity: 1; pointer-events: auto; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 85vw); z-index: 60;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: 6rem 1.5rem 2rem;
    background: #fff; transform: translateX(100%); transition: transform .45s var(--ease), box-shadow .45s;
  }
  .nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .nav__link { font-size: 1.05rem; padding: .9rem 1rem; }
  .nav__link::after { display: none; }
  .nav__link.active { background: var(--bg-tint); }
  .nav__cta { margin: 1rem 0 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 620px; }
  .board, .news { grid-template-columns: 1fr 1fr; }
  .council__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .timeline::before { display: none; }
  .cta { background-attachment: scroll; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .hide-sm { display: none !important; }
  .topbar__info { gap: 1rem; font-size: .78rem; }
  .brand__logo { height: 40px; }
  .header.is-scrolled .brand__logo { height: 36px; }
  .hero { height: auto; min-height: 640px; }
  .hero__slide::after { background: linear-gradient(180deg, rgba(10, 13, 74, .75), rgba(10, 13, 74, .95)); }
  .hero__slide::before { background-position: 70% center; }
  .hero__content { padding: 4rem 0 7rem; }
  .hero__controls { bottom: 1.6rem; }
  .hero__scroll { display: none; }
  .hero__arrow { width: 42px; height: 42px; }
  .checks, .form__row, .board, .news, .council__grid, .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; }
  .lightbox__count { bottom: 30px; }
  .map { height: 300px; }
  .section__head--row { align-items: flex-start; }
}
@media (max-width: 420px) {
  .topbar__info a:nth-child(2) { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Años de la línea de tiempo y el sello con fuente sans (los dígitos de Cinzel son de estilo antiguo) */
.timeline__year, .about__badge strong { font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; }

/* ---------- Páginas internas ---------- */
.page-hero { background: radial-gradient(900px 400px at 90% 0%, #2a35c9 0%, transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); margin: 0; max-width: 900px; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 .35rem; opacity: .5; }
.crumbs b { color: #fff; font-weight: 600; }
/* Foto original de la sección: completa en escritorio, recortada sobre las personas en celular */
.banner { background: var(--bg-tint); }
.banner img { width: 100%; aspect-ratio: 1443 / 407; min-height: 190px; max-height: 520px; object-fit: cover; }

a.service { text-decoration: none; }

.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__icon { width: 84px; height: 84px; margin-bottom: 1.2rem; }
.detail__text p { color: var(--muted); font-size: 1.05rem; }
.detail__text b { color: var(--ink); }
.detail__text .place { background: var(--bg-tint); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 0 0 1rem; }
.detail__text .place b { color: var(--navy-800); }
.detail__text .place small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.detail__text .place a { color: var(--royal); font-weight: 600; }
.detail__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.detail__aside { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.aside-box h3 { font-family: var(--font-display); color: var(--navy-800); font-size: 1.2rem; margin-bottom: 1rem; }
.aside-box--dark { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border-color: transparent; color: #fff; }
.aside-box--dark h3 { color: #fff; }
.aside-box--dark p { color: rgba(255, 255, 255, .8); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list a { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy-800); transition: color .25s; }
.aside-list li:first-child a { border-top: 0; }
.aside-list img { width: 36px; height: 36px; }
.aside-list .i { margin-left: auto; color: var(--gold-600); transition: transform .3s var(--ease); }
.aside-list a:hover { color: var(--royal); }
.aside-list a:hover .i { transform: translateX(4px); }
.extras .btn { margin-top: .4rem; }
.news + .extras { margin-top: 3.5rem; }
.news { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news__img--logo { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.news__img--logo img { width: 62%; height: auto; object-fit: contain; filter: brightness(0) invert(1); }

/* Presidente destacado: foto + antecedentes en una sola tarjeta ancha */
.board--single { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
.member--wide { display: grid; grid-template-columns: 340px 1fr; }
.member--wide .member__photo { aspect-ratio: auto; height: 100%; min-height: 340px; }
.member--wide .member__body { padding: 2.2rem; align-self: center; }
.member--wide h3 { font-size: 1.6rem; }
@media (max-width: 720px) {
  .member--wide { grid-template-columns: 1fr; }
  .member--wide .member__photo { aspect-ratio: 1 / 1; min-height: 0; }
  .news { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}

/* =========================================================
   Lectura cómoda y scroll suave
   ========================================================= */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: 17px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:root { --muted: #535870; }

/* La portada entra completa en la primera pantalla, debajo de la barra y el menú */
.hero { height: min(calc(100svh - 124px), 780px); min-height: 520px; }

/* Ritmo vertical más compacto: menos espacio vacío entre secciones */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section__head { margin-bottom: 2.6rem; }
.timeline { margin-top: clamp(3rem, 6vw, 4.5rem); }
.values { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Párrafos con un ancho cómodo para leer (entre 60 y 75 caracteres por línea) */
.about__text p, .detail__text p, .detail__text ul, .section__head .lead { max-width: 68ch; }
.section__head .lead { margin-inline: auto; }
.lead { line-height: 1.75; }
.about__text p, .detail__text p { line-height: 1.8; }

/* Las animaciones de aparición recorren menos distancia: el contenido llega rápido */
.reveal { transform: translateY(20px); }

/* Fondo fijo del banner "Asociate" provoca tirones al scrollear: se deja normal */
.cta { background-attachment: scroll; }

/* Imágenes sin saltos mientras cargan */
.gallery__item img, .news__img img, .member__photo img, .service__img img { background: var(--bg-tint); }

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero { height: auto; min-height: min(calc(100svh - 110px), 640px); }
  .section { padding: 3rem 0; }
  .section__head { margin-bottom: 2rem; }
  .title { font-size: clamp(1.55rem, 1.1rem + 2.6vw, 2.1rem); }
  .hero__title { font-size: clamp(1.95rem, 1.3rem + 4vw, 2.6rem); }
  .page-hero__title { font-size: clamp(1.6rem, 1.2rem + 3vw, 2.2rem); }
  .services { gap: 1.1rem; }
  .about__media { padding-bottom: 22%; }
}
