/* =============================================
   SINTRAPETROCOL — styles.css
   Mobile-first · Breakpoints: 375px, 768px, 1200px
   Colores extraídos exclusivamente de logo.png
   ============================================= */

/* ── Sistema de color (logo.png) ────────────── */
:root {
  /* Colores primarios del logo */
  --color-primary:          #1a2d5a;   /* Azul marino profundo — fondo del escudo */
  --color-secondary:        #f5a623;   /* Amarillo dorado — texto, casco y anillo */
  --color-dark:             #2a2a2a;   /* Carbón oscuro — engranaje exterior */

  /* Fondos y superficies derivados */
  --color-background:       #f0f4f8;   /* Blanco-azul claro, derivado del marino */
  --color-surface:          #ffffff;   /* Blanco limpio */
  --color-surface-alt:      #e8edf5;   /* Superficie alternativa azulada */

  /* Texto — contraste WCAG AA (≥ 4.5:1) verificado */
  --color-text-primary:     #0d1a33;   /* Marino muy oscuro — contraste ≥14:1 sobre fondos claros */
  --color-text-secondary:   #344d7a;   /* Marino medio — contraste ≥6.8:1 sobre fondos claros */

  /* Variantes funcionales */
  --color-primary-light:    #243d7a;   /* Marino más claro para gradientes */
  --color-secondary-dark:   #c98a0e;   /* Dorado oscuro para hover/énfasis */
  --color-border:           #cdd8ea;   /* Borde azul-gris claro */

  /* Tipografía */
  --font-base: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* Layout */
  --container-max:     1200px;
  --container-pad:     1rem;
  --radius-sm:         4px;
  --radius-md:         8px;

  /* Sombras derivadas del azul marino */
  --shadow-sm:  0 1px 3px rgba(26,45,90,0.08), 0 1px 2px rgba(26,45,90,0.04);
  --shadow-md:  0 4px 12px rgba(26,45,90,0.13), 0 2px 6px rgba(26,45,90,0.07);
  --shadow-lg:  0 10px 30px rgba(26,45,90,0.18);

  --transition: 0.2s ease;
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── Contenedor ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Botones ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  text-align: center;
}

/* Dorado sobre marino (contraste 6.7:1) */
.btn--primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
}

/* Blanco contorno sobre marino (contraste 13.3:1) */
.btn--outline {
  background-color: transparent;
  color: var(--color-surface);
  border-color: var(--color-surface);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-surface);
  color: var(--color-primary);
}

/* Contorno dorado sobre marino */
.btn--outline-light {
  background-color: transparent;
  color: var(--color-surface);
  border-color: var(--color-secondary);
}
.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* Contorno dorado sobre oscuro (footer) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* ── Encabezados de sección ────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  max-width: 660px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Variante clara (sobre fondo oscuro) */
.section-header--light .section-title {
  color: var(--color-surface);
}
.section-header--light .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

/* ────────────────────────────────────────────────
   TOP BAR
   ──────────────────────────────────────────────── */
.topbar {
  background-color: var(--color-dark);
  color: var(--color-surface);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar__contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
}

.topbar__social {
  display: flex;
  gap: 0.4rem;
}

.topbar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-surface);
  font-size: 0.7rem;
  font-weight: 700;
  transition: background-color var(--transition), color var(--transition);
}

.topbar__social-link:hover,
.topbar__social-link:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* ────────────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
  position: relative;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.header__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header__tagline {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.72);
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón hamburguesa */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-surface);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Botones acceso rápido en header — ocultos en móvil */
.nav-desktop {
  display: none;
}

/* Menú de navegación */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  box-shadow: 0 6px 16px rgba(26, 45, 90, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav.is-open {
  max-height: 480px;
  overflow-y: auto;
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 1rem;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-secondary);
}

.nav__link--cta {
  background-color: var(--color-secondary);
  color: var(--color-primary) !important;
  font-weight: 700;
  text-align: center;
  margin-top: 0.4rem;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background-color: var(--color-secondary-dark) !important;
  color: var(--color-primary) !important;
}

/* ────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--space-xl) 0;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.hero__content {
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  background-color: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.55);
  color: var(--color-secondary);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(1.6rem, 5.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: var(--space-sm);
  background-image: linear-gradient(
    100deg,
    var(--color-surface) 0%,
    var(--color-surface) 42%,
    #fff6df 48%,
    var(--color-secondary) 52%,
    var(--color-surface) 58%,
    var(--color-surface) 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 26px rgba(245, 166, 35, 0.22);
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__image-wrap {
  width: 175px;
  flex-shrink: 0;
}

.hero__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* ────────────────────────────────────────────────
   ANUNCIOS SINDICALES
   ──────────────────────────────────────────────── */
.announcements {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface);
}

.announcements__feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.announcement-card {
  background-color: var(--color-background);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.announcement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.announcement-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.tag {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.announcement-card__meta time {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.announcement-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.announcement-card__body {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.link-more {
  color: var(--color-secondary-dark);
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--color-primary);
}

/* ────────────────────────────────────────────────
   SOBRE NOSOTROS
   ──────────────────────────────────────────────── */
.about {
  padding: var(--space-2xl) 0;
  background-color: var(--color-background);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about__label {
  display: inline-block;
  color: var(--color-secondary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.28;
  margin-bottom: var(--space-sm);
}

.about__text {
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.7;
  font-size: 0.97rem;
}

.about__list {
  list-style: disc;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.about__actions {
  margin-top: var(--space-sm);
}

/* ────────────────────────────────────────────────
   OBJETIVOS Y FINES
   ──────────────────────────────────────────────── */
.objectives {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface);
}

.objectives__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.objective-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.objective-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.objective-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.objective-card__title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.objective-card__text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ────────────────────────────────────────────────
   DECLARACIÓN / STATEMENT
   ──────────────────────────────────────────────── */
.statement {
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--space-2xl) 0;
}

.statement__content {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.statement__title {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-surface);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.statement__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.03rem;
  line-height: 1.72;
  margin-bottom: var(--space-md);
}

/* ────────────────────────────────────────────────
   AFILIACIÓN
   ──────────────────────────────────────────────── */
.membership {
  padding: var(--space-2xl) 0;
  background-color: var(--color-background);
}

.membership__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.membership__title {
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.28;
  margin-bottom: var(--space-sm);
}

.membership__text {
  color: var(--color-text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.membership__sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-sm) 0 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
}

.membership__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.membership__list li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
}

.membership__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary-dark);
  font-size: 0.85rem;
  top: 0.05em;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem var(--space-sm);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 0.65rem;
  transition: box-shadow var(--transition);
}

.benefit-item:hover {
  box-shadow: var(--shadow-sm);
}

.benefit-item__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item__text {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  padding-top: 0.45rem;
}

.membership__cta {
  margin-top: var(--space-sm);
}

/* ────────────────────────────────────────────────
   ESTRUCTURA SINDICAL
   ──────────────────────────────────────────────── */
.structure {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface);
}

.structure__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.structure-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow var(--transition);
}

.structure-card:hover {
  box-shadow: var(--shadow-md);
}

.structure-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.structure-card__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.structure-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.structure-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.structure-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.structure-card__list li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.structure-card__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-secondary-dark);
  font-weight: 700;
}

/* ────────────────────────────────────────────────
   DERECHOS Y DEBERES
   ──────────────────────────────────────────────── */
.rights {
  padding: var(--space-2xl) 0;
  background: linear-gradient(150deg, #0d1a33 0%, var(--color-primary) 100%);
}

.rights__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.rights__column {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.rights__column--duties {
  border-top: 4px solid var(--color-secondary);
}

.rights__column--rights {
  border-top: 4px solid rgba(255, 255, 255, 0.35);
}

.rights__col-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.2;
}

.rights__col-icon {
  font-size: 1.1rem;
}

.rights__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.9);
}

.rights__item-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  margin-top: 0.5rem;
}

/* ────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────── */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
}

.footer__logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-sm);
}

.footer__col-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--color-secondary);
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background-color var(--transition), color var(--transition);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.footer__bottom {
  background-color: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: var(--space-sm);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
}

.footer__bottom nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__bottom nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
  transition: color var(--transition);
}

.footer__bottom nav a:hover,
.footer__bottom nav a:focus-visible {
  color: var(--color-secondary);
}

/* ════════════════════════════════════════════════
   BREAKPOINT 375px — ajustes mínimos
   ════════════════════════════════════════════════ */
@media (min-width: 375px) {
  :root {
    --container-pad: 1.15rem;
  }

  .topbar__contact {
    gap: 0.85rem;
  }
}

/* ════════════════════════════════════════════════
   BREAKPOINT 768px — tablet / desktop compacto
   ════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --container-pad: 1.5rem;
  }

  /* Header */
  .header__logo { width: 54px; height: 54px; }
  .header__name  { font-size: 1.2rem; }
  .header__tagline { display: block; }

  /* El botón de 3 rayas y el menú desplegable se mantienen en todos
     los tamaños de pantalla (también en escritorio). */

  /* ── Botones acceso rápido en header (desktop) ── */

  /* El header ocupa todo el ancho: logo | botones (flex:1, centrados) | hamburguesa */
  .nav-desktop {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
  }

  .nav-desktop__link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.48rem 1.35rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 99px;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .nav-desktop__link:hover,
  .nav-desktop__link:focus-visible {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
  }

  /* En desktop los 4 accesos rápidos están en el header, no en la hamburguesa */
  .nav__item--mobile {
    display: none;
  }

  /* Hero */
  .hero {
    padding: var(--space-2xl) 0;
    min-height: 520px;
  }

  .hero__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .hero__content {
    flex: 1;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__image-wrap {
    width: 215px;
    flex-shrink: 0;
    order: 2;
  }

  /* About */
  .about__inner {
    flex-direction: row;
    gap: var(--space-2xl);
    align-items: flex-start;
  }

  .about__block {
    flex: 1;
  }

  /* Objectives — 2 col */
  .objectives__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Membership — 2 col */
  .membership__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .membership__info {
    flex: 1;
  }

  .membership__benefits {
    flex: 1;
  }

  /* Structure — 2 col */
  .structure__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Rights — 2 col */
  .rights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer — 2 col */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer bottom */
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ════════════════════════════════════════════════
   BREAKPOINT 1200px — desktop amplio
   ════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  :root {
    --container-pad: 2rem;
  }

  /* Header */
  .header__logo  { width: 60px; height: 60px; }
  .header__name  { font-size: 1.3rem; }

  .nav__link {
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
  }

  /* Hero */
  .hero__image-wrap { width: 270px; }

  /* Objectives — 3 col */
  .objectives__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Structure — 3 col */
  .structure__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer — 4 col asimétrico */
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
  }
}

/* ════════════════════════════════════════════════
   ANIMACIONES — HERO ENTRANCE
   ════════════════════════════════════════════════ */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* Hero fondo animado */
.hero {
  background: linear-gradient(140deg, #0d1a33, #1a2d5a, #243d7a, #1a3a6a, #0d1a33);
  background-size: 300% 300%;
  animation: heroGradientShift 10s ease infinite;
}

/* Entrada escalonada de elementos del hero */
.hero__badge {
  animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.hero__title {
  animation:
    fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    titleShine 4.5s ease-in-out infinite;
  animation-delay: 0.28s, 1.4s;
}

.hero__desc {
  animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.44s;
}

.hero__actions {
  animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.58s;
}

/* Logo flota suavemente */
.hero__image-wrap {
  animation: fadeSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

.hero__img {
  animation: logoFloat 4s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* ════════════════════════════════════════════════
   ESTADÍSTICAS
   ════════════════════════════════════════════════ */

.stats {
  background-color: var(--color-primary);
  padding: var(--space-xl) 0;
  border-top: 3px solid var(--color-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-sm);
}

.stat-item__number {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.4rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hijos del stagger se animan en cascada */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.49s; }

/* Respeto por prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }

  .hero__badge, .hero__title, .hero__desc,
  .hero__actions, .hero__image-wrap, .hero__img,
  .reveal, .reveal-stagger > *,
  .hero::before, .hero__badge::before, .hero__scroll-cue span,
  .hero__image-tilt, .section-title::after,
  .objective-card__icon, .structure-card__icon,
  .btn--primary::after, .btn--secondary::after,
  .btn-float, .btn-float__icon, .scroll-progress,
  .stat-item__number.is-counted {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    text-shadow: none !important;
  }
}

/* ════════════════════════════════════════════════
   MEJORAS VISUALES — MOVIMIENTO
   (capa de pulido sobre el diseño existente,
   sin tocar contenido, orden ni IDs de sección)
   ════════════════════════════════════════════════ */

/* ── Barra de progreso de scroll ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1100;
  will-change: transform;
}

/* ── Hero: profundidad, badge vivo, scroll cue, tilt del logo ── */
.hero { position: relative; overflow: hidden; }

.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%; /* ← sube/baja encuadre: 0%=arriba 50%=centro 100%=abajo */
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  animation: videoZoomIn 18s ease-out infinite;
  transform-origin: center 55%;
}

@keyframes videoZoomIn {
  0%   { transform: scale(1.18); }   /* atrás — lejano */
  60%  { transform: scale(1.0);  }   /* adelante — normal */
  100% { transform: scale(1.18); }   /* reinicia suavemente */
}

.hero::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 25% 30%, rgba(245, 166, 35, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 75% 70%, rgba(140, 170, 230, 0.18) 0%, transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(245, 166, 35, 0.10) 0%, transparent 40%);
  animation: auroraDrift 24s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-2%, 2%) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__badge {
  position: relative;
  padding-left: 1.7rem;
}

.hero__badge::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  transform: translateY(-50%);
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.hero__image-wrap {
  perspective: 800px;
}

.hero__image-tilt {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus-visible {
  opacity: 1;
}

.hero__scroll-cue span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

@media (max-height: 560px) {
  .hero__scroll-cue { display: none; }
}

/* ── Subrayado animado en títulos de sección ── */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.section-header--light .section-title::after {
  background-color: var(--color-secondary);
}

.section-header.is-visible .section-title::after {
  transform: scaleX(1);
}

/* ── Íconos con entrada "pop" + más vida en hover ── */
.objective-card__icon,
.structure-card__icon {
  display: inline-block;
  transform: scale(0.5) rotate(-15deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
              opacity 0.5s ease 0.1s;
}

.reveal-stagger.is-visible .objective-card__icon,
.reveal-stagger.is-visible .structure-card__icon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.objective-card:hover .objective-card__icon {
  transform: scale(1.15) rotate(8deg);
}

.structure-card:hover .structure-card__icon {
  transform: scale(1.15) rotate(8deg);
}

/* ── Barrido de brillo en botones principales ── */
.btn--primary,
.btn--secondary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after,
.btn--secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn--primary:hover::after,
.btn--secondary:hover::after {
  left: 130%;
}

/* ── Botón flotante: entra tras el hero, ícono con pulso ── */
.btn-float {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-float.is-visible:hover {
  transform: translateY(-4px);
}

.btn-float__icon {
  animation: softPulse 2.4s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* ── Resplandor al terminar de contar las estadísticas ── */
.stat-item__number.is-counted {
  animation: numberGlow 1.1s ease-out;
}

@keyframes numberGlow {
  0%   { text-shadow: 0 0 0 rgba(245, 166, 35, 0); }
  40%  { text-shadow: 0 0 18px rgba(245, 166, 35, 0.85); }
  100% { text-shadow: 0 0 0 rgba(245, 166, 35, 0); }
}

/* ── Brillo tipo "shine" en el título del hero ── */
@keyframes titleShine {
  0%   { background-position: 200% 0; }
  55%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

/* ════════════════════════════════════════════════
   OPTIMIZACIONES MÓVIL
   ════════════════════════════════════════════════ */

/* Scroll compensa el header sticky en anclas */
html {
  scroll-padding-top: 72px;
}

/* Mejor rendering de texto en iOS y Android */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Evita flash de resaltado azul al tocar en iOS */
  -webkit-tap-highlight-color: transparent;
}

/* Todos los links y botones: mejor respuesta táctil */
a, button, [role="button"] {
  touch-action: manipulation;
}

/* Nav toggle: área táctil mínima 44×44px (no reafirma display: lo decide el breakpoint 768px) */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Social links topbar: área táctil mínima */
.topbar__social-link {
  width: 32px;
  height: 32px;
}

/* Efectos hover SOLO en dispositivos con puntero preciso (ratón) */
@media (hover: none) {
  .announcement-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .objective-card:hover {
    transform: none;
    box-shadow: none;
  }
  .structure-card:hover {
    box-shadow: none;
  }
  .benefit-item:hover {
    box-shadow: none;
  }
  /* Estado :active en lugar de :hover para feedback táctil */
  .announcement-card:active { transform: translateX(3px); }
  .objective-card:active    { box-shadow: var(--shadow-md); }
  .btn:active               { opacity: 0.85; }
}

/* ════════════════════════════════════════════════
   REDISEÑO MÓVIL — max-width: 1024px
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Topbar: ocultar en móvil ── */
  .topbar { display: none; }

  /* ── Header: cristal esmerilado con tagline visible ── */
  .header {
    background: rgba(10, 21, 45, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(245, 166, 35, 0.14);
    box-shadow: none;
  }
  .header__logo    { width: 36px; height: 36px; }
  .header__name    { font-size: 0.95rem; letter-spacing: 0.01em; }
  .header__tagline { font-size: 0.65rem; opacity: 0.72; }

  /* ── Hero: contenido arriba — display block + padding-top ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100svh;
    min-height: 100vh;
    padding-top: 4rem !important;
    padding-bottom: 0 !important;
  }

  .hero__inner {
    flex: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.5rem 1.5rem 8rem !important;
  }

  /* Logo: primero, 10% más grande, bien arriba */
  .hero__image-wrap { order: -1 !important; width: 121px !important; margin-bottom: 0 !important; }
  .hero__img { filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6)); }

  /* Badge y descripción: ocultos en móvil */
  .hero__badge { display: none !important; }
  .hero__desc  { display: none !important; }

  /* Título pegado justo debajo del logo */
  .hero__title {
    font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
    line-height: 1.18 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Botones: absolutos al fondo del hero__inner (flex:1 = altura completa) */
  .hero__actions {
    position: absolute;
    bottom: 11rem;
    left: 1.5rem;
    right: 1.5rem;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: auto;
    margin-top: 0;
  }

  .hero__actions .btn {
    width: min(260px, 88vw);
    text-align: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.93rem;
  }

  .hero__actions .btn--primary {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__actions .btn--outline {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.40) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ── Stats: 2×2 con divisores finos ── */
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-item {
    padding: 1.75rem 0.75rem;
    border-radius: 0;
    border-right:  1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat-item:nth-child(2n)  { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4)   { border-bottom: none; }

  .stat-item__number { font-size: 2.4rem; }
  .stat-item__label  { font-size: 0.74rem; letter-spacing: 0.04em; }

  /* ── Secciones: más aire vertical ── */
  .announcements,
  .about,
  .objectives,
  .statement,
  .membership,
  .structure,
  .rights { padding: 3.5rem 0; }

  .section-title { font-size: clamp(1.28rem, 5.5vw, 1.6rem); margin-bottom: 1.5rem; }

  /* ── Announcement cards: línea izquierda fina ── */
  .announcement-card {
    padding: 1rem 1rem 0.85rem;
    border-left-width: 3px;
  }
  .announcement-card__title { font-size: 0.98rem; }
  .announcement-card__body  { font-size: 0.86rem; }

  /* ── Objective cards: sin elevación, bordes sutiles ── */
  .objective-card {
    padding: 1.25rem;
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
  .objective-card__icon  { font-size: 1.55rem; margin-bottom: 0.65rem; }
  .objective-card__title { font-size: 0.93rem; }
  .objective-card__body  { font-size: 0.84rem; line-height: 1.6; }

  /* ── Structure cards: sin elevación ── */
  .structure-card {
    box-shadow: none;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
  }

  /* ── Rights grid: 1 columna ── */
  .rights__grid { grid-template-columns: 1fr; }

  /* ── Botón flotante: compacto ── */
  .btn-float {
    bottom: 1.1rem;
    left: 1.1rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    gap: 0.35rem;
    min-height: 44px;
  }
  .btn-float__icon { font-size: 1rem; }

  /* ── Footer: una columna limpia ── */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Pantallas < 480px — ajustes extra-small ── */
@media (max-width: 479px) {
  .hero__image-wrap { width: 95px; }
  .hero__title      { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .hero__desc       { font-size: 0.83rem; }

  .stat-item        { padding: 1.4rem 0.5rem; }
  .stat-item__number { font-size: 2rem; }

  .announcements,
  .about,
  .objectives,
  .statement,
  .membership,
  .structure,
  .rights { padding: 2.75rem 0; }

  .footer__grid { padding-block: 2.75rem 2rem; }
  .membership__cta { margin-top: 1rem; }
}

/* ── Safe area para iPhone con notch / Dynamic Island ── */
@supports (padding: env(safe-area-inset-top)) {
  .header {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .topbar {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .footer__bottom {
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  }
}

/* ── will-change solo en elementos activamente animados ── */
.hero__img,
.hero__image-wrap {
  will-change: transform;
}

.reveal,
.reveal-stagger > * {
  will-change: transform, opacity;
}

/* Limpiar will-change después de que la animación termina */
.reveal.is-visible,
.reveal-stagger.is-visible > * {
  will-change: auto;
}

/* ════════════════════════════════════════════════
   BOTÓN FLOTANTE — AFILIACIÓN
   ════════════════════════════════════════════════ */

.btn-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(26, 45, 90, 0.35), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  min-height: 48px;
}

.btn-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26, 45, 90, 0.4), 0 4px 12px rgba(0,0,0,0.18);
  background-color: var(--color-secondary-dark);
}

.btn-float:active {
  transform: translateY(-1px);
}

.btn-float__icon {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.btn-float__text {
  letter-spacing: 0.02em;
}

/* Ocultar en la propia página de afiliación */
.page-afiliacion .btn-float { display: none; }

/* ════════════════════════════════════════════════
   PÁGINA DE AFILIACIÓN — FORMULARIO
   ════════════════════════════════════════════════ */

.af-back-btn {
  color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.af-main {
  background-color: var(--color-background);
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.af-container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.af-container--wide {
  max-width: 1100px;
}

/* ── Visor de PDF (Convención Colectiva) ── */
.pdf-download { margin-top: 1.25rem; }

.pdf-viewer-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 1.5rem;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  border: none;
}

.pdf-viewer p {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-secondary);
}

.pdf-mobile-cta {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.pdf-mobile-cta p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .pdf-viewer-wrap { display: none; }
  .pdf-mobile-cta  { display: block; }
}

/* ── Contenido legal (Política de Privacidad) ── */
.legal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-top: 1.5rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 1.75rem 0 0.6rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.legal-content li { margin-bottom: 0.35rem; }

/* Mensaje de éxito */
.af-success {
  background-color: var(--color-surface);
  border: 2px solid #22a865;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.af-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #22a865;
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.af-success h2 { color: var(--color-primary); margin-bottom: 0.5rem; }
.af-success p  { color: var(--color-text-secondary); margin-bottom: 1.5rem; }

.af-success__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Formulario */
.af-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Encabezado del documento */
.af-doc-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-primary);
}

.af-doc-header__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.af-doc-header__union {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.af-doc-header__acronym {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.af-doc-header__legal,
.af-doc-header__address,
.af-doc-header__email {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Fila de fecha */
.af-date-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.af-date-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.af-input--date {
  width: auto;
}

/* Texto formal */
.af-letter-body {
  background-color: var(--color-background);
  border-left: 3px solid var(--color-secondary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.af-letter-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  text-align: justify;
}

/* Fieldset */
.af-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.af-fieldset__legend {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--color-surface);
  background-color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Filas de campos */
.af-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.af-row--1  { grid-template-columns: 1fr; }
.af-row--2  { grid-template-columns: 1fr 1fr; }
.af-row--3  { grid-template-columns: 1fr 1fr 1fr; }
.af-row--nacimiento {
  grid-template-columns: 60px 60px 80px 1fr 100px;
  align-items: end;
}

.af-field { display: flex; flex-direction: column; gap: 0.3rem; }
.af-field--grow { flex: 1; }

.af-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.af-req { color: #c0392b; }

.af-input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.af-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 45, 90, 0.12);
}

.af-input.af-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.af-input--sm { text-align: center; }

/* Área de firma */
.af-signature-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.af-signature-block {
  flex: 1;
  min-width: 180px;
}

.af-signature-line {
  height: 56px;
  border-bottom: 2px solid var(--color-dark);
  margin-bottom: 0.4rem;
}

.af-signature-label {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Sección Junta Directiva */
.af-junta {
  background-color: #f8f0e8;
  border: 1px solid #d4860f;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.af-junta__title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.af-junta__text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 0.75rem;
}

.af-junta__blank {
  display: inline-block;
  border-bottom: 1px solid var(--color-dark);
  min-width: 40px;
  margin: 0 0.25rem;
  vertical-align: bottom;
}

.af-junta__blank--md { min-width: 60px; }
.af-junta__blank--lg { min-width: 120px; }

.af-junta__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Botones de acción */
.af-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.af-btn-submit { min-width: 200px; }

.af-error {
  text-align: center;
  color: #c0392b;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

/* Honeypot antibot — invisible para humanos */
.af-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* ── Formulario: título interno, texto de fieldset, opciones ── */
.af-form-title {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin: 1.5rem 0 1.25rem;
}

.af-fieldset__intro {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.af-field--concepto { margin-bottom: 1rem; }

.af-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.4rem;
}

.af-radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  cursor: pointer;
}

.af-radio-option input { accent-color: var(--color-primary); }

.af-radio-row.af-invalid {
  outline: 2px solid #c0392b;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ── Consentimiento de tratamiento de datos personales ── */
.af-consent {
  margin: 1.25rem 0;
}

.af-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-primary);
  line-height: 1.5;
  cursor: pointer;
}

.af-consent__option input {
  accent-color: var(--color-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.af-consent__option a {
  color: var(--color-primary);
  text-decoration: underline;
}

.af-consent.af-invalid {
  outline: 2px solid #c0392b;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ── Tarjetas de Formatos (hub gateado) ── */
.formatos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Wrapper de cada tarjeta — necesario para posicionar el overlay de candado */
.formato-card-wrap {
  position: relative;
  border-radius: var(--radius-md);
}

.formato-card {
  display: block;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              opacity var(--transition);
}

.formato-card:hover,
.formato-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.formato-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.formato-card__title { color: var(--color-primary); margin-bottom: 0.4rem; font-size: 1.1rem; }
.formato-card__text { color: var(--color-text-secondary); font-size: 0.9rem; }

/* ── Estado BLOQUEADO: tarjetas visibles pero inaccesibles ── */

/* La tarjeta se opaca y no responde a clics */
.formatos__grid--locked .formato-card {
  pointer-events: none;
  opacity: 0.9;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Overlay con candado: cubre la tarjeta y muestra el icono de bloqueo */
.formatos__grid--locked .formato-card-wrap::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: rgba(10, 21, 45, 0.15);
  border-radius: var(--radius-md);
  cursor: not-allowed;
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  transition: background var(--transition);
}

.formatos__grid--locked .formato-card-wrap:hover::after {
  background: rgba(10, 21, 45, 0.28);
}

/* ── Control de acceso (Google Sign-In / Firebase) ── */
.auth-gate__panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.auth-gate__panel--approved {
  text-align: left;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.auth-gate__title { color: var(--color-primary); margin-bottom: 0.5rem; }

.auth-gate__panel p { color: var(--color-text-secondary); margin-bottom: 1.25rem; }
.auth-gate__panel p:last-child { margin-bottom: 0; }

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-user-photo {
  border-radius: 50%;
  display: inline-block;
  margin: 0 auto 0.75rem;
  object-fit: cover;
}

.auth-gate__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.auth-gate__user[hidden] { display: none; }

.auth-gate__user .auth-user-photo { margin: 0; }

.auth-signout-sm {
  margin-left: auto;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* ── Responsive del formulario ────────────── */
@media (max-width: 640px) {
  .af-form { padding: 1.25rem; }
  .af-doc-header { flex-direction: column; text-align: center; }
  .af-row--2 { grid-template-columns: 1fr; }
  .af-row--3 { grid-template-columns: 1fr; }
  .af-row--nacimiento { grid-template-columns: 1fr 1fr 1fr; }
  .af-row--nacimiento .af-field--grow { grid-column: 1 / -1; }
  .af-row--nacimiento .af-field:last-child { grid-column: 1 / -1; }
  .af-signature-row { flex-direction: column; }
  .af-actions { flex-direction: column; }
  .af-btn-submit { width: 100%; }
  .auth-gate__user { flex-direction: column; align-items: flex-start; }
  .auth-signout-sm { margin-left: 0; }
}

@media (min-width: 640px) {
  .formatos__grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   CSS DE IMPRESIÓN
   ════════════════════════════════════════════════ */

@media print {
  @page { size: letter portrait; margin: 1.2cm 1.5cm; }

  /* ── Ocultar elementos web ── */
  .header, .af-back-btn, .af-actions, .af-error,
  .af-success__actions, .btn-float, .no-print,
  .af-success { display: none !important; }

  /* ── Base ── */
  *, *::before, *::after { box-sizing: border-box; }

  html, body, .af-main, .af-container,
  .auth-gate, .auth-gate__panel, .auth-gate__panel--approved {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  body, .af-main {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 9pt;
    line-height: 1.35;
    color: #000;
  }

  .af-container { max-width: 100%; padding: 0; }

  .af-form {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* ── Encabezado del documento ── */
  .af-doc-header {
    display: flex !important;
    align-items: center !important;
    gap: 10pt !important;
    border-bottom: 1.5pt solid #000 !important;
    padding-bottom: 7pt !important;
    margin-bottom: 10pt !important;
  }

  .af-doc-header__logo img {
    width: 62pt !important;
    height: 62pt !important;
  }

  .af-doc-header__union   { font-size: 9.5pt !important; font-weight: 700 !important; margin-bottom: 2pt !important; }
  .af-doc-header__acronym { font-size: 8.5pt !important; letter-spacing: 0.1em !important; margin-bottom: 2pt !important; }
  .af-doc-header__legal,
  .af-doc-header__address,
  .af-doc-header__email   { font-size: 7.5pt !important; line-height: 1.55 !important; }

  /* ── Fecha ── */
  .af-date-row {
    display: flex !important;
    align-items: center !important;
    gap: 8pt !important;
    margin-bottom: 10pt !important;
  }

  .af-date-label { font-size: 9pt !important; font-weight: 700 !important; white-space: nowrap !important; }
  .af-input--date {
    font-size: 9pt !important;
    border: none !important;
    border-bottom: 1pt solid #000 !important;
    padding: 1pt 3pt !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* ── Texto formal ── */
  .af-letter-body {
    border-left: 2pt solid #000 !important;
    background: white !important;
    padding: 6pt 11pt !important;
    margin-bottom: 9pt !important;
  }

  .af-letter-body p {
    font-size: 8pt !important;
    line-height: 1.65 !important;
    color: #000 !important;
    text-align: justify !important;
  }

  /* ── Fieldset de datos personales ── */
  .af-fieldset {
    border: 1pt solid #444 !important;
    padding: 6pt 10pt 8pt !important;
    margin-bottom: 8pt !important;
  }

  .af-fieldset__legend {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    background-color: #000 !important;
    color: #fff !important;
    padding: 2pt 7pt !important;
  }

  /* Grillas de campos */
  .af-row { gap: 8pt !important; margin-bottom: 9pt !important; }
  .af-row--2 { grid-template-columns: 1fr 1fr !important; }
  .af-row--3 { grid-template-columns: 1fr 1fr 1fr !important; }
  .af-row--nacimiento {
    grid-template-columns: 36pt 36pt 50pt 1fr 80pt !important;
    gap: 6pt !important;
  }
  .af-row--1 { grid-template-columns: 1fr !important; }

  /* Labels e inputs */
  .af-label {
    font-size: 7pt !important;
    color: #333 !important;
    margin-bottom: 1pt !important;
    line-height: 1.3 !important;
  }

  .af-input {
    border: none !important;
    border-bottom: 1pt solid #000 !important;
    border-radius: 0 !important;
    padding: 2pt 2pt 2pt 0 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .af-input--sm { text-align: center !important; }

  /* ── Firma ── */
  .af-signature-row {
    display: flex !important;
    align-items: flex-end !important;
    gap: 14pt !important;
    background: white !important;
    border: 1pt dashed #999 !important;
    padding: 6pt 10pt !important;
    margin-bottom: 8pt !important;
    flex-wrap: nowrap !important;
  }

  .af-signature-block { flex: 2 !important; }

  .af-signature-line {
    height: 46pt !important;
    border-bottom: 1.25pt solid #000 !important;
    margin-bottom: 3pt !important;
  }

  .af-signature-label { font-size: 7.5pt !important; text-align: center !important; }

  .af-signature-row .af-field { flex: 1 !important; min-width: 0 !important; }

  /* ── Junta Directiva ── */
  .af-junta {
    background: #f5f5f5 !important;
    border: 1pt solid #999 !important;
    padding: 8pt 12pt !important;
    margin-bottom: 0 !important;
  }

  .af-junta__title { font-size: 7.5pt !important; margin-bottom: 5pt !important; }
  .af-junta__text  { font-size: 8.5pt !important; line-height: 2.2 !important; margin-bottom: 6pt !important; }
  .af-junta__field { font-size: 8.5pt !important; gap: 4pt !important; }
  .af-junta__blank { border-bottom: 1pt solid #000 !important; }
  .af-junta .af-row { margin-bottom: 0 !important; gap: 10pt !important; }

  /* ── Devolución / Préstamos: elementos adicionales ── */
  .af-form-title { font-size: 10pt !important; margin: 8pt 0 9pt !important; }
  .af-fieldset__intro { font-size: 8pt !important; margin-bottom: 6pt !important; }
  .af-radio-row { gap: 4pt 14pt !important; margin-top: 2pt !important; }
  .af-radio-option { font-size: 8pt !important; gap: 3pt !important; }

  /* Condiciones de Pago en hoja 2, como en el documento original */
  .af-page-break {
    page-break-before: always !important;
    break-before: page !important;
    padding-top: 4pt !important;
  }
}
