/* ============================================================
   Congreso Mundial por la Paz — Estilos principales
   Paleta: azul navy #1a2b4a  ·  dorado #d4af37
   ============================================================ */
:root {
    --navy: #1a2b4a;
    --navy-dark: #111e36;
    --navy-light: #22335a;
    --gold: #d4af37;
    --gold-soft: #e6c860;
    --cream: #f7f4ec;
    --text: #2c3140;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(17, 30, 54, .12);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }
section { padding: 84px 0; }

h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; color: var(--navy); line-height: 1.2; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 10px; }
.section-title span { color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 48px; font-size: 1.05rem; }
.gold-line { width: 90px; height: 3px; background: var(--gold); margin: 14px auto 26px; border-radius: 2px; }

/* Botones */
.btn {
    display: inline-block; padding: 13px 30px; border-radius: 40px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: .25s; font-size: .98rem;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(26,43,74,.97);
    backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.nav-brand b { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.1; }
.nav-brand small { color: var(--gold-soft); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a { color: #e9edf5; padding: 9px 14px; border-radius: 8px; font-size: .93rem; font-weight: 500; transition: .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(212,175,55,.18); color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.7rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: var(--white); text-align: center;
    background: radial-gradient(circle at 50% 30%, #26406e 0%, var(--navy) 55%, var(--navy-dark) 100%);
    padding: 96px 0 104px; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(212,175,55,.13) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5;
}
.hero-inner { position: relative; z-index: 2; }
.hero img.hero-logo { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 0 0 4px var(--gold), var(--shadow); background: #fff; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 6vw, 3.6rem); }
.hero .accent { color: var(--gold); }
.hero .tagline { font-size: 1.2rem; color: #d7deea; max-width: 720px; margin: 18px auto 8px; }
.hero .dates { display: inline-block; margin: 18px 0 30px; padding: 8px 22px; border: 1px solid var(--gold); border-radius: 40px; color: var(--gold-soft); letter-spacing: 1px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Franja de banderas */
.flag-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 42px; }
.flag-strip span { font-size: 1.7rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

/* ---------- Sobre / cards ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 20px; }
.card {
    background: var(--white); border-radius: var(--radius); padding: 34px 30px;
    box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: .25s;
}
.card:hover { transform: translateY(-6px); }
.card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card ul { color: var(--muted); padding-left: 20px; }
.card ul li { margin: 7px 0; }

.about-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.about-intro p { color: var(--muted); font-size: 1.12rem; }

/* Alterna fondo */
.bg-navy { background: var(--navy); }
.bg-navy .section-title, .bg-navy h3, .bg-navy h2 { color: var(--white); }
.bg-navy .section-sub { color: #c3ccdb; }
.bg-white { background: var(--white); }

/* ---------- Programa / Agenda ---------- */
.agenda { max-width: 860px; margin: 0 auto; }
.agenda-day { margin-bottom: 34px; }
.agenda-day h3 { color: var(--gold); border-bottom: 2px solid rgba(212,175,55,.35); padding-bottom: 8px; margin-bottom: 14px; }
.agenda-item { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 14px 16px; border-radius: 10px; transition: .2s; }
.agenda-item:hover { background: rgba(212,175,55,.10); }
.agenda-item .time { font-weight: 700; color: var(--gold); }
.agenda-item .activity { color: #e9edf5; }
.agenda-item .speaker { color: #9fb0cc; font-size: .9rem; }

/* ---------- Ediciones ---------- */
.editions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.edition {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); text-align: center; transition: .25s; border: 1px solid #eee;
}
.edition:hover { transform: translateY(-6px); }
.edition .logo-wrap { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 170px; }
.edition .logo-wrap img { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; }
.edition .logo-placeholder { width: 120px; height: 120px; border: 3px dashed var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: Georgia, serif; font-size: 1.5rem; }
.edition .body { padding: 22px 20px; }
.edition .year { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; padding: 3px 14px; border-radius: 20px; font-size: .85rem; }
.edition h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.edition .country { color: var(--gold); font-weight: 600; }
.edition p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.edition.current { border: 2px solid var(--gold); }
.edition.current .badge-now { display: inline-block; background: var(--navy); color: var(--gold); font-size: .7rem; padding: 2px 10px; border-radius: 12px; margin-top: 6px; letter-spacing: 1px; }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid a { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(17,30,54,.85)); color: #fff; padding: 22px 12px 10px; font-size: .85rem; }
.empty-note { text-align: center; color: var(--muted); padding: 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,16,30,.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 24px; right: 34px; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); }
.post-card .thumb { height: 190px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .ph { color: var(--gold); font-size: 3rem; }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .date { color: var(--gold); font-size: .82rem; font-weight: 600; }
.post-card h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card .read { margin-top: 14px; font-weight: 600; }

.post-single { max-width: 820px; margin: 0 auto; }
.post-single .meta { color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.post-single h1 { margin-bottom: 18px; }
.post-single .hero-img { border-radius: var(--radius); margin: 20px 0 26px; box-shadow: var(--shadow); }
.post-single .content p { margin-bottom: 16px; color: var(--text); font-size: 1.06rem; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-box { background: var(--navy); color: #dbe2ee; padding: 38px; border-radius: var(--radius); }
.contact-info-box h3 { color: var(--gold); margin-bottom: 16px; }
.contact-info-box p { margin: 10px 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .92rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d4d9e2; border-radius: 8px; font-size: .97rem; font-family: inherit; transition: .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e4f5e9; color: #1e6b3a; border: 1px solid #b6e0c4; }
.alert-error { background: #fdeaea; color: #a12626; border: 1px solid #f2c2c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c3d6; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand b { color: #fff; font-family: Georgia, serif; font-size: 1.1rem; }
.site-footer h4 { color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin: 8px 0; }
.site-footer ul a { color: #b9c3d6; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .85rem; color: #8593aa; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 500;
    width: 60px; height: 60px; border-radius: 50%; background: #25d366;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 8px 24px rgba(37,211,102,.5); transition: .25s; animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; }
@keyframes waPulse { 0%,100%{ box-shadow:0 8px 24px rgba(37,211,102,.5);} 50%{ box-shadow:0 8px 34px rgba(37,211,102,.85);} }

/* ---------- Page header (subpáginas) ---------- */
.page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; text-align: center; padding: 70px 0 60px; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); }
.page-head p { color: var(--gold-soft); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: var(--navy); padding: 14px; gap: 4px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
    .footer-brand { justify-content: center; }
    .agenda-item { grid-template-columns: 80px 1fr; }
    section { padding: 60px 0; }
}
