/* ================================================================
   SINTA – Sindicato Nacional de Trabajadores por Aplicación
   Hoja de estilos principal
   ================================================================ */

:root {
  --red:        #C8102E;
  --red-dark:   #9B0B22;
  --yellow:     #FFD100;
  --yellow-dark:#E6BC00;
  --black:      #111111;
  --gray-dark:  #2A2A2A;
  --gray:       #555;
  --gray-light: #F4F4F4;
  --white:      #FFFFFF;
  --border:     #E0E0E0;
  --shadow:     0 4px 24px rgba(0,0,0,.12);
  --radius:     10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--black); background: var(--white); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black); color: var(--white);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 9999; flex-wrap: wrap;
  font-size: .85rem;
}
#cookie-banner a { color: var(--yellow); text-decoration: underline; }
#cookie-banner .btn-cookie {
  background: var(--yellow); color: var(--black);
  border: none; padding: 8px 20px; border-radius: 6px;
  font-weight: 700; font-size: .85rem; white-space: nowrap;
}

/* ── HEADER ── */
header {
  background: var(--black);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.header-top {
  background: var(--red);
  text-align: center;
  padding: 6px 24px;
  font-size: .78rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: .04em;
}
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 40px; gap: 20px;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 1.15rem;
  color: var(--black); flex-shrink: 0;
  border: 3px solid var(--white);
}
.logo-text { color: var(--white); }
.logo-text .name  { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; }
.logo-text .slogan { font-size: .72rem; color: var(--yellow); font-weight: 500; letter-spacing: .03em; }

/* ── SEARCH BAR in header ── */
.header-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px; padding: 6px 14px; gap: 8px;
  max-width: 240px; flex: 1;
}
.header-search input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: .85rem; width: 100%;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button { background: none; border: none; color: var(--yellow); font-size: 1rem; padding: 0; }

/* ── NAV ── */
nav { background: var(--gray-dark); }
.nav-inner {
  display: flex; align-items: center;
  padding: 0 40px; gap: 2px; overflow-x: auto;
}
.nav-inner::-webkit-scrollbar { height: 3px; }
.nav-inner::-webkit-scrollbar-thumb { background: var(--red); }
.nav-btn {
  background: none; border: none;
  color: rgba(255,255,255,.8);
  font-size: .82rem; font-weight: 600;
  padding: 13px 18px;
  white-space: nowrap;
  letter-spacing: .03em;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-btn:hover { color: var(--yellow); }
.nav-btn.active { color: var(--yellow); }
.nav-btn.active::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 3px; background: var(--yellow); border-radius: 2px 2px 0 0;
}
.nav-afiliarse {
  margin-left: auto;
  background: var(--red); color: var(--white) !important;
  padding: 8px 22px !important; border-radius: 6px;
  font-weight: 700 !important;
  margin-top: 4px; margin-bottom: 4px;
}
.nav-afiliarse:hover { background: var(--red-dark) !important; }
.nav-afiliarse.active::after { display: none; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 60%, var(--red-dark) 100%);
  color: var(--white);
  padding: 80px 40px;
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: var(--yellow); opacity: .07;
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; right: 100px;
  width: 250px; height: 250px;
  background: var(--red); opacity: .15;
  border-radius: 50%;
}
.hero-content { max-width: 680px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--yellow); color: var(--black);
  font-size: .72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; margin-bottom: 16px; line-height: 1.1; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: var(--white);
  border: none; padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: 12px 28px; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--yellow); background: rgba(255,209,0,.1); }

/* ── SECTION WRAPPER ── */
.section { padding: 64px 40px; }
.section-alt { background: var(--gray-light); }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 1.9rem; margin-bottom: 8px; }
.section-header p { color: var(--gray); font-size: .95rem; }
.section-header .accent { color: var(--red); }
.divider { width: 48px; height: 4px; background: var(--yellow); margin: 10px 0 16px; border-radius: 2px; }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.card-img { height: 180px; overflow: hidden; background: var(--gray-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); font-size: 2.5rem;
}
.card-body { padding: 20px; }
.card-tag {
  display: inline-block;
  background: var(--yellow); color: var(--black);
  font-size: .68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 12px;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 10px;
}
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.card-text { font-size: .85rem; color: var(--gray); margin-bottom: 14px; }
.card-date { font-size: .75rem; color: var(--gray); display: flex; align-items: center; gap: 5px; }
.card-link { display: inline-block; color: var(--red); font-weight: 700; font-size: .85rem; margin-top: 12px; }
.card-link:hover { text-decoration: underline; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--red); color: var(--white);
  padding: 32px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px; text-align: center;
}
.stat-item .num  { font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 900; color: var(--yellow); }
.stat-item .label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }

/* ── SOCIAL MEDIA ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.social-card {
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; color: var(--white);
  transition: transform .2s, filter .2s;
  cursor: pointer;
}
.social-card:hover { transform: translateY(-4px); filter: brightness(1.1); }
.social-card .icon  { font-size: 2rem; margin-bottom: 10px; }
.social-card .sname { font-weight: 700; font-size: .9rem; }
.social-card .suser { font-size: .75rem; opacity: .8; margin-top: 4px; }
.sc-fb { background: linear-gradient(135deg, #1877F2, #0D5DBF); }
.sc-tw { background: linear-gradient(135deg, #000, #333); }
.sc-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sc-yt { background: linear-gradient(135deg, #FF0000, #CC0000); }
.sc-tk { background: linear-gradient(135deg, #000, #333); }
.sc-wa { background: linear-gradient(135deg, #25D366, #128C7E); }

/* ── PHOTO GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; background: var(--gray-light);
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(200,16,46,.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
  color: var(--white); font-size: .8rem; font-weight: 600;
  gap: 6px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-dark), var(--black));
  color: rgba(255,255,255,.2); font-size: 2.5rem;
}

/* ── SECRETARÍAS ── */
.secretarias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.sec-card {
  border-left: 4px solid var(--red);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.sec-card:hover { transform: translateX(4px); }
.sec-icon  { font-size: 1.8rem; margin-bottom: 10px; }
.sec-title { font-size: 1rem; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.sec-desc  { font-size: .83rem; color: var(--gray); }
.sec-titular { font-size: .78rem; margin-top: 10px; color: var(--black); font-weight: 600; }
.sec-titular span { font-weight: 400; color: var(--gray); }

/* ── CONVOCATORIAS ── */
.conv-list { display: flex; flex-direction: column; gap: 16px; }
.conv-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px;
  display: flex; gap: 20px; align-items: flex-start;
  border-left: 4px solid var(--yellow);
  transition: transform .2s;
}
.conv-item:hover { transform: translateX(4px); }
.conv-date-box {
  background: var(--red); color: var(--white);
  border-radius: 8px; padding: 10px 14px;
  text-align: center; min-width: 58px; flex-shrink: 0;
}
.conv-date-box .day   { font-size: 1.5rem; font-weight: 900; font-family: 'Montserrat', sans-serif; line-height: 1; }
.conv-date-box .month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.conv-info .title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.conv-info .desc  { font-size: .83rem; color: var(--gray); }
.conv-info .meta  { font-size: .75rem; color: var(--gray); margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.badge-status {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  margin-left: 10px;
}
.badge-open   { background: #E8F5E9; color: #2E7D32; }
.badge-closed { background: #FFEBEE; color: #C62828; }
.badge-soon   { background: #FFF8E1; color: #F57F17; }

/* ── BENEFICIOS DE AFILIARTE ── */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 20px;
  text-align: center; transition: transform .2s;
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon  { font-size: 2.2rem; margin-bottom: 10px; }
.benefit-title { font-size: .95rem; font-weight: 800; margin-bottom: 6px; }
.benefit-desc  { font-size: .82rem; color: var(--gray); line-height: 1.5; }

/* ── APP SINTA DEL AFILIADO (promo en el home) ── */
.app-promo-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 48px; align-items: center;
}
.app-promo-features { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.app-promo-features li { display: flex; align-items: flex-start; gap: 14px; }
.app-promo-features strong { font-size: .92rem; }
.app-promo-features div { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.app-promo-ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.app-promo-hint { font-size: .76rem; color: var(--gray); margin-top: 10px; font-style: italic; }

.app-promo-visual { display: flex; justify-content: center; }
.app-phone-mock {
  width: 200px; height: 400px; background: var(--black);
  border-radius: 32px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  position: relative;
}
.app-phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 16px; background: var(--black);
  border-radius: 0 0 10px 10px; z-index: 1;
}
.app-phone-screen {
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  width: 100%; height: 100%; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 20px;
}
.app-phone-sos {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--white); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem;
  box-shadow: 0 0 0 8px rgba(255,255,255,.18);
}
.app-phone-line { width: 70%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); }
.app-phone-line.short { width: 45%; }

@media (max-width: 900px) {
  .app-promo-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-promo-visual { order: -1; }
  .app-phone-mock { width: 160px; height: 320px; }
  .app-phone-sos { width: 78px; height: 78px; font-size: 1.1rem; }
}

/* ── PLATAFORMAS CON MODELO DE CCT AUTORIZADO ── */
.platforms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.platform-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.platform-mark {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--white); border: 1px solid var(--border);
}
.platform-mark img { width: 100%; height: 100%; object-fit: contain; }
.platform-mark svg { width: 24px; height: 24px; fill: var(--black); }
.platform-mark--mono {
  border-radius: 50%; border: none;
  background: var(--black); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .75rem;
  letter-spacing: .02em;
}
.platform-card:nth-child(3n+2) .platform-mark--mono { background: var(--red); }
.platform-card:nth-child(3n+3) .platform-mark--mono { background: var(--yellow-dark); color: var(--black); }
.platform-name { font-size: .85rem; font-weight: 700; }
.platform-sub  { font-size: .68rem; color: var(--gray); }
.platforms-source { font-size: .75rem; color: var(--gray); margin-top: 24px; text-align: center; }

/* ── DOCUMENTOS ── */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.doc-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; transition: transform .2s;
}
.doc-card:hover { transform: translateY(-4px); }
.doc-icon  { font-size: 3rem; margin-bottom: 4px; }
.doc-title { font-size: 1rem; font-weight: 700; }
.doc-desc  { font-size: .82rem; color: var(--gray); }
.doc-btn {
  background: var(--red); color: var(--white);
  border: none; padding: 10px 24px; border-radius: 6px;
  font-weight: 700; font-size: .85rem; margin-top: auto;
  transition: background .2s;
}
.doc-btn:hover { background: var(--red-dark); }

/* ── FORM AFILIACIÓN ── */
.form-container {
  max-width: 780px; margin: 0 auto;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  overflow: hidden;
}
.form-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white); padding: 32px 40px;
}
.form-header h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-header p  { font-size: .88rem; opacity: .85; }
.form-steps {
  display: flex; background: var(--black); padding: 0 40px;
  overflow-x: auto;
}
.form-step-indicator {
  padding: 12px 20px;
  color: rgba(255,255,255,.4);
  font-size: .78rem; font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.form-step-indicator.active { color: var(--yellow); border-color: var(--yellow); }
.form-step-indicator.done   { color: rgba(255,255,255,.7); }
.form-body { padding: 36px 40px; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .83rem; font-weight: 700;
  margin-bottom: 6px; color: var(--black);
}
.form-group label .opt { font-weight: 400; color: var(--gray); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  font-size: .9rem; font-family: 'Inter', sans-serif;
  color: var(--black);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group .hint     { font-size: .75rem; color: var(--gray); margin-top: 5px; }
.form-group .footnote { font-size: .72rem; color: var(--gray); margin-top: 4px; font-style: italic; }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.checkbox-item:hover { border-color: var(--red); background: #FFF5F7; }
.checkbox-item input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  accent-color: var(--red); cursor: pointer;
  border: none; padding: 0;
}
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.radio-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.radio-item:hover { border-color: var(--red); }
.radio-item input { accent-color: var(--red); width: 16px; height: 16px; }
.radio-item.selected { border-color: var(--red); background: #FFF5F7; }
.conditional-block {
  display: none;
  background: var(--gray-light); border-radius: 8px;
  padding: 20px; margin-top: 12px; border-left: 3px solid var(--yellow);
}
.conditional-block.show { display: block; }
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px; background: var(--gray-light);
  border-top: 1px solid var(--border);
}
.btn-next {
  background: var(--red); color: var(--white);
  border: none; padding: 12px 32px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  transition: background .2s;
}
.btn-next:hover { background: var(--red-dark); }
.btn-back {
  background: transparent; color: var(--gray);
  border: 1.5px solid var(--border);
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.btn-back:hover { border-color: var(--gray); color: var(--black); }
.privacy-note {
  background: #FFF8E1; border: 1px solid var(--yellow);
  border-radius: 8px; padding: 14px 18px;
  font-size: .78rem; color: #5D4037; margin-bottom: 20px;
}
.privacy-note a { color: var(--red); font-weight: 600; }
.success-state {
  text-align: center; padding: 48px 40px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-state h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--black); }
.success-state p  { color: var(--gray); max-width: 420px; margin: 0 auto; }

/* ── ADMIN PANEL ── */
.admin-login {
  max-width: 420px; margin: 60px auto;
  background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow); padding: 40px; text-align: center;
}
.admin-login h2 { margin-bottom: 24px; font-size: 1.5rem; }
.admin-panel { max-width: 1000px; margin: 0 auto; padding: 40px; }
.admin-panel h2 { font-size: 1.6rem; margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-tab {
  background: var(--gray-light); border: none;
  padding: 9px 20px; border-radius: 6px;
  font-size: .82rem; font-weight: 700; color: var(--gray);
  transition: background .2s, color .2s;
}
.admin-tab.active { background: var(--red); color: var(--white); }
.afil-filtro {
  background: var(--gray-light); border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 6px;
  font-size: .82rem; font-weight: 700; color: var(--gray);
  transition: background .2s, color .2s;
}
.afil-filtro.active { background: var(--red); color: var(--white); }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { background: var(--black); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 700; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--gray-light); }
.btn-sm { padding: 5px 12px; border-radius: 5px; font-size: .75rem; font-weight: 700; border: none; cursor: pointer; }
.btn-edit { background: #E3F2FD; color: #1565C0; }
.btn-del  { background: #FFEBEE; color: #C62828; }
.btn-ok   { background: #E8F5E9; color: #2E7D32; }
.admin-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 16px;
}
.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea {
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 9px 12px; font-family: 'Inter', sans-serif; font-size: .85rem;
}
.admin-form-row textarea { resize: vertical; min-height: 80px; }
.admin-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.admin-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.btn-add {
  background: var(--red); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 7px; font-weight: 700; font-size: .85rem;
  margin-bottom: 20px;
}
.counter-boxes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
  margin-bottom: 24px;
}
.counter-box {
  background: var(--white); border-radius: 10px;
  box-shadow: var(--shadow); padding: 18px; text-align: center;
}
.counter-box .cnum  { font-size: 2rem; font-weight: 900; font-family: 'Montserrat', sans-serif; }
.counter-box .clabel { font-size: .75rem; color: var(--gray); text-transform: uppercase; font-weight: 600; }

/* ── FOOTER ── */
footer { background: var(--black); color: var(--white); }
.footer-main {
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-name   { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem; margin-bottom: 6px; }
.footer-brand .footer-slogan { color: var(--yellow); font-weight: 700; font-size: .95rem; margin-bottom: 14px; font-style: italic; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.fsoc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; border: 1.5px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.fsoc-btn:hover { background: var(--red); border-color: var(--red); }
.footer-col h4 {
  font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--yellow); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── MODALS ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 9000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 14px;
  max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.modal-box h2 { font-size: 1.4rem; margin-bottom: 20px; padding-right: 32px; }
.modal-box p,
.modal-box li { font-size: .85rem; color: var(--gray); margin-bottom: 10px; line-height: 1.7; }
.modal-box h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; color: var(--black); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--gray-light); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── SEARCH RESULTS ── */
#search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 1001; max-height: 320px; overflow-y: auto;
  display: none;
}
#search-results.open { display: block; }
.sr-item {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: .85rem;
  transition: background .15s;
}
.sr-item:hover { background: var(--gray-light); }
.sr-item strong { color: var(--red); }
.search-wrapper { position: relative; flex: 1; max-width: 240px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-main { padding: 12px 20px; }
  .nav-inner    { padding: 0 16px; }
  .hero         { padding: 48px 20px; min-height: 360px; }
  .section      { padding: 48px 20px; }
  .footer-main  { grid-template-columns: 1fr 1fr; padding: 40px 20px 30px; }
  .footer-bottom { padding: 16px 20px; }
  .form-row     { grid-template-columns: 1fr; }
  .form-body, .form-header, .form-nav { padding-left: 20px; padding-right: 20px; }
  .stats-bar    { padding: 24px 20px; }
  .admin-panel  { padding: 20px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .modal-box    { padding: 24px; }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .platform-card  { padding: 12px 8px; }
  .platform-mark  { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .footer-main    { grid-template-columns: 1fr; }
  .logo-text .name { font-size: 1.1rem; }
  .hero h1        { font-size: 1.7rem; }
  .platforms-grid { gap: 8px; }
  .platform-card  { padding: 10px 6px; }
  .platform-name  { font-size: .74rem; }
  .platform-sub   { font-size: .6rem; }
}

/* ── ADMIN: nuevos estilos para panel con BD ── */
.gdrive-preview {
  margin-top: 8px;
  min-height: 36px;
}
.gdrive-preview img {
  max-height: 110px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: block;
}
.gdrive-hint {
  font-size: .72rem;
  color: var(--gray);
  margin-top: 4px;
  font-style: italic;
}
/* Miniaturas de las fotos de una noticia en el panel admin */
.fotos-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.foto-item {
  position: relative; width: 116px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); background: var(--gray-light);
}
.foto-item img { width: 100%; height: 82px; object-fit: cover; display: block; }
.foto-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--red); color: var(--white);
  font-size: .6rem; font-weight: 800; padding: 2px 6px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.foto-acciones { display: flex; justify-content: center; gap: 2px; padding: 3px; background: var(--white); }
.foto-acciones button {
  border: none; background: var(--gray-light); color: var(--gray-dark);
  border-radius: 4px; padding: 2px 7px; font-size: .72rem; cursor: pointer; line-height: 1.4;
}
.foto-acciones button:hover { background: var(--border); }
.foto-acciones button.quitar { background: #FFEBEE; color: #C62828; }
.cancel-edit-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  transition: border-color .2s, color .2s;
}
.cancel-edit-btn:hover { border-color: var(--red); color: var(--red); }
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.admin-form-actions .btn-add { margin-bottom: 0; }
.loading-row td {
  text-align: center;
  color: var(--gray);
  padding: 20px;
  font-style: italic;
  font-size: .85rem;
}
.tag-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
}
.export-btn {
  background: #1B5E20;
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 16px;
}
.export-btn:hover { background: #145218; }
.admin-alert {
  background: var(--gray-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--gray-dark);
  margin-bottom: 16px;
}
.admin-alert.error { border-color: var(--red); background: #FFF5F7; }
.admin-alert.success { border-color: #2E7D32; background: #F1F8E9; color: #1B5E20; }

/* ── LOGO IMAGEN ── */
.logo-img {
  height: clamp(48px, 7vw, 76px);
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: opacity .2s;
}
.logo-img:hover { opacity: .88; }

.logo-img-footer {
  height: clamp(44px, 6vw, 60px);
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

@media (max-width: 480px) {
  .logo-img        { height: 34px; }
  .logo-img-footer { height: 40px; }
}

/* ── CATEGORÍAS – chips en admin ── */
.cat-chips-selected {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 32px; margin-bottom: 8px;
}
.cat-chips-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gray-light); color: var(--gray-dark);
  border: 1.5px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.cat-chip:hover { border-color: var(--red); background: #FFF5F7; }
.cat-chip.selected {
  background: var(--red); color: var(--white);
  border-color: var(--red);
}
.cat-chip.selected:hover { background: var(--red-dark); }
.cat-chip .cat-remove {
  background: none; border: none; color: inherit;
  cursor: pointer; font-size: .85rem; padding: 0;
  line-height: 1; opacity: .8;
}
.cat-chip .cat-remove:hover { opacity: 1; }
.cat-add-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.cat-add-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 7px;
  padding: 7px 12px; font-size: .85rem; font-family: 'Inter', sans-serif;
}
.cat-add-row input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.08);
}
.btn-cat-add {
  background: var(--yellow); color: var(--black); border: none;
  width: 34px; height: 34px; border-radius: 7px;
  font-size: 1.1rem; font-weight: 900; cursor: pointer;
  transition: background .15s;
}
.btn-cat-add:hover { background: var(--yellow-dark); }
.cat-label-hint {
  font-size: .72rem; color: var(--gray); margin-bottom: 6px;
}

/* ── FOTO UPLOAD en admin ── */
.foto-tabs {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.foto-tab {
  background: var(--gray-light); border: 1.5px solid var(--border);
  padding: 6px 14px; border-radius: 6px;
  font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--gray);
  transition: background .15s, border-color .15s, color .15s;
}
.foto-tab.active {
  background: var(--black); color: var(--white); border-color: var(--black);
}
.foto-file-input {
  width: 100%; padding: 10px;
  border: 2px dashed var(--border); border-radius: 8px;
  font-size: .85rem; cursor: pointer; background: var(--gray-light);
}
.foto-file-input:hover { border-color: var(--red); }
.upload-progress {
  font-size: .78rem; color: var(--gray); margin-top: 6px; font-style: italic;
}

/* ── DETALLE DE NOTICIA ── */
.noticia-detalle {
  max-width: 780px; margin: 0 auto;
}
.noticia-foto-full {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.noticia-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.noticia-subtitulo {
  font-size: 1.1rem; color: var(--gray); margin-bottom: 10px; font-style: italic;
}
.noticia-titulo-full {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 12px;
}
.noticia-meta-full {
  font-size: .82rem; color: var(--gray); margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 2px solid var(--border);
}
.noticia-contenido-full {
  font-size: 1rem; line-height: 1.85; color: var(--gray-dark);
}
.noticia-contenido-full p  { margin-bottom: 14px; }
.noticia-contenido-full h3 { margin: 22px 0 8px; font-family: 'Montserrat', sans-serif; }
/* Fotos intercaladas entre los párrafos de la nota */
.noticia-figura { margin: 26px 0; }
.noticia-figura img {
  width: 100%; max-height: 460px; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.btn-back-noticia {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  color: var(--gray); margin-bottom: 32px;
  transition: border-color .2s, color .2s;
}
.btn-back-noticia:hover { border-color: var(--red); color: var(--red); }

/* ── COMPARTIR NOTICIA ── */
.noticia-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 20px 0 28px; padding: 16px 0; border-top: 1px solid var(--border);
}
.noticia-contenido-full + .noticia-share {
  border-top: none; border-bottom: 1px solid var(--border); margin-top: 28px;
}
.share-label { font-size: .8rem; font-weight: 700; color: var(--gray); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 20px; color: var(--white);
  font-size: .9rem; font-weight: 700; padding: 7px 12px;
  cursor: pointer; transition: transform .15s, filter .15s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-fb   { background: linear-gradient(135deg, #1877F2, #0D5DBF); }
.share-tw   { background: linear-gradient(135deg, #000, #333); }
.share-wa   { background: linear-gradient(135deg, #25D366, #128C7E); }
.share-li   { background: linear-gradient(135deg, #0A66C2, #084d92); }
.share-copy {
  background: var(--gray-light); color: var(--gray-dark);
  border: 1.5px solid var(--border); font-size: .8rem;
}
.share-copy:hover { border-color: var(--red); color: var(--red); filter: none; }
.btn-leer-mas {
  display: inline-block; margin-top: 10px;
  color: var(--red); font-weight: 700; font-size: .85rem;
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; font-family: 'Inter', sans-serif;
}
.btn-leer-mas:hover { color: var(--red-dark); }

/* ── FOLIO DE AFILIADO ── */
.folio-box {
  background: linear-gradient(135deg, var(--black), var(--gray-dark));
  color: var(--white); border-radius: 12px;
  padding: 24px 28px; margin: 20px 0; text-align: center;
}
.folio-box .folio-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--yellow); margin-bottom: 8px;
}
.folio-box .folio-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem; font-weight: 900; letter-spacing: .08em;
}
.folio-box .folio-hint {
  font-size: .75rem; color: rgba(255,255,255,.55); margin-top: 8px;
}

/* ── FORMULARIO: select de estados ── */
.estado-select {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 11px 14px; font-size: .9rem;
  font-family: 'Inter', sans-serif; color: var(--black);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.estado-select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.form-row-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) {
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   GALERÍA – vista de álbumes
══════════════════════════════════════════ */
.gallery-view-tabs {
  display: flex; gap: 8px; margin-bottom: 28px;
}
.gal-view-tab {
  background: var(--gray-light); border: 1.5px solid var(--border);
  padding: 9px 22px; border-radius: 8px;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  color: var(--gray); transition: all .2s;
}
.gal-view-tab.active {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* Grid de álbumes */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.album-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.album-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(0,0,0,.16); }

/* Mosaico de fotos del álbum */
.album-mosaic {
  width: 100%; height: 180px;
  display: grid; gap: 2px; overflow: hidden;
  background: var(--gray-dark);
}
.album-mosaic.one   { grid-template-columns: 1fr; }
.album-mosaic.two   { grid-template-columns: 1fr 1fr; }
.album-mosaic.three { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.album-mosaic.four  { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.album-mosaic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.album-mosaic .mosaic-first { grid-row: span 2; } /* para .three */
.album-more {
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: var(--white);
  font-size: 1.1rem; font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}
.album-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white); font-size: 2.5rem;
  width: 100%; height: 100%;
}
.album-info { padding: 16px; }
.album-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: .95rem;
  margin-bottom: 5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.album-meta { font-size: .75rem; color: var(--gray); }
.album-meta span { margin-right: 12px; }

/* ══════════════════════════════════════════
   CONVOCATORIAS – botones Maps y PDF
══════════════════════════════════════════ */
.conv-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.btn-maps {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A73E8; color: var(--white);
  padding: 7px 16px; border-radius: 6px;
  font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: background .2s;
  border: none; cursor: pointer;
}
.btn-maps:hover { background: #1557B0; }
.btn-pdf-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #D32F2F; color: var(--white);
  padding: 7px 16px; border-radius: 6px;
  font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.btn-pdf-link:hover { background: #B71C1C; }

/* ══════════════════════════════════════════
   DOCUMENTOS – botón de PDF
══════════════════════════════════════════ */
.doc-btn-pdf {
  background: #D32F2F; color: var(--white);
  border: none; padding: 10px 24px; border-radius: 6px;
  font-weight: 700; font-size: .85rem; margin-top: auto;
  cursor: pointer; transition: background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.doc-btn-pdf:hover { background: #B71C1C; }

/* ══════════════════════════════════════════
   ADMIN – PDF upload
══════════════════════════════════════════ */
.pdf-upload-area {
  border: 2px dashed #D32F2F; border-radius: 8px;
  padding: 14px; background: #FFF5F5;
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: #B71C1C;
}
.pdf-upload-area input[type="file"] {
  flex: 1; border: none; background: none; padding: 0;
  font-size: .82rem; cursor: pointer;
}
.pdf-link-actual {
  font-size: .75rem; color: var(--gray); margin-top: 6px;
}
.pdf-link-actual a { color: var(--red); font-weight: 700; }

/* Logo tamaño equilibrado */
.logo-img {
  height: clamp(48px, 7vw, 76px);
  width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: opacity .2s;
}
.logo-img:hover { opacity: .88; }
.logo-img-footer {
  height: clamp(44px, 6vw, 60px);
  width: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
@media (max-width: 480px) {
  .logo-img        { height: 46px; }
  .logo-img-footer { height: 42px; }
}

/* ── SHARE BUTTONS ── */
.noticia-share { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:28px; padding-top:20px; border-top:2px solid var(--border); }
.share-label   { font-size:.8rem; font-weight:700; color:var(--gray); white-space:nowrap; }
.share-btn     { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:7px 14px; border-radius:8px; font-size:.8rem; font-weight:700; text-decoration:none; color:#fff; border:none; cursor:pointer; transition:opacity .2s, transform .15s; font-family:'Inter',sans-serif; }
.share-btn:hover { opacity:.85; transform:translateY(-1px); }
.share-fb   { background:#1877F2; }
.share-tw   { background:#000; }
.share-wa   { background:#25D366; }
.share-li   { background:#0A66C2; }
.share-copy { background:var(--gray-dark); }

/* ── SOCIAL GRID: hacer más grande el área del ícono SVG ── */
.social-card .icon svg { display:block; margin:0 auto; }

/* ── FOOTER: botones sociales con SVG ── */
.fsoc-btn svg { display:block; }

/* ── CROPPER MODAL ── */
#crop-modal { display:none; }
#crop-modal.open { display:flex !important; }
.cropper-view-box, .cropper-face { border-radius:0; }

/* ── ADMIN ROLES: badge de rol en el panel ── */
.role-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-left:10px; }
.role-superadmin  { background:var(--yellow); color:var(--black); }
.role-comunicacion{ background:#E3F2FD; color:#1565C0; }
.role-organizacion{ background:#E8F5E9; color:#2E7D32; }

/* ════════════════════════════════════
   PORTAL DE AFILIADOS
════════════════════════════════════ */

/* ── Login del portal ── */
.portal-login {
  max-width: 460px; margin: 48px auto;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13); overflow: hidden;
}
.portal-login-header {
  background: linear-gradient(135deg, var(--black), var(--gray-dark));
  padding: 28px 32px; text-align: center;
}
.portal-login-header img { height: 56px; margin-bottom: 12px; }
.portal-login-header h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.portal-login-header p  { color: rgba(255,255,255,.6); font-size: .8rem; }
.portal-login-body { padding: 32px; }
.portal-tabs {
  display: flex; border-radius: 8px; overflow: hidden;
  border: 1.5px solid var(--border); margin-bottom: 20px;
}
.portal-tab {
  flex: 1; padding: 10px; text-align: center;
  background: var(--gray-light); border: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; color: var(--gray);
  font-family: 'Inter', sans-serif; transition: background .2s, color .2s;
}
.portal-tab.active { background: var(--red); color: var(--white); }
.portal-step { display: none; }
.portal-step.active { display: block; }
.portal-hint { font-size: .75rem; color: var(--gray); margin-top: 5px; font-style: italic; }
.portal-link { display:block; width:100%; background:none; border:none; color:var(--red);
  font-size:.82rem; text-decoration:underline; text-align:center; cursor:pointer; margin-top:12px; padding:4px; }
.portal-link:hover { opacity:.75; }

/* ── FONDO SOLIDARIO DE MOVILIDAD ── */
.fondo-encabezado { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.fondo-folio { font-size:.78rem; color:var(--gray); margin-top:6px; font-family:monospace; }
.fondo-posicion { text-align:center; background:var(--gray-light); border-radius:12px; padding:10px 18px; min-width:96px; }
.fondo-posicion span { display:block; font-family:'Montserrat',sans-serif; font-weight:900; font-size:2rem; color:var(--red); line-height:1; }
.fondo-posicion small { display:block; font-size:.68rem; color:var(--gray); margin-top:4px; }

.fondo-barra-wrap { margin:18px 0 6px; }
.fondo-barra-top { display:flex; justify-content:space-between; align-items:baseline; font-size:.85rem; margin-bottom:6px; flex-wrap:wrap; gap:6px; }
.fondo-barra-top span { font-weight:800; color:var(--red); }
.fondo-barra { height:14px; background:var(--gray-light); border-radius:7px; overflow:hidden; }
.fondo-barra-fill { height:100%; background:linear-gradient(90deg,var(--red),#e2564c); border-radius:7px; transition:width .6s ease; }
.fondo-barra-pie { font-size:.76rem; color:var(--gray); margin-top:6px; }

.fondo-datos { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-top:18px; }
.fondo-dato { background:var(--gray-light); border-radius:10px; padding:14px 12px; text-align:center; }
.fondo-dato-num { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.15rem; color:var(--black); }
.fondo-dato-lbl { font-size:.72rem; color:var(--gray); margin-top:4px; line-height:1.35; }
.fondo-dato-extra { font-size:.66rem; color:var(--gray); margin-top:4px; font-style:italic; }

.fondo-aviso { border-radius:10px; padding:14px 16px; font-size:.85rem; line-height:1.6; margin:14px 0; }
.fondo-aviso.ok     { background:#F1F8E9; border-left:4px solid #2E7D32; color:#1B5E20; }
.fondo-aviso.alerta { background:#FFF8E1; border-left:4px solid #F57F17; color:#7a4f00; }

.fondo-semanas { display:flex; flex-wrap:wrap; gap:6px; }
.fondo-semana-chip { background:#FFF8E1; color:#7a4f00; border-radius:20px; padding:4px 12px; font-size:.75rem; font-weight:600; }

.fondo-unidad { display:flex; align-items:center; gap:16px; background:var(--gray-light); border-radius:12px; padding:16px; margin-bottom:6px; }
.fondo-unidad-ico { font-size:2.4rem; }
.fondo-unidad-nombre { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1rem; }
.fondo-unidad-meta { font-size:.78rem; color:var(--gray); margin-top:3px; }
.fondo-unidad-mant { font-size:.78rem; color:var(--red); margin-top:6px; font-weight:600; }

.fondo-lbl { display:block; font-size:.78rem; font-weight:700; color:var(--gray-dark); margin-bottom:4px; }
.fondo-nota { font-size:.76rem; color:var(--gray); margin-top:12px; line-height:1.6; font-style:italic; }
.fondo-nota-chica { font-size:.7rem; color:var(--gray); margin-top:3px; }

/* Gráficas del tablero: SVG sin librería.
   El contenedor permite deslizar horizontalmente en pantallas chicas para
   que las etiquetas no se encimen ni queden ilegibles. */
.grafica-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.grafica { display:block; width:100%; min-width:420px; height:auto; }
.grafica-leyenda { display:flex; gap:18px; justify-content:center; margin-top:10px; font-size:.76rem; color:var(--gray); }
.grafica-leyenda i { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:5px; vertical-align:-1px; }

@media (max-width: 600px) {
  .fondo-encabezado { flex-direction:column; }
  .fondo-posicion   { align-self:stretch; }
  .fondo-datos      { grid-template-columns:1fr 1fr; }
}

/* ── Credencial virtual ── */
.credencial-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 16px 0;
}
.credencial-card {
  width: 340px; border-radius: 18px;
  background: linear-gradient(145deg, #111 0%, #1c1c1c 55%, #7a0015 100%);
  color: var(--white); overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.45);
  position: relative; font-family: 'Inter', sans-serif;
}
.credencial-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px; width: 180px; height: 180px;
  background: var(--yellow); opacity: .06; border-radius: 50%;
}
.cred-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cred-header img { height: 38px; width: auto; }
.cred-header-text .org  { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: .95rem; color: var(--yellow); }
.cred-header-text .full { font-size: .62rem; color: rgba(255,255,255,.55); line-height: 1.3; }
.cred-body {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
}
.cred-foto {
  flex-shrink: 0; width: 80px; height: 80px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--yellow);
  background: var(--gray-dark);
  display: flex; align-items: center; justify-content: center;
}
.cred-foto img { width: 100%; height: 100%; object-fit: cover; }
.cred-foto .cred-foto-placeholder { font-size: 2rem; opacity: .4; }
.cred-info { flex: 1; }
.cred-name  { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 6px; line-height: 1.2; }
.cred-folio { font-size: .68rem; color: var(--yellow); font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.cred-estado { font-size: .72rem; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.cred-plat   { font-size: .68rem; color: rgba(255,255,255,.45); }
.cred-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cred-status {
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 12px; background: rgba(46,125,50,.3);
  color: #81C784; letter-spacing: .04em;
}
.cred-fecha { font-size: .65rem; color: rgba(255,255,255,.4); }
.btn-print-cred {
  background: var(--yellow); color: var(--black);
  border: none; padding: 10px 24px; border-radius: 8px;
  font-weight: 800; font-size: .85rem; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background .2s;
}
.btn-print-cred:hover { background: var(--yellow-dark); }

/* ── Rifas cards ── */
.rifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 18px;
}
.rifa-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s;
}
.rifa-card:hover { transform: translateY(-4px); }
.rifa-card img { width: 100%; height: 160px; object-fit: cover; }
.rifa-card-placeholder {
  width: 100%; height: 160px; background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.rifa-card-body { padding: 18px; }
.rifa-card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.rifa-card-desc  { font-size: .82rem; color: var(--gray); margin-bottom: 10px; }
.rifa-card-meta  { font-size: .75rem; color: var(--gray); margin-bottom: 14px; }
.btn-participar {
  background: var(--red); color: var(--white);
  border: none; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: .85rem; cursor: pointer; width: 100%;
  font-family: 'Inter', sans-serif; transition: background .2s;
}
.btn-participar:hover { background: var(--red-dark); }
.btn-participar:disabled { background: var(--gray); cursor: default; }
.boleto-card {
  background: linear-gradient(135deg, var(--black), var(--gray-dark));
  border-radius: 10px; padding: 16px 20px; color: var(--white);
  display: flex; justify-content: space-between; align-items: center;
}
.boleto-num  { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--yellow); }
.boleto-info { font-size: .75rem; color: rgba(255,255,255,.6); }

/* ── Print: solo la credencial ── */
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  .credencial-card { box-shadow: none; width: 100%; max-width: 380px; margin: 0 auto; }
}
