:root {
    --navy-950: #070c1b;
    --navy-900: #0d152c;
    --navy-800: #121f3f;
    --navy-700: #1c2f5a;
    --gold-500: #b88a4a;
    --gold-400: #c59a5b;
    --gold-200: #ead7b8;
    --slate-900: #151b2a;
    --slate-700: #3d475f;
    --slate-500: #6e7690;
    --paper-50: #fbf8f4;
    --paper-100: #f3eee6;
    --white: #ffffff;
    --line: #d8cfbf;
    --success: #1f7a37;
    --danger: #a32e2e;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 45px rgba(10, 18, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fcfaf6 0%, #f4efe7 100%);
    color: var(--slate-900);
    font-family: 'Mulish', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--navy-700);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--gold-500);
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: var(--radius-sm);
}

.home-map-embed {
    min-height: 420px;
}

.contact-map-embed {
    min-height: 520px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto Slab', Georgia, serif;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(2rem, 4.3vw, 3.4rem);
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.15rem;
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy-900);
    color: var(--white);
    padding: 0.7rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    left: 0.8rem;
    top: 0.8rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: var(--white);
    opacity: 1;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled,
.site-header.is-scrolled {
    background: var(--white);
    opacity: 1;
}

.topbar {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-inner p {
    margin: 0;
}

.topbar-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-badge {
    color: var(--gold-200);
    border: 1px solid rgba(234, 215, 184, 0.45);
    border-radius: 999px;
    padding: 0.12rem 0.58rem;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--white);
    opacity: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    color: inherit;
}

.brand:hover,
.brand:focus {
    text-decoration: none;
}

.brand-mark {
    width: 200px;
    height: 80px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-nav > a {
    font-weight: 700;
    color: var(--slate-900);
}

.primary-nav > a.is-active {
    color: var(--gold-500);
}

.menu-toggle {
    display: none;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-weight: 700;
    background: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.63rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(120deg, var(--gold-500), #d0a66d);
    color: #1a1a1a;
    box-shadow: 0 10px 24px rgba(184, 138, 74, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(120deg, #d0a66d, #dfb57b);
    color: #1a1a1a;
}

.btn-outline {
    background: transparent;
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.btn-outline:hover,
.btn-outline:focus {
    color: var(--white);
    background: var(--navy-700);
    border-color: var(--navy-700);
}

.btn-secondary {
    background: var(--white);
    color: var(--slate-900);
    border-color: var(--line);
}

.flash {
    width: min(1160px, 92vw);
    margin: 1rem auto;
    padding: 0.8rem 1rem;
    border-left: 4px solid;
    border-radius: 8px;
}

.flash-success {
    background: #e8f7eb;
    border-color: var(--success);
}

.flash-error {
    background: #fde8e8;
    border-color: var(--danger);
}

section {
    padding: 4rem 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--gold-500);
    margin-bottom: 0.55rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.hero-section {
    padding-top: 4.8rem;
    background-image:
        linear-gradient(110deg, rgba(8, 13, 29, 0.52), rgba(14, 26, 57, 0.4)),
        radial-gradient(circle at 10% 18%, rgba(184, 138, 74, 0.1), transparent 45%),
        url('../images/fundo2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero-panel {
    border-left: 4px solid var(--gold-500);
    padding-left: 1.2rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.4rem 0;
}

.hero-badges {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-badges li {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-contact {
    color: rgba(255, 255, 255, 0.88);
}

.hero-aside {
    display: grid;
    gap: 0.8rem;
}

.hero-aside img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.team-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.team-member-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.team-member-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    margin-bottom: 0.7rem;
}

.team-member-card h3 {
    margin-bottom: 0.45rem;
}

.team-member-list {
    margin: 0.6rem 0 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.counter-band {
    background: var(--navy-950);
    color: var(--gold-200);
    padding: 1.6rem 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.counter-grid article {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.4rem 0.8rem;
}

.counter-grid article:last-child {
    border-right: 0;
}

.counter-grid strong {
    display: block;
    color: var(--white);
    font-family: 'Roboto Slab', serif;
    font-size: 1.7rem;
}

.counter-grid span {
    font-size: 0.95rem;
}

.card-grid,
.pillars-grid,
.testimonials-grid,
.faq-grid,
.post-grid {
    display: grid;
    gap: 1rem;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-400);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.info-card a {
    font-weight: 800;
}

.section-contrast {
    background:
        linear-gradient(130deg, rgba(8, 13, 29, 0.96), rgba(17, 31, 64, 0.96));
    color: var(--paper-50);
}

.section-contrast .eyebrow,
.section-contrast a,
.section-contrast .compliance-note {
    color: var(--gold-200);
}

.section-contrast .btn-outline {
    color: var(--gold-200);
    border-color: var(--gold-200);
}

.section-contrast .btn-outline:hover,
.section-contrast .btn-outline:focus {
    background: var(--gold-500);
    color: #101010;
    border-color: var(--gold-500);
}

.pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar {
    border: 1px solid rgba(234, 215, 184, 0.34);
    border-radius: var(--radius-sm);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: start;
}

.team-highlight,
.form-card,
.blog-sidebar,
.post-card,
.table-wrap,
.admin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-highlight,
.form-card,
.blog-sidebar,
.admin-card {
    padding: 1.2rem;
}

.team-highlight li {
    margin-bottom: 0.35rem;
}

.timeline {
    display: grid;
    gap: 0.9rem;
}

.timeline article {
    border-left: 3px solid var(--gold-500);
    padding-left: 0.8rem;
}

.mini-post {
    padding: 0.85rem;
    border: 1px dashed #ceb996;
    border-radius: 10px;
    margin-bottom: 0.7rem;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonials-grid blockquote {
    margin: 0;
    border-radius: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(234, 215, 184, 0.32);
}

.compliance-note {
    margin-top: 0.85rem;
    font-size: 0.94rem;
}

.form-card {
    display: grid;
    gap: 0.55rem;
}

label {
    font-weight: 700;
    font-size: 0.92rem;
}

input,
textarea,
select {
    min-height: 44px;
    border: 1px solid #bfc3ce;
    border-radius: 8px;
    padding: 0.62rem 0.75rem;
    font: inherit;
    color: inherit;
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.checkbox {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 500;
}

.checkbox input {
    width: 18px;
    min-height: auto;
    margin-top: 0.16rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.4rem;
}

.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background: linear-gradient(130deg, #111a35 0%, #1a2a54 100%);
    color: var(--white);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
}

.blog-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
    display: grid;
    gap: 0.35rem;
}

.blog-sidebar a {
    padding: 0.34rem 0;
    font-weight: 700;
}

.blog-sidebar a.is-active {
    color: var(--gold-500);
}

.sidebar-cta {
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
    overflow: hidden;
}

.post-card img {
    border-radius: 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-body {
    padding: 1rem;
}

.post-meta {
    font-size: 0.87rem;
    color: var(--slate-500);
    font-weight: 700;
}

.post-article .container {
    max-width: 860px;
}

.post-article .lead {
    color: var(--slate-700);
    font-size: 1.08rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 800;
}

.post-content p {
    margin-bottom: 1rem;
}

.pagination-wrap {
    margin-top: 1.2rem;
}

.pagination-wrap .pagination {
    list-style: none;
    display: flex;
    gap: 0.45rem;
    padding: 0;
}

.pagination-wrap .page-link {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 0.25rem 0.6rem;
}

.pagination-wrap .active .page-link {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: #111;
}

.legal-content h2 {
    margin-top: 1.15rem;
}

.site-footer {
    margin-top: 2rem;
    background:
        linear-gradient(130deg, var(--navy-950), var(--navy-900));
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 0 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.2rem;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 0.7rem;
    border-radius: 0;
}

.footer-links {
    display: grid;
    gap: 0.2rem;
    align-content: start;
}

.site-footer a {
    color: var(--gold-200);
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.8rem;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 12px;
    background: #10192f;
    color: var(--paper-50);
    border: 1px solid rgba(234, 215, 184, 0.28);
    box-shadow: var(--shadow);
    z-index: 130;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.72rem 1.05rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f6a3c, #25d366);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(7, 58, 33, 0.35);
    z-index: 125;
}

.whatsapp-float-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background: linear-gradient(135deg, #0c5a33, #1fae52);
    color: #fff;
    text-decoration: none;
}

.cookie-controls {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: var(--paper-50);
}

.admin-header {
    background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-header-actions a {
    color: var(--gold-200);
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    background: #10192f;
    color: var(--paper-50);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
}

.admin-sidebar h2 {
    color: var(--gold-200);
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-sidebar-nav a {
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.52rem 0.65rem;
    font-weight: 700;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a:focus {
    text-decoration: none;
    border-color: rgba(234, 215, 184, 0.35);
}

.admin-sidebar-nav a.is-active {
    background: rgba(184, 138, 74, 0.2);
    border-color: rgba(234, 215, 184, 0.45);
    color: var(--gold-200);
}

.admin-content-wrap {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-topbar p {
    margin: 0.25rem 0 0;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-main {
    padding: 1.4rem;
}

.admin-footer {
    border-top: 1px solid var(--line);
    background: #f8f4ee;
    padding: 0.75rem 1.4rem;
}

.admin-footer p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.admin-cover-preview {
    width: min(420px, 100%);
    border: 1px solid var(--line);
}

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 0.68rem;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.actions-cell form {
    margin: 0;
}

.actions-cell button {
    border: 1px solid #c66d6d;
    background: var(--white);
    color: #892727;
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
}

@media (max-width: 1120px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .split-section,
    .team-members-grid,
    .blog-layout,
    .testimonials-grid,
    .faq-grid,
    .post-grid,
    .footer-grid,
    .pillars-grid,
    .counter-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid article {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .counter-grid article:last-child {
        border-bottom: 0;
    }

    .blog-sidebar {
        position: static;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 920px) {
    .topbar {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        min-height: 74px;
    }

    .primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: #f7f2ea;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .home-map-embed {
        min-height: 320px;
    }

    .contact-map-embed {
        min-height: 320px;
    }

    .whatsapp-float {
        bottom: 0.9rem;
        right: 0.9rem;
        padding: 0.66rem 0.9rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
