:root {
    --blue: #1769ff;
    --blue-dark: #0d4fd8;
    --graphite: #111318;
    --charcoal: #171a21;
    --white: #ffffff;
    --warm-white: #f8f9fa;
    --steel: #667085;
    --border: #e4e7ec;
    --bronze: #b8793d;
    --success: #15803d;

    --container: 1180px;
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --shadow:
        0 24px 60px rgba(17, 19, 24, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--charcoal);
    background: var(--warm-white);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.6;
}

body,
button,
input,
textarea,
select {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 12px 18px;
    color: var(--white);
    background: var(--blue);
    border-radius: 10px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 13px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav > a:not(.button) {
    position: relative;
    padding-block: 12px;
}

.site-nav > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--blue);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin-block: 5px;
    background: currentColor;
    border-radius: 99px;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    color: var(--white);
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: var(--radius-small);
    font-weight: 750;
    line-height: 1.1;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
}

.button-small {
    min-height: 44px;
    padding: 11px 17px;
    font-size: 0.86rem;
}

.button-secondary {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.32);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 170px 0 100px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(23, 105, 255, 0.18),
            transparent 32%
        ),
        linear-gradient(
            115deg,
            #111318 0%,
            #151a24 55%,
            #0d1729 100%
        );
}

.hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 64px 64px;
    content: "";
    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 30%,
            black 75%,
            transparent
        );
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 72px;
    grid-template-columns: 1.03fr 0.97fr;
}

.eyebrow {
    margin: 0 0 18px;
    color: #8cb5ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: var(--blue);
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3.1rem, 6.2vw, 6.3rem);
    font-weight: 780;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.hero h1 span {
    display: block;
    color: #9abfff;
}

.hero-description {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.12rem;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 32px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    list-style: none;
}

.hero-trust li {
    position: relative;
    padding-left: 17px;
}

.hero-trust li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 480px;
    place-items: center;
}

.visual-glow {
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    background: rgba(23, 105, 255, 0.20);
    border-radius: 50%;
    filter: blur(80px);
}

.door-scene {
    position: relative;
    width: min(100%, 460px);
    padding: 36px 38px 76px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform: perspective(1100px) rotateY(-7deg);
}

.door-frame {
    display: grid;
    gap: 5px;
    min-height: 330px;
    padding: 13px;
    background: #080a0d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px 7px 3px 3px;
}

.door-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            #222833 0%,
            #3a424f 38%,
            #202631 75%,
            #161b23 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.door-panel::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20%;
    width: 30%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent
        );
    content: "";
    transform: skewX(-18deg);
}

.scene-floor {
    height: 28px;
    background:
        linear-gradient(
            to bottom,
            #60636b,
            #32353c
        );
    clip-path:
        polygon(
            3% 0,
            97% 0,
            100% 100%,
            0 100%
        );
}

.project-badge {
    position: absolute;
    right: -26px;
    bottom: 18px;
    display: flex;
    width: 220px;
    flex-direction: column;
    padding: 18px;
    color: var(--charcoal);
    background: var(--white);
    border-radius: 17px;
    box-shadow: var(--shadow);
    transform: rotateY(7deg);
}

.project-badge span {
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-badge strong {
    margin-top: 5px;
}

.project-badge small {
    margin-top: 4px;
    color: var(--steel);
}

.trust-strip {
    position: relative;
    z-index: 4;
    margin-top: -24px;
}

.trust-grid {
    display: grid;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid article {
    padding: 26px;
}

.trust-grid article + article {
    border-left: 1px solid var(--border);
}

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

.trust-grid strong {
    color: var(--charcoal);
}

.trust-grid span {
    margin-top: 4px;
    color: var(--steel);
    font-size: 0.8rem;
}

.section {
    padding: 110px 0;
}

.section-heading {
    display: grid;
    align-items: end;
    gap: 70px;
    margin-bottom: 48px;
    grid-template-columns: 1fr 0.72fr;
}

.section-heading h2,
.final-cta h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.section-heading > p,
.final-cta p {
    margin: 0;
    color: var(--steel);
}

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

.service-card {
    min-height: 300px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.service-card:hover {
    border-color: rgba(23, 105, 255, 0.45);
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
    transform: translateY(-4px);
}

.service-number {
    display: inline-grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--blue);
    background: rgba(23, 105, 255, 0.08);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.service-card h3 {
    margin: 58px 0 12px;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.service-card p {
    margin: 0;
    color: var(--steel);
    font-size: 0.93rem;
}

.service-card a {
    display: inline-flex;
    gap: 10px;
    margin-top: 24px;
    color: var(--blue);
    font-size: 0.88rem;
    font-weight: 800;
}

.service-card a span {
    transition: transform 180ms ease;
}

.service-card a:hover span {
    transform: translateX(4px);
}

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

.section-heading-light > p {
    color: rgba(255, 255, 255, 0.62);
}

.process-grid {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(4, 1fr);
}

.process-grid li {
    position: relative;
    padding: 0 28px 0 0;
}

.process-grid li:not(:last-child)::after {
    position: absolute;
    top: 19px;
    right: 18px;
    left: 60px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            var(--blue),
            rgba(255, 255, 255, 0.12)
        );
    content: "";
}

.process-grid span {
    position: relative;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
}

.process-grid h3 {
    margin: 28px 0 10px;
}

.process-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
}

.final-cta {
    background: var(--warm-white);
}

.final-cta-card {
    display: grid;
    align-items: center;
    gap: 60px;
    padding: 60px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    grid-template-columns: 1fr auto;
}

.final-cta-card p {
    max-width: 720px;
    margin-top: 18px;
}

.site-footer {
    padding: 70px 0 24px;
    color: rgba(255, 255, 255, 0.70);
    background: #0c0e12;
}

.footer-grid {
    display: grid;
    gap: 70px;
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
}

.brand-footer {
    color: var(--white);
}

.footer-description {
    max-width: 390px;
    margin-top: 24px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 8px 0;
}

.site-footer div > a:not(.brand) {
    display: block;
    margin: 8px 0;
}

.site-footer div > a:not(.brand):hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.78rem;
}

:focus-visible {
    outline: 3px solid rgba(23, 105, 255, 0.38);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 18px;
        color: var(--charcoal);
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav > a:not(.button) {
        padding: 11px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 50px;
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 420px;
    }

    .door-scene {
        transform: none;
    }

    .project-badge {
        transform: none;
    }

    .trust-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid article + article {
        border-left: 0;
    }

    .trust-grid article:nth-child(even) {
        border-left: 1px solid var(--border);
    }

    .trust-grid article:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .section-heading {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .process-grid {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid li:not(:last-child)::after {
        display: none;
    }

    .final-cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

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

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        padding: 135px 0 76px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        display: grid;
    }

    .hero-visual {
        min-height: 355px;
    }

    .door-scene {
        padding: 22px 22px 72px;
    }

    .door-frame {
        min-height: 245px;
    }

    .project-badge {
        right: 10px;
        bottom: 14px;
        width: 200px;
    }

    .trust-strip {
        margin-top: 0;
    }

    .trust-grid,
    .services-grid,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid article:nth-child(even) {
        border-left: 0;
    }

    .trust-grid article + article {
        border-top: 1px solid var(--border);
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .service-card {
        min-height: auto;
    }

    .service-card h3 {
        margin-top: 36px;
    }

    .process-grid {
        gap: 44px;
    }

    .final-cta-card {
        gap: 32px;
        padding: 34px 24px;
    }

    .final-cta-card .button {
        width: 100%;
    }

    .footer-grid {
        gap: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   Catálogo público de servicios
   ========================================================= */

.page-hero,
.service-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 9.5rem 0 5rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 104, 230, 0.28),
            transparent 35%
        ),
        #10151f;
}

.page-hero::before,
.service-detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
}

.page-hero-content,
.service-detail-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.service-detail-hero h1 {
    max-width: 900px;
    margin: 1rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.page-hero-description,
.service-detail-lead {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.15rem;
    line-height: 1.7;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.catalog-section {
    padding: 6rem 0;
    background: #f4f6f9;
}

.catalog-category + .catalog-category {
    margin-top: 6rem;
}

.catalog-category-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    gap: 3rem;
    align-items: end;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d8dee8;
}

.catalog-category-header h2 {
    margin: 0.45rem 0 0;
    color: #111722;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
}

.catalog-category-header > p {
    margin: 0;
    color: #596273;
    line-height: 1.7;
}

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

.catalog-card {
    display: flex;
    min-height: 310px;
    padding: 2rem;
    flex-direction: column;
    border: 1px solid #dfe4ec;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 25, 40, 0.05);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: #9ebefb;
    box-shadow: 0 24px 60px rgba(15, 25, 40, 0.1);
}

.catalog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.catalog-card-number {
    color: #266eef;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.catalog-card-featured {
    padding: 0.4rem 0.65rem;
    color: #1555c0;
    border-radius: 999px;
    background: #e7efff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.catalog-card-category,
.service-category-label {
    margin: 0 0 0.75rem;
    color: #266eef;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-card h3 {
    margin: 0 0 1rem;
    color: #111722;
    font-size: 1.5rem;
    line-height: 1.15;
}

.catalog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.catalog-card > p {
    margin: 0 0 2rem;
    color: #596273;
    line-height: 1.65;
}

.catalog-card .text-link {
    margin-top: auto;
}

.text-link {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    color: #155fe1;
    font-weight: 700;
    text-decoration: none;
}

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

.catalog-cta {
    padding: 5rem 0;
    color: #ffffff;
    background: #151c28;
}

.catalog-cta-content {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
}

.catalog-cta h2 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.catalog-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.service-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
    gap: 5rem;
    align-items: end;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.service-detail-summary {
    padding: 2rem;
    color: #111722;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.service-detail-summary-label {
    margin: 0 0 1.5rem;
    color: #266eef;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-detail-summary dl {
    margin: 0;
}

.service-detail-summary dl > div {
    padding: 1rem 0;
    border-top: 1px solid #e3e7ed;
}

.service-detail-summary dt {
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.service-detail-summary dd {
    margin: 0;
    color: #626b7a;
    line-height: 1.5;
}

.service-detail-content {
    padding: 6rem 0;
    background: #ffffff;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.65fr);
    gap: 5rem;
    align-items: start;
}

.service-detail-main h2 {
    max-width: 700px;
    margin: 0.6rem 0 1.5rem;
    color: #111722;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-detail-main > p {
    max-width: 800px;
    color: #596273;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-process {
    margin-top: 4rem;
}

.service-process h3 {
    margin-bottom: 1.5rem;
    color: #111722;
    font-size: 1.75rem;
}

.service-process ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: process-step;
}

.service-process li {
    display: grid;
    grid-template-columns: 70px minmax(150px, 220px) 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    align-items: start;
    border-top: 1px solid #dfe4eb;
    counter-increment: process-step;
}

.service-process li::before {
    content: "0" counter(process-step);
    color: #266eef;
    font-weight: 700;
}

.service-process li span {
    color: #626b7a;
    line-height: 1.65;
}

.service-contact-card {
    position: sticky;
    top: 2rem;
    padding: 2rem;
    border: 1px solid #dce2eb;
    border-radius: 1.25rem;
    background: #f5f7fa;
}

.service-contact-card h2 {
    margin: 0.5rem 0 1rem;
    color: #111722;
    font-size: 2rem;
}

.service-contact-card > p:not(.section-eyebrow) {
    color: #626b7a;
    line-height: 1.65;
}

.service-contact-card .button {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.service-email-link {
    display: block;
    margin-top: 1.25rem;
    color: #155fe1;
    text-align: center;
    overflow-wrap: anywhere;
}

.related-services {
    padding: 6rem 0;
    background: #f4f6f9;
}

.related-services-header {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
}

.related-services-header h2 {
    margin: 0.5rem 0 0;
    color: #111722;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.empty-state {
    padding: 3rem;
    border: 1px dashed #cbd3df;
    border-radius: 1rem;
    text-align: center;
    background: #ffffff;
}

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

    .catalog-category-header,
    .service-detail-hero-grid,
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-hero-grid,
    .service-detail-layout {
        gap: 3rem;
    }

    .service-contact-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .page-hero,
    .service-detail-hero {
        padding: 7.5rem 0 3.5rem;
    }

    .catalog-section,
    .service-detail-content,
    .related-services {
        padding: 4rem 0;
    }

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

    .catalog-category-header {
        gap: 1.25rem;
    }

    .catalog-cta-content,
    .related-services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-process li {
        grid-template-columns: 45px 1fr;
    }

    .service-process li span {
        grid-column: 2;
    }

    .service-detail-actions {
        flex-direction: column;
    }

    .service-detail-actions .button {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   Contenido ampliado de los servicios
   ========================================================= */

.service-detail-sidebar {
    display: grid;
    gap: 1.25rem;
}

.service-cover {
    overflow: hidden;
    margin: 0;
    border-radius: 1.25rem;
    background: #1d2635;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
}

.service-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-cover figcaption {
    padding: 0.9rem 1rem;
    color: #dce6fa;
    font-size: 0.85rem;
}

.service-content-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #dfe4eb;
}

.service-content-section h2 {
    margin: 0.6rem 0 2rem;
    color: #111722;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.rich-text {
    color: #596273;
    font-size: 1.1rem;
    line-height: 1.8;
}

.rich-text p {
    margin: 0 0 1.25rem;
}

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

.benefit-card {
    padding: 1.75rem;
    border: 1px solid #dfe4eb;
    border-radius: 1rem;
    background: #f7f9fc;
}

.benefit-card > span {
    color: #266eef;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.benefit-card h3 {
    margin: 1.1rem 0 0.75rem;
    color: #111722;
    font-size: 1.35rem;
}

.benefit-card p {
    margin: 0;
    color: #626b7a;
    line-height: 1.65;
}

.feature-list {
    margin: 0;
}

.feature-list > div {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid #dfe4eb;
}

.feature-list dt {
    color: #111722;
    font-weight: 700;
}

.feature-list dd {
    margin: 0;
    color: #626b7a;
    line-height: 1.65;
}

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

.service-gallery figure {
    overflow: hidden;
    margin: 0;
    border-radius: 1rem;
    background: #f1f4f8;
}

.service-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-gallery figcaption {
    padding: 0.9rem 1rem;
    color: #626b7a;
    font-size: 0.86rem;
}

.faq-list {
    border-top: 1px solid #dfe4eb;
}

.faq-list details {
    border-bottom: 1px solid #dfe4eb;
}

.faq-list summary {
    position: relative;
    padding: 1.5rem 3rem 1.5rem 0;
    color: #111722;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    position: absolute;
    top: 1.5rem;
    right: 0;
    content: "+";
    color: #266eef;
    font-size: 1.5rem;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details > div {
    padding: 0 0 1.5rem;
    color: #626b7a;
    line-height: 1.7;
}

.faq-list details > div p {
    margin: 0;
}

@media (max-width: 700px) {
    .benefits-grid,
    .service-gallery {
        grid-template-columns: 1fr;
    }

    .feature-list > div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .service-content-section {
        margin-top: 3.5rem;
        padding-top: 3rem;
    }
}
/* =========================================================
   Portafolio público
   ========================================================= */

.portfolio-list-section,
.home-projects,
.related-projects-section {
    padding: 6rem 0;
    background: #f4f6f9;
}

.home-projects {
    background: #ffffff;
}

.portfolio-list-header,
.home-projects-header {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2.5rem;
}

.portfolio-list-header > div,
.home-projects-header > div {
    max-width: 760px;
}

.portfolio-list-header h2,
.home-projects-header h2 {
    margin: 0.5rem 0 0;
    color: #111722;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.portfolio-list-header > p {
    max-width: 480px;
    margin: 0;
    color: #626b7a;
    line-height: 1.7;
}

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

.project-card {
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 25, 40, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(15, 25, 40, 0.13);
}

.project-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #152036;
}

.project-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform 300ms ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.035);
}

.project-card-placeholder {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 11;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(42, 112, 255, 0.4),
            transparent 35%
        ),
        #121b2a;
}

.project-card-placeholder span {
    font-size: 3rem;
    font-weight: 700;
}

.project-card-placeholder small {
    margin-top: 0.25rem;
    color: #9bbcff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.55rem 0.75rem;
    color: #1555c0;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card-content {
    padding: 1.75rem;
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #266eef;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-card-category {
    margin: 0 0 0.75rem;
    color: #266eef;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.project-card h2,
.project-card h3 {
    margin: 1rem 0;
    color: #111722;
    font-size: 1.55rem;
    line-height: 1.15;
}

.project-card h2 a,
.project-card h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card-content > p {
    color: #626b7a;
    line-height: 1.65;
}

.project-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.project-service-tags li {
    padding: 0.4rem 0.65rem;
    color: #42516a;
    border-radius: 999px;
    background: #eef2f8;
    font-size: 0.74rem;
}

.portfolio-contact {
    padding: 5rem 0;
    color: #ffffff;
    background: #151c28;
}

.portfolio-contact-content {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
}

.portfolio-contact h2 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.portfolio-contact p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.project-detail-hero {
    padding: 9rem 0 5rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(38, 104, 235, 0.35),
            transparent 35%
        ),
        #101722;
}

.project-detail-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    gap: 5rem;
    align-items: end;
}

.project-detail-heading h1 {
    max-width: 950px;
    margin: 1rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.project-detail-lead {
    max-width: 750px;
    margin: 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 1.15rem;
    line-height: 1.7;
}

.project-facts {
    margin: 0;
    padding: 1.75rem;
    color: #111722;
    border-radius: 1.1rem;
    background: #ffffff;
}

.project-facts > div {
    padding: 1rem 0;
    border-top: 1px solid #e1e6ed;
}

.project-facts > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.project-facts dt {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.project-facts dd {
    margin: 0;
    color: #626b7a;
}

.project-cover-section {
    padding: 3rem 0 0;
    background: #ffffff;
}

.project-cover {
    overflow: hidden;
    margin: 0;
    border-radius: 1.5rem;
    background: #e9edf3;
}

.project-cover img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.project-case-section {
    padding: 6rem 0;
    background: #ffffff;
}

.project-case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.6fr);
    gap: 5rem;
    align-items: start;
}

.project-case-block + .project-case-block {
    margin-top: 4.5rem;
    padding-top: 4rem;
    border-top: 1px solid #dfe4eb;
}

.project-case-block h2 {
    margin: 0.5rem 0 1.5rem;
    color: #111722;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.project-detail-sidebar {
    position: sticky;
    top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.project-services-box,
.project-contact-box {
    padding: 2rem;
    border: 1px solid #dce2eb;
    border-radius: 1.2rem;
    background: #f5f7fa;
}

.project-services-box ul {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.project-services-box li {
    border-top: 1px solid #dce2eb;
}

.project-services-box a {
    display: flex;
    padding: 1rem 0;
    justify-content: space-between;
    color: #111722;
    font-weight: 700;
    text-decoration: none;
}

.project-services-box a::after {
    content: "→";
    color: #266eef;
}

.project-contact-box h2 {
    margin: 0.5rem 0 1rem;
    color: #111722;
    font-size: 2rem;
}

.project-contact-box > p:not(.section-eyebrow) {
    color: #626b7a;
    line-height: 1.65;
}

.project-contact-box .button {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

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

.project-gallery figure {
    overflow: hidden;
    margin: 0;
    border-radius: 1rem;
    background: #f1f4f8;
}

.project-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-gallery figcaption {
    padding: 0.9rem 1rem;
    color: #626b7a;
    font-size: 0.86rem;
}

.related-projects-section {
    border-top: 1px solid #dfe4eb;
}

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

    .project-detail-heading,
    .project-case-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-detail-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .portfolio-list-section,
    .home-projects,
    .project-case-section,
    .related-projects-section {
        padding: 4rem 0;
    }

    .portfolio-list-header,
    .home-projects-header,
    .portfolio-contact-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-grid,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-detail-hero {
        padding: 7.5rem 0 3.5rem;
    }

    .project-case-block + .project-case-block {
        margin-top: 3.5rem;
        padding-top: 3rem;
    }
}
/* =========================================================
   Formulario de cotización
   ========================================================= */

.quote-hero {
    padding: 9rem 0 5rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(42, 111, 255, 0.34),
            transparent 36%
        ),
        #101722;
}

.quote-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.55fr);
    gap: 5rem;
    align-items: end;
}

.quote-hero h1 {
    max-width: 850px;
    margin: 1rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.quote-hero > .container > div > p:last-child {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    line-height: 1.7;
}

.quote-hero-information {
    padding: 2rem;
    color: #111722;
    border-radius: 1.2rem;
    background: #ffffff;
}

.quote-hero-information strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quote-hero-information ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #626b7a;
    line-height: 1.7;
}

.quote-form-section {
    padding: 6rem 0;
    background: #f4f6f9;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.55fr);
    gap: 3rem;
    align-items: start;
}

.quote-form {
    padding: 2.5rem;
    border: 1px solid #dce2eb;
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 25, 40, 0.07);
}

.quote-form-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.quote-form-group + .quote-form-group {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid #dfe4eb;
}

.quote-form-group legend {
    margin-bottom: 0.7rem;
    color: #111722;
    font-size: 1.65rem;
    font-weight: 700;
}

.quote-form-introduction {
    margin: 0 0 1.75rem;
    color: #626b7a;
    line-height: 1.6;
}

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

.form-field {
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 0.55rem;
    color: #232b38;
    font-weight: 700;
}

.form-field label span {
    color: #155fe1;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    color: #111722;
    border: 1px solid #cbd3df;
    border-radius: 0.7rem;
    background: #ffffff;
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #266eef;
    box-shadow: 0 0 0 4px rgba(38, 110, 239, 0.12);
}

.field-help {
    margin: 0.55rem 0 0;
    color: #707988;
    font-size: 0.84rem;
    line-height: 1.5;
}

.field-error {
    margin: 0.5rem 0 0;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 600;
}

.form-alert {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.7rem;
}

.form-alert-error {
    color: #8f1d18;
    border: 1px solid #f1b5b0;
    background: #fff1f0;
}

.form-alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.file-upload-box {
    padding: 1.5rem;
    border: 1px dashed #9eabc0;
    border-radius: 0.9rem;
    background: #f7f9fc;
}

.file-upload-box input {
    width: 100%;
}

.file-upload-box p {
    margin: 0.75rem 0 0;
    color: #626b7a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.quote-consent {
    display: flex;
    gap: 0.8rem;
    margin-top: 2.5rem;
    align-items: flex-start;
}

.quote-consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
}

.quote-consent label {
    color: #4f5969;
    line-height: 1.55;
}

.quote-submit {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.quote-submit p {
    margin: 0;
    color: #707988;
    font-size: 0.85rem;
}

.quote-sidebar {
    position: sticky;
    top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.quote-sidebar-card,
.quote-sidebar-details {
    padding: 2rem;
    border: 1px solid #dce2eb;
    border-radius: 1.2rem;
    background: #ffffff;
}

.quote-sidebar-card h2 {
    margin: 0.5rem 0 1rem;
    color: #111722;
    font-size: 2rem;
}

.quote-sidebar-card > p:not(.eyebrow) {
    color: #626b7a;
    line-height: 1.65;
}

.quote-sidebar-card .button {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.quote-sidebar-details dl {
    margin: 0;
}

.quote-sidebar-details dl > div {
    padding: 1rem 0;
    border-top: 1px solid #e1e6ed;
}

.quote-sidebar-details dl > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.quote-sidebar-details dt {
    margin-bottom: 0.35rem;
    color: #111722;
    font-weight: 700;
}

.quote-sidebar-details dd {
    margin: 0;
    color: #626b7a;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.quote-success-section {
    min-height: 75vh;
    padding: 10rem 0 6rem;
    background: #f4f6f9;
}

.quote-success-card {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid #dce2eb;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(15, 25, 40, 0.09);
}

.quote-success-icon {
    display: flex;
    width: 4rem;
    height: 4rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: #266eef;
    font-size: 2rem;
    font-weight: 700;
}

.quote-success-card h1 {
    margin: 0.6rem 0 1.25rem;
    color: #111722;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.quote-success-lead {
    color: #626b7a;
    font-size: 1.1rem;
    line-height: 1.7;
}

.quote-reference {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.25rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.8rem;
    background: #edf3ff;
}

.quote-reference span {
    color: #4f5969;
}

.quote-reference strong {
    color: #155fe1;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.quote-next-steps {
    margin-top: 3rem;
}

.quote-next-steps h2 {
    color: #111722;
}

.quote-next-steps ol {
    padding-left: 1.3rem;
    color: #626b7a;
    line-height: 1.8;
}

.quote-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (max-width: 950px) {
    .quote-hero-grid,
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .quote-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .quote-hero {
        padding: 7.5rem 0 3.5rem;
    }

    .quote-form-section {
        padding: 4rem 0;
    }

    .quote-form {
        padding: 1.4rem;
    }

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

    .form-field-wide {
        grid-column: auto;
    }

    .quote-submit,
    .quote-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-submit .button,
    .quote-success-actions .button {
        width: 100%;
        justify-content: center;
    }

    .quote-reference {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   Contexto de origen de la cotización
   ========================================================= */

.quote-source-context {
    margin-bottom: 2.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #bfd2fb;
    border-radius: 1rem;
    background: #edf3ff;
}

.quote-source-context span {
    display: block;
    margin-bottom: 0.45rem;
    color: #155fe1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quote-source-context strong {
    display: block;
    color: #111722;
    font-size: 1.3rem;
}

.quote-source-context p {
    margin: 0.65rem 0 0;
    color: #586578;
    line-height: 1.6;
}

.quote-source-context p + strong {
    margin-top: 0.4rem;
}

.project-whatsapp-link {
    display: block;
    margin-top: 1.25rem;
    color: #155fe1;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.project-whatsapp-link:hover {
    text-decoration: underline;
}
/* =========================================================
   Confianza y contenido comercial
   ========================================================= */

.commercial-trust-section {
    background: #f5f7fa;
}

.commercial-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.commercial-trust-card {
    padding: 1.75rem;
    border: 1px solid #dce3ed;
    border-radius: 1rem;
    background: #ffffff;
}

.commercial-trust-card span {
    display: block;
    margin-bottom: 1rem;
    color: #155fe1;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.commercial-trust-card h3 {
    margin: 0 0 0.75rem;
}

.commercial-trust-card p {
    margin: 0;
    color: #586578;
    line-height: 1.7;
}


/* =========================================================
   Preguntas frecuentes
   ========================================================= */

.home-faq-section {
    background: #ffffff;
}

.home-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 4rem;
    align-items: start;
}

.home-faq-introduction {
    position: sticky;
    top: 7rem;
}

.home-faq-introduction h2 {
    margin-top: 0.5rem;
}

.home-faq-introduction > p:last-of-type {
    margin-bottom: 1.75rem;
    color: #586578;
    line-height: 1.7;
}

.home-faq-list,
.faq-page-main {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #dce3ed;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    padding: 1.35rem 3.5rem 1.35rem 1.5rem;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.45;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: #155fe1;
    font-size: 1.5rem;
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #586578;
    line-height: 1.75;
}

.faq-answer p {
    margin: 0;
}


/* =========================================================
   Página comercial de preguntas frecuentes
   ========================================================= */

.commercial-page-hero {
    padding: 4.5rem 0;
    background: #f2f5fa;
}

.commercial-page-hero-inner {
    max-width: 780px;
}

.commercial-page-hero h1 {
    margin: 0.5rem 0 1rem;
}

.commercial-page-hero-inner > p:last-child {
    max-width: 680px;
    color: #586578;
    line-height: 1.75;
}

.faq-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}

.commercial-sidebar {
    position: sticky;
    top: 7rem;
}

.commercial-sidebar-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #edf3ff;
}

.commercial-sidebar-card h2 {
    margin-top: 0.5rem;
}

.commercial-sidebar-card > p {
    color: #586578;
    line-height: 1.7;
}

.commercial-sidebar-card .button {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.commercial-secondary-link {
    display: block;
    margin-top: 1.25rem;
    color: #155fe1;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.commercial-secondary-link:hover {
    text-decoration: underline;
}

.footer-text-link {
    display: inline-block;
    margin-top: 0.75rem;
}


/* =========================================================
   Adaptación móvil
   ========================================================= */

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

    .home-faq-layout,
    .faq-page-layout {
        grid-template-columns: 1fr;
    }

    .home-faq-introduction,
    .commercial-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .commercial-trust-grid {
        grid-template-columns: 1fr;
    }

    .home-faq-layout {
        gap: 2.5rem;
    }

    .commercial-page-hero {
        padding: 3rem 0;
    }

    .faq-item summary {
        padding-right: 3rem;
    }
}
/* =========================================================
   Optimización general para dispositivos móviles
   ========================================================= */

html {
    scroll-padding-top: 6rem;
}

body {
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a,
button,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   Barra inferior de conversión móvil
   ========================================================= */

.mobile-conversion-bar {
    display: none;
}


/* =========================================================
   Mejoras táctiles y responsive
   ========================================================= */

@media (max-width: 780px) {
    body {
        padding-bottom:
            calc(
                4.75rem
                + env(safe-area-inset-bottom)
            );
    }

    .mobile-conversion-bar {
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;

        display: grid;
        grid-template-columns:
            minmax(0, 0.8fr)
            minmax(0, 1.2fr);

        gap: 0.5rem;

        padding:
            0.55rem
            0.75rem
            calc(
                0.55rem
                + env(safe-area-inset-bottom)
            );

        border-top: 1px solid #dce3ed;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 30px rgba(20, 31, 51, 0.12);

        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .mobile-conversion-bar.is-hidden-for-input {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-conversion-action {
        display: flex;
        min-width: 0;
        min-height: 3.25rem;

        align-items: center;
        justify-content: center;
        gap: 0.55rem;

        padding: 0.65rem 0.8rem;

        border-radius: 0.8rem;

        font-size: 0.88rem;
        font-weight: 750;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
    }

    .mobile-conversion-whatsapp {
        border: 1px solid #cfd8e6;
        color: #172033;
        background: #ffffff;
    }

    .mobile-conversion-quote {
        color: #ffffff;
        background: #155fe1;
    }

    .mobile-conversion-icon {
        display: inline-flex;

        width: 1.6rem;
        height: 1.6rem;

        flex: 0 0 1.6rem;

        align-items: center;
        justify-content: center;

        border-radius: 50%;

        font-size: 0.8rem;
        font-weight: 800;
    }

    .mobile-conversion-whatsapp
    .mobile-conversion-icon {
        color: #ffffff;
        background: #167f47;
    }

    .mobile-conversion-quote
    .mobile-conversion-icon {
        color: #155fe1;
        background: #ffffff;
    }


    /* Botones más cómodos para interacción táctil */

    .button,
    .button-small {
        min-height: 3rem;

        display: inline-flex;
        align-items: center;
        justify-content: center;
    }


    /* Evita zoom automático de iPhone en formularios */

    input,
    select,
    textarea {
        min-height: 3rem;
        font-size: 16px;
    }

    textarea {
        min-height: 9rem;
    }


    /* Secciones enlazadas desde el menú */

    section[id],
    footer[id] {
        scroll-margin-top: 6rem;
    }
}


/* =========================================================
   Pantallas móviles pequeñas
   ========================================================= */

@media (max-width: 480px) {
    .mobile-conversion-bar {
        gap: 0.4rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .mobile-conversion-action {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        font-size: 0.82rem;
    }

    .mobile-conversion-icon {
        width: 1.4rem;
        height: 1.4rem;
        flex-basis: 1.4rem;
        font-size: 0.72rem;
    }
}
/* =========================================================
   Formulario de cotización en dispositivos móviles
   ========================================================= */

@media (max-width: 780px) {
    .quote-form-section {
        overflow: hidden;
    }

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

    .quote-form {
        min-width: 0;
    }

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

    .form-field,
    .form-field-wide {
        grid-column: auto;
        min-width: 0;
    }

    .quote-form-group {
        min-width: 0;
        padding: 1.25rem;
    }

    .quote-form-group legend {
        max-width: 100%;
        padding: 0 0.4rem;
    }

    .quote-source-context {
        padding: 1.15rem;
    }

    .quote-submit {
        display: grid;
        gap: 0.8rem;
    }

    .quote-submit .button {
        width: 100%;
        min-height: 3.4rem;
    }

    .quote-submit p {
        margin: 0;
        text-align: center;
    }

    .file-upload-box {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .file-upload-box input[type="file"] {
        width: 100%;
        max-width: 100%;
    }

    .quote-sidebar {
        width: 100%;
    }
}
/* =========================================================
   Conversión y lectura en pantallas pequeñas
   ========================================================= */

@media (max-width: 780px) {
    .section {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .section-heading {
        display: grid;
        gap: 1rem;
    }

    .section-heading h2 {
        max-width: 100%;
    }

    .final-cta-card {
        display: grid;
        gap: 1.75rem;
    }

    .final-cta-card .button {
        width: 100%;
    }

    .commercial-sidebar-card .button {
        min-height: 3.3rem;
    }

    .faq-item summary {
        min-height: 3.5rem;
    }

    .breadcrumbs {
        overflow-wrap: anywhere;
    }
}
/* =========================================================
   Logo editable de MS Electrical
   ========================================================= */

.brand-logo {
    display: block;
    width: auto;
    max-width: 7rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo-footer {
    max-width: 8rem;
    height: 3.5rem;
}

@media (max-width: 780px) {
    .brand-logo {
        max-width: 5.5rem;
        height: 2.6rem;
    }

    .brand-logo-footer {
        max-width: 7rem;
        height: 3rem;
    }
}