/* VARIABLES GLOBALES */
:root {
    --acento: #eab308;
    --oscuro-bg: #0a0c10;
    --gris-bloque: #161a21;
    --texto: #ffffff;
    --texto-sec: #a1a1aa;
    --trans: 0.5s ease-in-out;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--oscuro-bg);
    color: var(--texto);
    line-height: 1.6;
}

/* NAVEGACIÓN */
.nav-protekk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #000;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 42px;
    width: auto;
}

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

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    padding: 10px 16px;
    border: 1px solid rgba(234, 179, 8, 0.55);
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.activo {
    background: var(--acento);
    color: #000;
    border-color: var(--acento);
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.35);
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero-page {
    text-align: center;
    padding: 60px 5% 30px;
}

.hero-page h1 {
    color: var(--acento);
    font-size: 2.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-page p {
    color: var(--texto-sec);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* PORTADA DIVIDIDA */
.container-principal {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.mitad {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    filter: grayscale(40%);
    transition: filter 0.55s ease, transform 0.55s ease;
}

.mitad::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    transition: background 0.55s ease;
    pointer-events: none;
}

.mitad::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(234, 179, 8, 0.22),
        rgba(234, 179, 8, 0.08) 35%,
        rgba(0, 0, 0, 0) 70%
    );
    opacity: 0;
    z-index: 2;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.mitad:hover {
    filter: grayscale(0%) brightness(1.12);
    cursor: pointer;
}

.mitad:hover::before {
    background: rgba(0, 0, 0, 0.08);
}

.mitad:hover::after {
    opacity: 1;
}

.mitad:hover .contenido {
    transform: scale(1.035);
}

.contenido {
    position: relative;
    z-index: 5;
    transition: transform 0.55s ease;
}

.redes {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/redes.jpg') no-repeat center center/cover;
    transition: background-size 0.65s ease;
}

.seguridad {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/seguridad.jpg') no-repeat center top/cover;
    transition: background-size 0.65s ease;
}

.logo-flotante {
    position: absolute;
    top: 73%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.frase-logo {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    max-width: 520px;
    line-height: 1.6;
    text-shadow: 0 0 14px rgba(0,0,0,0.95);
    padding: 12px 28px 14px;
    border-bottom: 1px solid rgba(234, 179, 8, 0.7);
}

/* BOTONES */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 34px;
    min-width: 230px;
    border: 1px solid rgba(234, 179, 8, 0.85);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boton:hover {
    background: rgba(234, 179, 8, 0.95);
    color: #000;
    box-shadow: 0 0 28px rgba(234, 179, 8, 0.35);
    transform: translateY(-2px);
}

/* BLOQUES DE SERVICIO */
.wrapper {
    padding: 40px 5%;
    max-width: 1240px;
    margin: auto;
}

.bloque-servicio {
    display: flex;
    gap: 32px;
    background: var(--gris-bloque);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 50px;
    align-items: center;
    border: 1px solid #222;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.bloque-servicio:nth-child(even) {
    flex-direction: row-reverse;
}

.bloque-servicio:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 0 32px rgba(234, 179, 8, 0.08);
}

.texto-servicio {
    flex: 1;
}

.texto-servicio h1,
.texto-servicio h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--texto);
    max-width: 620px;
}

.descripcion-principal {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--texto-sec);
    margin-bottom: 22px;
    max-width: 620px;
}

.tag-tecnico {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 196, 0, 0.06);
    border: 1px solid rgba(255, 196, 0, 0.35);
    color: var(--acento);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.tag-tecnico::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--acento);
    box-shadow: 0 0 10px var(--acento);
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.stat-box {
    background: #11161d;
    border: 1px solid #222;
    padding: 18px;
    border-radius: 10px;
    transition: .3s;
}

.stat-box:hover {
    border-color: var(--acento);
    transform: translateY(-3px);
}

.stat-box h3 {
    color: var(--acento);
    margin-bottom: 5px;
    font-size: 1rem;
}

.stat-box p {
    color: var(--texto-sec);
    font-size: .9rem;
}

/* LISTA TÉCNICA */
.lista-tecnica {
    list-style: none;
    margin-top: 34px;
    padding-left: 0;
}

.lista-tecnica li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--texto-sec);
    line-height: 1.4;
}

.lista-tecnica li::before {
    content: "■";
    color: var(--acento);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.lista-tecnica li strong {
    color: var(--texto);
    margin-right: 5px;
}

/* MEDIA GENERAL */
.media-placeholder {
    flex: 0 0 400px;
    height: 600px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 28px rgba(0,0,0,0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bloque-servicio:hover .media-placeholder {
    transform: scale(1.015);
    box-shadow: 0 0 34px rgba(234, 179, 8, 0.12);
}

.media-mobile {
    display: none;
}

.media-desktop {
    display: block;
}

.foto-vertical,
.video-vertical,
.media-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.foto-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.logo-marca-agua {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 260px;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 10;
}

/* REDES - IMÁGENES HORIZONTALES */
.pagina-redes .bloque-servicio,
.pagina-redes .bloque-servicio:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 34px;
}

.pagina-redes .texto-servicio {
    width: 100%;
}

.pagina-redes .texto-servicio h1,
.pagina-redes .texto-servicio h2 {
    max-width: 860px;
    font-size: 2.15rem;
}

.pagina-redes .descripcion-principal {
    max-width: 920px;
}

.pagina-redes .media-placeholder {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    height: auto;
    flex: none;
    margin: 4px auto 10px;
}

.pagina-redes .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin: 28px 0 24px;
}

.pagina-redes .lista-tecnica {
    margin-top: 24px;
}


/* SEGURIDAD - SOLO IMAGEN 1 E IMAGEN 3 HORIZONTALES */
/* Mantiene el video del bloque 2 con el formato general original. */
.pagina-seguridad .bloque-seguridad-horizontal,
.pagina-seguridad .bloque-seguridad-horizontal:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 34px;
}

.pagina-seguridad .bloque-seguridad-horizontal .texto-servicio {
    width: 100%;
}

.pagina-seguridad .bloque-seguridad-horizontal .texto-servicio h1,
.pagina-seguridad .bloque-seguridad-horizontal .texto-servicio h2 {
    max-width: 860px;
    font-size: 2.15rem;
}

.pagina-seguridad .bloque-seguridad-horizontal .descripcion-principal {
    max-width: 920px;
}

.pagina-seguridad .bloque-seguridad-horizontal .media-seguridad-horizontal {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    height: auto;
    flex: none;
    margin: 4px auto 10px;
}

.pagina-seguridad .bloque-seguridad-horizontal .media-seguridad-horizontal .logo-marca-agua {
    width: 210px;
    right: 20px;
    bottom: 18px;
}

.pagina-seguridad .bloque-seguridad-horizontal .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin: 28px 0 24px;
}

.pagina-seguridad .bloque-seguridad-horizontal .lista-tecnica {
    margin-top: 24px;
}

/* CARRUSEL */
.carrusel-container {
    position: relative;
    overflow: hidden;
    background: #000;
}

.carrusel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carrusel-slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 1px solid rgba(234, 179, 8, 0.6);
    width: 38px;
    height: 52px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.4rem;
    transition: 0.3s ease;
}

.carrusel-btn:hover {
    background: var(--acento);
    color: #000;
}

.carrusel-btn.prev { left: 12px; }
.carrusel-btn.next { right: 12px; }

/* FOOTER */
.footer-protekk {
    width: 100%;
    background: #020304;
    border-top: 1px solid #1f2933;
    padding: 55px 5% 35px;
    margin-top: 60px;
    text-align: center;
    color: var(--texto-sec);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand img {
    height: 42px;
    width: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    color: var(--texto-sec);
    font-size: 1rem;
    margin-bottom: 28px;
}

.footer-copy {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #555;
}

/* WHATSAPP */
.btn-wsp,
.boton-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 32px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.3);
    transition: 0.3s ease;
}

.btn-wsp:hover,
.boton-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(37, 211, 102, 0.55);
}

.wsp-final {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    background-color: #eab308;
    color: #000000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 99999 !important;
    transition: all 0.3s ease;
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.wsp-final:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.4);
}

.wsp-logo-img {
    width: 22px !important;
    height: 22px !important;
    display: block;
    filter: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .nav-protekk {
        flex-direction: column;
        gap: 12px;
        padding: 12px 4%;
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .logo img {
        height: 36px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px;
    }

    .nav-links a {
        min-width: auto;
        padding: 8px 10px;
        font-size: 0.64rem;
        letter-spacing: 0.5px;
    }

    .container-principal {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .mitad {
        width: 100%;
        min-height: 50vh;
        flex: none;
        background-position: center center !important;
    }

    .mitad:hover {
        flex: none;
        filter: grayscale(0%) brightness(1.08);
    }

    .mitad:hover .contenido {
        transform: scale(1.015);
    }

    .mitad:hover::after {
        opacity: 0.65;
    }

    .contenido {
        padding: 40px 25px;
        text-align: center;
    }

    .contenido h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .contenido p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 320px;
        margin: 0 auto 25px;
    }

    .boton {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 14px 20px;
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .logo-flotante {
        top: 50%;
        width: 100%;
        padding: 0 20px;
    }

    .frase-logo {
        font-size: 0.72rem;
        line-height: 1.8;
        max-width: 320px;
        margin: auto;
        padding-bottom: 10px;
    }

    .hero-page {
        padding: 45px 5% 20px;
    }

    .hero-page h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-page p {
        font-size: 0.8rem;
    }

    .bloque-servicio,
    .bloque-servicio:nth-child(even) {
        flex-direction: column !important;
        gap: 22px;
        padding: 22px;
        text-align: left;
        margin-bottom: 30px;
    }

    .texto-servicio h1,
    .texto-servicio h2 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .descripcion-principal {
        font-size: 1rem;
        line-height: 1.8;
    }

    .media-placeholder {
        width: 100%;
        max-width: 100%;
        height: 360px;
        flex: none;
        border-radius: 10px;
    }

    .media-desktop {
        display: none;
    }

    .media-mobile {
        display: block;
        width: 100%;
        height: 340px;
        margin: 20px 0;
        flex: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px 0;
    }

    .stat-box {
        padding: 15px;
    }

    .lista-tecnica {
        margin-top: 28px;
    }

    .lista-tecnica li {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .pagina-redes .bloque-servicio,
    .pagina-redes .bloque-servicio:nth-child(even) {
        padding: 22px;
        gap: 20px;
    }

    .pagina-redes .media-placeholder {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 8px 0 4px;
    }

    .pagina-redes .stats-grid {
        grid-template-columns: 1fr 1fr;
    }


    .pagina-seguridad .bloque-seguridad-horizontal,
    .pagina-seguridad .bloque-seguridad-horizontal:nth-child(even) {
        padding: 22px;
        gap: 20px;
    }

    .pagina-seguridad .bloque-seguridad-horizontal .media-seguridad-horizontal {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 8px 0 4px;
    }

    .pagina-seguridad .bloque-seguridad-horizontal .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pagina-seguridad .bloque-seguridad-horizontal .media-seguridad-horizontal .logo-marca-agua {
        width: 150px;
        right: 14px;
        bottom: 12px;
    }

    .footer-brand p {
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .pagina-redes .stats-grid {
        grid-template-columns: 1fr;
    }


    .pagina-seguridad .bloque-seguridad-horizontal .stats-grid {
        grid-template-columns: 1fr;
    }

    .pagina-seguridad .bloque-seguridad-horizontal .media-seguridad-horizontal .logo-marca-agua {
        width: 120px;
    }

    .wsp-texto {
        display: none;
    }

    .wsp-final {
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        bottom: 18px !important;
        right: 18px !important;
        border-radius: 50% !important;
    }

    .wsp-logo-img {
        width: 27px !important;
        height: 27px !important;
    }
}

/* SEGURIDAD V16 - MEDIOS DESPUÉS DE LA DESCRIPCIÓN */
.pagina-seguridad .bloque-seguridad-horizontal .descripcion-principal + .media-seguridad-horizontal {
    margin-top: 22px;
    margin-bottom: 26px;
}
