
/* =========================
   CONFIGURACIÓN GENERAL
========================= */

/* ANCHO COMPLETO DE LA PÁGINA */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ENCABEZADO A PANTALLA COMPLETA */

.header {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
}

:root {
    --verde: #8CC63E;
    --negro: #111111;
    --blanco: #ffffff;
    --gris: #f4f4f4;
}

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

section {
    scroll-margin-top: 30px;
}


/* =========================
   HEADER Y VIDEO
========================= */

.header {
    position: relative;
    min-height: 720px;
    height: 100vh;
    max-height: 900px;
    background: var(--negro);
    color: var(--blanco);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.30)
    );
    z-index: 1;
}


/* =========================
   MENÚ DE NAVEGACIÓN
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 12, 18, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 198, 62, 0.20);
    z-index: 1000;
}

.logo img {
    width: 180px;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    color: var(--blanco);
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


/* =========================
   TEXTO PRINCIPAL
========================= */

.header-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 10%;
    max-width: 1000px;
}

.eyebrow,
.section-label {
    color: var(--verde);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.header-content h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.1;
    max-width: 850px;
    margin-bottom: 25px;
}

/* Verde sin glow por defecto */
.header-content h1 span,
.intro-section h2 span,
.section-heading h2 span,
.video-content h2 span,
.contact-info h2 span {
    color: var(--verde);
    text-shadow: none;
}

/* Glow solamente en el título principal */
.header-content h1 span {
    text-shadow:
        0 0 5px rgba(140, 198, 62, 0.35),
        0 0 12px rgba(140, 198, 62, 0.45),
        0 0 22px rgba(140, 198, 62, 0.25);
}

.header-description {
    max-width: 550px;
    font-size: 18px;
    color: #eeeeee;
    margin-bottom: 35px;
}


/* =========================
   BOTONES CON GLOW
========================= */

.btn-primary {
    display: inline-block;
    background: var(--verde);
    color: var(--negro);
    border: 1px solid var(--verde);
    border-radius: 30px;
    padding: 15px 28px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 0 8px rgba(140, 198, 62, 0.45),
        0 0 18px rgba(140, 198, 62, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #111111;
    color: var(--verde);
    box-shadow:
        0 0 10px rgba(140, 198, 62, 0.7),
        0 0 25px rgba(140, 198, 62, 0.45);
    transform: translateY(-2px);
}


/* =========================
   PRESENTACIÓN
========================= */

.intro-section {
    padding: 110px 10%;
    text-align: center;
    max-width: 1100px;
    margin: auto;
}

.intro-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.intro-section > p:last-child {
    max-width: 750px;
    margin: auto;
    color: #666666;
    font-size: 17px;
}


/* =========================
   VIDEO DEL CUERPO
========================= */

.video-section {
    position: relative;
    min-height: 520px;
    background: var(--negro);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.video-content {
    position: relative;
    z-index: 1;
    padding: 70px 20px;
}

.video-content h2 {
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.2;
    margin-bottom: 30px;
}


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

.about-section {
    padding: 110px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.about-content p {
    font-size: 17px;
    color: #555555;
    margin-bottom: 20px;
}


/* =========================
   SERVICIOS
========================= */

.services-section {
    background: var(--gris);
    padding: 110px 8%;
}

.services-section > .section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.services-section .section-heading > p:last-child,
.portfolio-section .section-heading > p:last-child {
    color: #666666;
    margin-top: 20px;
}

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

.service-card {
    background: var(--blanco);
    padding: 38px 30px;
    min-height: 245px;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--verde);
    transform: translateY(-5px);
}

.service-number {
    color: var(--verde);
    font-size: 14px;
    font-weight: bold;
}

.service-card h3 {
    font-size: 21px;
    margin: 20px 0 12px;
}

.service-card p {
    font-size: 14px;
    color: #666666;
}


/* =========================
   PORTAFOLIO
========================= */

.portfolio-section {
    padding: 110px 8%;
}

.portfolio-section > .section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 55px;
}

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

.portfolio-card {
    position: relative;
    min-height: 360px;
    padding: 30px;
    background: var(--negro);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    background: #252525;
    transform: translateY(-6px);
}

.portfolio-number {
    font-size: 50px;
    font-weight: bold;
    color: var(--verde);
    opacity: 0.8;
}

.portfolio-card-content p {
    color: var(--verde);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portfolio-card-content h3 {
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 25px;
}

.portfolio-link {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.portfolio-details {
    margin-top: 60px;
}

.portfolio-detail {
    padding: 45px;
    margin-bottom: 20px;
    background: var(--gris);
    border-left: 4px solid var(--verde);
}

.portfolio-detail h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.portfolio-detail p:last-child {
    color: #666666;
}


/* =========================
   CONTACTO
========================= */

.contact-section {
    background: var(--negro);
    color: var(--blanco);
    padding: 110px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.contact-info > p:last-child {
    color: #cccccc;
    max-width: 450px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #222222;
    border: 1px solid #444444;
    color: var(--blanco);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--verde);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
}

.form-notice {
    color: #aaaaaa;
    font-size: 12px;
    margin-top: 10px;
}


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

.footer {
    background: #080808;
    color: var(--blanco);
    padding: 55px 8% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-bottom: 40px;
}

.footer-logo img {
    width: 150px;
    max-height: 75px;
    object-fit: contain;
}

.footer-content p {
    color: #aaaaaa;
    font-size: 14px;
}

.back-to-top {
    color: var(--verde);
    font-size: 12px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #888888;
    font-size: 12px;
}


/* =========================
   RESPONSIVE - TABLETS
========================= */

@media (max-width: 900px) {

    .nav-menu {
        gap: 18px;
    }

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

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

    .portfolio-card {
        min-height: 280px;
    }

    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}


/* =========================
   RESPONSIVE - MÓVILES
========================= */

@media (max-width: 650px) {

    .header {
        min-height: 650px;
        height: 90vh;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 75px;
        padding: 8px 6%;
        background: rgba(5, 12, 18, 0.58);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(140, 198, 62, 0.35);
        z-index: 1000;
    }

    .logo img {
        width: 105px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111111;
        padding: 25px;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-menu.active {
        display: flex;
    }

    .header-content {
        padding: 50px 7%;
    }

    .header-content h1 {
        font-size: 43px;
    }

    .header-description {
        font-size: 16px;
    }

    .intro-section,
    .about-section,
    .services-section,
    .portfolio-section,
    .contact-section {
        padding: 75px 7%;
    }

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

    .video-section {
        min-height: 420px;
    }

    .portfolio-detail {
        padding: 30px 22px;
    }

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

    .footer-bottom {
        line-height: 1.8;
    }

}
/* AJUSTE DEFINITIVO DEL LOGO DEL HEADER */

.header .navbar .logo {
    display: flex !important;
    align-items: center;
    width: auto !important;
}

.header .navbar .logo img {
    width: 90px !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

/* MENU INFERIOR SOLO PARA MOVILES */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* BARRA MOVIL FLOTANTE CON GLOW */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 420px;
        height: 68px;
        box-sizing: border-box;
        padding: 0 8px;
        border-radius: 24px;
        border: 1px solid #8CC63E;
        background: #111111;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        box-shadow:
            0 0 8px rgba(140, 198, 62, 0.7),
            0 0 18px rgba(140, 198, 62, 0.4),
            0 8px 28px rgba(0, 0, 0, 0.45);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        text-decoration: none;
        font-size: 11px;
        gap: 4px;
        flex: 1;
    }

    .mobile-bottom-nav span {
        font-size: 21px;
        line-height: 1;
    }

    .mobile-bottom-nav small {
        font-size: 10px;
    }

    /* SERVICIOS: BOTON CIRCULAR DESTACADO */
    .mobile-bottom-nav a[href="#servicios"] {
        flex: 1.2;
        transform: translateY(-12px);
    }

    .mobile-bottom-nav a[href="#servicios"] span {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #8CC63E;
        color: #111111;
        font-size: 25px;
        box-shadow:
            0 0 8px #8CC63E,
            0 0 18px rgba(140, 198, 62, 0.8),
            0 0 30px rgba(140, 198, 62, 0.4);
    }

    .mobile-bottom-nav a[href="#servicios"] small {
        color: #8CC63E;
        font-weight: bold;
    }

    .mobile-bottom-nav a:active,
    .mobile-bottom-nav a:focus {
        color: #8CC63E;
    }

    /* OCULTAR MENU SUPERIOR EN MOVILES */
    .menu-toggle,
    .nav-menu {
        display: none !important;
    }

    body {
        padding-bottom: 100px;
    }
}


/* ============== MELA 360 ============== */

.mela-360-section {
    background: #111111;
    color: #FFFFFF;
    padding: 90px 20px;
    text-align: center;
    overflow: hidden;
}

.mela-360-heading span {
    color: #8CC63E;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
}

.mela-360-heading h2 {
    font-size: clamp(36px, 6vw, 58px);
    margin: 18px 0 10px;
    color: #FFFFFF;
}

.mela-360-heading h2 strong {
    color: #8CC63E;
}

.mela-360-heading p {
    color: #CCCCCC;
    font-size: 16px;
    margin-bottom: 45px;
}

.mela-360-orbit {
    position: relative;
    width: min(100%, 760px);
    height: 500px;
    margin: 0 auto;
}

.mela-360-orbit::before,
.mela-360-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(140, 198, 62, 0.35);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mela-360-orbit::before {
    width: 330px;
    height: 330px;
    animation: melaNetworkFlow 7s ease-in-out infinite;
transform-origin: center center;
}

.mela-360-orbit::after {
    width: 440px;
    height: 440px;
    border-style: dashed;
    animation: melaOrbitRotate 35s linear infinite;
}

.mela-360-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: #8CC63E;
    color: #111111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(140, 198, 62, 0.45);
    z-index: 2;
}

.mela-360-center span {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 3px;
}

.mela-360-center strong {
    font-size: 42px;
    line-height: 1;
}

.mela-360-center small {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
}

.mela-360-service {
    position: absolute;
    padding: 13px 18px;
    border: 1px solid #8CC63E;
    border-radius: 30px;
    background: #191919;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(140, 198, 62, 0.12);
    animation: melaServiceFloat 4s ease-in-out infinite;
    transition: .3s ease;
    z-index: 3;
}

.mela-360-service:hover {
    background: #8CC63E;
    color: #111111;
    box-shadow: 0 0 25px rgba(140, 198, 62, 0.65);
    transform: scale(1.08);
}

.service-1 { top: 4%; left: 50%; transform: translateX(-50%); }
.service-2 { top: 20%; right: 3%; animation-delay: .5s; }
.service-3 { top: 47%; right: 0; animation-delay: 1s; }
.service-4 { bottom: 17%; right: 5%; animation-delay: 1.5s; }
.service-5 { bottom: 3%; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.service-6 { bottom: 17%; left: 4%; animation-delay: 2.5s; }
.service-7 { top: 47%; left: 0; animation-delay: 3s; }
.service-8 { top: 20%; left: 3%; animation-delay: 3.5s; }

@keyframes melaServiceFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

@keyframes melaOrbitRotate {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes melaOrbitGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(140,198,62,.08); }
    50% { box-shadow: 0 0 28px rgba(140,198,62,.22); }
}

/* VERSION MOVIL */

@media (max-width: 600px) {
    .mela-360-section {
        padding: 65px 12px;
    }

    .mela-360-heading p {
        font-size: 14px;
    }

    .mela-360-orbit {
        height: 430px;
    }

    .mela-360-orbit::before {
        width: 210px;
        height: 210px;
    }

    .mela-360-orbit::after {
        width: 285px;
        height: 285px;
    }

    .mela-360-center {
        width: 115px;
        height: 115px;
    }

    .mela-360-center span {
        font-size: 16px;
    }

    .mela-360-center strong {
        font-size: 32px;
    }

    .mela-360-center small {
        font-size: 7px;
    }

    .mela-360-service {
        font-size: 10px;
        padding: 9px 11px;
    }

    .service-1 { top: 2%; }
    .service-2 { top: 19%; right: 0; }
    .service-3 { top: 42%; right: 0; }
    .service-4 { bottom: 18%; right: 0; }
    .service-5 { bottom: 2%; }
    .service-6 { bottom: 18%; left: 0; }
    .service-7 { top: 42%; left: 0; }
    .service-8 { top: 19%; left: 0; }
}
/* ===== MELA 360 - SERVICIOS ANIMADOS ===== */

.mela-360-section {
    background: #FFFFFF;
    color: #111111;
    padding: 90px 20px;
    text-align: center;
    overflow: hidden;
}

.mela-360-section .section-label {
    color: #8CC63E;
    letter-spacing: 5px;
    font-weight: bold;
}

.mela-360-section h2 {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 15px;
}

.mela-360-section h2 span {
    color: #8CC63E;
}

.mela-360-section > p {
    color: #555555;
    max-width: 650px;
    margin: 0 auto 45px;
    line-height: 1.7;
}

.mela-360-orbit {
    position: relative;
    width: min(100%, 760px);
    height: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mela-360-orbit::before,
.mela-360-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(140, 198, 62, 0.45);
    border-radius: 50%;
    animation: melaOrbit 18s linear infinite;
}

.mela-360-orbit::before {
    width: 72%;
    height: 72%;
}

.mela-360-orbit::after {
    width: 92%;
    height: 92%;
    border-style: dashed;
    animation-direction: reverse;
}

.mela-360-center {
    position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
    z-index: 2;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #111111;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(140, 198, 62, 0.35);
    border: 3px solid #8CC63E;
}

.mela-360-center strong {
    color: #8CC63E;
    font-size: 38px;
}

.mela-360-center span {
    font-size: 13px;
    letter-spacing: 2px;
}

.mela-360-service {
    position: absolute;
    z-index: 3;
    background: #111111;
    color: #FFFFFF;
    border: 1px solid #8CC63E;
    border-radius: 30px;
    padding: 11px 17px;
    font-size: 13px;
    white-space: nowrap;
    animation: melaFloat 3s ease-in-out infinite;
}

.mela-360-service:nth-child(even) {
    animation-delay: 1s;
}

.service-1 { top: 2%; left: 50%; transform: translateX(-50%); }
.service-2 { top: 19%; right: 0; }
.service-3 { top: 42%; right: 0; }
.service-4 { bottom: 18%; right: 3%; }
.service-5 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.service-6 { bottom: 18%; left: 3%; }
.service-7 { top: 42%; left: 0; }
.service-8 { top: 19%; left: 0; }

@keyframes melaOrbit {
    to { transform: rotate(360deg); }
}

@keyframes melaFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -8px; }
}

@media (max-width: 600px) {
    .mela-360-section {
        padding: 65px 12px;
    }

    .mela-360-orbit {
        height: 390px;
    }

    .mela-360-center {
        width: 110px;
        height: 110px;
    }

    .mela-360-center strong {
        font-size: 30px;
    }

    .mela-360-service {
        font-size: 10px;
        padding: 8px 10px;
    }

    .service-2, .service-4 { right: 0; }
    .service-6, .service-8 { left: 0; }
}
/* ===== AJUSTE MELA 360 PARA MOVILES ===== */

@media (max-width: 600px) {

    .mela-360-section {
        padding: 55px 10px 110px;
    }

    .mela-360-orbit {
        width: 100%;
        max-width: 360px;
        height: 450px;
        margin: 20px auto 0;
    }

    .mela-360-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 105px;
        height: 105px;
    }

    .mela-360-service {
        font-size: 10px;
        padding: 8px 9px;
        max-width: 48%;
        white-space: normal;
        text-align: center;
    }

    .service-1 {
        top: 2%;
        left: 50%;
        transform: translateX(-50%);
    }

    .service-2 { top: 20%; right: 0; }
    .service-3 { top: 40%; right: 0; }
    .service-4 { bottom: 20%; right: 0; }

    .service-5 {
        bottom: 2%;
        left: 50%;
        transform: translateX(-50%);
    }

    .service-6 { bottom: 20%; left: 0; }
    .service-7 { top: 40%; left: 0; }
    .service-8 { top: 20%; left: 0; }
}

/* ===== MELA 360 - RED DIGITAL ANIMADA ===== */

.mela-360-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #050805 !important;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(140, 198, 62, 0.13), transparent 42%),
        radial-gradient(circle at 15% 25%, rgba(140, 198, 62, 0.08), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(140, 198, 62, 0.08), transparent 30%) !important;
}

/* Líneas digitales en movimiento */
.mela-360-section::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 75px,
            rgba(140, 198, 62, 0.18) 76px,
            transparent 78px,
            transparent 145px
        ),
        repeating-linear-gradient(
            35deg,
            transparent 0px,
            transparent 110px,
            rgba(140, 198, 62, 0.12) 111px,
            transparent 113px,
            transparent 190px
        );
    animation: melaNetworkMove 22s linear infinite;
    opacity: 0.65;
}

@keyframes melaNetworkMove {
    from { transform: translate3d(-3%, -2%, 0); }
    to { transform: translate3d(3%, 2%, 0); }
}

/* Centro MELA 360 */
.mela-360-center {
    background: #080d08 !important;
    border: 2px solid #8CC63E !important;
    box-shadow:
        0 0 12px rgba(140, 198, 62, 0.9),
        0 0 30px rgba(140, 198, 62, 0.55),
        inset 0 0 20px rgba(140, 198, 62, 0.18) !important;
    animation: melaCenterGlow 3s ease-in-out infinite alternate;
}

@keyframes melaCenterGlow {
    from {
        box-shadow: 0 0 10px rgba(140,198,62,.5),
                    0 0 22px rgba(140,198,62,.25);
    }
    to {
        box-shadow: 0 0 18px rgba(140,198,62,1),
                    0 0 42px rgba(140,198,62,.65);
    }
}

/* Botones de servicios */
.mela-360-service {
    background: #080d08 !important;
    color: #FFFFFF !important;
    border: 1px solid #8CC63E !important;
    box-shadow:
        0 0 8px rgba(140,198,62,.45),
        inset 0 0 8px rgba(140,198,62,.08) !important;
    transition: all .3s ease;
}

.mela-360-service:hover {
    background: #8CC63E !important;
    color: #080d08 !important;
    box-shadow: 0 0 20px rgba(140,198,62,.9) !important;
}
/* CENTRAR RED DIGITAL EN MOVILES */
@media (max-width: 600px) {
    .mela-360-section::before {
        inset: -15% -45%;
        background-position: center center;
        animation: melaNetworkMobile 18s linear infinite;
    }

    @keyframes melaNetworkMobile {
        from {
            transform: translate3d(0, -2%, 0);
        }
        to {
            transform: translate3d(0, 2%, 0);
        }
    }
}
/* RED TECNOLÓGICA CON NODOS CONECTADOS */
.mela-360-orbit::before,
.mela-360-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: none;
    border-radius: 0;
    transform: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.mela-360-orbit::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 260'%3E%3Cg fill='none' stroke='%238CC63E' stroke-width='1.2' opacity='.55'%3E%3Cpath d='M25 35 L95 65 L155 25 L220 70 L320 35 M25 35 L55 145 L125 115 L220 70 L285 155 L320 35 M55 145 L35 225 L125 205 L190 245 L285 155 L335 225 M125 115 L125 205 M220 70 L190 145 L285 155 M190 145 L125 115 M190 145 L190 245'/%3E%3C/g%3E%3Cg fill='%238CC63E'%3E%3Ccircle cx='25' cy='35' r='3'/%3E%3Ccircle cx='95' cy='65' r='3'/%3E%3Ccircle cx='155' cy='25' r='3'/%3E%3Ccircle cx='220' cy='70' r='3'/%3E%3Ccircle cx='320' cy='35' r='3'/%3E%3Ccircle cx='55' cy='145' r='3'/%3E%3Ccircle cx='125' cy='115' r='3'/%3E%3Ccircle cx='190' cy='145' r='3'/%3E%3Ccircle cx='285' cy='155' r='3'/%3E%3Ccircle cx='35' cy='225' r='3'/%3E%3Ccircle cx='125' cy='205' r='3'/%3E%3Ccircle cx='190' cy='245' r='3'/%3E%3Ccircle cx='335' cy='225' r='3'/%3E%3C/g%3E%3C/svg%3E");
    animation:
    melaNetworkGlow 5s ease-in-out infinite alternate,
    melaNetworkRotate 35s linear infinite;
transform-origin: center center;
}

.mela-360-orbit::after {
    background: radial-gradient(circle, rgba(140,198,62,.16), transparent 65%);
    opacity: .5;
}
@keyframes melaNetworkFlow {
    0% {
        transform: scale(0.92);
        opacity: 0.45;
        filter: drop-shadow(0 0 2px #8CC63E);
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
        filter: drop-shadow(0 0 8px #8CC63E);
    }

    100% {
        transform: scale(0.92);
        opacity: 0.45;
        filter: drop-shadow(0 0 2px #8CC63E);
    }
}

/* =========================
   WHATSAPP FLOTANTE MELA
========================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #8CC63E;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;
    z-index: 10000;
    border: 1px solid #8CC63E;
    box-shadow:
        0 0 10px rgba(140, 198, 62, 0.7),
        0 0 25px rgba(140, 198, 62, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 15px rgba(140, 198, 62, 0.9),
        0 0 32px rgba(140, 198, 62, 0.6);
}

/* POSICIÓN EN MÓVILES */
@media (max-width: 768px) {
    .whatsapp-float {
        right: 20px;
        bottom: calc(100px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }
}
.whatsapp-float i {
    color: #FFFFFF;
    font-size: 34px;
}
/* AJUSTE DEL ENCABEZADO SOLO EN MOVILES */

@media (max-width: 768px) {
    .header-content {
        justify-content: flex-start;
        padding-top: 125px;
        padding-bottom: 100px;
    }
    @media (max-width: 768px) {
        .navbar .logo img {
            width: 105px !important;
            max-width: 105px !important;
            height: auto !important;
        }
    }
    
/* ===== LOGO Y NAVEGACIÓN FIJOS ===== */

/* Conservar siempre el logo blanco */
.navbar .logo img.logo-blanco {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enlaces del menú siempre blancos */
.navbar .nav-menu a {
    color: #FFFFFF !important;
}

/* ===== SELECTOR DE IDIOMA ES | EN ===== */

.navbar .language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border-radius: 25px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(140, 198, 62, 0.65);
    box-shadow: 0 0 12px rgba(140, 198, 62, 0.15);
    flex-shrink: 0;
    z-index: 1001;
}

.navbar .language-switch a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 7px;
    border-radius: 20px;
}

.navbar .language-switch a.active {
    background: #8CC63E;
    color: #111111 !important;
}

.navbar .language-switch span {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
}


/* ===== POSICIÓN EN PC ===== */

@media (min-width: 769px) {
    .navbar {
        position: fixed;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
    }

    .navbar .logo {
        margin-right: auto;
        flex-shrink: 0;
    }

    .navbar .nav-menu {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
        gap: 25px;
        margin: 0;
    }

    .navbar .language-switch {
        position: static;
        transform: none;
        margin: 0;
        flex-shrink: 0;
    }
}


/* ===== AJUSTE DEFINITIVO DEL MENÚ DE ESCRITORIO ===== */

@media screen and (min-width: 769px) {
    nav.navbar {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    nav.navbar > a.logo {
        margin-right: auto !important;
        flex-shrink: 0 !important;
    }

    nav.navbar > ul.nav-menu {
        position: static !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        gap: 25px !important;
        width: auto !important;
    }

    nav.navbar > .language-switch {
        position: static !important;
        transform: none !important;
        margin: 0 0 0 25px !important;
        flex-shrink: 0 !important;
    }
}
