body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 166, 0, 0.18), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #eef3fa 100%);
    color: #142235;
}

* {
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 34, 53, 0.08);
    box-shadow: 0 12px 32px rgba(20, 34, 53, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

header.shrink {
    padding: 10px 28px;
    box-shadow: 0 10px 28px rgba(20, 34, 53, 0.12);
}

header img {
    width: 260px;
    max-width: 100%;
    height: auto;
    transition: width 0.3s ease;
}

header.shrink img {
    width: 190px;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-copy {
    margin: 0;
    color: #516074;
    font-size: 0.95rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #163350;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #f57c00;
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f57c00, #ff9b2f);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(245, 124, 0, 0.25);
}

.nav-cta:hover {
    color: #ffffff;
}

main {
    overflow: hidden;
}

.hero {
    padding: 72px 40px 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.section,
.service-card,
.process-card,
.contact-card {
    border-radius: 24px;
}

.hero-copy {
    padding: 52px;
    background:
        linear-gradient(135deg, rgba(11, 33, 58, 0.96), rgba(27, 82, 141, 0.92)),
        linear-gradient(180deg, #10253b, #1d4c7f);
    color: #f7fbff;
    box-shadow: 0 28px 60px rgba(16, 37, 59, 0.24);
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero-copy p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(247, 251, 255, 0.82);
    max-width: 60ch;
}

.hero-brand-mark {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-brand-mark img {
    width: clamp(180px, 24vw, 250px);
    height: auto;
    display: block;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe2bf;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #f57c00, #ff9b2f);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(245, 124, 0, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.metric-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-card strong,
.metric-card span {
    display: block;
}

.metric-card strong {
    margin-bottom: 8px;
    font-size: 1rem;
}

.metric-card span {
    color: rgba(247, 251, 255, 0.8);
    line-height: 1.5;
}

.hero-panel {
    padding: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(22, 51, 80, 0.08);
    box-shadow: 0 24px 48px rgba(20, 34, 53, 0.12);
}

.panel-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4c7f;
    font-weight: 700;
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
}

.hero-panel p {
    margin: 0 0 24px;
    color: #516074;
    line-height: 1.7;
}

.lead-form {
    display: grid;
    gap: 18px;
}

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

.lead-form label {
    display: grid;
    gap: 8px;
    color: #142235;
    font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5dfeb;
    border-radius: 14px;
    background: #ffffff;
    color: #142235;
    font: inherit;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: #1d4c7f;
    box-shadow: 0 0 0 4px rgba(29, 76, 127, 0.12);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    color: #33485f;
}

.consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #1d4c7f;
}

.consent-row span {
    line-height: 1.55;
}

.consent-row a {
    color: #1d4c7f;
    font-weight: 700;
}

.consent-row a:hover {
    color: #f57c00;
}

.submit-btn {
    width: 100%;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.form-status {
    min-height: 24px;
    margin: 0;
    font-weight: 700;
}

.form-status-pending {
    color: #1d4c7f;
}

.form-status-success {
    color: #147b4d;
}

.form-status-error {
    color: #b23a2a;
}

.section {
    margin: 0 40px 24px;
    padding: 42px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(20, 34, 53, 0.08);
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 252, 0.98));
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: #516074;
    line-height: 1.7;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.trust-item {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid rgba(245, 124, 0, 0.14);
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.trust-item span {
    color: #516074;
    line-height: 1.6;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card {
    height: 100%;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border: 1px solid rgba(20, 34, 53, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20, 34, 53, 0.12);
    border-color: rgba(29, 76, 127, 0.2);
}

.service-card-accent {
    background: linear-gradient(135deg, #163350 0%, #1d4c7f 100%);
    color: #f7fbff;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.service-card p {
    margin: 0;
    color: inherit;
    line-height: 1.7;
    opacity: 0.92;
}

.contenido-dinamico {
    margin: 0 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contenido-dinamico.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.service-detail {
    margin: 20px 0 24px;
    padding: 30px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(20, 34, 53, 0.08);
    animation: fadeIn 0.4s ease;
}

.service-detail h2 {
    color: #163350;
}

.service-detail h3 {
    color: #f57c00;
}

.service-detail p,
.service-detail li {
    line-height: 1.8;
}

.service-detail-error {
    border-left: 6px solid #f57c00;
}

.service-img {
    width: min(100%, 420px);
    display: block;
    margin: 20px 0;
    border-radius: 18px;
}

.process-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.process-card {
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(29, 76, 127, 0.1);
}

.process-card span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #163350;
    color: #ffffff;
    font-weight: 700;
}

.process-card h3 {
    margin: 16px 0 10px;
}

.process-card p {
    margin: 0;
    color: #516074;
    line-height: 1.7;
}

.contact-card {
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(20, 34, 53, 0.08);
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card p {
    line-height: 1.8;
}

.contact-card .btn-secondary {
    margin-top: 12px;
    background: #163350;
    color: #ffffff;
    border-color: #163350;
}

.map-card {
    overflow: hidden;
}

footer {
    margin-top: 32px;
    padding: 32px 40px 48px;
    color: #f7fbff;
    text-align: center;
    background: linear-gradient(180deg, #0f2136 0%, #09121d 100%);
}

footer p {
    margin: 0 0 10px;
}

.footer-link {
    color: #ffe2bf;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:hover {
    color: #ffb25c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .trust-strip,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 14px;
    }

    .hero-copy,
    .hero-panel,
    .section {
        padding: 28px;
    }

    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    body {
        margin-top: 0 !important;
    }

    .hero,
    .section,
    .contenido-dinamico,
    footer {
        margin-left: 20px;
        margin-right: 20px;
    }

    .hero {
        padding: 24px 0 20px;
    }

    .section {
        padding: 24px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn,
    .nav-cta {
        width: 100%;
    }

    nav {
        width: 100%;
    }

    nav a {
        width: 100%;
    }
}
