/* Brújula Ciudadana — Premium dark navy / gold theme */

:root {
    --navy-950: #070D18;
    --navy-900: #0F1A2E;
    --navy-800: #162440;
    --navy-700: #1E3054;
    --navy-600: #2A4068;
    --gold-500: #C9A962;
    --gold-400: #D4BC82;
    --gold-300: #E2D4A8;
    --cream: #F4F0E6;
    --text-primary: #E8ECF4;
    --text-muted: #9BA8BE;
    --text-subtle: #6B7A94;
    --border-gold: rgba(201, 169, 98, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --panel-bg: rgba(22, 36, 64, 0.72);
    --shadow-panel: 0 24px 48px rgba(0, 0, 0, 0.35);
    --rail-width: 280px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--navy-950);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201, 169, 98, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(30, 48, 84, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-block img,
.hero-visual img,
.page-header-visual img,
.split-section-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-visual img {
    aspect-ratio: 5 / 3;
}

.page-header-visual img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
}

a {
    color: var(--gold-400);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--gold-300);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--cream);
    margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

address { font-style: normal; }

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 600;
    border-radius: var(--radius-sm);
    clip: auto;
    width: auto;
    height: auto;
}

/* Shell & Rail Layout */
.site-shell {
    --mobile-header-h: 4.5rem;
}

.site-shell {
    display: block;
    min-height: 100vh;
}

.site-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--rail-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: var(--navy-900);
    border-right: 1px solid var(--border-gold);
    z-index: 300;
    overflow-y: auto;
}

.rail-brand {
    margin-bottom: 2.5rem;
}

.rail-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.rail-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.rail-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.rail-logo-text strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--cream);
}

.rail-logo-text span {
    font-size: 0.8125rem;
    color: var(--gold-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rail-tagline {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rail-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rail-nav li + li {
    margin-top: 0.25rem;
}

.rail-nav a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition);
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
    color: var(--cream);
    background: rgba(201, 169, 98, 0.08);
    border-left-color: var(--gold-500);
}

.rail-nav a[aria-current="page"] {
    color: var(--gold-400);
    background: rgba(201, 169, 98, 0.12);
    border-left-color: var(--gold-500);
    font-weight: 500;
}

.rail-contact {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.rail-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin: 0 0 0.5rem;
}

.rail-contact a {
    display: block;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.375rem;
}

.rail-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    background: var(--navy-800);
    cursor: pointer;
}

.rail-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--gold-500);
}

body.nav-open {
    overflow: hidden;
}

.nav-backdrop[hidden] {
    display: none !important;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--mobile-header-h);
    z-index: 240;
    background: rgba(7, 13, 24, 0.72);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.mobile-drawer[hidden] {
    display: none !important;
}

.mobile-drawer {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-header-h);
    bottom: 0;
    z-index: 250;
    overflow-y: auto;
    background: var(--navy-900);
    border-top: 1px solid var(--border-gold);
    padding: 1.5rem;
}

.mobile-drawer.is-open {
    display: block;
}

.site-main {
    margin-left: var(--rail-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

#contenido-principal {
    flex: 1;
}

/* Panels */
.page-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-inner {
    max-width: 900px;
}

.page-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.page-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 65ch;
}

.page-content {
    padding: 2.5rem 3rem 4rem;
    flex: 1;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-panel);
}

@media (prefers-reduced-motion: no-preference) {
    .panel {
        animation: fadeInUp 0.5s ease both;
    }
}

.panel-gold {
    border-color: var(--border-gold);
}

.panel-grid {
    display: grid;
    gap: 2rem;
}

.panel-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    margin-bottom: 1.25rem;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--gold-400);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: -8px -8px 8px 8px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.5;
}

/* Cards */
.card {
    background: rgba(15, 26, 46, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 98, 0.15);
    color: var(--gold-500);
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--gold-300);
}

.card p:last-child {
    margin-bottom: 0;
}

.card-hover {
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 50%;
}

/* Stats rail */
.stats-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border-gold);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 2rem 0;
}

.stat-item {
    background: var(--navy-800);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-400);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Image blocks */
.image-block {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.image-block img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-block figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--navy-800);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    color: var(--gold-400);
    border-color: var(--border-gold);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(201, 169, 98, 0.1);
    color: var(--gold-300);
}

.btn-link {
    background: transparent;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
}

.btn-link:hover {
    color: var(--gold-400);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--navy-950);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group-check input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--gold-500);
}

.form-group-check label {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.form-success {
    padding: 1rem 1.25rem;
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--gold-300);
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-list {
    list-style: none;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
    padding: 1.25rem 0;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cream);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    color: var(--gold-500);
    font-size: 1.25rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 1.25rem;
    color: var(--text-muted);
}

/* Map */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    aspect-ratio: 16 / 9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Legal pages */
.legal-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    color: var(--gold-300);
    margin-top: 1.5rem;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    background: var(--navy-900);
    border-top: 1px solid var(--border-gold);
    padding: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block h2 {
    font-size: 1rem;
    color: var(--gold-400);
    margin-bottom: 1rem;
}

.footer-block p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.footer-contact-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li,
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    max-width: 70ch;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem;
    background: var(--navy-800);
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-inner {
    max-width: 960px;
    margin: 0 auto;
}

.cookie-inner h2 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cookie-inner p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Process steps */
.process-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.process-steps li {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
    border-left: 1px solid var(--border-gold);
    margin-left: 1rem;
}

.process-steps li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.process-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
}

/* CTA Banner */
.cta-banner {
    margin-top: 1rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-panel);
}

.cta-banner-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta-banner h2 {
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Service cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.service-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.service-card-featured {
    grid-column: 1 / -1;
    border-color: var(--border-gold);
    background: linear-gradient(145deg, rgba(22, 36, 64, 0.95), rgba(30, 48, 84, 0.85));
}

.service-card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-featured.service-card--media {
    display: grid;
    grid-template-columns: minmax(220px, 38%) 1fr;
    align-items: stretch;
}

.service-card-media {
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.service-card-featured .service-card-media {
    border-bottom: none;
    border-right: 1px solid var(--border-gold);
    min-height: 100%;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card-featured .service-card-media img {
    min-height: 100%;
    aspect-ratio: auto;
}

.service-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.split-section-reverse {
    direction: rtl;
}

.split-section-reverse > * {
    direction: ltr;
}

.split-section-tight {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 42%);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.split-section-tight .split-section-media {
    margin: 0;
}

.media-cards .card-media {
    padding: 0;
    overflow: hidden;
}

.card-media-thumb {
    margin: 0;
    overflow: hidden;
}

.card-media-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.card-media h3,
.card-media p {
    padding: 0 1.25rem;
}

.card-media h3 {
    padding-top: 1.25rem;
}

.card-media p:last-child {
    padding-bottom: 1.25rem;
}

.contact-visual {
    margin-bottom: 1.5rem;
}

.contact-aside .contact-visual img {
    aspect-ratio: 16 / 10;
}

.faq-sidebar-media {
    margin-bottom: 1.25rem;
}

.faq-sidebar-media img {
    aspect-ratio: 16 / 11;
}

.page-header-overlay .page-header-bg {
    filter: saturate(1.05) brightness(0.85);
}

.service-card-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--gold-500);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.service-card h2 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.service-card p:last-of-type {
    margin-bottom: 1rem;
}

/* Split section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.split-section-content {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testimonials */
.testimonials {
    margin: 2.5rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.5rem;
    background: rgba(15, 26, 46, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-500);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.testimonial-card footer {
    font-size: 0.875rem;
    color: var(--gold-400);
    font-weight: 500;
}

/* Timeline */
.tramite-timeline {
    margin-bottom: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

.timeline-body {
    margin-bottom: 0;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gold-300);
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    transition: background var(--transition);
}

.tag:hover {
    background: rgba(201, 169, 98, 0.2);
}

/* Page header variants */
.page-header-compact {
    padding-bottom: 1.5rem;
}

.page-header-split {
    display: grid;
    grid-template-columns: 1fr min(380px, 40%);
    gap: 2rem;
    align-items: center;
}

.page-header-overlay {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.page-header-overlay .page-header-inner {
    position: relative;
    z-index: 1;
}

.page-header-visual {
    margin: 0;
}

/* FAQ layout */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 2rem;
    align-items: start;
}

.faq-sidebar {
    position: sticky;
    top: 1.5rem;
    margin-bottom: 0;
}

.faq-main {
    margin-bottom: 0;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.team-card {
    padding: 1.5rem;
    background: rgba(15, 26, 46, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color var(--transition);
}

.team-card:hover {
    border-color: var(--border-gold);
}

.team-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
}

.team-role {
    font-size: 0.8125rem;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--cream);
}

.stats-rail-prominent {
    margin-bottom: 2.5rem;
}

.footer-hours {
    font-size: 0.875rem;
    color: var(--gold-400);
    margin-top: 0.75rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .site-rail {
        left: 0;
        right: 0;
        width: 100%;
        height: var(--mobile-header-h);
        min-height: var(--mobile-header-h);
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 0.75rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-gold);
        overflow: hidden;
    }

    .site-main {
        margin-left: 0;
        padding-top: var(--mobile-header-h);
    }

    .rail-brand {
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }

    .rail-tagline {
        display: none;
    }

    .rail-nav,
    .rail-contact {
        display: none;
    }

    .rail-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-backdrop:not([hidden]) {
        display: block;
    }

    .mobile-drawer ul {
        list-style: none;
        padding: 0;
    }

    .mobile-drawer a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        color: var(--text-primary);
        text-decoration: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .page-header-split {
        grid-template-columns: 1fr;
    }

    .page-header-visual {
        order: -1;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
    }

    .service-card-featured {
        grid-column: auto;
    }

    .service-card-featured.service-card--media {
        grid-template-columns: 1fr;
    }

    .service-card-featured .service-card-media {
        border-right: none;
        border-bottom: 1px solid var(--border-gold);
    }

    .split-section-reverse {
        direction: ltr;
    }

    .split-section-tight {
        grid-template-columns: 1fr;
    }

    .split-section-tight .split-section-media {
        order: -1;
    }

    .timeline-item {
        grid-template-columns: 2.5rem 1fr;
        gap: 1rem;
    }

    .timeline-marker {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.75rem;
        margin-top: 1rem;
    }

    .page-header,
    .page-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .page-header {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    h1 {
        font-size: clamp(1.625rem, 5vw, 2.25rem);
    }

    .cta-banner {
        padding: 1.75rem 1.25rem;
    }

    .btn {
        min-height: 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 2rem 1.5rem;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-rail {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .rail-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --text-muted: #B8C4D8;
        --border-subtle: rgba(255, 255, 255, 0.2);
    }
}
