
/* =====================================================
   CNTV EMPRESAS - CSS PRINCIPAL
   ===================================================== */

/* FUENTE */

/* =====================================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ===================================================== */

:root {
    --background: #17171f;
    --background-dark: #101017;

    --green: #00d878;
    --green-light: #64ffb3;

    --white: #f2f2ed;
    --muted: #b8c2bc;

    --border: rgba(255, 255, 255, .08);

    --section-gradient: radial-gradient(
        ellipse at 20% 0%,
        #08a057 0,
        #044224 30%,
        #171720 65%
    );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =====================================================
   NAVBAR
   ===================================================== */

.top-nav {
    height: 82px;
    padding: 0 10%;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(23, 23, 31, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand span {
    color: var(--green);
    font-size: 11px;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 12px;
    color: #a9aaaf;

    position: relative;
    padding: 12px 0;

    transition: color .3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: width .35s cubic-bezier(.2, .8, .2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-contact {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-light);

    border: 1px solid rgba(0, 216, 120, .4);
    padding: 12px 20px;
    border-radius: 15px;

    transition: .3s;
}

.nav-contact:hover {
    background: var(--green);
    color: #071c13;
    box-shadow: 0 0 25px rgba(0, 216, 120, .25);
}

.nav-toggle {
    display: none;
    color: white;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
}


/* =====================================================
   LAN TO LAN
   ===================================================== */

.lan-section {
    min-height: 900px;
    padding: 100px 10vw;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7vw;

    overflow: hidden;
    color: var(--white);

    background: var(--section-gradient);
}

.lan-content {
    max-width: 570px;
}

.lan-eyebrow {
    display: inline-block;
    margin-bottom: 22px;

    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.lan-content h2 {
    margin-bottom: 22px;

    font-size: clamp(40px, 5.5vw, 72px);
    line-height: .98;
    letter-spacing: -.06em;
}

.lan-description {
    max-width: 490px;

    color: #c5c9c5;
    font-size: 16px;
    line-height: 1.7;
}

.lan-benefits {
    display: grid;
    gap: 12px;

    padding: 0;
    margin: 28px 0;

    list-style: none;
}

.lan-benefits li {
    color: #e4e8e4;
    font-size: 14px;
}

.lan-benefits li::before {
    content: ">";
    margin-right: 10px;

    color: var(--green);
    font-size: 18px;
}


/* DIAGRAMA LAN */

.lan-diagram {
    min-height: 450px;
    position: relative;

    display: grid;
    place-items: center;

    border: 1px solid rgba(247, 242, 242, .418);
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(8, 160, 87, .2),
        transparent 68%
    );

    isolation: isolate;
}

/* Nodos */

.lan-node {
    width: 112px;
    height: 112px;

    position: absolute;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid #08a057;
    border-radius: 50%;

    color: var(--white);
    background: #101713;

    box-shadow: 0 0 28px rgba(8, 160, 87, .18);
}

.lan-node span {
    color: #aeb8b1;
    font-size: 15px;
    letter-spacing: .1em;
}

/* Logo central */

.lan-node-main {
    width: 140px;
    height: 140px;

    animation: lan-centro-brilla 3s ease-in-out infinite;
}

.lan-node-main strong {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.lan-logo {
    position: relative;
    z-index: 1;

    width: 85%;
    height: 85%;

    object-fit: contain;
}

/* Sucursales */

.lan-node-left {
    left: 4%;
    top: 12%;
}

.lan-node-right {
    right: 4%;
    bottom: 12%;
}

.lan-node-left,
.lan-node-right {
    animation: lan-sucursal-brilla 3.5s ease-in-out infinite;

    box-shadow:
        0 0 10px rgba(8, 160, 87, .35),
        inset 0 0 16px rgba(8, 160, 87, .08);
}

.lan-node-right {
    animation-delay: -1.75s;
}

/* Conexiones */

.lan-line {
    position: absolute;

    height: 1px;
    width: 38%;
    z-index: 1;

    transform-origin: center;
    overflow: visible;

    background: linear-gradient(
        90deg,
        rgba(8, 160, 87, .15),
        #08a057,
        #b5ffd2,
        #08a057,
        rgba(8, 160, 87, .15)
    );

    background-size: 220% 100%;

    animation: lan-linea-brilla 2.5s linear infinite;
}

.lan-line-one {
    top: 34%;
    left: 19%;
    transform: rotate(24deg);
}

.lan-line-two {
    right: 19%;
    bottom: 34%;
    transform: rotate(24deg);
}

/* Destellos */

.lan-line::before,
.lan-line::after {
    content: "";
    position: absolute;

    top: -3px;
    left: 0;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #d8ffe9;

    box-shadow:
        0 0 6px 2px #8effbd,
        0 0 16px 5px rgba(8, 160, 87, .8);

    animation: lan-destello-viaja 2.4s linear infinite;
}

.lan-line::after {
    width: 4px;
    height: 4px;
    top: -2px;

    animation-delay: -1.2s;
}

/* Anillos orbitales */

.lan-diagram::before,
.lan-diagram::after {
    content: "";
    position: absolute;
    z-index: 0;

    inset: 2% 3%;

    border: 1px solid rgba(8, 160, 87, .5);
    border-radius: 50%;

    pointer-events: none;
}

.lan-diagram::before {
    transform: rotate(-18deg) scaleY(.48);
    animation: lan-anillo-uno 18s linear infinite;
}

.lan-diagram::after {
    inset: 8% 7%;

    border-color: rgba(181, 255, 210, .28);

    transform: rotate(18deg) scaleY(.55);
    animation: lan-anillo-dos 26s linear infinite reverse;
}


/* =====================================================
   IP PÚBLICA
   ===================================================== */

.ip-section {
    min-height: calc(100vh - 82px);
    min-height: calc(100svh - 82px);
margin-top: 15px;
    padding: 35px 8%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(35px, 5vw, 85px);

    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(
        ellipse at 20% 100%,
        #08a057 0,
        #044224 30%,
        #171720 65%
    );
}

.ip-content {
    position: relative;
    z-index: 5;
    max-width: 570px;
}

.ip-eyebrow {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.ip-content h2 {
    font-size: clamp(40px, 4.3vw, 64px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 800;
    margin-bottom: 28px;
}

.ip-description {
    max-width: 490px;

    color: #c5cec8;
    font-size: 15px;
    line-height: 1.8;

    margin-bottom: 32px;
}

.ip-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;

    list-style: none;
    padding: 0;
}

.ip-benefits li {
    font-size: 13px;
    color: #e2e7e3;
}

.ip-benefits li::before {
    content: "›";

    color: var(--green);
    font-size: 23px;
    font-weight: bold;

    margin-right: 13px;
}


/* DIAGRAMA GENERAL */

.ip-visual {
    width: 100%;
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.ip-diagram {
    width: 100%;
    max-width: 530px;
    height: 650px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 48px 20px 15px;

    border: 1px solid rgba(0, 216, 120, .13);
    border-radius: 25px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(
        145deg,
        rgba(10, 35, 25, .35),
        rgba(13, 17, 19, .16)
    );
}

/* Etiqueta superior */

.ip-diagram-label {
    position: absolute;
    top: 22px;
    left: 24px;

    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9cafa4;
}

.ip-status,
.ip-footer-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--green);

    box-shadow: 0 0 10px var(--green);
}

/* Usuario externo */

.ip-user {
    width: 145px;
    padding: 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    border: 1px solid rgba(0, 216, 120, .4);
    background: rgba(8, 26, 18, .9);

    border-radius: 5px;
    z-index: 2;

    transition: .3s ease;
}

.ip-device-icon {
    width: 26px;
    height: 26px;
    color: var(--green);
}

.ip-device-icon svg,
.ip-cloud-icon svg,
.ip-router svg,
.ip-resource-icon svg {
    width: 100%;
    height: 100%;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ip-user strong,
.ip-internet strong {
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1px;
}

.ip-user small,
.ip-internet small {
    color: #8ea197;
    font-size: 9px;
}

/* Internet */

.ip-internet {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;

    margin: 8px 0;
    z-index: 2;
}

.ip-cloud-icon {
    width: 34px;
    height: 34px;

    color: var(--green);

    filter: drop-shadow(0 0 8px rgba(0, 216, 120, .35));
}

/* Conexiones animadas */

.ip-flow {
    height: 25px;
    width: 2px;

    position: relative;
    z-index: 1;

    background: rgba(0, 216, 120, .25);
    overflow: hidden;
}

.ip-flow span {
    position: absolute;
    top: -10px;
    left: 0;

    width: 2px;
    height: 12px;

    background: #c4ffe0;
    box-shadow: 0 0 10px var(--green);

    animation: ip-flow-down 2s linear infinite;
}

.ip-flow span:nth-child(2) {
    animation-delay: .65s;
}

.ip-flow span:nth-child(3) {
    animation-delay: 1.3s;
}

/* Gateway */

.ip-public-gateway {
    width: 100%;
    max-width: 265px;

    position: relative;
    z-index: 3;

    padding: 10px;

    border: 1px solid rgba(0, 216, 120, .65);
    border-radius: 9px;

    background: #0b1c14;

    box-shadow:
        0 0 35px rgba(0, 216, 120, .09),
        inset 0 0 25px rgba(0, 216, 120, .04);

    animation: ip-gateway-glow 4s ease-in-out infinite;
}

.ip-gateway-header {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-bottom: 12px;

    border-bottom: 1px solid rgba(0, 216, 120, .16);

    color: #9aafa2;
    font-size: 9px;
    letter-spacing: 1.3px;
}

.ip-gateway-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--green);

    box-shadow: 0 0 8px var(--green);
}

.ip-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    padding: 10px 0;
}

.ip-address span {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #91a99a;
}

.ip-address strong {
    font-size: clamp(20px, 3vw, 29px);
    letter-spacing: 1px;
    color: var(--green);
    font-weight: 800;
}

.ip-address small {
    font-size: 9px;
    color: #758b7d;
}

/* Router */

.ip-router {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 9px;
    border-radius: 5px;

    background: rgba(0, 216, 120, .07);
}

.ip-router svg {
    width: 34px;
    height: 34px;
    color: var(--green);
}

.ip-router div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ip-router strong {
    font-size: 10px;
    letter-spacing: 1px;
}

.ip-router small {
    font-size: 9px;
    color: #8ea197;
}

/* Red interna */

.ip-internal-network {
    width: 100%;
    max-width: 345px;

    margin-top: 17px;
    padding: 12px;

    border: 1px solid rgba(0, 216, 120, .25);
    border-radius: 7px;

    background: rgba(0, 216, 120, .035);
}

.ip-network-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ip-network-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 216, 120, .3);
}

.ip-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    margin-top: 11px;
}

.ip-resource {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    padding: 9px 4px;

    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(0, 216, 120, .13);
    border-radius: 5px;

    transition: .3s ease;
}

.ip-resource:hover {
    border-color: var(--green);
    background: rgba(0, 216, 120, .08);
    transform: translateY(-3px);
}

.ip-resource-icon {
    width: 24px;
    height: 24px;
    color: var(--green);
}

.ip-resource strong {
    font-size: 8px;
    letter-spacing: .8px;
    color: #dce5df;
}

.ip-internal-network > p {
    margin-top: 13px;

    text-align: center;
    font-size: 8px;
    letter-spacing: 1.3px;

    color: #80978a;
}

/* Pie del diagrama */

.ip-diagram-footer {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 13px;

    color: #91a99a;
    font-size: 8px;
    letter-spacing: 1.2px;
}

.ip-footer-dot {
    width: 6px;
    height: 6px;
}


/* =====================================================
   PUBLICIDAD LOCAL
   ===================================================== */

.service-section {
    min-height: 100vh;
    width: 100%;

    padding: 125px 10% 65px;

    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;

    position: relative;
    overflow: hidden;

     background: radial-gradient(
        ellipse at 0% 0%,
        #08a057 0,
        #044224 30%,
        #171720 65%
    );
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.eyebrow {
    display: inline-block;

    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    margin-bottom: 28px;
}

.section-content h1 {
    font-size: clamp(40px, 4vw, 70px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.05;

    margin-bottom: 28px;
}

.section-content p {
    font-size: 15px;
    color: #d0d5d2;
    line-height: 1.8;

    max-width: 490px;
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 19px;

    list-style: none;
}

.feature-list li {
    font-size: 13px;
    color: #e2e7e3;
}

.feature-list li::before {
    content: "›";

    color: var(--green);
    font-size: 22px;
    font-weight: bold;

    margin-right: 13px;
    vertical-align: -2px;
}

.section-visual {
    position: relative;
    width: 100%;
    min-height: 510px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-publi{
width: 800px;

}

/* PUBLICIDAD */

.advertising-visual {
    width: min(100%, 500px);
    position: relative;

    transform: perspective(1000px) rotateY(-8deg);
}

.ad-screen {
    position: relative;
    aspect-ratio: 1.35;

    padding: 45px;

    border: 1px solid rgba(0, 216, 120, .6);

    background:
        linear-gradient(
            135deg,
            rgba(0, 216, 120, .12),
            transparent 70%
        ),
        #101a17;

    box-shadow: 0 0 60px rgba(0, 216, 120, .12);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-small {
    color: var(--green);
    letter-spacing: 3px;
    font-size: 10px;
    margin-bottom: 20px;
}

.ad-screen strong {
    font-size: clamp(35px, 4vw, 60px);
    line-height: .98;
    letter-spacing: -2px;
}

.ad-line {
    width: 65px;
    height: 3px;

    background: var(--green);
    margin: 25px 0;
}

.ad-screen small {
    color: #9caaa2;
    font-size: 9px;
    letter-spacing: 2px;
}

.ad-decoration {
    position: absolute;

    width: 90%;
    height: 90%;

    border: 1px solid rgba(0, 216, 120, .25);

    top: 12%;
    left: 12%;
    z-index: -1;
}


/* =====================================================
   CONTACTO
   ===================================================== */

.contact-section {
    min-height: 65vh;
    padding: 100px 10%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
background: radial-gradient(
        circle at 0% 100%,
        #04df7531 0%,
        #0442242a 25%,
        #171720 30%
    );

}

.contact-section h2 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -2px;

    margin-bottom: 25px;
}

.contact-section p {
    color: var(--muted);

    max-width: 550px;
    line-height: 1.8;

    margin-bottom: 30px;
}

.contact-button {
    padding: 16px 26px;

    background: var(--green);
    color: #071c13;

    font-weight: 800;
    font-size: 13px;

    border-radius: 15px;
    transition: .3s;
}

.contact-button:hover {
    box-shadow: 0 0 35px rgba(0, 255, 98, 0.35);
    transform: translateY(-4px);
    background-color: #0000001c;
    color: rgb(6, 226, 123);
    border: 1px solid rgb(6, 226, 123);
   
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--background-dark);

    border-top: 1px solid rgba(0, 216, 120, .2);

    padding: 65px 10% 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 55px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .brand {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #929b96;
    font-size: 13px;
    line-height: 1.8;
}

.footer-column h3 {
    color: white;
    font-size: 13px;

    margin-bottom: 22px;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: #929b96;
    font-size: 12px;

    transition: .3s;
}

.footer-column a:hover {
    color: var(--green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);

    padding-top: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    color: #707b74;
    font-size: 11px;
}

.footer-bottom span {
    color: var(--green);
}


/* =====================================================
   ANIMACIONES
   ===================================================== */

/* LAN */

@keyframes lan-anillo-uno {
    to {
        transform: rotate(342deg) scaleY(.48);
    }
}

@keyframes lan-anillo-dos {
    to {
        transform: rotate(378deg) scaleY(.55);
    }
}

@keyframes lan-centro-brilla {
    50% {
        box-shadow: 0 0 24px rgba(8, 160, 87, .45);
    }
}

@keyframes lan-sucursal-brilla {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 5px rgba(8, 160, 87, .15);
    }

    50% {
        transform: translateY(-4px);
        box-shadow: 0 0 20px rgba(8, 160, 87, .5);
    }
}

@keyframes lan-linea-brilla {
    to {
        background-position: -220% 0;
    }
}

@keyframes lan-destello-viaja {
    from {
        left: 0;
        opacity: 0;
    }

    15%, 80% {
        opacity: 1;
    }

    to {
        left: 100%;
        opacity: 0;
    }
}

/* IP PÚBLICA */

@keyframes ip-flow-down {
    from {
        top: -12px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    to {
        top: 100%;
        opacity: 0;
    }
}

@keyframes ip-gateway-glow {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(0, 216, 120, .12),
            inset 0 0 25px rgba(0, 216, 120, .05);
    }

    50% {
        box-shadow:
            0 0 35px rgba(0, 216, 120, .2),
            inset 0 0 30px rgba(0, 216, 120, .08);
    }
}


/* =====================================================
   RESPONSIVE - TABLETS
   ===================================================== */

@media (max-width: 900px) {

    .top-nav {
        padding: 0 6%;
    }

    .nav-menu {
        gap: 18px;
    }

    .lan-section {
        gap: 35px;
        padding: 90px 6vw;
    }

    .lan-content h2 {
        font-size: clamp(40px, 5vw, 58px);
    }

    .ip-section {
        padding: 25px 6%;
        gap: 35px;
    }

    .ip-content h2 {
        font-size: 48px;
    }

    .ip-diagram {
        height: 570px;
        padding-top: 42px;
    }

    .ip-flow {
        height: 19px;
    }

    .ip-internal-network {
        margin-top: 12px;
    }

    .ip-description {
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .ip-benefits {
        gap: 12px;
    }

    .service-section {
        padding-left: 7%;
        padding-right: 7%;
        grid-template-columns: 1fr 1fr;
    }

    .section-content h1 {
        font-size: 48px;
    }

    .footer {
        padding-left: 7%;
        padding-right: 7%;
    }

    .footer-content {
        gap: 30px;
    }
}


/* =====================================================
   RESPONSIVE - CELULARES
   ===================================================== */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 72px;
    }

    /* NAVBAR */

    .top-nav {
        height: 72px;
        padding: 0 6%;
    }

    .nav-toggle {
        display: block;
    }

    .nav-contact {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;

        width: 100%;
        padding: 0 25px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: rgba(15, 22, 20, .97);
        backdrop-filter: blur(20px);

        max-height: 0;
        overflow: hidden;
        opacity: 0;

        transition:
            max-height .4s ease,
            opacity .3s ease,
            padding .4s ease;
    }

    .nav-menu.open {
        max-height: 350px;
        opacity: 1;
        padding: 15px 25px 25px;
    }

    .nav-link {
        padding: 17px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    /* LAN */

    .lan-section {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 28px;

        padding: 74px 22px;
    }

    .lan-content h2 {
        font-size: clamp(40px, 11vw, 58px);
    }

    .lan-diagram {
        min-height: 280px;
    }

    .lan-node {
        width: 86px;
        height: 86px;
    }

    .lan-node-main {
        width: 116px;
        height: 116px;
    }

    .lan-node span {
        font-size: 11px;
    }

    .lan-logo {
        width: 85%;
    }

    /* IP PÚBLICA */

    .ip-section {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 35px;

        padding: 75px 6% 55px;
    }

    .ip-content {
        order: 1;
    }

    .ip-visual {
        order: 2;
    }

    .ip-content h2 {
        font-size: clamp(39px, 10vw, 54px);
        letter-spacing: -2px;
    }

    .ip-description {
        font-size: 14px;
    }

    .ip-diagram {
        height: auto;
        min-height: 570px;

        padding: 48px 12px 15px;
    }

    .ip-public-gateway {
        max-width: 260px;
    }

    .ip-internal-network {
        max-width: 340px;
    }

    /* PUBLICIDAD Y MESH */

    .service-section {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 20px;
        padding: 125px 7% 75px;
    }

    .section-content h1 {
        font-size: clamp(39px, 10vw, 55px);
        letter-spacing: -2px;
    }

    .section-content p {
        font-size: 14px;
    }

    .section-visual {
        min-height: 340px;
    }

    .mesh-device {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    /* CONTACTO */

    .contact-section {
        min-height: 60vh;
        padding: 80px 7%;
    }

    /* FOOTER */

    .footer {
        padding: 55px 7% 25px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =====================================================
   RESPONSIVE - CELULARES PEQUEÑOS
   ===================================================== */

@media (max-width: 400px) {

    .brand {
        font-size: 18px;
    }

    .brand span {
        font-size: 10px;
    }

    .lan-diagram {
        min-height: 250px;
    }

    .lan-node {
        width: 68px;
        height: 68px;
    }

    .lan-node-main {
        width: 100px;
        height: 100px;
    }

    .ip-diagram {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ip-resource strong {
        font-size: 7px;
    }

    .ip-address strong {
        font-size: 22px;
    }

    .section-content h1 {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}


/* =====================================================
   NOTEBOOKS CON POCA ALTURA
   ===================================================== */

@media (max-height: 850px) and (min-width: 701px) {

    .ip-section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .ip-diagram {
        height: 570px;
        padding-top: 42px;
    }
}


/* =====================================================
   ACCESIBILIDAD
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.img-brand{
    width: 155px;

}




/* =========================================================
   1. SERVICIO MESH - ESTRUCTURA GENERAL
========================================================= */

.service-mesh {
    /* Distribución */
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.8fr);
    align-items: center;
    gap: clamp(35px, 5vw, 80px);

    /* Dimensiones */
    position: relative;
    width: 100%;
    min-height: px;
    padding: 100px clamp(28px, 5vw, 90px);
    overflow: hidden;

    /* Fondo */
      background: radial-gradient(
        ellipse at 0% 100%,
        #08a057 0,
        #044224 30%,
        #171720 65%
    );
}
        

/* =========================================================
   2. MESH - CONTENIDO DE TEXTO
========================================================= */

.service-mesh .section-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 450px;
    margin-left:100px;
}

/* Texto superior */

.service-mesh .eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

/* Título */

.service-mesh .section-content h1 {
    margin: 0 0 25px;
    color: var(--white);
    font-size: clamp(42px, 4.1vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

/* Descripción */

.service-mesh .section-content p {
    max-width: 420px;
    color: #bbc4be;
    font-size: 15px;
    line-height: 1.7;
}

/* Lista de características */

.service-mesh .feature-list {
    display: grid;
    gap: 14px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.service-mesh .feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e8e2;
    font-size: 13px;
}

.service-mesh .feature-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(0, 215, 122, 0.45);
    border-radius: 50%;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   3. MESH - PLANO Y CONTENEDOR
========================================================= */

.mesh-map-container {
    display: block;
    width: 100%;
    max-width: 850px;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    
}

/* Marco del plano */

.mesh-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1482 / 1050;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff00;
    

}

/* Imagen del plano y capa SVG */

.mesh-floorplan,
.mesh-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.mesh-floorplan {
    z-index: 1;
    object-fit: fill;
}

.mesh-overlay {
    z-index: 2;
    pointer-events: none;
}


/* =========================================================
   4. MESH - ZONAS DE COBERTURA
========================================================= */

.mesh-coverage {
    fill: var(--green);
    opacity: 0.075;
    filter: drop-shadow(0 0 15px rgba(0, 215, 122, 0.3));
}




/* =========================================================
   5. MESH - CONEXIONES ENTRE EQUIPOS
========================================================= */

/* Línea de conexión */

.mesh-link {
    fill: none;
    stroke: var(--green);
    stroke-width: 3;
    stroke-dasharray: 10 14;
    opacity: 0.7;
}

/* Movimiento de señal */

.mesh-signal {
    fill: none;
    stroke: #c4ffe0;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 2 40;
    filter: drop-shadow(0 0 6px var(--green));
    animation: mesh-signal-flow 4s linear infinite;
}

/* Diferentes tiempos de animación */

.signal-two {
    animation-delay: -1s;
}

.signal-three {
    animation-delay: -2s;
}

.signal-four {
    animation-delay: -3s;
}


/* =========================================================
   6. MESH - ONDAS DE SEÑAL
========================================================= */

.mesh-wave {
    fill: none;
    stroke: #00e889;
    stroke-width: 4;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 7px rgba(0, 215, 122, 0.8));
    animation: mesh-wave-animation 4.5s ease-out infinite;
}

/* Desfase de las ondas */

.wave-two,
.wave-four {
    animation-delay: 1.5s;
}

.wave-three,
.wave-five {
    animation-delay: 3s;
}


/* =========================================================
   7. MESH - TEXTO INFERIOR DEL PLANO
========================================================= */

.mesh-map-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    color: #aeb9b2;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.mesh-caption-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(0, 215, 122, 0.8);
}


/* =========================================================
   8. ANIMACIONES
========================================================= */

@keyframes mesh-signal-flow {
    to {
        stroke-dashoffset: -180;
    }
}

@keyframes mesh-wave-animation {
    0% {
        opacity: 0.8;
        transform: scale(0.15);
    }

    80% {
        opacity: 0.35;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}


/* =========================================================
   9. PUBLICIDAD
========================================================= */

.tv-publi {
    position: relative;
    z-index: 1;
    width: min(95%, 760px);
    height: auto;
    transform: translateY(20px);

    filter:
        drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 25px rgba(0, 180, 100, 0.12));

    animation: tvFloat 6s ease-in-out infinite;
    transition: filter 0.4s ease;
}

@keyframes tvFloat {
    0%,
    100% {
        transform: translateY(20px);
    }

    50% {
        transform: translateY(10px);
    }
}


/* =========================================================
   10. RESPONSIVE - TABLETS
========================================================= */

@media (max-width: 1100px) {

    .service-mesh {
        grid-template-columns: 1fr;
        gap: 38px;
        min-height: auto;
        padding: 80px 45px;
    }

    .service-mesh .section-content {
        max-width: 700px;
    }

    .mesh-map-container {
        max-width: 100%;
    }
}


/* =========================================================
   11. RESPONSIVE - CELULARES
========================================================= */

@media (max-width: 700px) {

    .service-mesh {
        gap: 30px;
        padding: 75px 22px;
    }

    .service-mesh .section-content h1 {
        font-size: clamp(40px, 11vw, 56px);
    }

    .mesh-map {
        border-radius: 9px;
    }

    .mesh-map-caption {
        margin-top: 12px;
        font-size: 10px;
    }
}


/* =========================================================
   12. ACCESIBILIDAD - REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mesh-wave,
    .mesh-signal,
    .tv-publi {
        animation: none;
    }
}


/* =========================================================
   MESH - AJUSTES PARA CELULARES
========================================================= */

@media (max-width: 700px) {

    .service-mesh {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
        width: 100%;
        min-width: 0;
        padding: 65px 20px 35px;
        overflow: hidden;
    }

    .service-mesh .section-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
       
    }

    .service-mesh .section-content h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 22px;
        font-size: clamp(38px, 10vw, 48px);
        line-height: 1;
        letter-spacing: -0.055em;
    }

    .service-mesh .section-content p {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: break-word;
    }

    .service-mesh .feature-list {
        width: fit-content;
        max-width: 100%;
       
        text-align: left;
        gap: 16px;
    }

    .service-mesh .feature-list li {
        font-size: 12px;
    }

    .mesh-map-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .mesh-map {
        width: 100%;
        border-radius: 10px;
    }

    .mesh-map-caption {
        
        flex-wrap: wrap;
        font-size: 10px;
        
    }
}

/* =====================================================
   AJUSTES FINALES PARA FONDOS Y DESBORDES
   ===================================================== */

img,
svg {
    max-width: 100%;
}

.lan-section,
.ip-section,
.service-section,
.service-mesh,
.contact-section {
    background-color: var(--background);
    background-repeat: no-repeat;
}

@media (max-width: 700px) {
    .lan-section,
    .ip-section,
    .service-section,
    .service-mesh,
    .contact-section {
        background-size: 100% 100%;
    }

    .service-section,
    .service-mesh,
    .ip-section,
    .lan-section,
    .contact-section {
        width: 100%;
        max-width: 100%;
    }

    .tv-publi {
        width: min(100%, 760px);
        height: auto;
    }
}

.mesh-coverage {
    fill: rgba(16, 245, 84, 0.678);
    opacity: 0.1;
    filter: drop-shadow(0 0 15px rgba(0, 215, 122, 0.3));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.mesh-coverage:hover {
    opacity: 0.20;
    filter: drop-shadow(0 0 25px rgba(215, 104, 0, 0.068));
    cursor: pointer;
}
.mesh-overlay {
    pointer-events: none;
}

.mesh-coverage {
    pointer-events: auto;
}