:root {
    --ink: #152024;
    --muted: #5d6b6b;
    --paper: #fbf8f3;
    --cream: #f8efe3;
    --green: #7a1836;
    --green-soft: #f4e8ed;
    --coral: #f2a400;
    --blue: #315f78;
    --white: #ffffff;
    --line: rgba(21, 32, 36, 0.14);
    --shadow: 0 20px 50px rgba(21, 32, 36, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.draft-bar {
    padding: 10px 18px;
    color: #4d2d00;
    background: #fff0c2;
    border-bottom: 1px solid #e7c979;
    font-size: 14px;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 54px);
    background: rgba(251, 248, 243, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(156px, 16vw, 230px);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.site-nav a {
    text-decoration: none;
}

.nav-cta {
    padding: 10px 16px;
    color: var(--white);
    background: var(--green);
    border-radius: 6px;
}

.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: clamp(72px, 12vw, 130px) clamp(22px, 6vw, 86px);
    color: var(--white);
    background-image: url("../img/hero-lazos-consulta.png");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(62, 10, 29, 0.86), rgba(92, 18, 44, 0.46) 48%, rgba(92, 18, 44, 0.12));
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #ffd58a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--coral);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.hero-copy {
    max-width: 620px;
    margin: 26px 0 0;
    font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
}

.button.secondary {
    color: var(--white);
}

.button.ghost {
    color: var(--white);
    background: transparent;
}

.button.ghost.ink {
    color: var(--ink);
    border-color: var(--line);
}

.button.primary.dark {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.intro-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.intro-band div {
    min-height: 124px;
    padding: 28px clamp(18px, 4vw, 46px);
    background: var(--white);
}

.intro-band strong,
.intro-band span {
    display: block;
}

.intro-band strong {
    color: var(--green);
    font-size: 18px;
}

.intro-band span {
    margin-top: 8px;
    color: var(--muted);
}

.section {
    padding: clamp(64px, 8vw, 108px) clamp(22px, 6vw, 86px);
}

.local-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: start;
    background: var(--green-soft);
}

.local-section p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 18px;
}

.local-section strong {
    color: var(--green);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: start;
}

.two-col p,
.trust-copy p,
.contact-section p {
    color: var(--muted);
    font-size: 18px;
}

.steps {
    display: grid;
    gap: 16px;
}

.steps article,
.faq article {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.steps span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-weight: 900;
}

.steps p,
.faq p {
    margin: 0;
    color: var(--muted);
}

.trust-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
    gap: clamp(30px, 5vw, 72px);
    color: var(--white);
    background: var(--green);
}

.trust-section .eyebrow {
    color: #ffd58a;
}

.trust-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.trust-list {
    display: grid;
    gap: 14px;
    align-content: center;
}

.trust-list p {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.86);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    background: var(--cream);
}

address {
    display: grid;
    gap: 8px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-style: normal;
}

address strong {
    color: var(--green);
}

address span {
    color: var(--muted);
}

address a {
    margin-top: 10px;
    color: var(--blue);
    font-weight: 800;
}

.faq {
    background: var(--paper);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(22px, 6vw, 86px);
    color: rgba(255, 255, 255, 0.82);
    background: #101c1f;
}

.site-footer strong {
    color: var(--white);
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: start;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-link {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.cookie-consent {
    position: fixed;
    right: clamp(14px, 3vw, 34px);
    bottom: clamp(14px, 3vw, 34px);
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    max-width: min(920px, calc(100vw - 28px));
    padding: 22px;
    color: var(--white);
    background: rgba(21, 32, 36, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cookie-consent h2,
.cookie-panel h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.1;
}

.cookie-consent p,
.cookie-panel p {
    margin: 0;
}

.cookie-consent p {
    color: rgba(255, 255, 255, 0.82);
}

.cookie-consent a {
    color: #ffd58a;
    font-weight: 800;
}

.cookie-panel a {
    color: var(--blue);
    font-weight: 800;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(21, 32, 36, 0.54);
}

.cookie-panel-box {
    width: min(620px, 100%);
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(21, 32, 36, 0.28);
}

.cookie-panel-box > p {
    color: var(--muted);
}

.cookie-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.cookie-option.locked {
    cursor: default;
}

.cookie-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--green);
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.cookie-panel .cookie-actions {
    margin-top: 22px;
}

.cookie-consent[hidden],
.cookie-panel[hidden] {
    display: none;
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero {
        min-height: 72vh;
        padding-top: 84px;
        background-position: 58% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(62, 10, 29, 0.9), rgba(92, 18, 44, 0.64));
    }

    .intro-band,
    .local-section,
    .two-col,
    .trust-section,
    .contact-section,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }

    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .button {
        flex: 1 1 150px;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        width: 168px;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 42px;
    }

    .button {
        width: 100%;
    }

    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 18px;
    }

    .cookie-panel {
        align-items: end;
        padding: 10px;
    }

    .cookie-panel-box {
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 20px;
    }
}
