/* Google Fonts se carga condicionalmente via cookies.js (AEPD compliance) */

:root {
    --ink: #0f172a;
    --ink-2: #1e293b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-50: #eff6ff;
    --slate: #64748b;
    --slate-light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --brand: #1f4a6e;
    --brand-dark: #173852;
    --color-danger: #b3202f;
    --color-success: #1f7a4f;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.13);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-body: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

h4 {
    font-size: 0.95rem;
}

p {
    line-height: 1.7;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--blue-dark);
}

.container {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
}

.main-content {
    min-height: calc(100vh - 220px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: #e2eaf3;
    border-color: rgba(226, 234, 243, 0.45);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(226, 234, 243, 0.8);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-lg {
    padding: 0.8rem 1.7rem;
    font-size: 0.97rem;
}

.btn-sm {
    padding: 0.42rem 0.9rem;
    font-size: 0.84rem;
}

.alert {
    width: min(1160px, calc(100% - 3rem));
    margin: 1rem auto 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.94rem;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--color-success);
}

.alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--color-danger);
}

.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.header-inner {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    min-width: 200px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo a {
    color: var(--ink);
    text-decoration: none;
}

.logo a:hover {
    color: var(--brand);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    color: #44566b;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.nav-link.active {
    background: #f1f5f9;
    color: var(--ink);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(31, 74, 110, 0.22);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #5b7085;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.admin-access-btn:hover {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.locale-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    padding: 0.18rem;
    gap: 0.08rem;
}

.locale-option {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.28rem 0.42rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #506073;
    text-decoration: none;
    transition: background 0.14s, color 0.14s;
}

.locale-option:hover {
    background: #eef3f7;
    color: #223344;
}

.locale-option.active {
    background: var(--blue-50);
    color: var(--blue-dark);
}

.locale-code {
    line-height: 1;
}

.mini-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    display: inline-block;
    flex-shrink: 0;
}

.flag-es {
    background: linear-gradient(to bottom, #c61f32 0 24%, #f2c23d 24% 76%, #c61f32 76% 100%);
}

.flag-ca {
    background: repeating-linear-gradient(to bottom, #f5cf4a 0 14%, #c52637 14% 28%);
}

.flag-va {
    background:
        linear-gradient(to right, #1d4f8a 0 18%, transparent 18% 100%),
        repeating-linear-gradient(to bottom, #f5cf4a 0 14%, #c52637 14% 28%);
}

.hero {
    background: var(--ink);
    background-image: linear-gradient(rgba(15,23,42,0.52) 0%, rgba(15,23,42,0.65) 100%), url('../img/hero.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(31, 74, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    width: min(1000px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 6rem 0 5rem;
    position: relative;
    z-index: 1;
}

/* .hero-eyebrow eliminado — elemento redundante con la identidad visual */

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    max-width: 18ch;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    margin-bottom: 0.9rem;
    max-width: 52ch;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    max-width: 60ch;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.stats-bar {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.2rem 0;
}

.stats-bar-inner {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: stretch;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.3rem;
    display: block;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--slate);
    font-weight: 400;
}

.section {
    padding: 5rem 0;
}

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--slate-light);
}

.section-dark {
    background: var(--ink);
}

.section-inner {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.9rem;
}

.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.9rem;
    line-height: 1.18;
}

.section-body {
    color: var(--slate);
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.section-cta-row {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.service-card:hover {
    border-left-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-2);
    margin: 0;
}

.service-card-desc {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.6;
    flex: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.15s, color 0.15s;
}

.service-card-link::after {
    content: "\2192";
}

.service-card-link:hover {
    color: var(--blue-dark);
    gap: 0.5rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-sm);
}

.service-block-meta {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-block-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
    margin-top: 0.15rem;
}

.service-block-header {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.service-block-desc {
    color: var(--slate);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 80ch;
}

.service-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-feature-list li {
    font-size: 0.93rem;
    color: #475569;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.55;
}

.service-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-initials {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 1.6rem;
    flex-shrink: 0;
}

.about-bio {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.about-value-card {
    background: var(--blue-50);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.about-value-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.25rem;
}

.about-value-card p {
    font-size: 0.8rem;
    color: #4e6480;
    line-height: 1.45;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-item {
    background: var(--slate-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.2rem;
}

.contact-item a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue);
}

.contact-item a:hover {
    color: var(--blue-dark);
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--ink-2);
}

.cta-banner {
    background: var(--ink);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    width: min(700px, calc(100% - 3rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.9rem;
    line-height: 1.15;
}

.cta-banner-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    align-items: center;
}

.form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.form-standard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.15rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: 0.89rem;
    font-weight: 700;
    color: var(--ink-2);
}

.form-group label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: 0.89rem;
    font-weight: 700;
    color: var(--ink-2);
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.96rem;
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--white);
    transition: border-color 0.16s, box-shadow 0.16s;
    appearance: auto;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-checkbox input[type=checkbox] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #4b5563;
}

.form-checkbox label a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 500;
}

.form-checkbox label a:hover {
    color: var(--blue-dark);
}

.field-required {
    color: var(--color-danger);
    font-weight: 700;
    margin-left: 1px;
}

.input-error {
    border-color: var(--color-danger) !important;
    background: #fff4f5;
}

.error-text {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.83rem;
    color: var(--color-danger);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.success-screen {
    text-align: center;
    padding: 4rem 1.5rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #16a34a;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.success-desc {
    color: var(--slate);
    font-size: 1.02rem;
    max-width: 48ch;
    margin: 0 auto 1.2rem;
    line-height: 1.65;
}

.success-countdown {
    font-size: 0.88rem;
    color: #94a3b8;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    tab-index: -1;
}

.legal-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 0;
}

.legal-wrap h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-2);
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border);
}

.legal-wrap p {
    color: #3d5269;
    font-size: 0.95rem;
    line-height: 1.72;
    margin-bottom: 0.8rem;
}

.legal-wrap ul {
    list-style: disc;
    margin-left: 1.4rem;
    margin-bottom: 1rem;
}

.legal-wrap ul li {
    color: #3d5269;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.legal-updated {
    margin-top: 2rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #7a8fa3;
}

.page-header {
    background: var(--ink);
    background-image: linear-gradient(rgba(15,23,42,0.42) 0%, rgba(15,23,42,0.55) 100%), url('../img/hero.png');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    padding: 5rem 0 4rem;
    color: var(--white);
    position: relative;
}

.page-header-inner {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.6rem;
}

.page-header p {
    color: rgba(255,255,255,0.82);
    max-width: 60ch;
    font-size: 1.05rem;
}

.footer {
    background: #0b1829;
    color: #c5d4e0;
    padding: 2.8rem 0 1.2rem;
}

.footer-content {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
    gap: 1.4rem;
    align-items: start;
}

.footer-brand-block {
    padding-right: 1rem;
}

.footer-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6e8fa8;
    margin-bottom: 0.5rem;
}

.footer-brand-block h3 {
    color: #f0f6fb;
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.footer-brand-copy {
    color: #b8cad8;
    max-width: 28ch;
    font-size: 0.9rem;
}

.footer-column h4 {
    color: #eef4fb;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    letter-spacing: 0.01em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.38rem;
}

.footer-column a {
    color: #a8bfcf;
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.16s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-contact-column {
    display: grid;
    gap: 0.7rem;
}

.footer-contact-column p {
    margin: 0;
    color: #a8bfcf;
    font-size: 0.84rem;
    line-height: 1.5;
}

.footer-contact-column strong {
    display: block;
    color: #eef4fb;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.footer-contact-column a {
    color: #a8bfcf;
    font-size: 0.84rem;
    text-decoration: none;
}

.footer-contact-column a:hover {
    color: var(--white);
}

.footer-institutional {
    width: min(1160px, calc(100% - 3rem));
    margin: 1.6rem auto 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(180, 200, 218, 0.18);
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.footer-institutional-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 0 1 430px;
}

.footer-institutional-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6e8fa8;
    margin-bottom: 0.2rem;
}

.footer-institutional-summary {
    color: #dce8f0;
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-institutional-logos-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-bottom {
    width: min(1160px, calc(100% - 3rem));
    margin: 1rem auto 0;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(180, 200, 218, 0.22);
    color: #7a9ab0;
    text-align: center;
}

.footer-license {
    font-size: 0.8rem;
    line-height: 1.4;
}

.cc-license-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
    flex-wrap: nowrap;
}

.cc-license-link:hover {
    text-decoration: underline;
}

.cc-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.cc-icons img {
    width: 18px;
    height: 18px;
    display: block;
    opacity: 0.88;
}

.cc-license-text {
    display: inline-block;
    font-size: 0.8rem;
    color: #9db5c5;
}

.cc-license-text strong {
    color: #d8e8f2;
}

.cc-attribution {
    margin-top: 0.32rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem 0.85rem;
    opacity: 0.78;
    font-size: 0.72rem;
    line-height: 1.35;
}

.cc-attribution span {
    display: inline-block;
}

.cc-attribution strong {
    color: #baccd8;
    font-weight: 600;
}

.cc-attribution a {
    color: inherit;
    text-decoration: none;
}

.cc-attribution a:hover {
    text-decoration: underline;
}

.institutional-logos {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.institutional-logos-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
}

.institutional-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 0.7rem 0.9rem;
    background: var(--white);
    border: 1px solid rgba(31, 74, 110, 0.1);
    border-radius: 10px;
    flex: 1 1 220px;
}

.institutional-logo-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    object-position: center;
}

.institutional-logos-footer .institutional-logo-card {
    min-height: 62px;
    padding: 0.45rem 0.7rem;
    background: rgba(255, 255, 255, 0.97);
    flex: 0 1 170px;
}

.institutional-logos-footer .institutional-logo-card img {
    max-height: 36px;
}

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

    .footer-brand-block {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .footer-institutional {
        flex-direction: column;
        align-items: flex-start;
    }

    .institutional-logos-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 0.8rem 0;
    }

    .logo {
        min-width: 0;
        flex: 1;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding-bottom: 0.4rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .header-actions {
        gap: 0.55rem;
    }

    .header-actions .btn {
        font-size: 0.82rem;
        padding: 0.5rem 0.9rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 4rem 0 3.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-bar-inner {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 40%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.9rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 3.5rem 0;
    }

    .page-header {
        padding: 3rem 0;
    }

    .btn,
    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .btn-secondary,
    .btn-outline {
        width: auto;
    }

    .cta-banner-actions .btn {
        width: auto;
    }

    .section-cta-row .btn {
        width: auto;
    }

    .section-inner {
        padding: 3rem 0;
    }

    .cc-license-link {
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cc-attribution {
        display: block;
        text-align: left;
    }

    .cc-attribution span {
        display: block;
        margin-bottom: 0.18rem;
    }
}

@media (max-width: 480px) {
    .container,
    .footer-content,
    .footer-institutional,
    .footer-bottom,
    .stats-bar-inner {
        width: calc(100% - 1.5rem);
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .locale-switcher {
        flex: 1;
        justify-content: space-between;
    }

    .locale-option {
        flex: 1;
        justify-content: center;
    }

    .institutional-logos-footer {
        flex-wrap: wrap;
    }

    .institutional-logos-footer .institutional-logo-card {
        flex-basis: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════
   NAV TOGGLE (hamburguesa) — solo visible en móvil
   ══════════════════════════════════════════════════════════════ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    order: 2;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease, background 0.18s;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink-2);
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 9990;
    box-shadow: 0 -4px 30px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    min-width: 0;
}

.cookie-banner-text strong {
    color: var(--white);
}

.cookie-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}

.cookie-btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.cookie-btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.cookie-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: hamburguesa + banner de cookies en móvil/tablet
   (NO afecta la vista de escritorio)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Mostrar hamburguesa y ocultar nav por defecto */
    .nav-toggle {
        display: flex;
    }

    /* Override: nav oculta hasta que se pulse el botón */
    .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid var(--border);
        margin-top: 0.3rem;
        gap: 0.1rem;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 0.65rem 0.75rem;
        border-radius: var(--radius-sm);
    }

    /* Cookie banner: apilado en móvil */
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1.1rem 1.25rem 1.5rem;
    }

    .cookie-banner-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 1rem 1.3rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════════════════════════════
   SERVICE DETAIL PAGE
   ══════════════════════════════════════════════════════════════ */
.service-detail-intro {
    max-width: 760px;
    margin-bottom: 2.5rem;
}
.service-detail-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--slate);
    margin-bottom: 1rem;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.service-detail-main h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2rem 0 0.85rem;
}
.service-detail-main h2:first-child { margin-top: 0; }

.service-detail-main p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.service-feature-list--lg li {
    font-size: 0.95rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    counter-reset: step;
}
.process-list li {
    counter-increment: step;
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--slate);
    font-size: 0.93rem;
    line-height: 1.6;
}
.process-list li:last-child { border-bottom: none; }
.process-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.7rem;
    height: 1.7rem;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.aside-cta-card {
    background: var(--ink);
    color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.aside-cta-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.6rem;
}
.aside-cta-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
}

.aside-info-card {
    background: var(--slate-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}
.aside-info-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.aside-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aside-info-card li {
    font-size: 0.85rem;
    color: var(--slate);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
}
.aside-info-card li:last-child { border-bottom: none; }

.service-block-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
}
.service-block-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-aside {
        order: -1;
    }
}

/* ══════════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR
   ══════════════════════════════════════════════════════════════ */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.10);
        padding: 0.6rem 0.9rem;
        gap: 0.6rem;
    }

    .footer {
        padding-bottom: 70px;
    }
}

.mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.01em;
}

.mobile-cta-btn:hover { opacity: 0.88; }

.mobile-cta-phone {
    background: var(--ink);
    color: var(--white);
}

.mobile-cta-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════════ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 780px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.1rem 1.25rem;
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--slate);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.93rem;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.9rem;
}
