:root {
    --color-primary: #ff5b2e;
    --color-primary-dark: #d94318;
    --color-ink: #0b1628;
    --color-ink-soft: #31415a;
    --color-muted: #64748b;
    --color-border: rgba(15, 23, 42, .12);
    --color-bg: #f7f8fb;
    --color-card: #ffffff;
    --color-dark: #07101f;
    --shadow-soft: 0 22px 70px rgba(15, 23, 42, .13);
    --shadow-card: 0 16px 42px rgba(15, 23, 42, .10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--color-ink-soft); }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.035em; color: var(--color-ink); }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 4.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading.narrow { text-align: center; margin-inline: auto; }
.section-heading p { font-size: 1.06rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 91, 46, .10);
    color: var(--color-primary-dark);
    font-weight: 850;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(255, 91, 46, .14);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), #ff875f); color: #fff; box-shadow: 0 14px 34px rgba(255, 91, 46, .35); }
.btn-primary:hover { box-shadow: 0 18px 44px rgba(255, 91, 46, .42); }
.btn-secondary { background: #fff; color: var(--color-ink); border-color: var(--color-border); box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.btn-small { min-height: 42px; padding: 0 14px; font-size: .86rem; }
.btn-full { width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.header-shell { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; color: var(--color-ink); flex: 0 0 auto; }
.brand img { width: 132px; height: auto; }
.brand span { display: none; font-size: .84rem; color: var(--color-muted); }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: .88rem; font-weight: 780; color: var(--color-ink-soft); white-space: nowrap; }
.main-nav a { position: relative; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 99px; background: var(--color-primary); transition: right .2s ease;
}
.main-nav a:hover::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--color-ink); }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; padding: 96px 0 72px; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,91,46,.17), transparent 34%),
        radial-gradient(circle at 78% 12%, rgba(46,118,255,.12), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f6f8fb 42%, #ecf1f7 100%);
}
.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-bg::before {
    background-image:
        linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 82%);
}
.hero-bg::after {
    background:
        linear-gradient(135deg, transparent 62%, rgba(255,91,46,.95) 62%, rgba(255,91,46,.95) 70%, transparent 70%),
        linear-gradient(45deg, transparent 66%, rgba(7,16,31,.96) 66%, rgba(7,16,31,.96) 80%, transparent 80%);
    opacity: .72;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; }
.hero-copy { max-width: 650px; }
.hero h1 { color: var(--color-ink); }
.hero h1::first-line { color: var(--color-ink); }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.32rem); max-width: 610px; margin: 22px 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-points li { padding: 9px 12px; border: 1px solid rgba(15,23,42,.10); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--color-ink-soft); font-weight: 760; font-size: .92rem; }
.hero-card { position: relative; }
.hero-card > img { border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,.9); }
.hero-stat-card {
    position: absolute;
    min-width: 184px;
    padding: 16px 18px;
    background: rgba(7, 16, 31, .90);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(7,16,31,.22);
    backdrop-filter: blur(12px);
}
.hero-stat-card strong { display: block; font-size: 1.65rem; color: #fff; letter-spacing: -.03em; }
.hero-stat-card span { color: rgba(255,255,255,.78); font-size: .86rem; }
.hero-stat-card-one { left: -16px; bottom: 34px; }
.hero-stat-card-two { right: -10px; top: 54px; }

.trust-band { margin-top: -30px; position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-grid article { background: #fff; border: 1px solid var(--color-border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-card); }
.trust-grid strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.trust-grid span { color: var(--color-muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .timeline-item, .faq-item, .lead-form, .map-card, .clients-wrap, .gallery-card, .pain-grid article {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.service-card { padding: 30px; min-height: 260px; }
.service-card span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; color: var(--color-primary); background: rgba(255,91,46,.10); font-weight: 900; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .98rem; }
.alt { background: #fff; }
.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain-grid article { padding: 28px; }
.pain-grid strong { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.pain-grid span { color: var(--color-muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card { overflow: hidden; margin: 0; }
.gallery-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-card figcaption { padding: 16px 18px 18px; font-weight: 850; }
.process-section { background: linear-gradient(180deg, #f7f8fb 0%, #fff 100%); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline-item { position: relative; padding: 30px 26px; overflow: hidden; }
.timeline-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--color-primary), transparent); }
.timeline-item span { color: var(--color-primary); font-weight: 950; letter-spacing: .12em; }
.timeline-item h3 { margin: 14px 0 10px; }
.clients-section { background: var(--color-dark); color: #fff; }
.clients-section h2, .clients-section h3 { color: #fff; }
.clients-section p { color: rgba(255,255,255,.75); }
.clients-wrap { padding: clamp(30px, 5vw, 56px); background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.12); }
.client-logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.client-logo-grid span { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); font-weight: 900; text-align: center; }
.zones-grid, .cta-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 36px; align-items: center; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area-tags span { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding: 8px 12px; color: var(--color-ink-soft); font-weight: 760; }
.map-card { overflow: hidden; padding: 10px; }
.map-card iframe { display: block; width: 100%; min-height: 420px; border: 0; border-radius: 18px; }
.cta-section { background: radial-gradient(circle at 0% 0%, rgba(255,91,46,.14), transparent 38%), #fff; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list li { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--color-border); }
.lead-form { padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; }
.lead-form label { display: grid; gap: 8px; color: var(--color-ink); font-weight: 850; }
.lead-form input, .lead-form textarea, .lead-form select {
    width: 100%;
    border: 1px solid var(--color-border);
    background: #f8fafc;
    color: var(--color-ink);
    border-radius: 16px;
    min-height: 52px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { border-color: rgba(255,91,46,.55); box-shadow: 0 0 0 4px rgba(255,91,46,.12); background: #fff; }
.lead-form small { color: var(--color-muted); text-align: center; }
.faq-list { display: grid; gap: 14px; max-width: 900px; }
.faq-item { padding: 22px 24px; }
.faq-item summary { cursor: pointer; font-weight: 900; font-size: 1.05rem; }
.faq-item p { margin-top: 12px; }

.site-footer { background: #050b14; color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 32px; }
.footer-brand { display: inline-flex; padding: 12px 14px; background: #fff; border-radius: 16px; margin-bottom: 18px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; margin-top: 42px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: .92rem; }
.floating-whatsapp {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 900;
    box-shadow: 0 18px 44px rgba(37,211,102,.35);
}
.floating-whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,11,20,.72); backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: min(94vw, 560px); max-height: 92vh; overflow: auto; margin: 4vh auto; padding: 34px; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.modal-panel h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f1f5f9; cursor: pointer; font-size: 1.8rem; line-height: 1; color: var(--color-ink); }
.lead-form.compact { padding: 0; border: 0; box-shadow: none; }
.thank-you { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255,91,46,.18), transparent 34%), #f7f8fb; padding: 48px 0; }
.thank-you-card { max-width: 720px; text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: 32px; box-shadow: var(--shadow-soft); padding: clamp(30px, 6vw, 70px); }
.thank-you-card img { margin: 0 auto 26px; }
.thank-you-card h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); margin-bottom: 18px; }
.thank-you-card .btn { margin: 8px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
    .header-cta { display: none; }
    .main-nav { gap: 14px; font-size: .86rem; }
    .brand img { width: 126px; }
}
@media (max-width: 980px) {
    .header-shell { min-height: 70px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 20px;
        box-shadow: var(--shadow-soft);
        white-space: normal;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 14px 12px; border-radius: 12px; }
    .main-nav a:hover { background: #f8fafc; }
    .main-nav a::after { display: none; }
}
@media (max-width: 1040px) {
    .header-cta { display: none; }
    .main-nav { gap: 14px; font-size: .86rem; }
    .hero-grid, .split-grid, .zones-grid, .cta-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 86px; }
    .hero-card { max-width: 760px; margin-inline: auto; }
    .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .header-shell { min-height: 70px; }
    .brand img { width: 118px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 70px; left: 12px; right: 12px;
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow-soft);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 14px 12px; border-radius: 12px; }
    .main-nav a:hover { background: #f8fafc; }
    .main-nav a::after { display: none; }
    .hero { padding: 74px 0 56px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-card > img { border-radius: 22px; }
    .hero-stat-card { position: static; margin-top: 12px; }
    .trust-grid, .service-grid, .gallery-grid, .pain-grid, .timeline, .footer-grid, .client-logo-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .map-card iframe { min-height: 320px; }
    .floating-whatsapp { right: 14px; bottom: 14px; padding: 12px; }
    .floating-whatsapp span { display: none; }
    .modal-panel { padding: 26px; margin-top: 2vh; }
    .footer-bottom { flex-direction: column; }
}


/* Portafolio real de proyectos */
.projects-section .section-heading p { max-width: 780px; }
.project-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}
.project-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-dark);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow-card);
    isolation: isolate;
}
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,11,20,.08), rgba(5,11,20,.86));
    z-index: 1;
}
.project-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .35s ease, filter .35s ease;
}
.project-card:hover img,
.project-card.is-active img { transform: scale(1.06); filter: saturate(1.06); }
.project-card.is-active { border-color: rgba(255, 91, 46, .72); box-shadow: 0 22px 60px rgba(255, 91, 46, .18); }
.project-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 22px;
    color: #fff;
}
.project-card-overlay strong { font-size: 1.28rem; line-height: 1.05; letter-spacing: -.03em; }
.project-card-overlay small { color: rgba(255,255,255,.82); font-weight: 700; }
.project-card-overlay em { color: #fff; font-style: normal; font-weight: 900; font-size: .88rem; margin-top: 6px; }
.project-chip {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 91, 46, .92);
    color: #fff;
    font-weight: 900;
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.project-gallery-shell { display: grid; gap: 22px; }
.project-gallery-panel {
    display: none;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 100px;
}
.project-gallery-panel.is-active { display: block; }
.project-gallery-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 18px;
    margin-bottom: 22px;
}
.project-gallery-header .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.project-gallery-header h3 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 10px;
}
.project-gallery-header p { max-width: 780px; margin: 0; }
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.project-gallery-grid .gallery-card { cursor: zoom-in; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.project-gallery-grid .gallery-card:hover { transform: translateY(-4px); border-color: rgba(255, 91, 46, .28); box-shadow: 0 20px 54px rgba(15, 23, 42, .16); }
.gallery-card figcaption { display: grid; gap: 5px; }
.gallery-card figcaption strong { color: var(--color-ink); font-size: 1rem; }
.gallery-card figcaption span { color: var(--color-muted); font-size: .88rem; font-weight: 650; }
.hero-card > img { aspect-ratio: 4 / 3; object-fit: cover; }
.client-logo-card img { max-width: 190px; max-height: 70px; object-fit: contain; opacity: .96; }
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 28px 86px;
    background: rgba(5, 11, 20, .90);
    backdrop-filter: blur(10px);
}
.image-lightbox.is-open { display: grid; }
.image-lightbox img {
    max-width: min(1120px, 92vw);
    max-height: 78vh;
    border-radius: 24px;
    box-shadow: 0 34px 90px rgba(0,0,0,.42);
    object-fit: contain;
}
.image-lightbox p {
    margin: 14px 0 0;
    color: rgba(255,255,255,.88);
    font-weight: 850;
    text-align: center;
}
.image-lightbox-close,
.image-lightbox-nav {
    position: fixed;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--color-ink);
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.image-lightbox-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
}
.image-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 3rem;
    line-height: .8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-lightbox-prev { left: 22px; }
.image-lightbox-next { right: 22px; }
@media (max-width: 1040px) {
    .project-card-grid, .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .project-gallery-header { grid-template-columns: 1fr; }
    .project-gallery-header .btn { width: fit-content; }
}
@media (max-width: 760px) {
    .project-card-grid, .project-gallery-grid { grid-template-columns: 1fr; }
    .project-card, .project-card img { min-height: 260px; }
    .project-gallery-panel { padding: 18px; border-radius: 22px; }
    .image-lightbox { padding: 16px; }
    .image-lightbox img { max-height: 72vh; border-radius: 18px; }
    .image-lightbox-nav { width: 44px; height: 44px; font-size: 2.4rem; background: rgba(255,255,255,.92); }
    .image-lightbox-prev { left: 10px; }
    .image-lightbox-next { right: 10px; }
    .project-gallery-grid .gallery-card:hover { transform: none; }
}

/* Contacto flotante, aviso de privacidad y pie de página actualizado */
.footer-bottom .designed-by {
    color: rgba(255,255,255,.78);
}
.footer-bottom .designed-by a {
    color: var(--color-primary);
    font-weight: 950;
    font-size: 1.06rem;
}
.footer-bottom .designed-by a:hover {
    color: #ff875f;
}
.floating-contact-bar {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 75;
    display: grid;
    gap: 14px;
}
.floating-contact-link {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 38px rgba(5, 11, 20, .20);
    border: 1px solid rgba(15, 23, 42, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}
.floating-contact-link:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 22px 48px rgba(5, 11, 20, .28);
}
.floating-contact-link svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}
.floating-contact-whatsapp { color: #25d366; }
.floating-contact-facebook { color: #1877f2; }
.floating-contact-email { color: var(--color-primary); }
.legal-page {
    background: var(--color-bg);
}
.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 76px;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,91,46,.20), transparent 32%),
        linear-gradient(135deg, #07101f 0%, #111827 100%);
}
.legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.legal-hero h1 {
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 6rem);
}
.legal-hero p {
    max-width: 780px;
    margin-top: 18px;
    color: rgba(255,255,255,.78);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
}
.legal-card {
    max-width: 980px;
    padding: clamp(28px, 5vw, 58px);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.legal-card h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.legal-card h2:first-child {
    margin-top: 0;
}
.legal-card p {
    font-size: 1.03rem;
}
.legal-card a:not(.btn) {
    color: var(--color-primary-dark);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}
@media (max-width: 760px) {
    .floating-contact-bar {
        right: 12px;
        top: auto;
        bottom: 14px;
        transform: none;
        gap: 10px;
    }
    .floating-contact-link {
        width: 52px;
        height: 52px;
    }
    .floating-contact-link svg {
        width: 28px;
        height: 28px;
    }
    .legal-hero {
        padding: 94px 0 56px;
    }
    .legal-actions .btn {
        width: 100%;
    }
}
