:root {
    --azul: #102a43;
    --azul-2: #174a70;
    --azul-3: #071b2b;
    --azul-suave: #eaf1f7;

    --naranja: #f47b20;
    --naranja-hover: #ff8d32;
    --naranja-suave: #fff1e7;

    --amarillo: #ffc928;

    --blanco: #ffffff;

    --gris-claro: #f4f7fa;
    --gris: #687586;
    --gris-oscuro: #263746;

    --borde: #e2e9ef;

    --sombra:
        0 12px 35px rgba(16, 42, 67, 0.08);

    --sombra-hover:
        0 18px 45px rgba(16, 42, 67, 0.14);

    --radio: 16px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    color: var(--gris-oscuro);
    background: var(--blanco);
    line-height: 1.6;
}


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


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


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


.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(226, 233, 239, 0.8);
}


.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


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


.logo img {
    width: 300px;
    max-width: 34vw;
    height: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
}


.nav a {
    position: relative;

    color: var(--gris-oscuro);

    font-size: 12px;
    font-weight: 800;

    transition:
        color 0.25s ease;
}


.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--naranja),
            var(--amarillo)
        );

    border-radius: 5px;

    transition:
        width 0.25s ease;
}


.nav a:hover {
    color: var(--naranja);
}


.nav a:hover::after {
    width: 100%;
}


.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    background: var(--naranja);
    color: var(--blanco);

    border-radius: 10px;

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        0 9px 22px rgba(244, 123, 32, 0.22);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.header-button:hover {
    background: var(--naranja-hover);

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(244, 123, 32, 0.3);
}


.theme-toggle {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

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

    border: 1px solid var(--borde);

    background: var(--blanco);
    color: var(--azul);

    border-radius: 12px;

    cursor: pointer;

    font-size: 15px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.theme-toggle:hover {
    background: var(--azul);
    color: var(--blanco);

    border-color: var(--azul);

    transform: translateY(-2px);
}


.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(244, 123, 32, 0.24),
            transparent 25%
        ),

        radial-gradient(
            circle at 70% 80%,
            rgba(255, 201, 40, 0.13),
            transparent 23%
        ),

        linear-gradient(
            135deg,
            var(--azul-3),
            var(--azul)
        );

    color: var(--blanco);
}


.hero::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    right: -170px;
    top: 100px;

    border:
        1px solid rgba(255, 201, 40, 0.15);

    border-radius: 50%;
}


.hero::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: 80px;
    bottom: -120px;

    background:
        rgba(244, 123, 32, 0.1);

    border-radius: 50%;
}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 780px;

    padding-top: 80px;
}


.hero-tag {
    display: inline-flex;

    padding: 8px 12px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    color: var(--amarillo);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.6px;
}


.hero h1 {
    max-width: 760px;

    margin-top: 22px;

    color: var(--blanco);

    font-size: clamp(52px, 6vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;

    font-weight: 900;
}


.hero p {
    max-width: 620px;

    margin-top: 24px;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 16px;

    line-height: 1.8;
}


.hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;
}


.btn {
    display: inline-flex;

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

    min-height: 50px;

    padding: 0 22px;

    border-radius: 11px;

    font-size: 12px;

    font-weight: 900;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}


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


.btn-primary {
    background: var(--naranja);
    color: var(--blanco);

    box-shadow:
        0 10px 25px rgba(244, 123, 32, 0.25);
}


.btn-primary:hover {
    background: var(--naranja-hover);
}


.btn-secondary {
    background:
        rgba(255, 255, 255, 0.07);

    color: var(--blanco);

    border:
        1px solid rgba(255, 255, 255, 0.16);
}


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


.hero-bottom {
    position: absolute;

    left: -5%;
    bottom: -1px;

    width: 110%;
    height: 75px;

    background: var(--blanco);

    border-radius:
        50% 50% 0 0 /
        100% 100% 0 0;
}


section {
    padding: 110px 0;
}


.services {
    background: #f1f6fa;
}


.section-header {
    max-width: 720px;

    margin-bottom: 55px;
}


.section-tag {
    display: inline-block;

    color: var(--naranja);

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1.7px;
}


.section-header h2,
.about-title h2 {
    margin-top: 12px;

    color: var(--azul);

    font-size: clamp(36px, 4vw, 54px);

    line-height: 1.02;

    letter-spacing: -2.5px;

    font-weight: 900;
}


.section-header p {
    max-width: 640px;

    margin-top: 17px;

    color: var(--gris);

    font-size: 14px;

    line-height: 1.8;
}


.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.service-category {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 20px;

    color: var(--azul);

    font-size: 12px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}


.service-category::before {
    content: "";

    width: 35px;
    height: 4px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--naranja),
            var(--amarillo)
        );
}


.category-pintura::before {
    background: #2563eb;
}


.category-revestimientos::before {
    background: #10b981;
}


.category-proteccion::before {
    background: #0891b2;
}


.category-especiales::before {
    background: var(--naranja);
}


.service-card {
    position: relative;

    min-height: 170px;

    padding: 28px;

    overflow: hidden;

    background: var(--blanco);

    border:
        1px solid var(--borde);

    border-radius: var(--radio);

    box-shadow: var(--sombra);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.service-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--naranja),
            var(--amarillo)
        );
}


.service-card::after {
    content: "";

    position: absolute;

    width: 85px;
    height: 85px;

    right: -35px;
    bottom: -35px;

    background:
        rgba(244, 123, 32, 0.06);

    border-radius: 50%;
}


.service-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--sombra-hover);

    border-color:
        rgba(244, 123, 32, 0.2);
}


.category-pintura-card::before {
    background: #2563eb;
}


.category-revestimientos-card::before {
    background: #10b981;
}


.category-proteccion-card::before {
    background: #0891b2;
}


.category-especiales-card::before {
    background: var(--naranja);
}


.service-card-content {
    position: relative;
    z-index: 2;
}


.service-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--naranja);

    font-size: 10px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.service-card h3 {
    color: var(--azul);

    font-size: 19px;

    line-height: 1.15;

    font-weight: 900;

    letter-spacing: -0.5px;
}


.service-card p {
    margin-top: 10px;

    color: #4c5a68;

    font-size: 12px;

    line-height: 1.65;
}


.projects {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--azul-3),
            var(--azul)
        );

    color: var(--blanco);
}


.projects .section-header h2 {
    color: var(--blanco);
}


.projects .section-header p {
    color:
        rgba(255, 255, 255, 0.6);
}


.projects .section-tag {
    color: var(--amarillo);
}


.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -15px 0 28px;
}


.project-filter {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


.project-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--blanco);
}


.project-filter:focus-visible {
    outline: 3px solid var(--amarillo);
    outline-offset: 3px;
}


.project-filter.is-active {
    border-color: var(--naranja);
    background: var(--naranja);
    color: var(--blanco);
}


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


.project-card[hidden] {
    display: none;
}


.project-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--naranja);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.project-card:focus-visible {
    outline: 3px solid var(--amarillo);
    outline-offset: 3px;
}


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

.project-card-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-card-preview-pair {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.project-card-preview-pair[hidden] {
    display: none !important;
}

.project-card-preview-pair img,
.project-card-preview-pair video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
}

.project-card-preview-pair video {
    pointer-events: none;
}


.project-photo-slot {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
}


.project-photo-slot i {
    color: var(--amarillo);
    font-size: 30px;
}


.project-card-caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px 18px;
}


.project-card-caption strong {
    color: var(--blanco);
    font-size: 13px;
    font-weight: 900;
}


.project-card-caption span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}


.about {
    background: var(--gris-claro);
}


.about-grid {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 80px;

    align-items: center;
}


.about-title h2 {
    max-width: 510px;
}


.about-content {
    position: relative;

    padding: 40px;

    background: var(--blanco);

    border:
        1px solid var(--borde);

    border-radius: 18px;

    box-shadow: var(--sombra);
}


.about-content::before {
    content: "";

    position: absolute;

    top: 25px;
    bottom: 25px;
    left: 0;

    width: 4px;

    background:
        linear-gradient(
            var(--naranja),
            var(--amarillo)
        );

    border-radius:
        0 5px 5px 0;
}


.about-content p {
    color: var(--gris);

    font-size: 14px;

    line-height: 1.8;
}


.about-content p + p {
    margin-top: 18px;
}


.contact {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(244, 123, 32, 0.16),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            var(--azul-3),
            var(--azul)
        );
}


.contact::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -230px;
    top: -260px;

    border:
        1px solid rgba(255, 201, 40, 0.16);

    border-radius: 50%;
}


.contact::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    left: -120px;
    bottom: -130px;

    background:
        rgba(244, 123, 32, 0.08);

    border-radius: 50%;
}


.contact-box {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 55px;

    padding: 58px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.contact-content {
    min-width: 0;
}


.contact-content .section-tag {
    color: var(--amarillo);
}


.contact-content h2 {
    max-width: 650px;

    color: var(--blanco);

    font-size: clamp(38px, 4vw, 55px);

    line-height: 1.02;

    letter-spacing: -2px;

    font-weight: 900;
}


.contact-intro {
    max-width: 570px;

    margin-top: 18px;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 14px;

    line-height: 1.75;
}


.contact-methods {
    display: grid;

    gap: 10px;

    margin-top: 30px;
}


.contact-method {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px 16px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 13px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.contact-method:hover {
    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.16);

    transform: translateX(4px);
}


.contact-method-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.08);

    color: var(--blanco);

    font-size: 17px;

    font-weight: 900;
}


.contact-method-text {
    display: flex;

    flex-direction: column;

    gap: 2px;

    min-width: 0;
}


.contact-method-text strong {
    color: var(--blanco);

    font-size: 12px;

    font-weight: 900;
}


.contact-method-text span {
    color:
        rgba(255, 255, 255, 0.54);

    font-size: 12px;

    overflow-wrap: anywhere;
}


.contact-method-arrow {
    margin-left: auto;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 18px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.contact-method:hover .contact-method-arrow {
    color: var(--blanco);

    transform: translateX(3px);
}


.contact-method-whatsapp {
    border-color:
        rgba(37, 211, 102, 0.18);

    background:
        rgba(37, 211, 102, 0.06);
}


.contact-method-whatsapp:hover {
    border-color:
        rgba(37, 211, 102, 0.35);

    background:
        rgba(37, 211, 102, 0.1);
}


.contact-method-whatsapp .contact-method-icon {
    background:
        rgba(37, 211, 102, 0.13);

    color: #25d366;
}


.contact-method-instagram {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.07);
}

.contact-method-instagram:hover {
    border-color: rgba(168, 85, 247, 0.38);
    background: rgba(168, 85, 247, 0.12);
}

.contact-method-instagram .contact-method-icon {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
}


.contact-actions {
    display: flex;

    align-items: stretch;
}


.contact-action-box {
    width: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 34px;

    background: var(--blanco);

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.14);
}


.contact-action-label {
    color: var(--naranja);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.contact-action-box h3 {
    margin-top: 10px;

    color: var(--azul);

    font-size: 26px;

    line-height: 1.15;

    font-weight: 900;

    letter-spacing: -0.7px;
}


.contact-action-box p {
    margin-top: 12px;

    color: var(--gris);

    font-size: 13px;

    line-height: 1.7;
}


.contact-action-box .btn {
    width: 100%;

    margin-top: 25px;
}


.btn-whatsapp {
    background: #25d366;

    color: var(--blanco);

    box-shadow:
        0 10px 25px rgba(37, 211, 102, 0.22);
}


.btn-whatsapp:hover {
    background: #20bd5b;

    color: var(--blanco);

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 211, 102, 0.3);
}


.whatsapp-icon {
    display: inline-flex;

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

    margin-right: 7px;

    font-size: 18px;

    line-height: 1;
}


.footer {
    padding: 30px 0;

    background: #f4f7fa;

    border-top:
        1px solid var(--borde);
}


.footer-inner {
    display: flex;

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

    gap: 20px;
}


.footer-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.footer-instagram {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    text-decoration: none;
}

.footer-brand span {
    display: block;

    margin-top: 4px;

    color: var(--gris);

    font-size: 11px;
}


.footer-copy {
    color: var(--gris);

    font-size: 11px;
}


@media (max-width: 1000px) {

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

    .nav {
        gap: 18px;
    }

    .header-button {
        display: none;
    }

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

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

        gap: 40px;
    }

    .contact-box {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px;
    }

}


@media (max-width: 650px) {

    .project-filters {
        margin-top: -5px;
        gap: 8px;
    }

    .project-filter {
        padding: 9px 12px;
    }

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

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


.project-photo-slot {
        min-height: 180px;
    }

    .logo img {
        width: min(230px, 62vw);
        max-width: none;
    }

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

    .nav {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 47px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .service-category {
        margin-top: 12px;
    }

.contact-box {
        grid-template-columns: 1fr;

        padding: 30px 22px;

        gap: 30px;
    }

    .contact-content h2 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .contact-intro {
        font-size: 13px;
    }

    .contact-action-box {
        padding: 27px 23px;
    }

    .contact-action-box h3 {
        font-size: 24px;
    }

    .contact-method {
        padding: 13px;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
    }

    .contact-actions {
        width: 100%;
    }

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

    .contact-link {
        width: 100%;

        flex-wrap: wrap;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

}


@media (max-width: 390px) {

    .hero h1 {
        font-size: 41px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 24px 22px;
    }

    .contact-content h2 {
        font-size: 34px;
    }

}


html[data-theme="dark"] body {
    background: #07131f;

    color: #dce7ef;
}


html[data-theme="dark"] .header {
    background:
        rgba(7, 19, 31, 0.92);

    border-bottom-color:
        rgba(255, 255, 255, 0.08);
}


html[data-theme="dark"] .logo-text strong {
    color: var(--blanco);
}


html[data-theme="dark"] .nav a {
    color:
        rgba(255, 255, 255, 0.78);
}


html[data-theme="dark"] .theme-toggle {
    background: #102a43;

    color: var(--amarillo);

    border-color:
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.18);
}


html[data-theme="dark"] .theme-toggle:hover {
    background: var(--naranja);

    color: var(--blanco);

    border-color: var(--naranja);
}


html[data-theme="dark"] .hero-bottom {
    background: #07131f;
}


html[data-theme="dark"] .services {
    background: #0b1b2a;
}


html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .about-title h2 {
    color: var(--blanco);
}


html[data-theme="dark"] .section-header p {
    color:
        rgba(255, 255, 255, 0.62);
}


html[data-theme="dark"] .service-card {
    background: #10263a;

    border-color:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);
}


html[data-theme="dark"] .service-card:hover {
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);
}


html[data-theme="dark"] .service-card h3 {
    color: var(--blanco);
}


html[data-theme="dark"] .service-card p {
    color:
        rgba(255, 255, 255, 0.62);
}


html[data-theme="dark"] .about {
    background: #07131f;
}


html[data-theme="dark"] .about-content {
    background: #10263a;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.2);
}


html[data-theme="dark"] .about-content p {
    color:
        rgba(255, 255, 255, 0.64);
}


html[data-theme="dark"] .contact-action-box {
    background: #10263a;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);
}


html[data-theme="dark"] .contact-action-box h3 {
    color: var(--blanco);
}


html[data-theme="dark"] .contact-action-box p {
    color:
        rgba(255, 255, 255, 0.62);
}


html[data-theme="dark"] .footer {
    background: #040c14;

    border-top-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .footer-brand span,
html[data-theme="dark"] .footer-copy {
    color: rgba(255, 255, 255, 0.42);
}







/* Galería de fotos por proyecto */
.project-card--featured {
    grid-column: 1 / -1;
}

.project-card--featured .project-card-caption {
    padding-bottom: 14px;
}

.project-card--featured .project-card-caption strong {
    font-size: 18px;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.project-images a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.08);
}

.project-images img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.project-images a:hover img {
    transform: scale(1.04);
}

@media (max-width: 760px) {
    .project-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 12px 12px;
    }
}

/* Visor de fotos integrado en la página */
.photo-lightbox {
    position: fixed;
    inset: 0;
    width: min(94vw, 1200px);
    height: min(90vh, 900px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 58px 76px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: #071521;
    color: #fff;
}

.photo-lightbox::backdrop {
    background: rgba(2, 8, 14, 0.88);
    backdrop-filter: blur(4px);
}

.lightbox-figure {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 34px);
    object-fit: contain;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(10, 25, 38, 0.82);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    transform: scale(1.06);
    background: var(--naranja, #f58220);
}

.lightbox-close {
    top: 14px;
    right: 14px;
    font-size: 32px;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.lightbox-previous {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

@media (max-width: 600px) {
    .photo-lightbox {
        width: 100vw;
        height: 100dvh;
        padding: 64px 48px 22px;
        border: 0;
        border-radius: 0;
    }

    .lightbox-close,
    .lightbox-arrow {
        width: 42px;
        height: 42px;
    }

    .lightbox-previous {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }
}


/* Carrusel de proyectos dentro de cada categoría */
.project-work-carousel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-rows: minmax(300px, auto) auto;
    align-items: center;
    gap: 0 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.project-work-carousel[hidden],
.project-work-slide[hidden] {
    display: none !important;
}

.project-work-carousel.has-single-project {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
}

.project-work-carousel.has-single-project .project-work-viewport {
    grid-column: 1;
}

.project-work-viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.project-work-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    align-items: center;
    gap: clamp(18px, 4vw, 44px);
}

.project-work-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}


.contact-location:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
}


.contact-map {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
}


.contact-map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}


.contact-map-heading strong {
    color: var(--blanco);
    font-size: 12px;
}


.contact-map-heading a {
    color: var(--blanco);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}


.contact-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.project-work-video {
    display: block;
    width: 100%;
    max-height: 240px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #000;
}

.project-video-carousel {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
}

.project-video-viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.project-video-slide[hidden] {
    display: none !important;
}

.project-video-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
}

.project-video-previous {
    grid-column: 1;
    grid-row: 1;
}

.project-video-next {
    grid-column: 3;
    grid-row: 1;
}

.project-video-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 18px;
    font-size: 12px;
}

.project-video-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-video-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.project-video-dot.is-active {
    background: var(--naranja, #f58220);
    transform: scale(1.2);
}

.project-video-previous[hidden],
.project-video-next[hidden],
.project-video-pagination[hidden] {
    display: none !important;
}

.project-work-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px 12px 0;
}

.project-work-tag {
    color: var(--amarillo, #ffc928);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-work-content h3 {
    margin: 0;
    color: var(--blanco, #fff);
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.15;
}

.project-work-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
}

.project-work-content .project-quality-note {
    padding: 9px 12px;
    border-left: 3px solid var(--amarillo, #ffc928);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 201, 40, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.project-gallery-open {
    margin-top: 6px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--naranja, #f58220);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.project-gallery-open:hover {
    filter: brightness(1.08);
}

.project-work-arrow {
    grid-row: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(10, 25, 38, 0.72);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.project-work-arrow:hover {
    background: var(--naranja, #f58220);
}

.project-work-previous {
    grid-column: 1;
}

.project-work-next {
    grid-column: 3;
}

.project-work-pagination {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.project-work-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-work-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.project-work-dot.is-active {
    background: var(--naranja, #f58220);
    transform: scale(1.2);
}

.project-photo-sources {
    display: none !important;
}

@media (max-width: 760px) {
    .project-work-carousel {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 0 6px;
        padding: 12px;
    }

    .project-work-carousel:has(.project-work-slide:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-work-carousel:has(.project-work-slide:only-child) .project-work-viewport {
        grid-column: 1;
    }

    .project-work-carousel:has(.project-work-slide:only-child) > .project-work-previous,
    .project-work-carousel:has(.project-work-slide:only-child) > .project-work-next {
        display: none;
    }

    .project-work-slide {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-work-cover {
        aspect-ratio: 4 / 3;
    }

    .project-work-content {
        padding: 12px 4px 4px;
    }

    .project-work-arrow {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}
