/* BASE */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --brand-dark: #0a1a2f;
    --brand-blue: #0077ff;
    --brand-blue-soft: #dbe9ff;
    --brand-gold: #d8b25a;
    --brand-slate: #12263f;
    --brand-slate-soft: #1f3a5a;
    --brand-cyan: #14b8d4;
    --brand-cyan-soft: #d9f7fb;
    --text-dark: #1d2a3a;
    --text-muted: #607086;
    --surface: #ffffff;
    --surface-alt: #f4f7fb;
    --border-soft: #d9e2ec;
    --shadow-soft: 0 18px 45px rgba(10, 26, 47, 0.12);
    --shadow-card: 0 14px 28px rgba(10, 26, 47, 0.08);
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: #eef3f8;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

h1, h2, h3, p, ul {
    margin-top: 0;
}

input,
textarea,
button {
    font: inherit;
}

section[id] {
    scroll-margin-top: 110px;
}

/* CONTENEDOR */
.container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}

/* TOPBAR */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(10, 26, 47, 0.06);
    padding: 18px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-logo-link {
    display: inline-flex;
    align-items: center;
}

.topbar-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
}

.topbar-contact-list {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
}

.top-contact-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f2744 0%, #146f96 52%, #27c2dc 100%);
    color: white;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(15, 111, 150, 0.28);
    position: relative;
    flex-shrink: 0;
}

.top-contact-icon::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background: #ffffff;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.top-contact-icon-phone::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.63 2.62a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6.09 6.09l1.46-1.29a2 2 0 0 1 2.11-.45c.84.3 1.72.51 2.62.63A2 2 0 0 1 22 16.92z\"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.63 2.62a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6.09 6.09l1.46-1.29a2 2 0 0 1 2.11-.45c.84.3 1.72.51 2.62.63A2 2 0 0 1 22 16.92z\"/></svg>');
}

.top-contact-icon-location::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"black\"><path d=\"M12 22s8-7.58 8-14a8 8 0 1 0-16 0c0 6.42 8 14 8 14zm0-10.5A3.5 3.5 0 1 1 12 4a3.5 3.5 0 0 1 0 7.5z\"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"black\"><path d=\"M12 22s8-7.58 8-14a8 8 0 1 0-16 0c0 6.42 8 14 8 14zm0-10.5A3.5 3.5 0 1 1 12 4a3.5 3.5 0 0 1 0 7.5z\"/></svg>');
}

.top-contact-icon-mail::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"black\"><path d=\"M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v.51l9 6 9-6V7H3zm18 10V9.49l-8.43 5.62a1 1 0 0 1-1.14 0L3 9.49V17h18z\"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"black\"><path d=\"M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v.51l9 6 9-6V7H3zm18 10V9.49l-8.43 5.62a1 1 0 0 1-1.14 0L3 9.49V17h18z\"/></svg>');
}

.top-contact-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: #121212;
    margin-bottom: 4px;
}

.top-contact-item span:last-child {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    color: var(--brand-slate-soft);
    font-weight: 800;
}

.top-contact-item:nth-child(2) span:last-child {
    color: #121212;
    font-weight: 700;
}

.top-contact-item:nth-child(3) span:last-child {
    color: var(--brand-slate-soft);
}

.social-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.icon {
    width: 42px;
    height: 42px;
    background: var(--brand-blue-soft);
    color: var(--brand-dark);
    border: 1px solid rgba(10, 26, 47, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(10, 26, 47, 0.08);
}

/* NAVBAR */
.header {
    background: linear-gradient(90deg, var(--brand-slate) 0%, var(--brand-slate-soft) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.5s var(--ease);
}

.header.scrolled {
    background: rgba(18, 38, 63, 0.94);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 74px;
    gap: 20px;
}

.nav nav {
    flex: 1;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.mobile-only {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(10, 26, 47, 0.18);
}

.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.nav li {
    margin-left: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    position: relative;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    min-height: 74px;
    padding: 0 16px;
}

.nav a::after {
    content: "";
    position: absolute;
    width: calc(100% - 32px);
    height: 3px;
    background: var(--brand-cyan);
    left: 16px;
    bottom: 16px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    min-height: auto;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, #0f8bd4 100%);
    border-radius: 0;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #0f8bd4 0%, #0b78b8 100%);
}

.nav-social-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-social-dropdown summary {
    list-style: none;
}

.nav-social-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-social-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #ecf8ff 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--brand-slate);
    box-shadow: 0 14px 30px rgba(10, 26, 47, 0.18);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.nav-social-toggle::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, #0f8bd4 100%);
    box-shadow: 0 0 0 6px rgba(20, 184, 212, 0.12);
}

.nav-social-toggle::after {
    content: "▾";
    margin-left: 10px;
    font-size: 13px;
    color: var(--brand-cyan);
}

.nav-social-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(10, 26, 47, 0.22);
    filter: brightness(1.01);
}

.nav-social-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 8px;
    z-index: 1100;
}

.nav-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 10px 12px;
    color: #10233c;
    text-decoration: none;
    background: #f7fbff;
    border-radius: 12px;
    border: 1px solid rgba(10, 26, 47, 0.06);
    font-weight: 700;
}

.nav-social-item span {
    color: #10233c;
}

.nav-social-item::after {
    display: none;
}

.nav-social-item:hover {
    background: var(--brand-cyan-soft);
}

/* HERO */
.hero {
    min-height: 78vh;
    background-image:
        linear-gradient(90deg, rgba(10, 26, 47, 0.82) 0%, rgba(10, 26, 47, 0.62) 46%, rgba(10, 26, 47, 0.42) 100%),
        url("img/hero.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.overlay {
    background: transparent;
    color: white;
    min-height: 78vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 72px 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px);
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(219, 233, 255, 0.16);
    color: var(--brand-blue-soft);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFade 1.2s var(--ease) forwards;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-style: italic;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFade 1.6s var(--ease) forwards;
}

.hero-text {
    max-width: 620px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 28px;
}

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

.hero-panel {
    width: 100%;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.hero-card-label {
    color: var(--brand-gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-list li {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.hero-list li:first-child {
    border-top: 0;
}

.hero-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-list a::after {
    content: '→';
    color: var(--brand-cyan);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-list a:hover,
.hero-list a:focus-visible {
    color: #ffffff;
    transform: translateX(4px);
}

.hero-list a:hover::after,
.hero-list a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

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

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 22px;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.5s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    background: #005bcc;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* SCROLL ANIMATION */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s var(--ease);
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(60px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.view-panel {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.hidden-view {
    display: none;
}

.view-enter {
    animation: viewFadeIn 0.45s var(--ease);
}

.view-exit {
    animation: viewFadeOut 0.24s var(--ease);
}

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

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

@keyframes viewFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* SECCIONES */
main section,
.contacto {
    padding: 92px 0;
}

.empresa,
.proyectos {
    background: var(--surface);
}

.servicios {
    background: var(--surface-alt);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --services-bg-image: none;
}

.servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.70) 0%, rgba(244, 247, 251, 0.78) 100%),
        var(--services-bg-image) center/cover no-repeat;
    opacity: 1;
    z-index: -1;
}

.servicios .container {
    position: relative;
    z-index: 1;
}

.clientes {
    background: #ffffff;
}

.certificados {
    --certificados-parallax-y: 0px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background: #071221;
}

.certificados::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 25%, rgba(20, 184, 212, 0.16), transparent 34%),
        radial-gradient(circle at 85% 75%, rgba(15, 139, 212, 0.14), transparent 32%),
        linear-gradient(120deg, rgba(7, 18, 33, 0.9) 0%, rgba(12, 34, 58, 0.82) 52%, rgba(5, 20, 35, 0.9) 100%);
}

.certificados::after {
    content: '';
    position: absolute;
    inset: -110px 0;
    z-index: -2;
    pointer-events: none;
    background: url("img/hero.jpeg") center center / cover no-repeat;
    transform: translate3d(0, var(--certificados-parallax-y), 0) scale(1.06);
    transform-origin: center;
    will-change: transform;
}

.certificados .container {
    position: relative;
    z-index: 1;
}

.certificados-heading h2 {
    color: #ffffff;
}

.certificados .section-kicker {
    color: #70e4f3;
}

#certificados .certificado-item {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#certificados .certificado-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
    .certificados::after {
        inset: 0;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .certificados::after {
        inset: 0;
        transform: scale(1.04);
        will-change: auto;
    }
}

.clientes-heading h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 0;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid rgba(10, 26, 47, 0.06);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.cliente-item {
    min-height: 88px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    color: var(--brand-slate);
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.certificado-item {
    min-height: 270px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(10, 26, 47, 0.08);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    gap: 14px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.certificado-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.certificado-item img {
    width: 100%;
    max-width: 170px;
    max-height: 70px;
    object-fit: contain;
}

#certificados .certificado-item:nth-child(1) img {
    transform: scale(1);
}

#certificados .certificado-item:nth-child(2) img {
    transform: scale(1.25);
}

#certificados .certificado-item:nth-child(4) img {
    transform: scale(1.18);
}

#certificados .certificado-item:nth-child(5) img {
    transform: scale(1.45);
}

#certificados .certificado-item:nth-child(6) img {
    transform: scale(1.3);
}

#certificados .certificado-item:nth-child(7) img {
    transform: scale(1);
}

#certificados .certificado-logo-sercap {
    transform: scale(1.08);
}

.certificado-item span {
    font-weight: 800;
    color: var(--brand-slate);
}

#certificados .certificado-item {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 68px;
    row-gap: 0.25cm;
    align-items: center;
    justify-items: center;
}

#certificados .certificado-item img {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    height: 70px;
    margin: 0;
    transform-origin: center;
}
.certificado-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 68px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
    box-sizing: border-box;
}

.certificado-item .certificado-copy span {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
}
.cliente-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(10, 26, 47, 0.08);
    color: var(--brand-blue);
}

.cliente-item-logo {
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px;
    overflow: hidden;
}

.cliente-item-logo img {
    width: 100%;
    max-width: 150px;
    max-height: 52px;
    object-fit: contain;
}

#partners .cliente-item:nth-child(6) img {
    transform: scale(1.65);
}

#partners .cliente-item:nth-child(8) img {
    transform: scale(1);
}

.clientes-sector-grid .cliente-item {
    min-height: 110px;
    overflow: hidden;
}

.clientes-sector-grid .cliente-item img {
    max-width: 170px;
    max-height: 64px;
}

.cliente-item-logo span {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.gallery-sidebar {
    background: linear-gradient(180deg, #f2f5f9 0%, #edf3f9 100%);
    border-left: 3px solid var(--brand-blue);
    border-radius: 0 24px 24px 0;
    padding: 26px 22px;
    display: grid;
    gap: 12px;
}

.gallery-filter-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--brand-slate);
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.45;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
    background: #ffffff;
    color: var(--brand-blue);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gallery-tile {
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-tile.is-hidden {
    display: none;
}

.gallery-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.gallery-tile-large {
    grid-row: span 2;
}

.gallery-tile-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gallery-tile-image {
    display: block;
    width: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-tile-large .gallery-tile-image {
    min-height: 464px;
}

.gallery-tile-video-frame {
    display: block;
    width: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #0b1a2b;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gallery-tile-video-frame .gallery-tile-preview {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
}

.gallery-tile-video-frame.is-ready .gallery-tile-preview {
    opacity: 1;
}

.clientes-sector-grid {
    background: linear-gradient(135deg, #f7fbff 0%, #edf5fb 100%);
}

.clientes-sector-grid .cliente-item-logo {
    min-height: 130px;
    padding: 20px;
}

.clientes-sector-grid .cliente-item-logo img {
    max-width: 170px;
    max-height: 72px;
}

.clientes-sector-grid .cliente-item:nth-child(1) img,
.clientes-sector-grid .cliente-item:nth-child(2) img,
.clientes-sector-grid .cliente-item:nth-child(8) img {
    transform: scale(2.05);
}

.clientes-sector-grid .cliente-item:nth-child(3) img,
.clientes-sector-grid .cliente-item:nth-child(7) img,
.clientes-sector-grid .cliente-item:nth-child(12) img {
    transform: scale(1.8);
}

.clientes-sector-grid .cliente-item:nth-child(4) img,
.clientes-sector-grid .cliente-item:nth-child(5) img,
.clientes-sector-grid .cliente-item:nth-child(6) img,
.clientes-sector-grid .cliente-item:nth-child(13) img,
.clientes-sector-grid .cliente-item:nth-child(15) img,
.clientes-sector-grid .cliente-item:nth-child(18) img {
    transform: scale(1.5);
}

.clientes-sector-grid .cliente-item:nth-child(9) img,
.clientes-sector-grid .cliente-item:nth-child(10) img,
.clientes-sector-grid .cliente-item:nth-child(17) img,
.clientes-sector-grid .cliente-item:nth-child(19) img,
.clientes-sector-grid .cliente-item:nth-child(21) img {
    transform: scale(1.3);
}

.clientes-sector-grid .cliente-item:nth-child(14) img,
.clientes-sector-grid .cliente-item:nth-child(20) img {
    transform: scale(2.1);
}

.gallery-tile-video-frame .gallery-tile-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(12, 25, 43, 0.72);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
    pointer-events: none;
}

.gallery-tile-large .gallery-tile-video-frame {
    min-height: 464px;
}

.gallery-tile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 38, 63, 0.04) 0%, rgba(18, 38, 63, 0.2) 100%);
    transition: opacity 0.3s var(--ease);
}

.gallery-tile:hover .gallery-tile-image::after {
    opacity: 0.45;
}

.gallery-photo-tableros-1 {
    background-image: url("img/galeria de proyectos/Tableros y gabinetes/Trableros portatiles.png");
}

.gallery-photo-solar-1 {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-24 at 18.48.06.jpeg");
}

.gallery-photo-solar-2 {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-24 at 18.48.07.jpeg");
}

.gallery-photo-solar-3 {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-26 at 11.54.44.jpeg");
}

.gallery-photo-faena-1 {
    background-image: url("img/galeria de proyectos/Todos los proyectos/WhatsApp Image 2026-04-23 at 14.46.54.jpeg");
}

.gallery-photo-inspeccion-1 {
    background-image: url("img/galeria de proyectos/Inspeccion aereo (Termica y Visual RPA)/DJI_20260416144145_0001_V.JPG");
}

.gallery-photo-inspeccion-2 {
    background-image: url("img/galeria de proyectos/Inspeccion aereo (Termica y Visual RPA)/DJI_20260416151210_0002_V.JPG");
}

.gallery-photo-inspeccion-3 {
    background-image: url("img/galeria de proyectos/Inspeccion aereo (Termica y Visual RPA)/DJI_20260416151444_0003_V.JPG");
}

.gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.gallery-more-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--brand-slate) 0%, #1f3a5a 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(10, 26, 47, 0.16);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.gallery-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(10, 26, 47, 0.2);
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0f8bd4 100%);
}

.gallery-more-btn[hidden] {
    display: none;
}

.project-detail-view {
    padding: 56px 0 96px;
    background: #ffffff;
}

.project-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-detail-breadcrumb a {
    color: var(--brand-slate);
    text-decoration: none;
    font-weight: 700;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: start;
}

.project-detail-gallery,
.project-detail-side {
    display: grid;
    gap: 18px;
}

.project-detail-main-media,
.project-detail-large-media {
    min-height: 420px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}

.project-detail-main-media,
.project-detail-large-media,
.project-thumb-media,
.media-lightbox-media {
    position: relative;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-tile-image,
.project-detail-main-media,
.project-detail-large-media,
.project-thumb-media,
.inspection-showcase-media,
.service-project-item {
    position: relative;
    overflow: hidden;
}

.gallery-tile-image::before,
.service-project-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/logo_empresa.png");
    background-repeat: repeat;
    background-position: center;
    background-size: 220px auto;
    opacity: 0.40;
    z-index: 3;
    pointer-events: none;
}

.media-lightbox-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/logo_empresa.png");
    background-repeat: repeat;
    background-position: center;
    background-size: 220px auto;
    opacity: 0.70;
    z-index: 2;
    pointer-events: none;
}

.media-lightbox-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 47, 0.02) 0%, rgba(10, 26, 47, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-detail-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.project-detail-thumbs::-webkit-scrollbar {
    display: none;
}

.project-thumb {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border: 1px solid rgba(10, 26, 47, 0.1);
    border-radius: 18px;
    background: #ffffff;
    padding: 6px;
    cursor: pointer;
}

.project-thumb.active {
    border-color: var(--brand-cyan);
    box-shadow: 0 10px 22px rgba(20, 184, 212, 0.14);
}

.project-thumb-media {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.project-detail-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(7, 14, 24, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px;
}

.media-lightbox.is-open {
    display: flex;
}

.media-lightbox-stage {
    width: min(100%, 1360px);
    display: grid;
    gap: 16px;
}

.media-lightbox-media {
    min-height: min(76vh, 820px);
    border-radius: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.media-lightbox-counter {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    text-align: right;
    font-weight: 700;
}

.media-lightbox-video-wrap {
    background: #000000;
}

.media-lightbox-video-wrap::before,
.media-lightbox-video-wrap::after {
    content: none;
    display: none;
}

.media-lightbox-video {
    width: 100%;
    height: 100%;
    min-height: min(76vh, 820px);
    display: block;
    object-fit: contain;
    background: #000000;
}

.media-lightbox-close,
.media-lightbox-nav {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.media-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.media-lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.project-detail-side h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0;
}

.project-detail-brand {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-slate);
    font-weight: 800;
    margin-bottom: 0;
}

.project-detail-description,
.project-detail-industries {
    color: var(--text-muted);
}

.project-detail-industries {
    font-weight: 700;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-detail-form-card {
    background: #2e2e31;
    color: white;
    border-radius: 26px;
    padding: 30px;
    display: grid;
    gap: 16px;
}

.project-detail-form-card h3 {
    margin-bottom: 0;
}

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

.project-detail-form-card input,
.project-detail-form-card textarea {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text-dark);
}

.project-detail-form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.project-form-label {
    font-weight: 700;
}

.project-form-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.project-form-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-form-submit {
    width: fit-content;
}

.project-detail-section {
    margin-top: 54px;
    padding-top: 38px;
    border-top: 1px solid rgba(10, 26, 47, 0.16);
}

.project-detail-section h3,
.project-related h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.project-detail-section p {
    color: var(--text-muted);
}

.project-detail-features {
    padding-left: 20px;
    color: var(--text-dark);
}

.project-detail-features li + li {
    margin-top: 10px;
}

.project-detail-metrics {
    margin-top: 54px;
    padding-top: 38px;
    border-top: 1px solid rgba(10, 26, 47, 0.16);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: 36px;
    align-items: center;
}

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

.project-metric-card {
    background: #f8fafc;
    border-radius: 22px;
    padding: 26px 22px;
    text-align: center;
    border: 1px solid rgba(10, 26, 47, 0.06);
}

.project-metric-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--brand-slate);
    margin-bottom: 6px;
}

.project-metric-card span {
    color: var(--text-muted);
}

.project-related {
    margin-top: 54px;
    padding-top: 38px;
    border-top: 1px solid rgba(10, 26, 47, 0.16);
}

.project-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.project-related-card {
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow-card);
}

.project-related-media {
    height: 150px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    margin-bottom: 14px;
}

.project-related-body h4 {
    font-size: 0.96rem;
    margin-bottom: 14px;
    color: var(--brand-slate);
}

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

.section-kicker {
    display: inline-block;
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.empresa-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.empresa-copy {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 34px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    height: 100%;
    min-width: 0;
}

.empresa-copy p:last-child {
    margin-bottom: 0;
}

.empresa-map-card {
    margin-top: 28px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.empresa-map-head {
    display: none;
}

.empresa-map-head strong {
    color: var(--brand-slate);
}

.empresa-map-head a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.empresa-map-frame {
    height: 320px;
    background: #eef3f8;
}

.empresa-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.empresa-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 16px 0 0;
    background: transparent;
}

.empresa-logo-frame img {
    display: block;
    width: min(82%, 320px);
    max-height: 220px;
    object-fit: contain;
}

.empresa-contact-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
}

.empresa-contact-highlight {
    display: grid;
    grid-template-columns: minmax(90px, 110px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(10, 26, 47, 0.1);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.empresa-contact-highlight strong {
    display: block;
    color: var(--brand-slate);
    margin: 0;
}

.empresa-contact-highlight span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.empresa-commitment {
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    box-shadow: var(--shadow-card);
    height: 100%;
    min-width: 0;
}

.empresa-commitment-heading {
    margin-bottom: 24px;
}

.empresa-commitment-heading .section-kicker {
    color: #d36f4b;
}

.empresa-commitment-heading h3 {
    margin: 8px 0 10px;
    color: var(--brand-slate);
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.empresa-commitment-heading p {
    margin: 0;
    color: var(--text-muted);
}

.commitment-list {
    display: grid;
    gap: 14px;
}

.commitment-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(10, 26, 47, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.commitment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f2f6fa;
    color: var(--brand-slate);
    font-size: 1.8rem;
    line-height: 1;
}

.commitment-item h4 {
    margin: 2px 0 6px;
    color: var(--brand-slate);
    font-size: 1.05rem;
}

.commitment-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: white;
    padding: 28px;
    border-radius: 24px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
    border: 1px solid rgba(10, 26, 47, 0.06);
}

.service-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 4px;
}

.service-card-action {
    margin-top: auto;
    color: var(--brand-blue);
    font-weight: 800;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, #ffffff 0%, #e9f8ff 100%);
    border-color: rgba(20, 184, 212, 0.28);
}

.service-card::before {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 4px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
    transition: width 0.35s var(--ease);
}

.service-card:hover::before {
    width: 110px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.service-detail-view {
    padding: 76px 0 96px;
    background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
}

.service-detail-view.service-background-mantenimiento {
    background-image:
        linear-gradient(180deg, rgba(245, 249, 253, 0.70) 0%, rgba(255, 255, 255, 0.78) 100%),
        url("img/fondos/mantenimiento-electrico.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.service-detail-view.service-background-tableros {
    background-image:
        linear-gradient(180deg, rgba(245, 249, 253, 0.70) 0%, rgba(255, 255, 255, 0.78) 100%),
        url("img/fondos/fondo-integracion-tableros.jpeg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.service-detail-view.service-background-fotovoltaicos {
    background-image:
        linear-gradient(rgba(245, 249, 253, 0.30), rgba(245, 249, 253, 0.30)),
        url("img/fondos/fondo-sistemas-fotovoltaicos.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(245, 249, 253, 0.30);
}

@media (max-width: 768px) {
    .service-detail-view.service-background-mantenimiento,
    .service-detail-view.service-background-tableros,
    .service-detail-view.service-background-fotovoltaicos {
        background-position: center top;
        background-attachment: scroll;
    }
}

.service-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.service-detail-breadcrumb a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

#service-detail-crumb {
    color: var(--brand-slate);
    font-weight: 800;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.service-detail-view.service-background-mantenimiento .service-detail-layout {
    align-items: stretch;
}

.solar-benefits {
    margin-top: 30px;
    padding: 38px;
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.solar-benefits h3 {
    margin: 0 0 22px;
    color: var(--brand-slate);
    font-size: 1.35rem;
}

.solar-benefits-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(10, 26, 47, 0.1);
    border-radius: 18px;
}

.solar-benefits-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.solar-benefits-table th,
.solar-benefits-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(10, 26, 47, 0.09);
}

.solar-benefits-table th {
    background: var(--brand-slate);
    color: #ffffff;
    font-weight: 800;
}

.solar-benefits-table td:first-child {
    width: 34%;
    color: var(--brand-slate);
    font-weight: 800;
}

.solar-benefits-table tbody tr:nth-child(even) {
    background: #f4f8fc;
}

.solar-benefits-table tbody tr:last-child td {
    border-bottom: 0;
}
.service-detail-copy,
.service-detail-scope,
.service-detail-note {
    padding: 38px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    box-shadow: var(--shadow-card);
}

.maintenance-sec-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 180px;
    padding: 34px 12px 12px;
}

.service-detail-scope .maintenance-sec-logo.hidden-view {
    display: none;
}

.maintenance-sec-logo img {
    display: block;
    width: min(78%, 210px);
    max-height: 130px;
    object-fit: contain;
}

.service-detail-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 54px;
    margin: 22px 0 18px;
    border-radius: 17px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-weight: 900;
}

.service-detail-copy .hidden-view {
    display: none;
}

.service-detail-copy h2 {
    margin-bottom: 18px;
    color: var(--brand-slate);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.service-detail-lead {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.service-detail-copy p,
.service-detail-scope li,
.service-detail-note p,
.inspection-showcase-copy p {
    text-align: justify;
    text-justify: inter-word;
}

.service-detail-lead-secondary {
    margin-top: 16px;
}

.service-detail-lead-secondary strong {
    color: var(--brand-slate);
}

.tableros-brand-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.service-detail-copy .tableros-brand-logos.hidden-view {
    display: none;
}

.tableros-brand-logos img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: 46px;
    object-fit: contain;
    justify-self: center;
}

.tableros-brand-logos img:nth-child(2) {
    max-width: 104px;
}

.tableros-brand-logos img:nth-child(3) {
    max-width: 82px;
}

.tableros-brand-logos img:nth-child(4) {
    max-width: 124px;
}

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

.service-detail-actions .btn-secondary {
    border: 2px solid rgba(18, 38, 63, 0.32);
    color: var(--brand-slate);
}

.service-detail-actions .btn-secondary:hover {
    background: var(--brand-slate);
    color: #ffffff;
}

.inspection-brand-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.service-detail-copy .inspection-brand-logos.hidden-view {
    display: none;
}

.inspection-brand-logos img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: 46px;
    object-fit: contain;
    justify-self: center;
}

.inspection-brand-logos img:nth-child(2) {
    max-width: 104px;
}

.inspection-brand-logos img:nth-child(3) {
    width: auto;
    max-width: 72px;
    height: 68px;
}
.diagnostic-applications {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.diagnostic-applications h3 {
    margin: 0 0 20px;
    color: var(--brand-slate);
    font-size: 1.2rem;
}

.diagnostic-applications ul {
    display: block;
    margin: 0;
    padding: 0 0 0 42px;
    list-style: disc;
}

.diagnostic-applications li {
    padding: 4px 0;
    color: var(--brand-slate);
    line-height: 1.45;
}

.diagnostic-applications li::marker {
    color: var(--brand-slate);
    font-size: 1.05em;
}
.solar-why-choose {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.solar-why-choose h3 {
    margin: 0 0 20px;
    color: var(--brand-slate);
    font-size: 1.2rem;
}

.solar-why-choose ul {
    display: block;
    margin: 0;
    padding: 0 0 0 42px;
    list-style: disc;
}

.solar-why-choose li {
    padding: 4px 0;
    color: var(--brand-slate);
    line-height: 1.45;
}

.solar-why-choose li::marker {
    color: var(--brand-slate);
    font-size: 1.05em;
}

.solar-technology-partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.solar-technology-partner-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

#solar-why-choose .solar-technology-partner-logos img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 80px;
    margin-inline: auto;
    object-fit: contain;
}

.solar-technology-partners p {
    margin: 0;
    color: var(--brand-slate);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 560px) {
    .solar-technology-partners {
        margin-top: 28px;
    }

    .solar-technology-partner-logos {
        gap: 16px;
    }

    #solar-why-choose .solar-technology-partner-logos img {
        max-width: 140px;
        height: 64px;
    }
}
.maintenance-benefits {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(10, 26, 47, 0.1);
}

.maintenance-benefits h3 {
    margin-bottom: 20px;
    color: var(--brand-slate);
    font-size: 1.2rem;
}

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

.maintenance-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f8fc 0%, #eef6ff 100%);
    border: 1px solid rgba(15, 139, 212, 0.08);
}

.maintenance-benefit:last-child {
    grid-column: 1 / -1;
}

.maintenance-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(10, 26, 47, 0.08);
    font-size: 1.25rem;
}

.maintenance-benefit h4 {
    margin: 1px 0 5px;
    color: var(--brand-slate);
    font-size: 0.98rem;
}

.maintenance-benefit p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .tableros-brand-logos {
        padding-inline: 0;
    }

    .tableros-brand-logos img {
        max-width: 60px;
        height: 28px;
    }

    .tableros-brand-logos img:nth-child(2) {
        max-width: 58px;
    }

    .tableros-brand-logos img:nth-child(3) {
        max-width: 45px;
    }

    .tableros-brand-logos img:nth-child(4) {
        max-width: 68px;
    }

    .maintenance-benefits-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-benefit:last-child {
        grid-column: auto;
    }
}

.service-detail-scope h3,
.service-detail-note h3 {
    margin-bottom: 20px;
    color: var(--brand-slate);
}

.service-detail-scope {
    display: flex;
    flex-direction: column;
}

.service-detail-scope ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.service-detail-scope li {
    position: relative;
    padding: 15px 16px 15px 56px;
    border-radius: 16px;
    background: #f4f8fc;
    color: var(--text-dark);
}

.service-detail-scope li::before {
    content: '⚡︎';
    position: absolute;
    left: 17px;
    top: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #111111;
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
    transform: translateY(-50%);
}

.service-detail-note {
    margin-top: 30px;
}

.service-detail-longtext {
    display: grid;
    gap: 18px;
}

.service-detail-longtext.hidden-view {
    display: none;
}

.service-detail-note p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

#grounding-info-card {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 34px;
    align-items: center;
}

#grounding-info-card:not(.hidden-view) {
    display: grid;
}

.grounding-info-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 34px;
    border-right: 2px solid rgba(18, 38, 63, 0.28);
}
.grounding-info-copy h3 {
    margin-top: 0;
}

.grounding-info-image {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 16px;
}

.inspection-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 58px;
    align-items: center;
    margin-top: 30px;
    padding: 64px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 74% 45%, rgba(20, 184, 212, 0.12), transparent 32%),
        linear-gradient(135deg, #0b1526 0%, #121b2d 100%);
    box-shadow: var(--shadow-soft);
    color: #ffffff;
    height: 560px;
    box-sizing: border-box;
}

.inspection-showcase.hidden-view {
    display: none;
}

.inspection-showcase-kicker {
    display: block;
    margin: 0;
    color: #ef5949;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.inspection-showcase-copy {
    position: relative;
    height: 390px;
    min-width: 0;
}

.inspection-showcase-copy h3 {
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.08;
}

.inspection-showcase-copy > p {
    position: absolute;
    top: 210px;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: left;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.inspection-showcase-controls {
    position: absolute;
    left: 0;
    bottom: 20px;
    display: flex;
    gap: 14px;
    margin: 0;
}

.inspection-showcase-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.inspection-showcase-controls button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transform: none;
}

.inspection-showcase-controls button:hover,
.inspection-showcase-controls button:focus-visible {
    border-color: var(--brand-cyan);
    background: rgba(20, 184, 212, 0.16);
    transform: translateY(-2px);
}

.inspection-showcase-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    margin: 0;
}

.inspection-showcase-dots button {
    width: 22px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.inspection-showcase-dots button.is-active {
    width: 48px;
    background: #ef3f43;
}

.inspection-showcase-media {
    overflow: hidden;
    height: 390px;
    border-radius: 20px;
    background: #07101d;
}

.inspection-showcase-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspection-showcase-media img[src="img/servicios/apoyo-mantenimiento-preventivo-termografia.jpeg"] {
    object-position: center 45%;
}

.service-expandable-image {
    cursor: zoom-in;
}

.service-expandable-image:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 3px;
}
.tableros-fat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.inspection-showcase-media .tableros-fat-grid img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    object-fit: cover;
}
#tableros-showcase-media img[src="img/servicios/puesta-en-marcha.jpeg"] {
    object-position: left center;
}
#tableros-showcase-media img[src="img/servicios/ingenieria-diseno-tableros.jpeg"] {
    object-fit: contain;
    background: #07101d;
}

.inspection-drone-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #05080d;
    object-fit: contain;
}

.service-projects-showcase {
    margin-top: 30px;
    padding: 44px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    box-shadow: var(--shadow-soft);
    color: #000000;
}

.service-projects-showcase.hidden-view {
    display: none;
}

.service-projects-showcase h3 {
    margin: 0 0 28px;
    color: #000000;
    font-size: 1.17em;
}

#service-detail-note-title {
    font-size: 1.17em;
}

.service-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.solar-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.solar-projects-grid.hidden-view {
    display: none;
}

.solar-project-photo {
    height: 440px;
    min-height: 440px;
}

.solar-project-photo img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}
.diagnostic-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.diagnostic-projects-grid.hidden-view {
    display: none;
}

.diagnostic-project-photo {
    height: 480px;
    min-height: 480px;
}

.diagnostic-project-photo img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.service-project-item {
    margin: 0;
    overflow: hidden;
    min-height: 380px;
    border-radius: 20px;
    background: #07101d;
}

.maintenance-project-collage {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    height: 460px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.maintenance-project-wide {
    grid-column: 1 / -1;
}

.maintenance-project-collage-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-expandable-image {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-sizing: border-box;
}
.service-project-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

#grounding-projects-showcase .service-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grounding-project-photo {
    height: 380px;
    min-height: 380px;
}

.grounding-project-photo img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.media-lightbox-clean-image::before,
.media-lightbox-clean-image::after {
    content: none;
    display: none;
}

.service-project-video-item {
    position: relative;
}

.service-project-video-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #07101d;
    color: #ffffff;
    cursor: pointer;
}

.service-project-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    background: #07101d;
    object-fit: cover;
    pointer-events: none;
}

.service-project-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(7, 16, 29, 0.78);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    font-size: 1.35rem;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-project-video-trigger:hover .service-project-video-play,
.service-project-video-trigger:focus-visible .service-project-video-play {
    background: var(--brand-blue);
    transform: translate(-50%, -50%) scale(1.08);
}

.service-project-video-trigger:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: -3px;
}

#inspection-projects-showcase .service-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tableros-projects-showcase .service-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tableros-projects-showcase .tableros-project-featured {
    grid-column: 1 / -1;
    height: 480px;
}

#tableros-projects-showcase .tableros-project-featured img {
    min-height: 0;
    object-fit: cover;
}


@media (max-width: 768px) {
    #grounding-info-card:not(.hidden-view) {
        grid-template-columns: 1fr;
    }

    .grounding-info-copy {
        padding-right: 0;
        padding-bottom: 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(18, 38, 63, 0.2);
    }
    #grounding-projects-showcase .service-projects-grid {
        grid-template-columns: 1fr;
    }

    .grounding-project-photo {
        height: 240px;
        min-height: 240px;
    }

    .service-projects-showcase {
        padding: 26px;
    }

    .service-project-item,
    .service-project-item img,
    .service-project-video {
        min-height: 240px;
    }

    .solar-projects-grid {
        grid-template-columns: 1fr;
    }

    .solar-project-photo {
        height: 320px;
        min-height: 320px;
    }
    .diagnostic-projects-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-project-photo {
        height: 320px;
        min-height: 320px;
    }
    #inspection-projects-showcase .service-projects-grid {
        grid-template-columns: 1fr;
    }

    #tableros-projects-showcase .service-projects-grid {
        grid-template-columns: 1fr;
    }

    #tableros-projects-showcase .tableros-project-featured {
        height: 320px;
    }

    .maintenance-project-collage {
        height: 320px;
    }

.service-expandable-image {
        min-height: 0;
    }
}

.card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--brand-slate);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card-link:hover {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, #0f8bd4 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 184, 212, 0.22);
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--brand-slate);
    color: white;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-link:hover {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, #0f8bd4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 184, 212, 0.22);
}

.project-card-compact {
    min-height: 260px;
}

.proyecto-media-a {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-24 at 18.48.06.jpeg");
}

.proyecto-media-b {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-24 at 18.48.07.jpeg");
}

.proyecto-media-c {
    background-image: url("img/galeria de proyectos/Todos los proyectos/WhatsApp Image 2026-04-23 at 14.46.54.jpeg");
}

.proyecto-media-d {
    background-image: url("img/galeria de proyectos/Tableros y gabinetes/Trableros portatiles.png");
}

.proyecto-media-e {
    background-image: url("img/galeria de proyectos/Soluciones e instalaciones solares/WhatsApp Image 2026-03-26 at 11.54.44.jpeg");
}

.service-media-a {
    background-image: url("img/servicios/mantenimiento_electrico.jpg");
}

.service-media-b {
    background-image: linear-gradient(135deg, #e1edf8 0%, #7b96b4 100%);
}

.service-media-c {
    background-image: linear-gradient(135deg, #d8e5ee 0%, #6f8796 100%);
}

.service-media-d {
    background-image: linear-gradient(135deg, #e3ebf4 0%, #8099aa 100%);
}

/* CONTACTO */
.contacto {
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.98) 0%, rgba(8, 42, 86, 0.96) 100%);
    color: white;
    text-align: center;
}

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

.contacto-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 24px;
}

.contacto-item h3 {
    margin-bottom: 10px;
    color: var(--brand-gold);
}

.contacto-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
}

/* REDES */
.redes {
    background: var(--surface);
}

.redes-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.redes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.red-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 24px;
    padding: 30px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.red-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.red-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-blue-soft);
    color: var(--brand-dark);
    border: 1px solid rgba(10, 26, 47, 0.12);
}

.social-logo-large {
    width: 28px;
    height: 28px;
}

.red-card h3 {
    margin-bottom: 8px;
}

.red-card p {
    margin-bottom: 0;
    color: var(--brand-blue);
    font-weight: 700;
}

/* FOOTER */
.footer {
    background: var(--brand-dark);
    color: #ffffff;
    position: relative;
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-cyan) 50%, var(--brand-blue) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(150px, 0.8fr)) minmax(250px, 1.1fr);
    gap: 50px;
    padding-top: 62px;
    padding-bottom: 54px;
}

.footer-brand > a {
    display: flex;
    justify-content: center;
}

.footer-logo {
    width: 100%;
    max-width: 220px;
    max-height: 82px;
    object-fit: contain;
    object-position: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
}

.footer-brand > p {
    max-width: 330px;
    margin: 22px 0 26px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.footer-socials a:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.footer-socials img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-column h3 {
    margin: 6px 0 22px;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.25s var(--ease);
}

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

.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-line > span {
    color: var(--brand-cyan);
}

.footer-contact a span {
    flex: 0 0 auto;
    color: var(--brand-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    section[id] {
        scroll-margin-top: 140px;
    }

    .hero-layout,
    .project-detail-hero,
    .project-detail-metrics,
    .empresa-layout,
    .grid,
    .contacto-grid,
    .redes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .redes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .empresa-contact-highlights {
        grid-template-columns: 1fr;
    }

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

    .inspection-showcase {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 42px;
        height: auto;
    }

    .project-detail-hero,
    .project-detail-metrics,
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .project-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .clientes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .project-grid,
    .certificados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .gallery-sidebar {
        border-left: 0;
        border-top: 3px solid var(--brand-blue);
        border-radius: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-tile-large {
        grid-row: span 1;
    }

    .gallery-tile-large .gallery-tile-image {
        min-height: 320px;
    }

    .hero-copy,
    .section-heading {
        max-width: none;
    }

    .topbar-content {
        align-items: flex-start;
    }

    .topbar-contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 18px;
    }

    .top-contact-item {
        min-width: 620px;
        padding: 16px 18px;
        border-radius: 22px;
        background: #f7fbff;
        border: 1px solid rgba(10, 26, 47, 0.06);
    }

    .project-detail-actions .btn {
        flex: 1 1 220px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 8px 0;
    }

    .header {
        overflow: visible;
    }

    .nav {
        flex-direction: row;
        align-items: center;
        padding: 8px 0;
        min-height: 62px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow: visible;
        position: relative;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-panel {
        position: fixed;
        top: 132px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        background: linear-gradient(180deg, rgba(18, 38, 63, 0.98) 0%, rgba(31, 58, 90, 0.98) 100%);
        border-radius: 22px;
        box-shadow: var(--shadow-soft);
        border: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1105;
        max-height: calc(100vh - 148px);
        overflow-y: auto;
    }

    .nav-panel.is-open {
        display: flex;
    }

    .mobile-only {
        display: list-item;
    }

    .nav nav {
        width: 100%;
        overflow: visible;
        scrollbar-width: auto;
    }

    .nav ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        min-width: 620px;
    }

    .nav a {
        min-height: 48px;
        width: 100%;
        justify-content: flex-start;
        padding: 0 16px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.07);
        white-space: normal;
        font-size: 0.98rem;
    }

    .nav a::after {
        width: 40px;
        left: 16px;
        bottom: 8px;
        transform: scaleX(0);
        transform-origin: left;
    }

    .nav a:hover::after {
        transform: scaleX(1);
    }

    .nav-social-dropdown {
        display: none;
        width: 100%;
    }

    .nav-social-toggle {
        width: 100%;
        min-height: 48px;
        padding: 10px 16px;
        font-size: 0.98rem;
        justify-content: flex-start;
        box-shadow: none;
    }

    .nav-social-menu {
        position: static;
        right: auto;
        top: calc(100% + 8px);
        margin-top: 10px;
        min-width: 100%;
    }

    .topbar-content {
        flex-direction: row;
        width: 100%;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .topbar-brand {
        justify-content: flex-start;
        width: auto;
        flex-shrink: 0;
    }

    .topbar-logo {
        max-height: 44px;
    }

    .topbar-contact-list {
        display: block;
        flex: 1;
        min-width: 620px;
        height: 34px;
        position: relative;
        overflow: hidden;
        padding: 0;
    }

    .top-contact-item {
        min-width: 620px;
        width: 100%;
        position: absolute;
        inset: 0;
        justify-content: flex-start;
        text-align: left;
        align-items: center;
        gap: 8px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    }

    .top-contact-item.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .top-contact-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        flex-shrink: 0;
        box-shadow: 0 6px 14px rgba(20, 184, 212, 0.14);
    }

    .top-contact-item strong {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .top-contact-item span:last-child {
        font-size: 12px;
        line-height: 1.25;
    }

    .hero,
    .overlay {
        min-height: auto;
    }

    .overlay {
        padding: 56px 0;
    }

    .hero-card {
        padding: 24px;
    }

    .empresa-layout,
    .contacto-grid,
    .redes-grid {
        grid-template-columns: 1fr;
    }


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

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

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

    .project-related-grid,
    .clientes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-detail-form-card,
    .project-detail-side,
    .project-detail-gallery {
        gap: 14px;
    }

    .project-detail-main-media,
    .project-detail-large-media {
        min-height: 340px;
    }

    .media-lightbox {
        padding: 18px;
        gap: 12px;
    }

    .media-lightbox-stage {
        width: 100%;
    }

    .media-lightbox-media {
        min-height: 62vh;
    }

    .media-lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .project-detail-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .project-detail-thumbs::-webkit-scrollbar {
        display: none;
    }

    .project-thumb {
        flex: 0 0 84px;
    }

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

    .project-detail-actions .btn,
    .project-form-submit {
        width: 100%;
    }

    .project-detail-form-card {
        padding: 24px;
    }

    main section,
    .contacto {
        padding: 72px 0;
    }
}

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

    .nav-panel {
        top: 120px;
        max-height: calc(100vh - 136px);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .section-heading h2,
    .project-detail-side h2,
    .clientes-heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 46px;
        padding-bottom: 40px;
    }

    .inspection-showcase {
        padding: 26px;
    }

    .inspection-showcase-media,
    .inspection-showcase-media img {
        height: 260px;
    }

    .clientes-grid,
    .certificados-grid,
    .project-related-grid {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-tile-image,
    .gallery-tile-large .gallery-tile-image {
        min-height: 260px;
    }

    .project-detail-breadcrumb {
        font-size: 0.84rem;
    }

    .project-detail-form-card textarea {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .nav-panel {
        top: 108px;
        left: 12px;
        right: 12px;
        padding: 14px;
        border-radius: 18px;
        max-height: calc(100vh - 122px);
    }

    .topbar {
        padding: 6px 0;
    }

    .topbar-logo {
        max-height: 38px;
    }

    .top-contact-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .top-contact-item {
        min-width: auto;
        flex-basis: auto;
        padding: 0;
        gap: 7px;
    }

    .top-contact-item strong,
    .top-contact-item span:last-child {
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .nav a {
        min-height: 46px;
        font-size: 0.92rem;
        padding: 0 14px;
    }

    .nav-social-toggle {
        min-height: 46px;
        padding: 9px 14px;
        font-size: 0.92rem;
    }

    .project-detail-view {
        padding: 40px 0 72px;
    }

    .project-detail-main-media,
    .project-detail-large-media {
        min-height: 280px;
        border-radius: 22px;
    }

    .media-lightbox {
        padding: 12px;
        gap: 8px;
    }

    .media-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }

    .media-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .media-lightbox-media {
        min-height: 54vh;
    }

    .project-detail-form-card,
    .project-detail-section,
    .project-detail-metrics,
    .project-related {
        margin-top: 34px;
        padding-top: 26px;
    }

    .nav-social-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-card,
    .empresa-copy,
    .card,
    .contacto-item,
    .red-card,
    .project-detail-form-card,
    .service-detail-copy,
    .service-detail-scope,
    .service-detail-note {
        padding: 22px;
    }

    .project-card-compact {
        padding: 18px 18px 22px;
    }

    .cliente-item {
        min-height: 76px;
        font-size: 0.95rem;
    }

    .redes-grid,
    .contacto-grid {
        gap: 16px;
    }
}

/* PÁGINA CONTÁCTANOS */
.contact-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(135deg, rgba(238, 245, 251, 0.92), rgba(255, 255, 255, 0.96)),
        url("img/fondos/mantenimiento-electrico.png") center / cover fixed;
}

.contact-page-header {
    padding: 18px 0;
    background: #0b2038;
    border-bottom: 3px solid var(--brand-cyan);
}

.contact-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-page-logo {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 16px;
    background: #ffffff;
}

.contact-page-logo img {
    display: block;
    width: 190px;
    max-height: 64px;
    object-fit: contain;
}

.contact-page-back {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.contact-page-main {
    flex: 1;
    display: grid;
    align-items: center;
    padding: 72px 0;
}

.contact-page-panel {
    padding: clamp(34px, 6vw, 72px);
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(10, 26, 47, 0.14);
}

.contact-page-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.contact-page-heading h1 {
    margin: 8px 0 16px;
    color: var(--brand-slate);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
}

.contact-page-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contact-page-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid rgba(10, 26, 47, 0.1);
    border-radius: 20px;
    background: #f4f8fc;
    color: var(--brand-slate);
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-page-card[href]:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 212, 0.5);
    box-shadow: 0 14px 28px rgba(10, 26, 47, 0.1);
}

.contact-page-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-slate);
    color: #ffffff;
    font-size: 1.15rem;
}

.contact-page-card strong,
.contact-page-card small {
    display: block;
}

.contact-page-card strong {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-page-card small {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

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

.contact-page-actions .btn-secondary {
    border: 2px solid rgba(18, 38, 63, 0.32);
    color: var(--brand-slate);
}

.contact-page-actions .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}
.contact-page-footer {
    padding: 22px 0;
    background: #0b2038;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
}

.contact-page-footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-page-header {
        padding: 12px 0;
    }

    .contact-page-logo img {
        width: 130px;
        max-height: 48px;
    }

    .contact-page-back {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .contact-page-main {
        padding: 34px 0;
    }

    .contact-page-panel {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .contact-page-heading {
        margin-bottom: 28px;
    }

    .contact-page-heading h1 {
        font-size: 2.7rem;
    }

    .contact-page-card {
        padding: 18px;
    }

    .contact-page-actions .btn {
        width: 100%;
    }
}
/* VISTA INTERNA CONTÁCTANOS */
.contact-detail-view {
    min-height: calc(100vh - 170px);
    padding: 76px 0 96px;
    background:
        linear-gradient(135deg, rgba(238, 245, 251, 0.9), rgba(255, 255, 255, 0.94)),
        url("img/fondos/mantenimiento-electrico.png") center / cover fixed;
}

.contact-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    column-gap: 46px;
    row-gap: 30px;
    align-items: start;
    padding: clamp(34px, 5vw, 64px);
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(10, 26, 47, 0.14);
}

.contact-detail-content {
    width: 100%;
    min-width: 0;
}

.contact-detail-panel > .contact-page-heading {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0;
}

.contact-detail-content .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.contact-detail-content .contact-page-card {
    padding: 18px 20px;
}

.contact-detail-actions {
    display: flex;
    margin-top: 30px;
}

.contact-detail-actions .btn-secondary {
    border: 2px solid rgba(18, 38, 63, 0.32);
    color: var(--brand-slate);
}

.contact-detail-actions .btn-secondary:hover {
    background: var(--brand-slate);
    color: #ffffff;
}

.contact-presentation-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(10, 26, 47, 0.1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(10, 26, 47, 0.14);
}

.contact-presentation-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 980px) {
    .contact-detail-panel {
        grid-template-columns: 1fr;
    }

    .contact-presentation-card {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    .contact-detail-view {
        padding: 40px 0 72px;
        background-attachment: scroll;
    }

    .contact-detail-panel {
        gap: 30px;
        padding: 26px 22px;
        border-radius: 22px;
    }

    .contact-detail-content .contact-page-heading h1 {
        font-size: 2.7rem;
    }

    .contact-detail-actions .btn {
        width: 100%;
    }
}
