/* =============================================================================
   medellinvenues.com — Invitación design system
   Not the AI-default warm-cream + serif + terracotta look.
   Deep burgundy ink, cool ivory paper, real print typography.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..600,50..100&family=EB+Garamond:ital,wght@0,400..600;1,400..500&display=swap');

:root {
    --paper: #F1EDE3;
    --paper-soft: #F7F2E8;
    --paper-shade: #E8E1D2;
    --ink: #2A1519;
    --ink-soft: #4A2E32;
    --ink-quiet: #7A6260;
    --copper: #A6714E;
    --copper-soft: #C8967A;
    --sage: #4E5D3F;
    --rule: rgba(42, 21, 25, 0.18);
    --rule-soft: rgba(42, 21, 25, 0.08);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, serif;
    --max-w: 1080px;
    --max-read: 640px;
}

* { box-sizing: border-box; }

html {
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.65;
    background: var(--paper);
    color: var(--ink);
    font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
}

body.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease; }
body.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    body.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: "opsz" 96, "SOFT" 60;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 2em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.6em; }

p { margin: 0 0 1.1em; }
p + p { text-indent: 0; }

a {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    transition: background-size .2s ease, color .2s ease;
    padding-bottom: 1px;
}
a:hover, a:focus {
    color: var(--copper);
    background-size: 100% 2px;
}

::selection { background: var(--ink); color: var(--paper); }

/* ---- Layout primitives ---- */

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-read { max-width: var(--max-read); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule-soft); }

.rule {
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    color: var(--copper);
}
.rule svg { width: 240px; height: auto; opacity: 0.7; }

/* ---- Header ---- */

.site-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule-soft);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(241, 237, 227, 0.94);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    font-variation-settings: "opsz" 60, "SOFT" 100;
    letter-spacing: 0.005em;
    color: var(--ink);
    background: none;
    padding: 0;
}
.logo em { font-style: italic; color: var(--copper); font-weight: 300; }
.logo:hover { color: var(--copper); background: none; }
nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-soft);
    background: none;
    padding: 4px 0;
    letter-spacing: 0.01em;
}
nav.primary a:hover { color: var(--copper); background: none; }
nav.primary a.cta {
    background: var(--ink);
    color: var(--paper);
    padding: 9px 18px;
    border-radius: 2px;
    font-size: 14px;
    font-variant-numeric: oldstyle-nums;
}
nav.primary a.cta:hover { background: var(--copper); color: var(--paper-soft); }

@media (max-width: 720px) {
    nav.primary { gap: 16px; }
    nav.primary a:not(.cta) { display: none; }
}

/* ---- Hero — the invitation card ---- */

.hero {
    padding: 84px 0 96px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 40% at 50% 20%, rgba(166, 113, 78, 0.06), transparent 70%),
        var(--paper);
    position: relative;
}

.invitation {
    max-width: 620px;
    margin: 0 auto;
    padding: 56px 40px 48px;
    background: var(--paper-soft);
    border: 1px solid var(--rule);
    position: relative;
    box-shadow: 0 1px 0 rgba(42,21,25,0.03), 0 30px 60px -40px rgba(42,21,25,0.25);
}
.invitation::before, .invitation::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--rule);
}
.invitation::before { top: 14px; }
.invitation::after { bottom: 14px; }

.invitation .above {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--ink-quiet);
    margin-bottom: 20px;
}
.invitation h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-weight: 300;
    font-size: clamp(2.2rem, 5.2vw, 3.3rem);
    line-height: 1.05;
    margin: 0 0 22px;
}
.invitation h1 em {
    font-style: italic;
    color: var(--copper);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.invitation .below {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 440px;
    margin: 20px auto 28px;
}
.invitation .actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    letter-spacing: 0.005em;
}
.btn:hover, .btn:focus {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--paper-soft);
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.wa { background: #128C7E; border-color: #128C7E; color: #fff; }
.btn.wa:hover { background: #0e6f64; border-color: #0e6f64; }

/* Small hero flourish */
.hero-flourish {
    display: block;
    margin: 0 auto 28px;
    width: 44px;
    height: 44px;
    color: var(--copper);
}

/* ---- Section headers ---- */

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}
.section-head h2 { margin-top: 0; }
.section-head p {
    color: var(--ink-quiet);
    font-size: 17px;
    font-style: italic;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Venue grid ---- */

.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.venue-card {
    background: var(--paper-soft);
    border: 1px solid var(--rule);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px -32px rgba(42,21,25,0.28);
    border-color: var(--copper-soft);
}
.venue-card .zone {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--copper);
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.venue-card h3 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 72, "SOFT" 40;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0 0 12px;
}
.venue-card h3 a { background: none; padding: 0; }
.venue-card h3 a:hover { color: var(--copper); background: none; }
.venue-card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0 0 18px;
    flex: 1;
}
.venue-card .facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rule-soft);
    font-size: 13.5px;
    color: var(--ink-quiet);
    font-variant-numeric: oldstyle-nums;
    font-style: italic;
}
.venue-card .facts span {
    white-space: nowrap;
    padding-right: 14px;
    border-right: 1px solid var(--rule-soft);
}
.venue-card .facts span:last-child { border-right: none; padding-right: 0; }

/* ---- Venue detail page ---- */

.venue-detail {
    padding: 64px 0;
}
.venue-detail .breadcrumb {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-quiet);
    margin-bottom: 32px;
}
.venue-detail h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 40;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin: 0 0 14px;
}
.venue-detail .zone-line {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 18px;
    color: var(--copper);
    margin-bottom: 32px;
}
.venue-detail .facts-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px 40px;
    padding: 28px 0;
    margin: 32px 0 40px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.venue-detail .facts-block .fact strong {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--ink-quiet);
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.venue-detail .facts-block .fact {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    font-variant-numeric: oldstyle-nums;
}
.venue-detail .body p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
    max-width: 640px;
}
.venue-detail .price-note {
    font-style: italic;
    color: var(--ink-quiet);
    font-size: 16px;
    padding: 16px 20px;
    background: var(--paper-soft);
    border-left: 3px solid var(--copper);
    margin: 32px 0;
    max-width: 640px;
}

/* ---- Contact / CTA blocks ---- */

.cta-block {
    background: var(--ink);
    color: var(--paper-soft);
    padding: 72px 0;
    text-align: center;
    border: none;
}
.cta-block h2 {
    color: var(--paper);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 96, "SOFT" 60;
    font-weight: 300;
    margin-bottom: 20px;
}
.cta-block h2 em { color: var(--copper-soft); font-style: italic; }
.cta-block p {
    color: rgba(247, 242, 232, 0.8);
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 18px;
}
.cta-block .btn {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.cta-block .btn:hover { background: var(--copper); color: var(--paper-soft); border-color: var(--copper); }
.cta-block .btn.wa { background: #25D366; color: #0a2a25; border-color: #25D366; }
.cta-block .btn.wa:hover { background: #1fb156; border-color: #1fb156; color: #0a2a25; }

/* ---- Blog index ---- */

.blog-list {
    max-width: 720px;
    margin: 0 auto;
}
.blog-list article {
    padding: 36px 0;
    border-top: 1px solid var(--rule-soft);
}
.blog-list article:last-child { border-bottom: 1px solid var(--rule-soft); }
.blog-list h3 {
    font-size: 1.65rem;
    margin: 0 0 10px;
}
.blog-list h3 a { background: none; padding: 0; }
.blog-list h3 a:hover { color: var(--copper); background: none; }
.blog-list .summary {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.blog-list .date {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--ink-quiet);
    font-variant-numeric: oldstyle-nums;
}

/* ---- Article page ---- */

.article-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 24px 40px;
}
.article-body .breadcrumb {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-quiet);
    margin-bottom: 40px;
}
.article-body h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 40;
    font-weight: 300;
    font-size: clamp(2.2rem, 4.4vw, 3rem);
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}
.article-body .date {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-quiet);
    margin-bottom: 40px;
    font-variant-numeric: oldstyle-nums;
}
.article-body p {
    font-size: 19px;
    line-height: 1.75;
    margin: 0 0 1.2em;
    color: var(--ink);
}
.article-body h2 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 96, "SOFT" 60;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2.4em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body em { font-style: italic; }

/* ---- Qualifier ---- */

.qual-page {
    min-height: 70vh;
    padding: 64px 0;
}
.qual-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--paper-soft);
    border: 1px solid var(--rule);
    padding: 44px 40px;
    position: relative;
}
.qual-progress {
    height: 2px;
    background: var(--rule-soft);
    margin-bottom: 32px;
    overflow: hidden;
}
.qual-progress .bar {
    height: 100%;
    background: var(--copper);
    width: 0%;
    transition: width .35s ease;
}
.qual-step h2 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 96, "SOFT" 40;
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 24px;
}
.qual-options { display: flex; flex-direction: column; gap: 10px; }
.qual-options label {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    background: var(--paper);
    cursor: pointer;
    font-size: 17px;
    transition: border-color .15s ease, background .15s ease;
}
.qual-options label:hover { border-color: var(--copper); background: #fff; }
.qual-options input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.qual-options label.chosen { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.qual-actions {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.qual-actions .btn-back {
    background: none;
    border: 1px solid var(--rule);
    color: var(--ink-soft);
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    border-radius: 2px;
}
.qual-actions .btn-back:hover { color: var(--ink); border-color: var(--ink); }
.qual-form-field { margin-bottom: 18px; }
.qual-form-field label {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-quiet);
    margin-bottom: 6px;
}
.qual-form-field input, .qual-form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 17px;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    border-radius: 2px;
}
.qual-form-field input:focus, .qual-form-field textarea:focus {
    outline: none;
    border-color: var(--copper);
    background: #fff;
}
.qual-form-field textarea { min-height: 90px; resize: vertical; }

/* ---- Contact page ---- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 720px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-form {
    background: var(--paper-soft);
    border: 1px solid var(--rule);
    padding: 36px 32px;
}
.contact-aside h2 { margin-top: 0; }
.contact-aside p { color: var(--ink-soft); }
.contact-aside .wa-link {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 22px;
    background: #25D366;
    color: #0a2a25;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 16px;
}
.contact-aside .wa-link:hover { background: #1fb156; color: #0a2a25; }

.form-status { margin-top: 16px; font-family: var(--font-body); font-style: italic; font-size: 15px; min-height: 22px; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #8B3A2F; }

/* ---- Sticky WhatsApp ---- */

.wa-sticky {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    background: #25D366;
    color: #0a2a25;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
    background-image: none;
    padding: 0;
}
.wa-sticky:hover {
    transform: scale(1.06);
    color: #0a2a25;
    background: #1fb156;
}
.wa-sticky svg { width: 28px; height: 28px; }

/* ---- Footer ---- */

.site-footer {
    background: var(--ink);
    color: rgba(247, 242, 232, 0.75);
    padding: 56px 0 32px;
    margin-top: 0;
}
.site-footer .wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 720px) {
    .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer h4 {
    font-family: var(--font-display);
    color: var(--paper);
    font-weight: 400;
    font-size: 1.15rem;
    margin: 0 0 14px;
    font-variation-settings: "opsz" 60, "SOFT" 60;
}
.site-footer p, .site-footer li {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(247, 242, 232, 0.65);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a {
    color: rgba(247, 242, 232, 0.85);
    background-image: linear-gradient(var(--copper-soft), var(--copper-soft));
    background-size: 0% 1px;
}
.site-footer a:hover {
    color: var(--copper-soft);
    background-size: 100% 1px;
}
.site-footer .legal {
    grid-column: 1 / -1;
    padding-top: 28px;
    margin-top: 24px;
    border-top: 1px solid rgba(247, 242, 232, 0.1);
    font-size: 13px;
    color: rgba(247, 242, 232, 0.45);
    text-align: center;
    font-style: italic;
    font-variant-numeric: oldstyle-nums;
}

/* ---- 404 ---- */

.notfound {
    text-align: center;
    padding: 120px 24px;
}
.notfound h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0 0 16px;
    color: var(--copper);
    font-variant-numeric: oldstyle-nums;
}
.notfound p {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ---- Focus ring ---- */

*:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}
