/* ===== BASE ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.body-dark {
    margin: 0;
    background-color: #111;
    color: #eee;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.text-white {
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* Secciones genéricas */
.section-full {
    min-height: 100vh;
    padding: 6rem 0 4rem;
}

/* Secciones con video/imagen de fondo */
.section-with-video.section-full,
#hero.section-full {
    padding: 0;
}

/* ===== HEADER ===== */

.ingema-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.5rem 4.5rem 0.5rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-ingema {
    display: inline-flex;
    align-items: center;
    transform-origin: left center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-ingema:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Botón Oficina Virtual */
.btn-oficina {
    border: 1px solid #cf1111;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(0, 0, 0, 0.5);
    transform-origin: center;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease;
}

.btn-oficina:hover {
    background: rgba(207, 17, 17, 0.18);
    border-color: #ff4444;
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* ===== MENÚ LATERAL ===== */

.menu-vertical {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58px;
    border: none;
    background: rgba(15, 15, 15, 0.96);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 45;
    overflow: visible;
}

.menu-vertical.menu-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}



/* recorte lateral tipo cinta */
.menu-vertical::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 92px;
    background: rgba(15, 15, 15, 0.96);
    clip-path: ellipse(100% 50% at 100% 50%);
}

.menu-label {
    position: relative;
    z-index: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

/* puntos dentro del menú */
.menu-dots-nav {
    position: absolute;
    left: -18px;
    top: 58%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    z-index: 3;
}

.menu-dot,
.side-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: transparent;
    opacity: 0.9;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.menu-dot:hover,
.side-dot:hover {
    opacity: 1;
    transform: scale(1.15);
}

.menu-dot.is-active,
.side-dot.is-active {
    background: #e53935;
    border-color: #fff;
    opacity: 1;
    transform: scale(1.25);
}

/* ocultamos el nav externo viejo si existe */
.side-dots-nav {
    display: none !important;
}

/* ===== MENÚ OVERLAY ===== */

.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    color: #fff;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-show {
    opacity: 1;
    visibility: visible;
}

.overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.overlay-content li {
    margin: 0.5rem 0;
}

.overlay-content a {
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.overlay-content a:hover {
    text-decoration: underline;
}

.overlay-footer {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== BLOG GRID Y CARRUSEL ===== */
.blog-grid-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.blog-grid-header h1,
.blog-carousel-header h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin: 0;
}

.blog-grid-header p {
    max-width: 700px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.75rem;
    margin: 3rem auto 0;
    max-width: 1180px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.blog-card-link {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
}

.blog-card-image {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 1.6rem;
}

.blog-category {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb74d;
}

.blog-card-content h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.blog-card-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.blog-carousel-section {
    margin-top: 4.5rem;
}

.blog-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 24px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    align-items: center;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: auto;
    height: 420px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
    background: #ffb74d;
    transform: scale(1.2);
}

@media (max-width: 860px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .carousel-button {
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .blog-grid-header p {
        padding: 0 1rem;
    }
}

/* ===== HERO CON VIDEO ===== */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-frame {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10rem 4.5rem;
    min-width: 560px;
    max-width: 800px;
    overflow: hidden;
    z-index: 2;
}

/* ===== BORDES ANIMADOS ===== */

.hero-frame-border,
.nosotros-frame-border,
.card-frame-border,
.blog-frame-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 0.3;
    stroke-dasharray: 200;
    stroke-dashoffset: 400;
    animation: drawFrame 4s linear infinite;
}

@keyframes drawFrame {
    from { stroke-dashoffset: 400; }
    to { stroke-dashoffset: 0; }
}

/* ===== TEXTO HERO ===== */

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 420px;
}

.hero-line1,
.hero-line2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
}

.hero-line2 {
    margin-bottom: 1.5rem;
}

.hero-line3 {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

.hero-arrow-link {
    display: inline-block;
    margin-top: 1rem;
}

/* ===== FLECHAS ===== */

.hero-arrow,
.nosotros-arrow,
.blog-arrow,
.card-arrow-red {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    width: 60px;
    height: 16px;
}

.hero-arrow::before,
.nosotros-arrow::before,
.blog-arrow::before,
.card-arrow-red::before {
    content: "";
    width: 35px;
    height: 2px;
    background: #e53935;
    border-radius: 999px;
}

.hero-arrow::after,
.nosotros-arrow::after,
.blog-arrow::after,
.card-arrow-red::after {
    content: "";
    width: 15px;
    height: 15px;
    border-top: 2px solid #e53935;
    border-right: 2px solid #e53935;
    transform: translateX(-17px) rotate(45deg);
}

/* ===== IMÁGENES DE FONDO ===== */

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.04);
    animation: bgSlowZoom 20s ease-in-out infinite alternate;
}

.section-bg-nosotros {
    background-image: url("../imagenes/Casa-Llave-en-Mano.jpg");
}

.section-bg-blog {
    background-image: url("../imagenes/Casa-Moderna-Costa-Rica.jpg");
}

@keyframes bgSlowZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

/* ===== NOSOTROS ===== */

.nosotros-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.section-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.nosotros-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.nosotros-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    padding: 2.2rem 2.8rem 3rem;
    overflow: hidden;
    z-index: 2;
}

.nosotros-text {
    position: relative;
    z-index: 3;
}

.nosotros-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.nosotros-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.nosotros-highlight {
    background: rgba(0, 153, 255, 0.6);
    padding: 0 0.25rem;
}

/* ===== PROYECTOS Y SERVICIOS ===== */

.proyectos-servicios-section {
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.proyectos-servicios-section.section-full {
    min-height: auto;
}

.cards-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 2rem;
}

.card-video {
    position: relative;
    width: 360px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    color: #fff;
    border-radius: 4px;
    transform: scale(1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-video:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.card-frame {
    position: absolute;
    inset: 10%;
    z-index: 2;
    overflow: hidden;
}

.card-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.card-inner h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

/* ===== BLOG ===== */

.blog-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.blog-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    padding: 2.2rem 2.8rem 3rem;
    overflow: hidden;
    z-index: 2;
}

.blog-text {
    position: relative;
    z-index: 3;
}

/* Social icons: grayscale default, color on hover (applies to main networks) */
a[aria-label*="Facebook"] img,
a[aria-label*="Instagram"] img,
a[aria-label*="YouTube"] img,
a[aria-label*="Twitter"] img,
a[aria-label*="LinkedIn"] img {
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

a[aria-label*="Facebook"]:hover img,
a[aria-label*="Instagram"]:hover img,
a[aria-label*="YouTube"]:hover img,
a[aria-label*="Twitter"]:hover img,
a[aria-label*="LinkedIn"]:hover img,
a[aria-label*="Facebook"]:focus img,
a[aria-label*="Instagram"]:focus img,
a[aria-label*="YouTube"]:focus img,
a[aria-label*="Twitter"]:focus img,
a[aria-label*="LinkedIn"]:focus img {
    filter: none;
}

/* Blog arrow: slightly smaller, tighter arrowhead for visual balance */
.blog-arrow {
    width: 40px;
    height: 14px;
}

.blog-arrow::before {
    width: 22px;
    height: 2px;
}

.blog-arrow::after {
    width: 10px;
    height: 10px;
    transform: translateX(-12px) rotate(45deg);
}

.blog-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.blog-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
}

.blog-arrow-link {
    display: inline-block;
    margin-top: 1.5rem;
}

/* ===== FOOTER ===== */

.ingema-footer {
    background: #333;
    color: #eee;
}

.footer-top {
    padding: 2rem 0 1rem;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.footer-logo {
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    margin: 0 0.5rem;
    color: #ddd;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background: #d3d3d3;
    color: #333;
    font-size: 0.75rem;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.footer-left,
.footer-right {
    white-space: nowrap;
}

.footer-right {
    margin-left: 35rem;
}

/* ===== WHATSAPP ===== */

.whatsapp-wrapper {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-wrapper.wa-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wa-callout {
    width: 260px;
    max-width: calc(100vw - 120px);
    background: #ffffff;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 0.75rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-callout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.wa-callout-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #075e54;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wa-callout-title-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.wa-callout-close {
    border: none;
    background: transparent;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wa-callout-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.wa-open-btn {
    margin-top: 0.25rem;
    align-self: flex-end;
    border: none;
    background: #25D366;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wa-open-btn:hover {
    filter: brightness(1.05);
}

.wa-callout.is-hidden {
    opacity: 0;
    transform: translateX(40px) translateY(10px) scale(0.95);
    pointer-events: none;
}

.btn-whatsapp {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    animation: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-wrapper.wa-visible .btn-whatsapp {
    animation:
        waAppear 0.55s ease-out forwards,
        waPulse 3.2s ease-in-out infinite 0.8s;
}

.btn-whatsapp:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
    animation-duration: 1.6s;
}

.wa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes waAppear {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(12px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }
}

@keyframes waPulse {
    0%, 60% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }
    75% {
        transform: scale(1.12);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }
}

/* ===== REDES SOCIALES ===== */

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover img {
    transform: scale(1.15);
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== BLOG ARTICLE PAGES ===== */
.blog-article-section {
    padding-top: 0;
    background-color: #0a0a0a;
}


.blog-article-hero {
    position: relative;
    min-height: 68vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.blog-article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transform: scale(1.05);
}

.blog-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.blog-article-hero-card {
    position: relative;
    width: min(100%, 960px);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.blog-article-hero-card-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blog-article-hero-card-border svg {
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 0.4;
    stroke-dasharray: 200;
    stroke-dashoffset: 400;
    animation: drawFrame 4s linear infinite;
}

.blog-article-hero-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    color: #fff;
}

.blog-article-hero-card-content h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin: 0;
}

.blog-article-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ff3f3f;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.blog-article-hero-link .blog-arrow {
    font-size: 1.15rem;
}

.blog-article-content {
    position: relative;
    z-index: 10;
    padding: 4rem 0;
}

.blog-article-content .nosotros-frame {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin-bottom: 2rem;
    padding: 2rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.blog-article-content .nosotros-frame-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 0.4;
    stroke-dasharray: 200;
    stroke-dashoffset: 400;
    animation: drawFrame 4s linear infinite;
    pointer-events: none;
}

.blog-article-content .nosotros-frame svg {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-article-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(207, 17, 17, 0.5);
    padding-bottom: 2rem;
}

.blog-article-header .blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #cf1111, #8b0a0a);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(207, 17, 17, 0.3);
}

.blog-article-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 1rem 0 0.5rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-article-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    line-height: 1.6;
}

.blog-article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.blog-article-body p {
    margin-bottom: 1.5rem;
}

.blog-article-body h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.2rem;
    color: #fff;
    border-left: 4px solid #cf1111;
    padding-left: 1rem;
}

.blog-article-body h3 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
    color: rgba(207, 17, 17, 1);
    font-weight: 600;
}

.blog-article-body ul {
    margin: 1.2rem 0 1.5rem;
    padding-left: 2rem;
}

.blog-article-body li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.blog-article-body strong {
    color: #cf1111;
    font-weight: 600;
}

.blog-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(207, 17, 17, 0.3);
}

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, rgba(207, 17, 17, 0.2), rgba(207, 17, 17, 0.1));
    color: #cf1111;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(207, 17, 17, 0.5);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-back:hover {
    background: linear-gradient(135deg, #cf1111, #8b0a0a);
    color: #fff;
    border-color: #cf1111;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(207, 17, 17, 0.4);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .logo-img {
        height: 52px;
    }

    .hero-frame {
        top: 50%;
        left: 52%;
        padding: 7rem 3rem;
        min-width: 0;
        max-width: 480px;
    }

    .hero-text {
        top: 50%;
        left: 45%;
        max-width: 360px;
    }

    .hero-line1,
    .hero-line2 {
        font-size: 2rem;
    }

    .hero-line3 {
        font-size: 0.95rem;
    }

    .cards-row {
        padding: 3rem 1.5rem;
    }

    .card-video {
        width: 320px;
        max-width: 48vw;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 768px) {
    .section-full {
        padding-top: 4.5rem;
    }

    #hero.section-full,
    .section-with-video.section-full {
        padding-top: 0;
    }

    .ingema-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
        padding: 0;
        background: transparent;
        pointer-events: none;
    }

    .header-inner {
        display: block;
        position: static;
    }

    .header-right {
        position: static;
        display: block;
    }

    .logo-ingema {
        display: none;
    }

    .logo-img {
        height: 44px;
    }

    .btn-oficina {
        display: inline-flex;
        position: fixed;
        top: 8px;
        left: 12px;
        z-index: 62;
        pointer-events: auto;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 16px;
        border: 1.5px solid #cf1111;
        border-radius: 18px;
        background: rgba(20, 20, 20, 0.72);
        color: #fff;
        font-size: 0.82rem;
        text-transform: none;
        letter-spacing: 0.02em;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .menu-vertical {
        top: 0;
        right: 0;
        bottom: 0;
        width: 56px;
        z-index: 61;
        pointer-events: auto;
        background: rgba(20, 20, 20, 0.96);
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 63%,
            30% 57%,
            0 51%
        );
    }

    .menu-vertical::before {
        left: 14px;
        width: 1px;
        background: rgba(255, 255, 255, 0.9);
    }

    .menu-vertical::after {
        display: none;
    }

    .menu-label {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
        transform: none;
    }

    .menu-dots-nav {
        left: -16px;
        top: 62%;
        gap: 10px;
    }

    .menu-dot,
    .side-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        border: 1px solid #fff;
        background: transparent;
        opacity: 1;
    }

    .menu-dot.is-active,
    .side-dot.is-active {
        background: #ffffff;
        border-color: #ffffff;
        transform: scale(1.15);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
    }

    .hero-frame {
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        min-width: 0;
        max-width: 360px;
        padding: 2.2rem 1.6rem;
    }

    .hero-text {
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80%;
    }

    .hero-line1,
    .hero-line2 {
        font-size: 1.6rem;
    }

    .hero-line3 {
        font-size: 0.9rem;
    }

    .whatsapp-wrapper {
        right: 12px;
        bottom: 135px;
        gap: 0.5rem;
    }

    .btn-whatsapp {
        width: 56px;
        height: 56px;
    }

    .wa-callout {
        display: none !important;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }

    .footer-social a img {
        width: 90%;
        height: 90%;
    }

    .nosotros-frame,
    .blog-frame {
        width: 88%;
        padding: 1.8rem 1.7rem 2.2rem;
    }

    .nosotros-text h2,
    .blog-text h2 {
        font-size: 1.7rem;
    }

    .nosotros-text p,
    .blog-text p {
        font-size: 0.95rem;
    }

    .proyectos-servicios-section.section-full {
        min-height: auto;
        padding: 3rem 0;
    }

    .cards-row {
        padding: 0 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        width: 100%;
    }

    .card-video {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        aspect-ratio: auto;
        height: auto;
    }

    .card-video-bg {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
    }

    .card-overlay,
    .card-frame {
        inset: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        white-space: normal;
    }
}

/* ===== TRIGGER DEL MODAL ===== */

.hero-modal-trigger {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-modal-trigger:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-modal-trigger span {
    display: block;
}

/* ===== MODAL ===== */

.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.custom-modal-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;
    background: #111111;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    animation: modalFadeIn 0.3s ease;
}

.custom-modal-box h2 {
    margin: 0 0 18px 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    color: #b7a27a;
    letter-spacing: 1px;
}

.custom-modal-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
    color: #e8e8e8;
}

.custom-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-modal-close:hover {
    transform: scale(1.08);
    opacity: 0.8;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .custom-modal-box {
        padding: 26px 18px;
        border-radius: 14px;
    }

    .custom-modal-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}
/* ===== AJUSTE FINAL MENÚ MÓVIL INGEMA ===== */
@media (max-width: 768px) {

    .ingema-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 90 !important;
        padding: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .header-inner,
    .header-right {
        display: block !important;
        position: static !important;
    }

    .logo-ingema {
        display: none !important;
    }

    /* BOTÓN OFICINA VIRTUAL */
    .btn-oficina {
        display: inline-flex !important;
        position: fixed !important;
        top: 8px !important;
        left: 14px !important;
        z-index: 95 !important;
        pointer-events: auto !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        padding: 0 14px !important;
        border: 1.5px solid #cf1111 !important;
        border-radius: 999px !important;
        background: rgba(15, 15, 15, 0.78) !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.04em !important;
        text-transform: none !important;
        line-height: 1 !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        box-shadow: none !important;
    }

    .btn-oficina:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* CINTA DEL MENÚ */
    .menu-vertical {
        -webkit-appearance: none !important;
        appearance: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 46px !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: rgba(12, 12, 12, 0.96) !important;
        color: #fff !important;
        cursor: pointer !important;
        z-index: 94 !important;

        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        overflow: visible !important;

        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 62%,
            28% 56%,
            0 50%
        ) !important;
    }

    /* línea blanca interna */
    .menu-vertical::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 12px !important;
        width: 1px !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }

    /* quitamos el óvalo que estaba dañando la forma */
    .menu-vertical::after {
        display: none !important;
        content: none !important;
    }

    /* TEXTO MENÚ */
    .menu-label {
        position: absolute !important;
        top: 18px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: #ffffff !important;
        line-height: 1 !important;
        z-index: 2 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    /* PUNTOS VERTICALES */
    .menu-dots-nav {
        position: absolute !important;
        top: 86px !important;
        left: -18px !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 3 !important;
    }

    .menu-dot,
    .side-dot,
    .menu-dot.side-dot {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: block !important;
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        border: 1px solid #ffffff !important;
        background: transparent !important;
        opacity: 1 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .menu-dot.is-active,
    .side-dot.is-active,
    .menu-dot.side-dot.is-active {
        background: #ffffff !important;
        border-color: #ffffff !important;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14) !important;
    }

    /* Evita que el hero se mueva raro por el header */
    .section-full {
        padding-top: 0 !important;
    }

    #hero.section-full,
    .section-with-video.section-full {
        padding-top: 0 !important;
    }

    /* Ajuste del texto central en móvil */
    .nosotros-frame,
    .blog-frame {
        width: 88% !important;
        padding: 1.8rem 1.5rem 2.1rem !important;
    }

    .nosotros-text h2,
    .blog-text h2 {
        font-size: 1.7rem !important;
    }

    .nosotros-text p,
    .blog-text p {
        font-size: 0.95rem !important;
    }
}
/* ===== CORRECCIÓN FINAL MENÚ MÓVIL INGEMA ===== */

.menu-side-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58px;
    z-index: 94;
    pointer-events: none;
}

.menu-side-wrap .menu-vertical {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 58px !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(12, 12, 12, 0.96) !important;
    color: #fff !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 100%,
        0 294%,
        35% 28%,
        0 22%
    ) !important;
}




.menu-side-wrap .menu-vertical::after {
    display: none !important;
    content: none !important;
}

.menu-side-wrap .menu-label {
    position: absolute !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

.menu-side-wrap .menu-dots-nav {
    position: absolute !important;
    top: 88px !important;
    left: -16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 95 !important;
    pointer-events: auto !important;
}

.menu-side-wrap .menu-dot,
.menu-side-wrap .side-dot,
.menu-side-wrap .menu-dot.side-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid #ffffff !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
}

.menu-side-wrap .menu-dot.is-active,
.menu-side-wrap .side-dot.is-active,
.menu-side-wrap .menu-dot.side-dot.is-active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14) !important;
}

/* ===== MÓVIL ===== */
@media (max-width: 768px) {

    .ingema-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 90 !important;
        padding: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .header-inner,
    .header-right {
        display: block !important;
        position: static !important;
    }

    .logo-ingema {
        display: none !important;
    }

    .btn-oficina {
        display: inline-flex !important;
        position: fixed !important;
        top: 8px !important;
        left: 14px !important;
        z-index: 96 !important;
        pointer-events: auto !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        padding: 0 14px !important;
        border: 1.5px solid #cf1111 !important;
        border-radius: 999px !important;
        background: rgba(15, 15, 15, 0.78) !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.04em !important;
        text-transform: none !important;
        line-height: 1 !important;
        box-shadow: none !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .btn-oficina:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .menu-side-wrap {
        width: 48px !important;
        z-index: 95 !important;
    }

    .menu-side-wrap .menu-vertical {
        width: 48px !important;
    }

  

    .menu-side-wrap .menu-label {
        font-size: 0.95rem !important;
        top: 16px !important;
    }

    .menu-side-wrap .menu-dots-nav {
        top: 88px !important;
        left: -14px !important;
        gap: 9px !important;
    }

    .menu-side-wrap .menu-dot,
    .menu-side-wrap .side-dot,
    .menu-side-wrap .menu-dot.side-dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
    }

    .section-full {
        padding-top: 0 !important;
    }

    #hero.section-full,
    .section-with-video.section-full {
        padding-top: 0 !important;
    }
}
.menu-dots-nav,
.menu-side-wrap .menu-dots-nav {
    left: 50% !important;
    transform: translateX(-50%) !important;
     top: 250px !important; /* sube o baja aquí */
}
/* ===== PROYECTOS PAGE ===== */

body.modal-open {
    overflow: hidden;
}

.projects-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 6vw 5rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), #111 92%),
        url("../imagenes/proyectos/co-09/casa-vacacional-costa-rica-co-09-01.jpg") center / cover no-repeat;
}

.projects-hero__inner {
    width: min(100%, 1120px);
}

.projects-kicker,
.project-card__code,
.project-modal__code,
.projects-count {
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.projects-hero h1 {
    max-width: 980px;
    margin: 0.6rem 0 1rem;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 6.5rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.projects-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.55;
}

.projects-section {
    padding: 4rem 6vw 6rem;
    background: #111;
}

.projects-toolbar {
    width: min(100%, 1320px);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.projects-filter {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.projects-filter:hover,
.projects-filter.is-active {
    border-color: #cf1111;
    background: rgba(207, 17, 17, 0.25);
    color: #fff;
}

.projects-grid {
    width: min(100%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    display: block;
    min-height: 430px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #1b1b1b;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.project-card__image {
    position: absolute;
    inset: 0;
    display: block;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.project-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
    padding: 1.35rem;
}

.project-card__title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.05;
    font-weight: 700;
}

.project-card__description {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.45;
}

.project-card:hover .project-card__image img,
.project-card:focus-visible .project-card__image img {
    transform: scale(1.09);
    filter: saturate(1.08);
}

.project-card:focus-visible,
.projects-filter:focus-visible,
.project-modal button:focus-visible {
    outline: 2px solid #ff3d3d;
    outline-offset: 3px;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-modal.is-open {
    display: flex;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.project-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    max-height: calc(100vh - 4rem);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #111;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.project-modal__close,
.project-modal__nav {
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.project-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.project-modal__media {
    position: relative;
    min-height: 0;
    background: #050505;
}

.project-modal__media img {
    width: 100%;
    height: min(68vh, 720px);
    display: block;
    object-fit: contain;
}

.project-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 64px;
    transform: translateY(-50%);
    font-size: 3rem;
    line-height: 1;
}

.project-modal__nav--prev {
    left: 0.8rem;
}

.project-modal__nav--next {
    right: 0.8rem;
}

.project-modal__info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
}

.project-modal__info h2 {
    margin: 0.2rem 0 0.35rem;
    color: #fff;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    line-height: 1.1;
}

.project-modal__info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.project-modal__counter {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.project-thumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0 1.4rem 1.2rem;
}

.project-thumb {
    flex: 0 0 86px;
    width: 86px;
    height: 62px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #222;
    cursor: pointer;
    opacity: 0.58;
}

.project-thumb.is-active {
    border-color: #cf1111;
    opacity: 1;
}

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

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

    .projects-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .projects-hero {
        min-height: 58vh;
        padding: 7rem 1.25rem 3rem;
    }

    .projects-section {
        padding: 3rem 1rem 4rem;
    }

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

    .project-card {
        min-height: 360px;
    }

    .project-modal {
        padding: 0.75rem;
    }

    .project-modal__panel {
        max-height: calc(100vh - 1.5rem);
    }

    .project-modal__media img {
        height: 52vh;
    }

    .project-modal__info {
        flex-direction: column;
    }

    .project-modal__nav {
        width: 42px;
        height: 56px;
    }
}

/* INGEMA footer mobile overflow fix */
@media (max-width: 680px) {
    .footer-right {
        margin-left: 0;
    }
}

/* ===== SERVICES PAGE ===== */

.services-hero {
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 6vw 5rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.48), #111 92%),
        url("../imagenes/Presupuestos.jpg") center / cover no-repeat;
}

.services-hero__inner {
    width: min(100%, 1120px);
}

.services-kicker {
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.services-hero h1 {
    max-width: 980px;
    margin: 0.6rem 0 1rem;
    color: #fff;
    font-size: clamp(2.6rem, 5.5vw, 6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.services-hero p {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.55;
}

.services-section {
    padding: 4rem 6vw 6rem;
    background: #111;
}

.services-grid {
    width: min(100%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    min-height: 270px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    color: #fff;
}

.service-card span {
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.service-card h2 {
    margin: 1.4rem 0 0.8rem;
    font-size: clamp(1.35rem, 1.7vw, 1.9rem);
    line-height: 1.08;
}

.service-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
}

.page-actions {
    width: min(100%, 1320px);
    margin: 2.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.btn-back,
.btn-contact-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-back {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-contact-service {
    border: 1px solid #cf1111;
    background: rgba(207, 17, 17, 0.22);
    color: #fff;
}

.btn-back:hover,
.btn-contact-service:hover {
    transform: translateY(-2px);
    border-color: #ff3d3d;
}

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

@media (max-width: 680px) {
    .services-hero {
        min-height: 58vh;
        padding: 7rem 1.25rem 3rem;
    }

    .services-section {
        padding: 3rem 1rem 4rem;
    }

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

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


/* ===== PROJECT MODAL LAYOUT FIX ===== */

.project-modal__panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-modal__media {
    flex: 0 1 auto;
    min-height: 220px;
}

.project-modal__media img {
    height: auto;
    max-height: min(58vh, 620px);
    object-fit: contain;
}

.project-modal__info,
.project-thumbs {
    flex: 0 0 auto;
    background: #111;
}

@media (max-width: 680px) {
    .project-modal__media img {
        max-height: 46vh;
    }
}

/* ===== CONTACT PAGE ===== */

.contact-hero {
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 6vw 5rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.48), #111 92%),
        url("../imagenes/Casa-Moderna-Costa-Rica.jpg") center / cover no-repeat;
}

.contact-hero__inner {
    width: min(100%, 1120px);
}

.contact-kicker {
    margin: 0;
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-hero h1 {
    max-width: 920px;
    margin: 0.6rem 0 1rem;
    color: #fff;
    font-size: clamp(2.6rem, 5.6vw, 6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.contact-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.55;
}

.contact-section {
    padding: 4rem 6vw 6rem;
    background: #111;
}

.contact-layout {
    width: min(100%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-form,
.contact-office-card,
.contact-socials,
.contact-channel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2.4rem);
}

.contact-form h2,
.contact-office-card h2,
.contact-socials h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.2vw, 2.5rem);
    line-height: 1.05;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    padding: 0.9rem 1rem;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-submit {
    justify-self: start;
    border: 1px solid #cf1111;
    border-radius: 999px;
    background: rgba(207, 17, 17, 0.24);
    color: #fff;
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-info-panel {
    display: grid;
    gap: 1rem;
}

.contact-office-card,
.contact-socials {
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.contact-detail-list {
    display: grid;
    gap: 1rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-detail-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
}

.contact-detail-list a {
    color: inherit;
}

.contact-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(116, 198, 230, 0.16);
    color: #74c6e6;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

.contact-channel {
    min-height: 138px;
    display: grid;
    align-content: center;
    gap: 0.4rem;
    padding: 1.2rem;
    color: #fff;
}

.contact-channel img,
.contact-channel-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.contact-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(116, 198, 230, 0.16);
    color: #74c6e6;
    font-weight: 800;
}

.contact-channel span {
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-channel small {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.35;
}

.contact-socials div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.contact-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.contact-socials img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

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

@media (max-width: 680px) {
    .contact-hero {
        min-height: 58vh;
        padding: 7rem 1.25rem 3rem;
    }

    .contact-section {
        padding: 3rem 1rem 4rem;
    }

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

/* ===== VIRTUAL OFFICE PAGE ===== */

.virtual-office-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 7rem 1.25rem 4rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), #111 88%),
        url("../imagenes/Casa-Llave-en-Mano.jpg") center / cover no-repeat;
}

.virtual-office-card {
    width: min(100%, 760px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(17, 17, 17, 0.84);
    color: #fff;
    text-align: center;
}

.virtual-office-card h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.virtual-office-card p:not(.contact-kicker) {
    margin: 0 auto 1.5rem;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

/* ===== MOBILE POLISH 2026-07-03 ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    body.body-dark {
        width: 100%;
        overflow-x: hidden;
    }

    .container,
    .projects-hero__inner,
    .services-hero__inner,
    .contact-hero__inner,
    .projects-toolbar,
    .projects-grid,
    .services-grid,
    .contact-layout,
    .page-actions {
        width: 100%;
        max-width: 100%;
    }

    .projects-hero,
    .services-hero,
    .contact-hero,
    .projects-section,
    .services-section,
    .contact-section {
        padding-left: 18px;
        padding-right: 74px;
    }

    .projects-hero,
    .services-hero,
    .contact-hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 42px;
    }

    .projects-hero h1,
    .services-hero h1,
    .contact-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.2rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .projects-hero p,
    .services-hero p,
    .contact-hero p {
        font-size: 1.05rem;
        line-height: 1.45;
    }

    .projects-section,
    .services-section,
    .contact-section {
        padding-top: 34px;
        padding-bottom: 56px;
    }

    .projects-toolbar {
        gap: 14px;
        margin-bottom: 22px;
    }

    .projects-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .projects-filter {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.58rem 0.82rem;
        font-size: 0.82rem;
    }

    .project-card {
        min-height: auto;
        aspect-ratio: 4 / 5;
    }

    .project-card__content {
        padding: 1rem;
    }

    .project-card__title {
        font-size: 1.35rem;
    }

    .project-card__description {
        font-size: 0.9rem;
    }

    .project-modal {
        padding: 10px 64px 10px 10px;
    }

    .project-modal__panel {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }

    .project-modal__media {
        min-height: 0;
    }

    .project-modal__media img {
        width: 100%;
        height: auto;
        max-height: 45dvh;
    }

    .project-modal__info {
        padding: 1rem;
        gap: 0.65rem;
    }

    .project-thumbs {
        padding: 0 1rem 1rem;
    }

    .project-thumb {
        flex-basis: 70px;
        width: 70px;
        height: 52px;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.15rem;
    }

    .service-card h2 {
        margin-top: 1rem;
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .service-card p {
        font-size: 0.98rem;
    }

    .contact-layout,
    .contact-info-panel,
    .contact-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form,
    .contact-office-card,
    .contact-socials,
    .contact-channel {
        padding: 1.1rem;
    }

    .contact-form label {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        min-width: 0;
        width: 100%;
        display: block;
        color: #fff;
        background: rgba(0, 0, 0, 0.34);
    }

    .contact-submit,
    .btn-back,
    .btn-contact-service {
        width: 100%;
    }

    .contact-detail-list li {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.7rem;
        align-items: center;
    }

    .contact-icon,
    .contact-channel-icon,
    .contact-channel img {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .contact-icon svg {
        width: 17px;
        height: 17px;
    }

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

    .contact-channel {
        min-height: auto;
    }

    .contact-socials div {
        display: grid;
        grid-template-columns: repeat(4, 42px);
        gap: 10px;
        justify-content: start;
    }

    .contact-socials a,
    .contact-socials img {
        max-width: 42px;
        max-height: 42px;
    }

    .ingema-footer {
        margin-right: 56px;
    }

    .footer-top {
        padding: 1.35rem 0 1rem;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.7rem 0.95rem;
    }

    .footer-nav a {
        margin: 0;
        font-size: 0.78rem;
    }

    .footer-bottom {
        padding: 0.85rem 1rem;
        gap: 0.35rem;
    }

    .footer-right {
        margin-left: 0 !important;
    }

    .whatsapp-wrapper {
        right: 68px;
        bottom: 22px;
    }
}

@media (max-width: 420px) {
    .projects-hero,
    .services-hero,
    .contact-hero,
    .projects-section,
    .services-section,
    .contact-section {
        padding-left: 16px;
        padding-right: 68px;
    }

    .projects-hero h1,
    .services-hero h1,
    .contact-hero h1 {
        font-size: clamp(2rem, 10.4vw, 2.65rem);
    }

    .project-card {
        aspect-ratio: 1 / 1.18;
    }
}

@media (max-width: 768px) {
    .projects-filters {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .projects-filter {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* ===== STORE COMING SOON PAGE ===== */
.store-coming-soon {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 8rem 6vw 5rem;
    display: flex;
    align-items: center;
    background: #101010;
}

.store-coming-soon__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.82) 46%, rgba(17, 17, 17, 0.45) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), #111 96%),
        url("../imagenes/Casa-Llave-en-Mano.jpg") center / cover no-repeat;
    transform: scale(1.04);
    animation: storeImageDrift 12s ease-in-out infinite alternate;
}

.store-coming-soon__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 54%, transparent 100%);
    animation: storeGridMove 18s linear infinite;
}

.store-coming-soon__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.store-kicker {
    margin: 0;
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.store-coming-soon h1 {
    max-width: 930px;
    margin: 0.75rem 0 1rem;
    color: #fff;
    font-size: clamp(3rem, 6vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.store-coming-soon__content > p:not(.store-kicker) {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.25vw, 1.24rem);
    line-height: 1.55;
}

.store-progress {
    width: min(100%, 520px);
    height: 6px;
    margin: 2rem 0 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.store-progress span {
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #cf1111, #ff4a4a, #ffffff);
    animation: storeProgressPulse 2.8s ease-in-out infinite alternate;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.store-preview {
    position: relative;
    min-height: 560px;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.store-preview__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.9rem;
    border: 1px solid rgba(207, 17, 17, 0.55);
    border-radius: 999px;
    color: #fff;
    background: rgba(207, 17, 17, 0.16);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.store-preview__plan {
    position: relative;
    height: 230px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        rgba(0, 0, 0, 0.2);
    background-size: 24px 24px;
    overflow: hidden;
}

.store-plan-line,
.store-plan-dot {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.82);
}

.store-plan-line--one {
    left: 12%;
    top: 24%;
    width: 66%;
    height: 2px;
    transform: rotate(-12deg);
    transform-origin: left center;
    animation: storeDrawLine 2.8s ease-in-out infinite alternate;
}

.store-plan-line--two {
    left: 22%;
    top: 64%;
    width: 54%;
    height: 2px;
    transform: rotate(18deg);
    transform-origin: left center;
    animation: storeDrawLine 3.2s ease-in-out infinite alternate;
}

.store-plan-line--three {
    left: 64%;
    top: 18%;
    width: 2px;
    height: 68%;
    background: rgba(207, 17, 17, 0.86);
    animation: storeScanLine 2.5s ease-in-out infinite alternate;
}

.store-plan-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cf1111;
    box-shadow: 0 0 0 8px rgba(207, 17, 17, 0.18);
}

.store-plan-dot--one {
    left: 22%;
    top: 37%;
}

.store-plan-dot--two {
    right: 18%;
    bottom: 24%;
    animation: storeDotPulse 1.7s ease-in-out infinite alternate;
}

.store-preview__cards {
    display: grid;
    gap: 0.8rem;
}

.store-preview__cards article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.35rem 0.9rem;
    align-items: center;
    min-height: 84px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
}

.store-preview__cards span {
    grid-row: span 2;
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.store-preview__cards strong {
    font-size: 1.05rem;
}

.store-preview__cards small {
    color: rgba(255, 255, 255, 0.62);
}

@keyframes storeImageDrift {
    from { transform: scale(1.04) translateX(0); }
    to { transform: scale(1.08) translateX(-1.2%); }
}

@keyframes storeGridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 54px 54px, 54px 54px; }
}

@keyframes storeProgressPulse {
    from { width: 34%; }
    to { width: 72%; }
}

@keyframes storeDrawLine {
    from { clip-path: inset(0 82% 0 0); opacity: 0.48; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes storeScanLine {
    from { transform: translateX(-22px); opacity: 0.42; }
    to { transform: translateX(22px); opacity: 1; }
}

@keyframes storeDotPulse {
    from { transform: scale(0.85); }
    to { transform: scale(1.08); }
}

@media (max-width: 980px) {
    .store-coming-soon__inner {
        grid-template-columns: 1fr;
    }

    .store-preview {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .store-coming-soon {
        min-height: auto;
        padding: 96px 74px 56px 18px;
    }

    .store-coming-soon__bg {
        background:
            linear-gradient(180deg, rgba(17, 17, 17, 0.76), #111 76%),
            url("../imagenes/Casa-Llave-en-Mano.jpg") center / cover no-repeat;
    }

    .store-coming-soon__grid {
        opacity: 0.16;
        background-size: 34px 34px;
    }

    .store-coming-soon h1 {
        font-size: clamp(2.15rem, 11vw, 3.15rem);
        line-height: 1.02;
    }

    .store-coming-soon__content > p:not(.store-kicker) {
        font-size: 1.02rem;
    }

    .store-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .store-preview {
        padding: 1rem;
    }

    .store-preview__plan {
        height: 180px;
        margin: 1.25rem 0;
    }

    .store-preview__cards article {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 0.9rem;
    }
}

@media (max-width: 420px) {
    .store-coming-soon {
        padding-left: 16px;
        padding-right: 68px;
    }
}

/* ===== SLIM FOOTER ===== */
.ingema-footer {
    background: #2f2f2f;
}

.footer-top {
    padding: 1rem 0 0.8rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 1.35rem;
}

.footer-nav a {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.11em;
    line-height: 1;
}

.footer-bottom {
    min-height: 28px;
    padding: 0.42rem 1.5rem;
    font-size: 0.68rem;
    line-height: 1.2;
    justify-content: center;
    gap: clamp(1rem, 16vw, 18rem);
}

.footer-right {
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    .footer-top {
        padding: 1rem 0 0.75rem;
    }

    .footer-nav {
        gap: 0.6rem 0.9rem;
    }

    .footer-nav a {
        font-size: 0.72rem;
    }

    .footer-bottom {
        min-height: auto;
        padding: 0.65rem 1rem;
        gap: 0.35rem;
        font-size: 0.66rem;
    }
}

/* ===== FINAL QA POLISH: CTA, BLOG CAROUSEL AND SLIM BARS ===== */
@media (min-width: 769px) {
    .header-right {
        margin-right: 4.2rem;
    }

    .btn-oficina {
        min-height: 34px;
        padding: 0 1rem;
        border-width: 1px;
        border-color: rgba(255, 61, 61, 0.72);
        background: rgba(10, 10, 10, 0.58);
        color: #fff;
        font-size: 0.72rem;
        letter-spacing: 0.11em;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .btn-oficina::before {
        content: "";
        width: 6px;
        height: 6px;
        margin-right: 0.55rem;
        border-radius: 50%;
        background: #ff3d3d;
        box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.14);
    }

    .btn-oficina:hover {
        background: rgba(207, 17, 17, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
    }
}

.blog-article-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    margin-top: 1.25rem;
    padding: 0 1.15rem;
    border: 1px solid rgba(255, 61, 61, 0.72);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.44);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.blog-article-hero-link::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3d3d;
    box-shadow: 0 0 0 5px rgba(255, 61, 61, 0.16);
}

.blog-article-hero-link:hover {
    background: rgba(207, 17, 17, 0.22);
    transform: translateY(-1px);
}

.blog-arrow {
    font-size: 1rem;
    transform: translateY(-1px);
}

.blog-carousel-header {
    display: none;
}

.blog-carousel-section {
    margin-top: 3rem;
}

.blog-carousel {
    gap: 0.65rem;
    margin-top: 0;
}

.carousel-track-wrapper {
    min-height: 220px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.carousel-slide img {
    height: 300px;
    max-height: 42vh;
}

.carousel-button {
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.36);
    font-size: 1.25rem;
}

.carousel-dots {
    gap: 0.36rem;
    margin-top: 0.62rem;
}

.carousel-dots button {
    width: 7px;
    height: 7px;
}

.footer-social {
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.footer-social a {
    width: 24px;
    height: 24px;
}

.footer-social a img {
    width: 82%;
    height: 82%;
}

.footer-top {
    padding: 0.58rem 0 0.46rem;
}

.footer-nav {
    gap: 0.45rem 1.25rem;
}

.footer-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.footer-bottom {
    min-height: 24px;
    padding: 0.32rem 1.2rem;
    font-size: 0.62rem;
}

@media (max-width: 768px) {
    .btn-oficina {
        height: 34px !important;
        padding: 0 13px !important;
        border-width: 1px !important;
        background: rgba(10, 10, 10, 0.72) !important;
        font-size: 0.76rem !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
    }

    .btn-oficina::before {
        content: "";
        width: 6px;
        height: 6px;
        margin-right: 0.45rem;
        border-radius: 50%;
        background: #ff3d3d;
        box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.14);
    }

    .blog-article-hero-card {
        width: calc(100% - 68px);
        margin-right: 54px;
        padding: 2rem 1.1rem;
        border-radius: 0.8rem;
    }

    .blog-article-hero-link {
        min-height: 38px;
        padding: 0 0.95rem;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .blog-carousel-section {
        margin-top: 2rem;
    }

    .blog-carousel {
        gap: 0.5rem;
    }

    .carousel-track-wrapper {
        min-height: 180px;
        border-radius: 8px;
    }

    .carousel-slide img {
        width: 100%;
        height: 210px;
        max-height: none;
        object-fit: cover;
    }

    .carousel-button {
        width: 34px;
        height: 34px;
    }

    .footer-social {
        gap: 0.45rem;
        margin-bottom: 0.38rem;
    }

    .footer-social a {
        width: 22px;
        height: 22px;
    }

    .footer-top {
        padding: 0.62rem 0 0.5rem;
    }

    .footer-nav {
        gap: 0.5rem 0.8rem;
    }

    .footer-nav a {
        font-size: 0.66rem;
    }

    .footer-bottom {
        padding: 0.48rem 0.8rem;
        font-size: 0.6rem;
    }
}

/* ===== EXTRA SLIM FOOTER QA PASS ===== */
.footer-top .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.footer-social {
    margin: 0;
}

.footer-bottom {
    justify-content: center;
}

@media (min-width: 769px) {
    .footer-top {
        padding: 0.44rem 0;
    }

    .footer-bottom {
        min-height: 21px;
        padding: 0.24rem 1rem;
    }
}

@media (max-width: 768px) {
    .footer-top .container {
        gap: 0.52rem;
    }

    .footer-top {
        padding: 0.5rem 0 0.42rem;
    }

    .footer-social {
        width: 100%;
    }

    .footer-nav {
        width: 100%;
    }

    .footer-bottom {
        padding: 0.42rem 0.75rem;
    }
}

/* ===== MOBILE FOOTER SINGLE-LINE NAV ===== */
@media (max-width: 768px) {
    .footer-top .container {
        display: grid;
        gap: 0.42rem;
        padding-inline: 0.65rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.8rem;
        overflow-x: auto;
        max-width: 100%;
        padding: 0 0 0.08rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .footer-nav::-webkit-scrollbar {
        display: none;
    }

    .footer-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.62rem;
        letter-spacing: 0.09em;
    }

    .footer-left,
    .footer-right {
        line-height: 1.15;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 1.1rem;
        overflow-x: auto;
        max-width: 100%;
        padding: 0.34rem 0.75rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .footer-bottom::-webkit-scrollbar {
        display: none;
    }

    .footer-left,
    .footer-right {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ===== USER CORRECTION: RESTORE CAROUSEL AND CLEAN OFFICE BUTTONS ===== */
.btn-oficina,
.blog-article-hero-link {
    gap: 0 !important;
}

.btn-oficina::before,
.blog-article-hero-link::before {
    display: none !important;
    content: none !important;
}

@media (min-width: 769px) {
    .btn-oficina {
        min-height: 36px !important;
        padding: 0 1.15rem !important;
        border: 1px solid #cf1111 !important;
        border-radius: 999px !important;
        background: rgba(0, 0, 0, 0.46) !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .btn-oficina:hover {
        background: rgba(207, 17, 17, 0.16) !important;
        transform: translateY(-1px) !important;
        box-shadow: none !important;
    }
}

.blog-article-hero-link {
    min-height: auto !important;
    margin-top: 1.3rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ff3d3d !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.blog-article-hero-link:hover {
    background: transparent !important;
    transform: translateX(4px) !important;
}

.blog-arrow {
    display: inline-block !important;
    margin-left: 0.45rem !important;
    color: #ff3d3d !important;
    font-size: 1.55rem !important;
    line-height: 1 !important;
}

.blog-carousel-header {
    display: none !important;
}

.blog-carousel-section {
    margin-top: 4.5rem !important;
}

.blog-carousel {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 0 !important;
}

.carousel-track-wrapper {
    min-height: 320px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.carousel-slide img {
    width: auto !important;
    height: 420px !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.carousel-button {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    border-radius: 999px !important;
}

.carousel-dots {
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.carousel-dots button {
    width: 10px !important;
    height: 10px !important;
}

@media (max-width: 768px) {
    .btn-oficina {
        height: 36px !important;
        padding: 0 14px !important;
        border: 1.5px solid #cf1111 !important;
        border-radius: 999px !important;
        background: rgba(15, 15, 15, 0.78) !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.04em !important;
        text-transform: none !important;
        box-shadow: none !important;
    }

    .blog-article-hero-link {
        font-size: 0.9rem !important;
    }

    .blog-carousel {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .carousel-button {
        justify-self: center !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.35rem !important;
    }

    .carousel-track-wrapper {
        min-height: 260px !important;
        border-radius: 18px !important;
    }

    .carousel-slide img {
        width: auto !important;
        height: 300px !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
}

/* ===== OFFICE HEADER BUTTON VERTICAL ALIGN FIX ===== */
.btn-oficina {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding-top: 1px !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .btn-oficina {
        height: 38px !important;
        min-height: 38px !important;
        padding: 1px 1.15rem 0 !important;
    }
}

@media (max-width: 768px) {
    .btn-oficina {
        height: 36px !important;
        min-height: 36px !important;
        padding: 1px 14px 0 !important;
    }
}

/* ===== HOVER ANIMATIONS: BLOG AND MAS QUE OBRAS ===== */
.blog-card {
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease, background 0.34s ease;
    will-change: transform;
}

.blog-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(207, 17, 17, 0);
    transition: border-color 0.34s ease, box-shadow 0.34s ease;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-8px) scale(1.018);
    border-color: rgba(207, 17, 17, 0.38);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.blog-card:hover::after,
.blog-card:focus-within::after {
    border-color: rgba(207, 17, 17, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.blog-card-image img {
    transform: scale(1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.blog-card:hover .blog-card-image img,
.blog-card:focus-within .blog-card-image img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

.blog-card-content h2,
.blog-card-content p,
.blog-category {
    transition: transform 0.34s ease, color 0.34s ease;
}

.blog-card:hover .blog-category,
.blog-card:focus-within .blog-category {
    color: #ff3d3d;
}

.blog-card:hover .blog-card-content h2,
.blog-card:focus-within .blog-card-content h2 {
    transform: translateX(4px);
}

.hero .hero-modal-trigger,
.hero-modal-trigger {
    transform: translateY(0) scale(1);
    transform-origin: left center;
    transition: transform 0.34s ease, color 0.34s ease, opacity 0.34s ease, text-shadow 0.34s ease;
}

.hero-modal-trigger:hover,
.hero-modal-trigger:focus-visible {
    transform: translateY(-5px) scale(1.018);
    opacity: 1;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.nosotros-frame:has(.hero-modal-trigger):hover .nosotros-frame-border,
.nosotros-frame:has(.hero-modal-trigger:focus-visible) .nosotros-frame-border {
    stroke: rgba(255, 61, 61, 0.8);
    animation-duration: 2.2s;
}

.nosotros-frame:has(.hero-modal-trigger):hover .nosotros-arrow,
.nosotros-frame:has(.hero-modal-trigger:focus-visible) .nosotros-arrow {
    transform: translateX(8px);
}

.nosotros-arrow {
    transition: transform 0.32s ease;
}

@media (hover: none) {
    .blog-card:hover,
    .blog-card:focus-within,
    .hero-modal-trigger:hover,
    .hero-modal-trigger:focus-visible {
        transform: none;
    }

    .blog-card:hover .blog-card-image img,
    .blog-card:focus-within .blog-card-image img {
        transform: scale(1.03);
    }
}

/* Consistent frame strokes regardless of the SVG aspect ratio. */
svg rect { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.hero-frame-border,.nosotros-frame-border,.card-frame-border,.blog-frame-border,.blog-article-hero-card-border { pointer-events:none; }
/* Render the original color assets in gray, avoiding missing alternate files. */
.footer-social a img,.contact-socials img { filter:grayscale(1) brightness(.9); transition:filter .2s ease; }
.footer-social a:hover img,.footer-social a:focus-visible img,.contact-socials a:hover img,.contact-socials a:focus-visible img { filter:none; }
.blog-arrow,.nosotros-arrow,.card-arrow-red { position:relative; display:inline-block !important; width:48px; height:24px; font-size:0 !important; }
.blog-arrow::before,.nosotros-arrow::before,.card-arrow-red::before { content:"" !important; display:block !important; position:absolute; left:0; top:11px; width:38px; height:2px; background:#e53935; }
.blog-arrow::after,.nosotros-arrow::after,.card-arrow-red::after { content:"" !important; display:block !important; position:absolute; left:25px; top:5px; width:14px; height:14px; border-top:2px solid #e53935; border-right:2px solid #e53935; transform:rotate(45deg); }
.section-arrow-link,.blog-arrow-link { display:inline-flex; align-items:center; min-height:44px; margin-top:1rem; }
.info-page { max-width:960px; margin:auto; padding:2rem 1.5rem 5rem; line-height:1.8; }
.info-page h1 { font-size:clamp(2rem,5vw,3.5rem); }
.info-logo { display:block; max-width:240px; margin:3rem 0; }
.info-links { display:flex; flex-wrap:wrap; gap:1rem; margin-top:2rem; }
.page-actions { padding-block:2rem; position:relative; z-index:2; }
@media(max-width:768px) {
 /* A short ribbon with a true 45-degree end; the lower screen stays clear. */
 .menu-side-wrap { width:40px !important; bottom:auto !important; height:210px !important; }
 .menu-side-wrap .menu-vertical { width:40px !important; height:210px !important; bottom:auto !important; clip-path:polygon(0 0,100% 0,100% 100%,0 calc(100% - 40px)) !important; }
 .menu-side-wrap .menu-vertical::before,.menu-side-wrap .menu-vertical::after { display:none !important; }
 .menu-side-wrap .menu-dots-nav { top:82px !important; gap:7px !important; }
 .menu-side-wrap .menu-label { top:14px !important; font-size:.85rem !important; }
}

.footer-social a img,.contact-socials img { filter:none; }

/* Text, arrow and frame share a single link to each featured section. */
.section-content-link { display:block; color:inherit; cursor:pointer; text-decoration:none; }
.section-content-link .nosotros-arrow,.section-content-link .blog-arrow { transition:transform .32s ease; }
.section-content-link:hover .nosotros-arrow,.section-content-link:hover .blog-arrow,
.section-content-link:focus-visible .nosotros-arrow,.section-content-link:focus-visible .blog-arrow { transform:translateX(8px); }
.section-content-link:hover>svg,.section-content-link:focus-visible>svg { stroke:rgba(255,61,61,.8); animation-duration:2.2s; }
.section-content-link:focus-visible,.hero-modal-trigger:focus-visible { outline:2px solid #ff6b61; outline-offset:5px; }
.contact-submit { transition:transform .25s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease; }
.contact-submit:hover,.contact-submit:focus-visible {
 background:linear-gradient(135deg,#cf1111,#8b0a0a);
 border-color:#ff3d3d;
 transform:translateY(-2px);
 box-shadow:0 6px 20px rgba(207,17,17,.4);
}
.contact-submit:focus-visible { outline:2px solid #ff6b61; outline-offset:4px; }
.contact-submit:active { transform:translateY(0); box-shadow:0 2px 8px rgba(207,17,17,.3); }
.hero-frame-trigger {
 display:block;
 border:0;
 background:transparent;
 color:inherit;
 text-align:left;
 font:inherit;
 cursor:pointer;
 appearance:none;
}
.hero-frame-trigger>.nosotros-text { display:block; }
.hero-frame-trigger .hero-modal-trigger { font-family:Arial; }
.hero-frame-trigger:hover .hero-modal-trigger,.hero-frame-trigger:focus-visible .hero-modal-trigger {
 transform:translateY(-5px) scale(1.018);
 opacity:1;
 text-shadow:0 12px 28px rgba(0,0,0,.42);
}
.hero-frame-trigger:focus-visible { outline:2px solid #ff6b61; outline-offset:5px; }
.hero-frame-trigger:focus-visible .nosotros-frame-border,
.card-video:hover .card-frame-border,.card-video:focus-visible .card-frame-border { stroke:rgba(255,61,61,.8); }
.hero-frame-trigger:focus-visible .nosotros-arrow { transform:translateX(8px); }
@keyframes frameThreeTravel { to { stroke-dashoffset:var(--frame-period); } }
@media(min-width:769px) {
 .nosotros-frame:hover [data-frame-three],.nosotros-frame:focus-visible [data-frame-three],
 .section-content-link:hover [data-frame-three],.section-content-link:focus-visible [data-frame-three],
 .card-video:hover [data-frame-three],.card-video:focus-visible [data-frame-three] { animation-duration:4s !important; }
}
/* One shared desktop row; the existing stacked mobile cards keep their layout. */
@media(min-width:769px) {
 .home-main { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) 58px; }
 .home-main>#hero,.home-main>#nosotros,.home-main>#blog { grid-column:1/-1; }
 .home-main>#proyectos,.home-main>#servicios { min-height:100svh; }
 .home-main>#proyectos { grid-column:1; justify-content:flex-end; padding:4rem clamp(24px,3.5vw,48px) 4rem 32px; }
 .home-main>#servicios { grid-column:2; justify-content:flex-start; padding:4rem 32px 4rem clamp(24px,3.5vw,48px); }
 .home-main>.proyectos-servicios-section>.cards-row { width:360px; max-width:100%; padding:0; flex-wrap:nowrap; }
 .home-main>.proyectos-servicios-section .card-video { width:100%; max-width:none; flex:0 0 auto; aspect-ratio:3/4; }
}
@media(max-width:768px) {
 .home-main>#proyectos { padding-top:clamp(3.5rem,9vw,5rem) !important; padding-bottom:1.5rem; }
 .home-main>#servicios { padding-top:1.5rem !important; padding-bottom:clamp(3.5rem,9vw,5rem); }
 .home-main>.proyectos-servicios-section>.cards-row { padding-inline:clamp(20px,5vw,32px); }
 .whatsapp-wrapper { right:max(14px,env(safe-area-inset-right,0px)); bottom:max(14px,env(safe-area-inset-bottom,0px)); margin:0; }
 .whatsapp-wrapper .btn-whatsapp { width:56px; height:56px; }
 .ingema-footer { width:100%; max-width:100%; margin-right:0; padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
 .ingema-footer .footer-top .container { padding-inline:16px; gap:.55rem; }
 .ingema-footer .footer-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.25rem .5rem; width:100%; max-width:100%; padding:.25rem 0; overflow:visible; }
 .ingema-footer .footer-nav a { display:flex; align-items:center; justify-content:center; min-width:0; min-height:36px; margin:0; white-space:normal; font-size:.68rem; line-height:1.4; letter-spacing:.06em; }
 .ingema-footer .footer-bottom { flex-direction:column !important; flex-wrap:nowrap; gap:.4rem; padding:.75rem 1rem; overflow:visible; text-align:center; }
 .ingema-footer .footer-left,.ingema-footer .footer-right { flex:initial; width:100%; max-width:100%; margin:0 !important; white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
 .menu-side-wrap:has(.menu-dots-nav),.menu-side-wrap:has(.menu-dots-nav) .menu-vertical { height:190px !important; }
}
@media(prefers-reduced-motion:reduce) {
 [data-frame-three] { animation:none !important; }
 .hero-frame-trigger:hover .hero-modal-trigger,.hero-frame-trigger:focus-visible .hero-modal-trigger { transform:none; transition:none; }
 .section-content-link .nosotros-arrow,.section-content-link .blog-arrow { transition:none; }
 .contact-submit { transition:none; }
 .contact-submit:hover,.contact-submit:focus-visible,.contact-submit:active { transform:none; }
}
