/* ═══════════════════════════════════════════════════
   app.css — Glosario Manabita
   Variables unificadas: soporta --green-dark/light Y --green-dk/l
   ═══════════════════════════════════════════════════ */
:root {
  /* ── Colores Principales ── */
  --green:         #00d400;
  --green-light:   #1aff1a;
  --green-dark:    #041f2f;

  /* ── Grises ── */
  --white:         #ffffff;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-600:      #4b5563;
  --gray-800:      #1f2937;

  /* ── Sombras ── */
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.18);

  /* ── Misc ── */
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    .2s ease;
  --tr:            .2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .container { padding: 0 1rem; } }

/* ─────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────── */
.site-header {
  background: var(--green-dark);
  color: white;
  box-shadow: var(--shadow);
}

.header-top {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-top .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.logo-text { letter-spacing: .01em; }
@media (max-width: 640px) { .logo-text { display: none; } }

.main-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,.85);
  padding: .4rem .85rem;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.18);
  color: white;
}

.header-actions { margin-left: .5rem; }

.btn-admin-link {
  background: rgba(255,255,255,.15);
  color: white;
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .85rem;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.btn-admin-link:hover { background: rgba(255,255,255,.3); color: white; }

/* ── HERO ── */
.header-hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.hero-search {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin-bottom: .4rem;
}

.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

/* ── BARRA DE BÚSQUEDA ── */
.search-bar {
  display: flex;
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  background: white;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.search-bar:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.search-bar input {
  flex: 1;
  border: none;
  padding: .9rem 1.5rem;
  font-size: 1rem;
  outline: none;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder {
  color: var(--gray-600);
  opacity: .7;
}

.search-bar button {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: .9rem 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-bar button:hover { background: var(--green); }

/* ─────────────────────────────────────────────────
   ÍNDICE A–Z
───────────────────────────────────────────────── */
.alpha-index {
  background: white;
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.alpha-index .container {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  padding: .6rem 1rem;
  justify-content: center;
}

.alpha-btn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .4rem .6rem;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--green-dark);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  min-width: 38px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

.alpha-btn:hover,
.alpha-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,212,0,.25);
}

/* ─────────────────────────────────────────────────
   MAIN
───────────────────────────────────────────────── */
.main-content { padding: 2.5rem 0; min-height: 60vh; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.section-title i { color: var(--green-dark); font-size: 1.2rem; }

/* ─────────────────────────────────────────────────
   POPULAR TAGS
───────────────────────────────────────────────── */
.popular-section {
  background: white;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.popular-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

.popular-tag {
  background: var(--green);
  color: white;
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Inter', sans-serif;
}

.popular-tag:hover { background: var(--green-dark); }

/* ─────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────── */
.words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.word-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-100);
}

.word-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--green);
}

.word-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--gray-50);
}

.word-card-img-ph {
  width: 100%;
  height: 160px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--green);
}

.word-card-body { padding: 1rem; }

.word-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .4rem;
}

.word-card-excerpt {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.word-card-footer {
  padding: .5rem 1rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-card-letter {
  background: var(--gray-200);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .8rem;
  padding: .2rem .55rem;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────
   PAGINACIÓN
───────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-btn {
  background: white;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  padding: .4rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  transition: var(--transition);
  min-width: 40px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.page-btn:hover,
.page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: mIn .25s ease;
}

@keyframes mIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover { background: var(--green-dark); color: white; }

.modal-content-inner { padding: 2rem; }

.modal-word-header {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-word-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.modal-word-img-ph {
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green);
  flex-shrink: 0;
}

.modal-word-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.modal-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: .5rem;
  margin-top: 1.2rem;
}

.modal-example { font-style: italic; color: var(--gray-600); }

.modal-share {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn:hover { transform: scale(1.1); color: white; }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-pi { background: #00d400; }
.share-wa { background: #25d366; }

.modal-loading { text-align: center; padding: 3rem; color: var(--gray-600); }

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: .8rem;
}

.footer-desc { font-size: .9rem; line-height: 1.6; }

.site-footer h4 { color: white; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255,255,255,.7); transition: var(--transition); }
.site-footer a:hover { color: white; }

.footer-letters { display: flex; flex-wrap: wrap; gap: .3rem; }

.footer-letters a {
  background: rgba(255,255,255,.1);
  padding: .2rem .45rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

.footer-letters a:hover { background: var(--green-dark); color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-credits { color: rgba(255,255,255,.5); }

/* ─────────────────────────────────────────────────
   SKELETON
───────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.skeleton-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sk-img   { height: 160px; }
.sk-body  { padding: 1rem; }
.sk-title { height: 20px; width: 60%; margin-bottom: .8rem; }
.sk-text  { height: 14px; margin-bottom: .4rem; }
.sk-text-s{ height: 14px; width: 70%; }

/* ─────────────────────────────────────────────────
   ALERTAS
───────────────────────────────────────────────── */
.alert { padding: .85rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .95rem; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.alert-error   { background: #f3f4f6; color: #041f2f; border-left: 4px solid var(--green-dark); }

/* ─────────────────────────────────────────────────
   SIN RESULTADOS
───────────────────────────────────────────────── */
.no-results { text-align: center; padding: 4rem 1rem; color: var(--gray-600); }
.no-results i { font-size: 3rem; color: var(--gray-200); margin-bottom: 1rem; display: block; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .words-grid, .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .header-top  { position: relative; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 1rem;
    flex-direction: column;
    z-index: 200;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
  }

  .main-nav.open { display: flex; }
  .nav-link { padding: .6rem 1rem; border-radius: 8px; }

  .words-grid, .loading-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal-word-header { flex-direction: column; }
  .modal-word-img, .modal-word-img-ph { width: 100%; height: 200px; }

  .search-bar { margin: 0 .5rem; width: calc(100% - 1rem); }
}

/* ── FOOTER EXTRAS ── */
.footer-grid { grid-template-columns: 2fr 1fr 2fr 1.5fr; }
.social-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--transition); text-decoration: none;
}
.social-icon:hover { background: var(--green-dark); color: white; }
.donate-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 8px; font-size: .88rem;
  font-weight: 600; text-decoration: none; transition: var(--transition);
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.donate-paypal { background: #003087; color: white; }
.donate-paypal:hover { background: #001f5b; color: white; }
.donate-kofi   { background: #FF5E5B; color: white; }
.donate-kofi:hover { background: #e04a47; color: white; }
.donate-bmc    { background: #FFDD00; color: #333; }
.donate-bmc:hover { background: #e6c700; color: #333; }

/* ── LETRA INDEX PAGE ── */
.letra-hero {
  background: var(--green-dark);
  color: white; padding: 3rem 0; text-align: center; margin-bottom: 2rem;
}
.letra-hero h1 { font-family: 'Playfair Display', serif; font-size: 5rem; line-height: 1; color: white; }
.letra-hero p  { opacity: .85; font-size: 1rem; margin-top: .5rem; }
.letra-nav-strip {
  background: white; border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.letra-words-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.letra-word-card {
  background: white; border-radius: var(--radius); padding: 1.2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: var(--transition); cursor: pointer;
}
.letra-word-card:hover { box-shadow: var(--shadow); border-color: var(--green); transform: translateY(-2px); }
.letra-word-card h3 { font-family: 'Playfair Display', serif; color: var(--green-dark); font-size: 1.15rem; margin-bottom: .4rem; }
.letra-word-card p  { font-size: .85rem; color: var(--gray-600); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.blog-card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.08); border: none; transition: all .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; text-align: center;
}
.blog-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,.15); transform: translateY(-6px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; background: var(--gray-50); }
.blog-card-img-ph {
  width: 100%; height: 200px;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--green);
}
.blog-card-body { padding: 1.5rem 1.2rem; flex: 1; }
.blog-card-cat  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); margin-bottom: .6rem; }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--green-dark); margin-bottom: .6rem; line-height: 1.35; font-weight: 700; }
.blog-card-excerpt { font-size: .95rem; color: var(--gray-600); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { padding: .8rem 1.2rem; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.blog-card-date { font-size: .8rem; color: var(--gray-600); }
.blog-card-read { font-size: .85rem; font-weight: 700; color: var(--green); }

/* ── EVENTS CALENDAR STRIP ── */
.events-strip { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 2rem; }
.events-strip-header { background: var(--green); color: white; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.events-strip-header h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.event-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: var(--gray-50); }
.event-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.event-date-badge { background: var(--gray-200); color: var(--green-dark); padding: .3rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.event-name { font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.event-cat  { font-size: .75rem; color: var(--gray-600); }

/* ── HOW STEPS ── */
.steps-section { background: var(--green-dark); padding: 3rem 0; margin: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.step-card {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf5 100%);
  border-radius: 20px; padding: 2.2rem 1.5rem;
  text-align: center; border: 1px solid rgba(22, 163, 74, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; z-index: 1;
}
.step-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.25); border-color: rgba(22, 163, 74, 0.3); }
.step-num { width: 45px; height: 45px; background: var(--green-light); color: var(--green-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem; box-shadow: 0 4px 10px rgba(0,212,0,.2); }
.step-icon { font-size: 2.8rem; color: var(--green); margin-bottom: 1.2rem; text-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--green-dark); margin-bottom: .6rem; font-weight: 800; letter-spacing: -0.02em; }
.step-desc  { font-size: 1rem; color: var(--gray-700); line-height: 1.6; }

/* ── SUGGEST FORM ── */
.suggest-form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; max-width: 680px; margin: 0 auto; }
.suggest-form-card h2 { font-family: 'Playfair Display', serif; color: var(--green-dark); margin-bottom: .4rem; }

/* ── ABOUT PAGE ── */
.about-hero { background: var(--green-dark); padding: 4rem 0; text-align: center; color: white; }
.about-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: white; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { line-height: 1.8; color: var(--gray-800); margin-bottom: 1.2rem; }
.donation-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.donation-card  { border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.donation-card h4 { font-size: 1rem; margin-bottom: .6rem; }
.donation-card p  { font-size: .85rem; margin-bottom: 1rem; opacity: .85; }

/* ── BLOG ARTICLE ── */
.article-hero { padding: 3rem 0 4rem; color: white; }
.article-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.5rem); color: white; line-height: 1.2; }
.article-body { max-width: 780px; margin: -2rem auto 0; background: white; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.article-body h2,.article-body h3 { font-family: 'Playfair Display', serif; color: var(--green-dark); margin: 1.5rem 0 .6rem; }
.article-body p  { line-height: 1.8; color: var(--gray-800); margin-bottom: 1.2rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid, .steps-grid, .letra-words-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid, .steps-grid, .letra-words-grid { grid-template-columns: 1fr; }
  .letra-hero h1 { font-size: 3.5rem; }
}

/* ── Blog grid 4 columnas en home ── */
.blog-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
@media (max-width: 1100px) { .blog-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .blog-grid-4 { grid-template-columns: 1fr; } }

/* ── Events grid responsive ── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════
   MOBILE OVERFLOW & RESPONSIVE FIXES — v2.3
═══════════════════════════════════════════════════ */

/* Prevenir overflow horizontal global */
html, body {
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;
}

/* Container mantiene su max-width — NO sobreescribir aquí */

/* Textos largos que puedan desbordar */
h1, h2, h3, h4, h5, p, span, a, td, th, li {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Slider / hero ── */
@media (max-width: 640px) {
    .slider-card { min-width: 100%; }
    .hero-search-bar { flex-direction: column; border-radius: 12px; }
    .hero-search-bar input { border-radius: 12px 12px 0 0 !important; }
    .hero-search-bar button { border-radius: 0 0 12px 12px !important; width: 100%; justify-content: center; }
}

/* ── Steps grid ── */
@media (max-width: 640px) {
    /* Grids de 3 columnas → 1 columna en móvil */
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    /* Grids de 4 columnas → 2 columnas en móvil */
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Eventos en inicio: flex-wrap ya activo, garantizar min-width ── */
.event-card {
    min-width: 0;
    word-break: break-word;
}
.event-card-title { overflow-wrap: break-word; }
.event-card-desc  { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Tabla del admin en móvil ── */
@media (max-width: 700px) {
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 540px; }
    .form-card { padding: 1rem; }
    /* Grids de 2 col en formularios admin → 1 col */
    .form-card [style*="grid-template-columns:1fr 1fr"],
    .form-card [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Footer letras en móvil ── */
@media (max-width: 640px) {
    .footer-letters { gap: .2rem; }
    .footer-letters a { padding: .2rem .4rem; font-size: .72rem; }
    .footer-col h4 { font-size: .9rem; }
    .footer-desc { font-size: .82rem; }
    .footer-bottom { gap: .3rem; font-size: .78rem; }
}

/* ── Alpha bar A-Z ── */
.alpha-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.alpha-bar::-webkit-scrollbar { display: none; }
.alpha-bar-inner { white-space: nowrap; display: flex; }

/* ── Blog cards ── */
@media (max-width: 480px) {
    .blog-card-img { height: 140px; }
    .blog-card-body { padding: .8rem; }
    .blog-card-title { font-size: .9rem; }
}

/* ── Modales en móvil ── */
@media (max-width: 500px) {
    .modal-box { margin: .5rem; max-height: 95vh; }
    .ep-box, .evm-box { border-radius: 12px; }
    .modal-content-inner { padding: 1rem; }
}

/* ── Sección pasos en home ── */
@media (max-width: 640px) {
    .steps-grid { grid-template-columns: 1fr !important; }
}

/* ── Fechas page ── */
@media (max-width: 480px) {
    .fcard { flex-direction: column; }
    .fcard-date { min-width: 100%; flex-direction: row; gap: .5rem; padding: .5rem .8rem; justify-content: flex-start; }
    .fcard-day { font-size: 1.2rem; }
    .mfbtn { font-size: .75rem; padding: .3rem .65rem; }
}

/* ── Sugerir form ── */
@media (max-width: 480px) {
    .sug-card { padding: 1.2rem; }
    .sug-steps { gap: .4rem; }
}

/* ── pages/fechas.php ── */
/* Month filter buttons */
.mfbtn {
    display:inline-flex;align-items:center;gap:.35rem;
    padding:.38rem .85rem;border:1.5px solid var(--gray-200);background:white;
    border-radius:20px;font-size:.8rem;font-weight:500;color:var(--gray-700);
    cursor:pointer;white-space:nowrap;transition:var(--transition);
    font-family:'Inter',sans-serif;
}
.mfbtn:hover { border-color:var(--green);color:var(--green); }
.mfbtn.active { background:var(--green);border-color:var(--green);color:white; }
.mfbtn-cnt {
    background:rgba(0,0,0,.1);border-radius:10px;
    padding:.05rem .35rem;font-size:.7rem;font-weight:700;
}
.mfbtn.active .mfbtn-cnt { background:rgba(255,255,255,.25); }

/* Cards */
.fcard {
    background:white;border-radius:var(--radius);overflow:hidden;
    border:1.5px solid var(--gray-100);box-shadow:var(--shadow-sm);
    cursor:pointer;display:flex;
    transition:transform .18s,box-shadow .18s,border-color .18s;
}
.fcard:hover { transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--green); }
.fcard-date {
    min-width:60px;display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    padding:.9rem .4rem;color:white;flex-shrink:0;text-align:center;
}
.fcard-day { font-family:'Playfair Display',serif;font-size:1.55rem;font-weight:700;line-height:1; }
.fcard-mon { font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-top:.2rem;opacity:.9; }
.fcard-body { padding:.8rem .95rem;flex:1;min-width:0; }
.fcard-cat  { font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--gray-500);margin-bottom:.25rem;display:block; }
.fcard-title { font-size:.9rem;font-weight:600;color:var(--green-dark);line-height:1.3;margin:0 0 .28rem; }
.fcard-desc  { font-size:.77rem;color:var(--gray-600);line-height:1.45;margin:0 0 .4rem; }
.fcard-thumb { width:100%;height:64px;border-radius:6px;background-size:cover;background-position:center;margin-top:.4rem; }

@media(max-width:900px){ #fechasGrid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ #fechasGrid{grid-template-columns:1fr;} }

/* Popup */
#evModal {
    display:none;position:fixed;inset:0;
    background:rgba(0,0,0,.6);z-index:9999;
    align-items:center;justify-content:center;padding:1rem;
}
#evModal.open { display:flex; }
.evm-box {
    background:white;border-radius:18px;max-width:500px;width:100%;
    overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);
    animation:evmIn .28s cubic-bezier(.34,1.56,.64,1);
    max-height:90vh;overflow-y:auto;
}
@keyframes evmIn {
    from{opacity:0;transform:scale(.88) translateY(20px);}
    to  {opacity:1;transform:scale(1)   translateY(0);}
}
.evm-head  { display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 1rem; }
.evm-badge { min-width:58px;border-radius:12px;padding:.75rem .5rem;text-align:center;color:white;flex-shrink:0; }
.evm-day   { font-family:'Playfair Display',serif;font-size:1.9rem;font-weight:700;line-height:1; }
.evm-mon   { font-size:.63rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-top:.15rem;opacity:.9; }
.evm-cat   { font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-500);margin-bottom:.3rem; }
.evm-title { font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--green-dark);line-height:1.25;margin:0; }
.evm-close {
    background:var(--gray-100);border:none;width:34px;height:34px;
    border-radius:50%;cursor:pointer;font-size:1.1rem;
    display:flex;align-items:center;justify-content:center;
    color:var(--gray-600);flex-shrink:0;transition:background .15s;
}
.evm-close:hover { background:var(--gray-200); }
.evm-desc { padding:.25rem 1.5rem 1.75rem;font-size:.95rem;color:var(--gray-700);line-height:1.75;white-space:pre-line; }

/* ── pages/sugerir.php ── */
.sug-hero {
    background: var(--green-dark);
    padding: 3rem 0 4.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.sug-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sug-hero-content { position: relative; z-index: 1; }
.sug-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 .6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.sug-hero p {
    opacity: .85;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tarjeta flotante */
.sug-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    padding: 2.5rem;
    margin: -2.5rem auto 3rem;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

/* Pasos visuales */
.sug-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1.5px solid var(--gray-100);
}
.sug-step {
    text-align: center;
    padding: 1rem .5rem;
}
.sug-step-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .6rem;
    font-size: 1.1rem;
    color: var(--green);
}
.sug-step h4 { font-size: .82rem; font-weight: 600; color: var(--green-dark); margin: 0 0 .2rem; }
.sug-step p  { font-size: .75rem; color: var(--gray-600); margin: 0; line-height: 1.45; }

/* Campos del form */
.sug-field { margin-bottom: 1.4rem; }
.sug-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: .45rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.sug-label i { opacity: .6; font-size: .85rem; }
.sug-req { color: var(--green-dark); font-size: .9rem; }
.sug-opt { color: var(--gray-500); font-weight: 400; font-size: .78rem; }
.sug-input, .sug-textarea {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    background: white;
}
.sug-input:focus, .sug-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,77,24,.1);
}
.sug-input.error, .sug-textarea.error {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(139,0,0,.08);
}
.sug-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.sug-hint {
    font-size: .77rem;
    color: var(--gray-500);
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.sug-hint i { opacity: .7; }

/* Contador de caracteres */
.sug-charcount {
    font-size: .73rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: .2rem;
}
.sug-charcount.near { color: var(--green-dark); }

/* Preview del término */
.sug-preview {
    display: none;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
}
.sug-preview.visible { display: block; }
.sug-preview-term { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--green-dark); font-weight: 700; }
.sug-preview-meaning { font-size: .85rem; color: var(--gray-700); margin-top: .25rem; line-height: 1.55; }
.sug-preview-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-500); margin-bottom: .5rem; }

/* Botón enviar */
.sug-submit {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 12px;
    padding: .9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .18s, transform .12s;
}
.sug-submit:hover   { background: var(--green-dark); transform: translateY(-1px); }
.sug-submit:active  { transform: translateY(0); }

/* Alert success */
.sug-success {
    text-align: center;
    padding: 2rem 1rem;
}
.sug-success-icon {
    width: 72px; height: 72px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: #16a34a;
}
.sug-success h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--green-dark); margin: 0 0 .5rem; }
.sug-success p  { color: var(--gray-600); font-size: .95rem; line-height: 1.6; margin: 0 0 1.5rem; }
.sug-success-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Alert error */
.sug-alert-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    padding: .85rem 1.1rem;
    color: #041f2f;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 600px) {
    .sug-card   { margin: -1.5rem 1rem 2rem; padding: 1.5rem; border-radius: 14px; }
    .sug-steps  { grid-template-columns: 1fr; gap: .5rem; }
    .sug-hero   { padding: 2.5rem 0 3.5rem; }
}

.header-logo { height: 38px; width: auto; object-fit: contain; }


/* -- Nav CTA Button -- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--red, #dc2626);
  color: white !important;
  font-weight: 600;
  padding: .5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: .95rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220,38,38,.4);
  background: #b91c1c;
}
