/*
Theme Name: FAN
Theme URI: http://localhost:8080
Author: FAN
Description: Tema de FAN, Fomentando Acciones en Networking. Las fotos son referencias de Unsplash para el boceto y se pueden reemplazar por fotos de la comunidad.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: fan
*/

:root {
  --ink: #1b2430;
  --muted: #5c6770;
  --gold: #cd9a6b;
  --gold-dark: #b78450;
  --navy: #1a1e2a;
  --bg: #f7f6f2;
  --cream: #fbf6f0;
  --line: #e4dfd7;
  --white: #fff;
  --shadow: 0 14px 40px rgba(27, 36, 48, 0.08);
  --radius: 28px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

a { color: inherit; }

button, input, select, textarea { font-family: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 36, 48, 0.05);
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
  white-space: nowrap;
}

.brand-mark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-rule {
  width: 1px;
  height: 38px;
  background: #d5d0c8;
}

.brand-tag {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  color: #66707a;
}

.custom-logo-link { display: flex; }
.custom-logo, .brand-logo { display: block; height: 54px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #3d4652;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg { width: 16px; height: 16px; }

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

.btn-sm { padding: 11px 16px; font-size: 14px; }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-outline { background: #fff; border-color: #ddd7cf; }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; border-color: #cfc8be; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 17, 26, 0.94) 0%, rgba(14, 17, 26, 0.8) 38%, rgba(14, 17, 26, 0.38) 66%, rgba(14, 17, 26, 0.22) 100%),
    url("assets/images/hero.jpg") 70% center / cover no-repeat;
}

.hero-copy { max-width: 680px; padding: 72px 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .eyebrow { color: #e7c7a2; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  color: #fff;
}

.hero .lead {
  margin: 0 0 26px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16.5px;
}

.section { padding: 78px 0; }

.why-top {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 40px;
  align-items: end;
}

.why-top h2,
.benefits-copy h2,
.events-copy h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.reason { text-align: center; color: var(--ink); }

.reason svg { width: 34px; height: 34px; }

.reason p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.plans { padding-top: 10px; }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.plan {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  min-height: 360px;
}

.plan-individual { background: var(--cream); }
.plan-corporate { background: #1c2633; color: #fff; }

.plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  margin-bottom: 14px;
}

.plan-icon svg { width: 20px; height: 20px; }
.plan-corporate .plan-icon { color: #e8c9a4; }

.plan h3 { margin: 0 0 8px; font-size: 1.45rem; }
.plan-individual h3 { color: var(--ink); }

.plan > div > p { margin: 0; color: var(--muted); font-size: 14.5px; }
.plan-corporate > div > p { color: rgba(255, 255, 255, 0.78); }

.plan-list { list-style: none; margin: 16px 0 20px; padding: 0; }
.plan-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  font-size: 14.5px;
}
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.plan-corporate .plan-list { color: rgba(255, 255, 255, 0.92); }

.plan-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
}
.plan-photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
}
.plan-individual .plan-photo img { object-position: center 18%; }
.plan-corporate .plan-photo img { object-position: center 30%; }

.scribble {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 168px;
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: 28px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0;
  transform: rotate(-7deg);
  color: #3a342c;
}
.plan-corporate .scribble {
  color: #fff;
  width: 132px;
}

.benefits-layout,
.events-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.benefits-layout { grid-template-columns: 0.72fr 1.7fr; align-items: start; }
.events-layout { grid-template-columns: 0.7fr 1.55fr; }

.benefits-copy p,
.events-copy p,
.prose p { color: var(--muted); }

.benefits-copy .btn,
.events-copy .btn,
.split-copy .btn { margin-top: 8px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.b-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.b-card-media {
  position: relative;
  height: 112px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.b-card-media img { width: 100%; height: 100%; object-fit: cover; }

.b-ico {
  position: absolute;
  left: 14px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(27, 36, 48, 0.1);
}

.b-ico svg { width: 18px; height: 18px; }

.b-card-body { padding: 26px 14px 16px; }
.b-card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -0.03em; }
.b-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.events-wrap { padding-top: 20px; }

.events-panel {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 18, 28, 0.9) 0%, rgba(16, 18, 28, 0.72) 46%, rgba(16, 18, 28, 0.55) 100%),
    url("assets/images/audiencia.jpg") center / cover no-repeat;
  padding: 42px 54px 42px 36px;
}

.events-copy p { color: rgba(255, 255, 255, 0.8); margin: 12px 0 20px; max-width: 280px; }
.events-copy h2 { color: #fff; }

.event-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 16px 14px 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  min-height: 168px;
}

.event-card:hover { transform: translateY(-2px); }

.date-badge { text-align: center; min-width: 42px; }
.date-badge .d { display: block; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.date-badge .m { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }

.event-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.event-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; height: 15px; }

.tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
  background: #f3f1ed;
  color: #4d5660;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.events-next {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.events-next svg { width: 18px; height: 18px; }

.site-footer {
  background: var(--navy);
  color: #d5dbe3;
  padding: 36px 0 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.site-footer .brand-logo { height: 58px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-nav a { text-decoration: none; color: #d5dbe3; font-size: 14px; }
.footer-nav a:hover { color: #fff; }

.footer-connect { justify-self: end; text-align: right; }
.socials { display: flex; justify-content: flex-end; gap: 8px; }

.social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

.social svg { width: 15px; height: 15px; }
.social:hover { border-color: var(--gold); color: var(--gold); }

.footer-connect p {
  display: inline-block;
  margin: 8px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 14px;
  font-size: 13px;
  color: #8d97a3;
}

.footer-legal { display: flex; gap: 8px; }
.footer-legal a { color: #8d97a3; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

.page-hero {
  background:
    linear-gradient(90deg, rgba(16, 18, 28, 0.92), rgba(16, 18, 28, 0.72)),
    url("assets/images/audiencia.jpg") center / cover no-repeat;
  color: #fff;
  padding: 72px 0 64px;
}

.page-hero h1 { max-width: 740px; }
.page-hero p { max-width: 620px; color: rgba(255, 255, 255, 0.82); margin: 14px 0 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }

.pillar-grid,
.blog-grid,
.event-list {
  display: grid;
  gap: 16px;
}

.pillar-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.event-list { grid-template-columns: repeat(3, 1fr); }

.pillar, .post-card, .form-card, .notice {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.pillar { padding: 22px; }
.pillar h3 { margin: 0 0 8px; font-size: 1.2rem; }
.pillar p { margin: 0; color: var(--muted); }

.post-card { overflow: hidden; text-decoration: none; color: inherit; }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-card div { padding: 16px 16px 18px; }
.post-card time { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-card h2 { margin: 8px 0; font-size: 1.15rem; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }

.measure { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p { font-size: 1.0625rem; line-height: 1.75; }
.prose a { color: #8d6233; }
.section-follow { padding-top: 0; }

.detail { display: grid; gap: 22px; }
.detail-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.detail-row.reverse { grid-template-columns: 1.14fr 0.86fr; }
.detail-row.reverse img { order: 2; }
.detail-row img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.detail-copy { padding: 36px 40px; }
.detail-copy h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 2vw, 2rem); }
.detail-copy p { margin: 0; color: var(--muted); }
.detail-copy ul { list-style: none; margin: 16px 0 0; padding: 0; }
.detail-copy li { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; color: var(--ink); }
.detail-copy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.detail-cta { margin: 8px 0 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.pillar-link { margin-top: 16px; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.process article { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.process span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.process h3 { margin: 0 0 8px; font-size: 1.15rem; }
.process p { margin: 0; color: var(--muted); }
.process-stack { grid-template-columns: 1fr; margin-top: 18px; }

.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.reading-main h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
}

.reading-aside { position: sticky; top: 108px; }

.aside-list { display: grid; gap: 14px; }

.aside-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.aside-card img { width: 100%; height: 132px; object-fit: cover; }
.aside-card div { padding: 12px 14px 14px; }
.aside-card time { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.aside-card h2 { margin: 6px 0 0; font-size: 1rem; line-height: 1.25; }
.aside-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.form-card { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(205, 154, 107, 0.45);
  border-color: var(--gold);
}

.hp { position: absolute; left: -9999px; }

.notice { padding: 14px 16px; margin-bottom: 16px; }
.notice-ok { background: #f3f8f2; color: #245c32; }
.notice-error { background: #fdf3f1; color: #8d3428; }

.steps { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }
.steps li { margin: 8px 0; }

.single-cover { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; margin: 0 0 28px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--gold-dark); text-decoration: none; font-weight: 700; }

.event-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  margin: 8px 0 18px;
}

.pagination { margin-top: 22px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}

.empty { color: var(--muted); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1240px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13.5px; }
}

@media (max-width: 1100px) {
  .why-top, .benefits-layout, .events-layout, .split, .contact-layout, .reading, .detail-row, .detail-row.reverse, .pair { grid-template-columns: 1fr; }
  .detail-row.reverse img { order: 0; }
  .reading-aside { position: static; }
  .benefit-grid, .event-row, .event-list, .blog-grid { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .plan { grid-template-columns: 1fr; }
  .plan-photo { min-height: 220px; }
  .events-copy p { max-width: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .site-nav { display: flex; }
  .nav-links, .header-cta { flex-direction: column; align-items: stretch; }
  .header-cta .btn { width: 100%; }
  .footer-top, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .footer-connect, .socials, .footer-connect p { justify-self: start; text-align: left; }
  .socials { justify-content: flex-start; }
  .plan-grid, .benefit-grid, .event-row, .event-list, .blog-grid, .pillar-grid, .form-grid, .reasons, .process {
    grid-template-columns: 1fr;
  }
  .brand-logo, .custom-logo { height: 42px; }
  .hero { min-height: 0; background-position: center top; }
  .hero-copy { padding: 56px 0; }
  .events-next { display: none; }
  .single-cover, .split img { height: 240px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .event-card { transition: none; }
}
