@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #081432;
  --navy-800: #0d1f47;
  --navy-700: #15295a;
  --navy-600: #1c3670;
  --gold-300: #f0d99a;
  --gold-400: #e0c078;
  --gold-500: #cda44e;
  --gold-600: #a97f2f;
  --ink: #1b2233;
  --ink-soft: #4a5170;
  --paper: #faf8f3;
  --paper-alt: #f2ede1;
  --line: #e4ddc9;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 20, 50, 0.10);
  --shadow-lg: 0 20px 60px rgba(8, 20, 50, 0.18);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
}
.section-alt { background: var(--paper-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #eef1f8; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.section-navy .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 18.5px; }
.section-navy .section-head p { color: #c7cfe6; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); box-shadow: 0 10px 24px rgba(205, 164, 78, 0.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(205, 164, 78, 0.45); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(205, 164, 78, 0.35);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Playfair Display', serif; font-size: 18px; letter-spacing: 0.02em; }
.brand-text span { font-size: 11px; letter-spacing: 0.10em; color: var(--gold-600); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--navy-800); font-size: 15.5px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--gold-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn span.short { display: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy-900); font-size: 28px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 84px 0 0 0; background: var(--white); box-shadow: 0 16px 30px rgba(8,20,50,0.10); flex-direction: column; justify-content: flex-start; padding: 34px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav-cta .btn span.long { display: none; }
  .nav-cta .btn span.short { display: inline; }
}

@media (max-width: 520px) {
  .site-header .container { gap: 10px; }
  .brand { gap: 8px; overflow: hidden; }
  .brand img { width: 38px; height: 38px; flex-shrink: 0; }
  .brand-text { overflow: hidden; }
  .brand-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text span { display: none; }
  .nav-cta { gap: 8px; flex-shrink: 0; }
  .nav-cta .btn-sm { padding: 8px 14px; font-size: 13.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 20%, rgba(205,164,78,0.16), transparent 45%), linear-gradient(165deg, var(--navy-900) 0%, #0f2350 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(205,164,78,0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.12;
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { font-size: 20px; color: #c9d0e6; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 32px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold-300); }
.hero-stats div span { font-size: 13.5px; color: #aab3d1; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-badge-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-badge-wrap img { width: min(340px, 80%); filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Quote / presidenta ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}
.quote-card .mark { font-family: 'Playfair Display', serif; font-size: 66px; color: var(--gold-500); line-height: 0.6; }
@media (max-width: 560px) {
  .quote-card { padding: 28px 22px; gap: 14px; }
  .quote-card .mark { font-size: 46px; }
  .quote-card p.big { font-size: 18px; }
}
.quote-card p.big { font-size: 20.5px; color: var(--ink); font-style: italic; }
.quote-signature { margin-top: 18px; display: flex; flex-direction: column; }
.quote-signature strong { font-family: 'Playfair Display', serif; font-size: 18.5px; }
.quote-signature span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.value-card .num { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--gold-600); font-weight: 700; margin-bottom: 10px; }
.value-card h3 { font-size: 20.5px; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mv-card { background: var(--white); border-radius: var(--radius); padding: 34px; border-top: 4px solid var(--gold-500); box-shadow: var(--shadow); }
.mv-card h3 { font-size: 22.5px; }
.mv-card p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 720px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Directorio ---------- */
.directorio-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.directorio-search-input {
  flex: 1 1 240px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 15px; color: var(--ink); font-family: inherit;
}
.directorio-search-input:focus { outline: none; border-color: var(--gold-500); }
.directorio-select {
  padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 14px; color: var(--ink-soft); font-family: inherit; cursor: pointer;
}
.directorio-search-actions { display: flex; gap: 10px; flex-shrink: 0; }
.directorio-search-actions .directorio-search-btn { flex: 1; }
.directorio-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .15s ease;
}
.directorio-search-btn-primary { background: var(--navy-800); color: #fff; }
.directorio-search-btn-primary:hover { background: var(--navy-900); }
.directorio-search-btn-clear { background: var(--white); border-color: var(--line); color: var(--ink-soft); }
.directorio-search-btn-clear:hover { border-color: var(--gold-500); color: var(--navy-900); }
.directorio-count { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 16px; }
.directorio-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .directorio-search { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
  /* flex: none evita que el "flex: 1 1 240px" de escritorio (pensado para
     una fila horizontal) se herede aquí, donde el contenedor es columna:
     ese flex-basis se aplicaba al alto, no al ancho, e inflaba el campo.
     font-size 16px a propósito: por debajo de eso, Safari/Chrome en móvil
     hacen zoom automático de toda la página al enfocar el campo. */
  .directorio-search-input { flex: none; padding: 9px 14px; font-size: 17.5px; }
  .directorio-select { padding: 8px 12px; font-size: 17.5px; }
  .directorio-search-actions { width: 100%; }
  .directorio-search-btn { padding: 9px 14px; font-size: 14px; }
}

.directorio-table-hint { display: none; font-size: 13.5px; color: var(--ink-soft); margin: -8px 0 10px; }
.directorio-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.directorio-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.directorio-table thead th {
  background: var(--navy-900); color: var(--gold-300); text-align: left; padding: 16px 22px;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.directorio-table thead th:first-child { border-top-left-radius: var(--radius); }
.directorio-table thead th:last-child { border-top-right-radius: var(--radius); }
.directorio-table tbody td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; color: var(--ink); }
.directorio-table tbody tr:last-child td { border-bottom: none; }
.directorio-table tbody tr:hover td { background: var(--paper-alt); }
.directorio-table tbody tr.is-featured td { background: linear-gradient(90deg, rgba(205,164,78,0.10), transparent 60%); box-shadow: inset 3px 0 0 var(--gold-500); }
.directorio-table tbody tr.is-featured:hover td { background: linear-gradient(90deg, rgba(205,164,78,0.16), var(--paper-alt) 60%); }

.dt-negocio { display: flex; gap: 14px; align-items: center; }
.dt-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--paper-alt); flex-shrink: 0; }
.dt-logo.placeholder { display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--gold-600); background: linear-gradient(135deg, #fbeecb, #f2ded6); font-size: 19.5px; }
.dt-badge { display: inline-block; background: var(--navy-900); color: var(--gold-300); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; margin-bottom: 4px; }
.dt-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-600); font-weight: 700; }
.dt-nombre { font-family: 'Playfair Display', serif; font-size: 17.5px; color: var(--navy-900); }
.dt-regalo { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.descuento-pill { display: inline-block; white-space: nowrap; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); font-weight: 800; font-size: 14.5px; padding: 7px 16px; border-radius: 999px; }
.dt-ubicacion { font-size: 14.5px; color: var(--ink); }
.dt-direccion { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.dt-contacto { white-space: nowrap; }
.dt-telefono { font-size: 14.5px; margin-bottom: 6px; }
.dt-social { display: flex; gap: 8px; }
.dt-social a { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-alt); display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--navy-800); transition: background .15s, color .15s; }
.dt-social a:hover { background: var(--navy-900); color: var(--gold-400); }
@media (max-width: 760px) { .directorio-table-hint { display: block; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------- Credencial ---------- */
.credencial-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .credencial-wrap { grid-template-columns: 1fr; } }
.card-visual { display: flex; justify-content: center; }
.id-card {
  width: min(300px, 100%); aspect-ratio: 5/8; border-radius: 20px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  padding: 24px 22px; color: #fff; position: relative; overflow: hidden;
}
.id-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(205,164,78,0.35), transparent 70%); }
.id-card img.id-logo { width: 46px; margin: 0 auto 10px; }
.id-card .id-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 13.5px; letter-spacing: .05em; color: var(--gold-300); margin-bottom: 22px; }
.id-card .id-photo { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg,#2b3f74,#16234a); border: 2px solid var(--gold-500); }
.id-card .id-status { text-align: center; background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 6px; border-radius: 8px; margin-bottom: 10px; }
.id-card .id-folio { text-align: center; font-size: 12px; color: #a9b2d0; letter-spacing: .1em; }

.rules-list { display: flex; flex-direction: column; gap: 16px; }
.rules-list li { display: flex; gap: 14px; }
.rules-list .n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: 14.5px; display: flex; align-items: center; justify-content: center; }
.rules-list p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.transparency-box { margin-top: 26px; background: var(--paper-alt); border-left: 4px solid var(--gold-500); border-radius: 10px; padding: 20px 22px; font-size: 15px; color: var(--ink-soft); }
.transparency-box strong { color: var(--navy-900); }

/* ---------- Noticias ---------- */
.noticias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.noticia-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.noticia-img { height: 190px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); display: flex; align-items: center; justify-content: center; }
.noticia-img img { width: 100%; height: 100%; object-fit: cover; }
.noticia-img .ph { color: var(--gold-300); font-family: 'Playfair Display', serif; font-size: 16px; opacity: .85; text-align: center; padding: 0 20px; }
.noticia-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.noticia-date { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); font-weight: 700; margin-bottom: 8px; }
.noticia-body h3 { font-size: 19.5px; margin-bottom: 8px; }
.noticia-body p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }

/* ---------- Afiliación CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); border-radius: 24px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-900); margin-bottom: 6px; font-size: 30px; }
.cta-band p { color: #4a3a12; margin: 0; max-width: 480px; }
@media (max-width: 560px) { .cta-band { padding: 32px 26px; border-radius: 18px; } }

/* ---------- Social ---------- */
.social-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(205,164,78,0.4); color: var(--gold-300); font-size: 20.5px;
  transition: transform .18s ease, background .18s ease;
}
.social-icons a:hover { transform: translateY(-4px) scale(1.05); background: var(--gold-500); color: var(--navy-900); }

/* ---------- Social floating bar ---------- */
.social-floating { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.social-floating-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(8, 20, 50, 0.28); transition: transform .18s ease, box-shadow .18s ease; }
.social-floating-btn:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 28px rgba(8, 20, 50, 0.35); }
.social-floating-fb { background: #1877f2; }
.social-floating-wa { background: #25d366; }
@media (max-width: 560px) { .social-floating { right: 14px; bottom: 14px; gap: 10px; } .social-floating-btn { width: 48px; height: 48px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c0da; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; }
.footer-brand strong { color: #fff; font-family: 'Playfair Display', serif; font-size: 16.5px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 15px; }
.site-footer ul li a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #7f88a8; }
.footer-bottom a { color: #7f88a8; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-badge-wrap { order: -1; }
  .quote-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 90px 0 64px; }
  .hero-stats { gap: 22px; margin-top: 34px; }
  .id-card { padding: 20px 18px; }
  .id-card .id-photo { width: 70px; height: 70px; }
  .rules-list li { gap: 10px; }
  .mv-card, .value-card { padding: 24px 20px; }
}
