/* ===== 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;
}

/* helpers */
.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; /* <-- más espacio a la derecha */
    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;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.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);

    /* animación suave */
    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);  /* sigue en la gama del rojo */
    border-color: #ff4444;
    transform: scale(1.06);               /* efecto de crecimiento */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


/* Botón MENÚ vertical: barra pegada a la orilla derecha */
.menu-vertical {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: 52px;
    border: none;
    background: #000;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* MENÚ arriba, puntos debajo */
    gap: 1.2rem;

    /* OJO: aquí ya NO usamos writing-mode,
       solo lo aplicamos al texto, no al contenedor */
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;

    padding-top: 3.5rem;          /* baja un poco el grupo MENÚ + puntos */

    /* Aparición retardada (se controla por JS con .menu-visible) */
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Navegación de puntos lateral (los que se ponen rojos) */
/* Contenedor de los puntos, ahora DENTRO de la barra negra */
.side-dots-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;      /* separación respecto al texto MENÚ */
}

/* Cada punto clickeable */
.side-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: transparent;
    opacity: 0.7;
    cursor: pointer;
    transition: background 0.25s ease,
                transform 0.25s ease,
                opacity 0.25s ease;
}

/* Punto activo (sección actual) */
.side-dot.is-active {
    background: #e53935;
    transform: scale(1.25);
    opacity: 1;
}

/* En pantallas pequeñas un poco más pequeños */
@media (max-width: 768px) {
    .menu-vertical {
        width: 42px;
        font-size: 0.7rem;
    }

    .side-dots-nav {
        gap: 0.5rem;
    }

    .side-dot {
        width: 7px;
        height: 7px;
    }
}


/* Curva gris que “muerde” un poquito el contenido (decoración) */
.menu-vertical::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 35%;
    width: 14px;
    height: 110px;
    background: linear-gradient(to left, #000, #555);
    border-radius: 999px 0 0 999px;
    opacity: 0.7;
}

/* Cuando JS agrega esta clase, la barra aparece */
.menu-vertical.menu-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Texto MENÚ en vertical */
.menu-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.35em;
}



/* Cada puntito (vertical, dentro de la franja negra) */
.menu-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: transparent;
    opacity: 0.7;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Efecto al pasar el cursor por la barra (todos los puntos un poco más brillantes) */
.menu-vertical:hover .menu-dot {
    opacity: 1;
}

/* Punto activo (si lo marcas con JS) */
.menu-dot.is-active {
    background: #e53935;
    transform: scale(1.2);
}

/* En pantallas pequeñas hacemos la barra un poco más delgada */
@media (max-width: 768px) {
    .menu-vertical {
        width: 42px;
        font-size: 0.7rem;
        padding-top: 2.5rem;
    }

    

    .menu-dot {
        width: 7px;
        height: 7px;
    }
}
/* Si algún día quieres “activar” una sección, puedes darle esta clase 
.menu-dot.is-active {
    background: #e53935;
    transform: scale(1.2);
}*/

/* En pantallas pequeñas hacemos la barra un poco más delgada */
@media (max-width: 768px) {
    .menu-vertical {
        width: 42px;
        font-size: 0.7rem;
    }

   

    .menu-dot {
        width: 7px;
        height: 7px;
    }
}
/* ===== 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 .3s ease, visibility .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;
    text-decoration: none;
    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;
}

/* ===== HERO CON VIDEO ===== */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* video principal */
.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;
}

/* Marco del hero */
.hero-frame {
    position: absolute;
    top: 47%;
    left: 50%;                 /* antes 55% -> ahora centrado con el texto */
    transform: translate(-50%, -50%);
    padding: 10rem 4.5rem;      /* menos alto, pero más que suficiente */
    min-width: 560px;          /* cuadro más ancho para meter todo el texto */
    max-width: 800px;          /* opcionalmente un poco más de máximo */
    overflow: hidden;
    z-index: 2;
}


/* ===== BORDES ANIMADOS (TODOS IGUALES, LÍNEA DELGADA) ===== */
.hero-frame-border,
.nosotros-frame-border,
.card-frame-border,
.blog-frame-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: transparent;
    /* un poco más gruesa pero menos “brillante” */
    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 DELGADAS Y LARGAS (HERO, NOSOTROS, BLOG, CARDS) ===== */

.hero-arrow,
.nosotros-arrow,
.blog-arrow,
.card-arrow-red {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0;       /* ocultamos el símbolo ➜ */
    width: 60px;        /* largo total del contenedor */
    height: 16px;       /* alto solo para centrar */
}

/* Línea principal (delgada y larga) */
.hero-arrow::before,
.nosotros-arrow::before,
.blog-arrow::before,
.card-arrow-red::before {
    content: "";
    width: 35px;          /* un poquito más larga */
    height: 2px;        /* grosor: delgada */
    background: #e53935;  /* color rojo */
    border-radius: 999px;
}

/* Punta de la flecha (tocando la línea) */
.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); /*la punta del triángulo queda montada sobre el final de la línea entre mas negativo mas se monta sobre la linea*/
}

/* ===== IMÁGENES DE FONDO (NOSOTROS / BLOG) ===== */

.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 { /* por si luego usas video también */
    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 & 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;
}

/* tamaño + hover (escritorio) */
.card-video {
    position: relative;
    width: 360px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
    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; /* funciona para video e img */
    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;
}

.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;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* franja gris inferior */

.footer-bottom {
    background: #d3d3d3;
    color: #333;
    font-size: 0.75rem;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    white-space: nowrap;
}

/* ===== WHATSAPP FLOTANTE + MINI VENTANA ===== */

.whatsapp-wrapper {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;

    /* Oculto al inicio */
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Cuando JS agregue esta clase, aparece el botón + ventanita */
.whatsapp-wrapper.wa-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* Mini ventana tipo chat */
.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;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wa-open-btn:hover {
    filter: brightness(1.05);
}

/* Estado oculto de la ventanita */
.wa-callout.is-hidden {
    opacity: 0;
    transform: translateX(40px) translateY(10px) scale(0.95);
    pointer-events: none;
}

/* Burbuja de WhatsApp: siempre visible, con pulso periódico */

.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; /* sin pulso al inicio */
}

/* Cuando el wrapper se hace visible, el botón entra suave y luego empieza a pulsar */
.whatsapp-wrapper.wa-visible .btn-whatsapp {
    animation:
        waAppear 0.55s ease-out forwards,              /* animación de entrada */
        waPulse 3.2s ease-in-out infinite 0.8s;        /* pulso empieza 0.8s después */
}
@keyframes waAppear {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(12px);
        box-shadow: 0 2px 8px rgba(0, 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);
    }
}

.btn-whatsapp:hover {
    animation-duration: 1.6s; /* más rápido cuando pasa el cursor */
}

.wa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pulso periódico del botón */
@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);
    }
}

/* LOGO INGEMA */
.logo-ingema {
    display: inline-flex;
    align-items: center;
    transform-origin: left center;      /* se expande hacia la derecha */
    transition: transform 0.25s ease,
                filter 0.25s ease;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Animación al pasar el cursor */
.logo-ingema:hover {
    transform: scale(1.06);             /* tamaño del zoom */
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}


/* burbuja de WhatsApp (hover adicional) */

.btn-whatsapp {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
}

.wa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes waSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@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;
    }
}

/* Móviles */
@media (max-width: 768px) {

    .section-full {
        padding-top: 4.5rem;
    }

    #hero.section-full,
    .section-with-video.section-full {
        padding-top: 0;
    }

    .ingema-header {
        padding: 0.4rem 0.8rem;
    }

    .logo-img {
        height: 44px;
    }

    .btn-oficina {
        display: none;
    }

    .menu-vertical {
        padding: 0.4rem 0.35rem;
        font-size: 0.7rem;
    }

    /* Hero en móvil */
    .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;
    }
/* Móviles */
@media (max-width: 768px) {

    .section-full {
        padding-top: 4.5rem;
    }

    #hero.section-full,
    .section-with-video.section-full {
        padding-top: 0;
    }

    .ingema-header {
        padding: 0.4rem 0.8rem;
    }

    .logo-img {
        height: 44px;
    }

    .btn-oficina {
        display: none;
    }

    .menu-vertical {
        padding: 0.4rem 0.35rem;
        font-size: 0.7rem;
    }

    /* Hero en móvil */
    .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 en móvil: subirlo para que no tape el footer */
    .whatsapp-wrapper {
        right: 12px;
        bottom: 135px;   /* ANTES: 18px → ahora más arriba */
        gap: 0.5rem;
    }

    .btn-whatsapp {
        width: 56px;
        height: 56px;
    }

   .wa-callout {
        display: none !important;
    }

    /* Íconos de redes sociales más grandes en móvil */
    .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 en móvil */
    .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 en columna */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        white-space: normal;
    }
}


    .nosotros-text p,
    .blog-text p {
        font-size: 0.95rem;
    }

    /* PROYECTOS / SERVICIOS en móvil */
    .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 en columna */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        white-space: normal;
    }
}

/* Redes sociales en el footer: todos mismo tamaño */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* Cada icono ocupa una cajita del mismo tamaño */
.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imágenes en escala de grises por defecto */
.footer-social a img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.8) contrast(1.1) !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover: se agrandan y recuperan su color original */
.footer-social a:hover img {
    transform: scale(1.15);
    filter: none !important;
}

/* En móviles íconos más grandes */
@media (max-width: 768px) {
    .footer-social a {
        width: 40px;
        height: 40px;
    }

    .footer-social a img {
        width: 90%;
        height: 90%;
    }
}

/* ===== PUNTOS LATERALES (NAV DERECHA CLICABLE) ===== */

.side-dots-nav {
    position: fixed;
    right: 64px;                 /* un poco a la izquierda de la barra negra */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 45;                 /* por encima del contenido pero debajo del overlay */
}

.side-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    opacity: 0.7;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Estado hover */
.side-dot:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Estado activo (JS le agrega .is-active según la sección visible) */
.side-dot.is-active {
    background: #e53935;
    opacity: 1;
    transform: scale(1.3);
}

/* En móviles ocultamos los puntos laterales para no recargar la interfaz */
@media (max-width: 768px) {
    .side-dots-nav {
        display: none;
    }
}
