/* ================= ESTILOS GENERALES ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #07111f;
    color: white;
}


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

.hero {
    min-height: 100vh;

    background:
        radial-gradient(circle at top right, rgba(0, 174, 255, 0.25), transparent 35%),
        linear-gradient(135deg, #07111f, #0b1f36);

    padding: 0 8%;
}


/* ================= NAVBAR ================= */

.navbar {
    min-height: 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
}

.logo span {
    color: #00b7ff;
}

.menu {
    display: flex;
    gap: 28px;

    list-style: none;
}

.menu a {
    color: #dbeafe;
    text-decoration: none;

    font-weight: bold;

    transition: 0.2s;
}

.menu a:hover {
    color: #00b7ff;
}


/* ================= CONTENIDO PRINCIPAL ================= */

.hero-contenido {
    min-height: calc(100vh - 80px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
max-width: 1200px;
position: relative;
}

.saludo {
    color: #00b7ff;

    font-size: 20px;
    font-weight: bold;

    margin-bottom: 12px;
}

.hero-contenido h1 {
    font-size: clamp(48px, 8vw, 82px);
    line-height: 1;

    margin-bottom: 15px;
}

.hero-contenido h2 {
    font-size: clamp(28px, 5vw, 46px);

    color: #94a3b8;

    margin-bottom: 22px;
}

.descripcion {
    max-width: 600px;

    font-size: 18px;
    line-height: 1.7;

    color: #cbd5e1;

    margin-bottom: 30px;
}


/* ================= BOTONES ================= */

.hero-botones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-principal,
.btn-secundario {
    padding: 13px 22px;

    border-radius: 9px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.25s;
}

.btn-principal {
    background: #00b7ff;
    color: #04101d;

    box-shadow: 0 0 25px rgba(0, 183, 255, 0.35);
}

.btn-secundario {
    border: 2px solid #00b7ff;
    color: #00b7ff;
}

.btn-principal:hover,
.btn-secundario:hover {
    transform: translateY(-3px);
}


/* ================= CELULAR ================= */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        justify-content: center;

        gap: 18px;
        padding: 20px 0;
    }

    .menu {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        font-size: 14px;
    }

    .hero-contenido {
        min-height: calc(100vh - 130px);
        text-align: center;
        align-items: center;
    }

    .descripcion {
        font-size: 16px;
    }

    .hero-botones {
        justify-content: center;
    }
}


/* ================= ANIMACIONES DE ENTRADA ================= */

.saludo,
.hero-contenido h1,
.hero-contenido h2,
.descripcion,
.hero-botones {
    opacity: 0;
    transform: translateY(25px);
    animation: aparecerSuave 0.8s ease forwards;
}

.saludo {
    animation-delay: 0.2s;
}

.hero-contenido h1 {
    animation-delay: 0.4s;
}

.hero-contenido h2 {
    animation-delay: 0.6s;
}

.descripcion {
    animation-delay: 0.8s;
}

.hero-botones {
    animation-delay: 1s;
}

@keyframes aparecerSuave {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= FONDO CON MOVIMIENTO ================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    background: rgba(0, 255, 255, 0.12);
    border-radius: 50%;

    filter: blur(80px);

    top: 10%;
    right: 5%;

    animation: moverBrillo 7s ease-in-out infinite alternate;

    pointer-events: none;
}

.hero-contenido {
    position: relative;
    z-index: 1;
}

@keyframes moverBrillo {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-80px, 100px);
    }
}


/* ================= SOBRE CRILIZ DIGITAL ================= */

.sobre-mi {
    padding: 100px 8%;
    background: #0a1626;
}

.sobre-mi-contenido {
    max-width: 1100px;
    margin: 0 auto;
}

.sobre-mi-texto {
    max-width: 850px;
}

.seccion-etiqueta {
    color: #D4AF37;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.sobre-mi h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 25px;
    line-height: 1.2;
}

.sobre-mi-texto > p:not(.seccion-etiqueta) {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
}


/* TARJETAS */

.datos-sobre-mi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    margin-top: 40px;
}

.dato {
    background: #101f33;

    border: 1px solid rgba(212, 175, 55, 0.18);

    padding: 24px;

    border-radius: 14px;

    transition: 0.3s;
}

.dato:hover {
    transform: translateY(-6px);

    border-color: #D4AF37;

    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.12);
}

.dato strong {
    display: block;

    color: #D4AF37;

    font-size: 19px;

    margin-bottom: 10px;
}

.dato span {
    color: #cbd5e1;
    line-height: 1.5;
}


/* CELULAR */

@media (max-width: 750px) {

    .sobre-mi {
        padding: 70px 7%;
    }

    .datos-sobre-mi {
        grid-template-columns: 1fr;
    }

    .sobre-mi-texto > p:not(.seccion-etiqueta) {
        font-size: 16px;
    }
}



/* ================= ANIMACIÓN AL HACER SCROLL ================= */

.aparecer-scroll {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.aparecer-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}




/* ================= HABILIDADES ================= */

.habilidades {
    padding: 100px 8%;
    background: #07111f;
}

.habilidades-contenido {
    max-width: 1100px;
    margin: 0 auto;
}

.habilidades h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 18px;
}

.habilidades-descripcion {
    max-width: 650px;

    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;

    margin-bottom: 45px;
}


/* ================= TARJETAS DE HABILIDADES ================= */

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.habilidad-card {
    position: relative;
    overflow: hidden;

    min-height: 180px;
    padding: 28px;

    background: #0d1c2e;

    border: 1px solid rgba(0, 183, 255, 0.15);
    border-radius: 15px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* PEQUEÑA LÍNEA AZUL */

.habilidad-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: #00b7ff;

    transition: width 0.4s ease;
}


/* EFECTO AL PASAR EL MOUSE */

.habilidad-card:hover {
    transform: translateY(-8px);

    border-color: #00b7ff;

    box-shadow:
        0 15px 35px rgba(0, 183, 255, 0.12);
}

.habilidad-card:hover::before {
    width: 100%;
}


/* TÍTULOS */

.habilidad-card h3 {
    color: #00b7ff;

    font-size: 22px;

    margin-bottom: 14px;
}


/* DESCRIPCIÓN */

.habilidad-card p {
    color: #cbd5e1;

    line-height: 1.6;
}


/* ================= TABLET ================= */

@media (max-width: 900px) {

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


/* ================= CELULAR ================= */

@media (max-width: 600px) {

    .habilidades {
        padding: 70px 7%;
    }

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

    .habilidades-descripcion {
        font-size: 16px;
    }

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



/* ================= PROYECTOS ================= */

.proyectos {
    padding: 100px 8%;
    background: #0a1626;
}

.proyectos-contenido {
    max-width: 1150px;
    margin: 0 auto;
}

.proyectos h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 18px;
}

.proyectos-descripcion {
    max-width: 680px;

    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;

    margin-bottom: 45px;
}


/* ================= PROYECTO DESTACADO ================= */

.proyecto-destacado {
    display: grid;
    grid-template-columns: 1.2fr 1fr;

    gap: 35px;
    align-items: center;

    padding: 28px;

    background: #0d1c2e;

    border: 1px solid rgba(0, 183, 255, 0.15);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.proyecto-destacado:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 183, 255, 0.55);

    box-shadow:
        0 25px 55px rgba(0, 183, 255, 0.10);
}


/* ================= IMAGEN ================= */

.proyecto-imagen {
    min-height: 360px;

    border-radius: 15px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f2742,
            #07111f
        );
}

.proyecto-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(36px, 6vw, 64px);
    font-weight: bold;

    color: #00b7ff;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 183, 255, 0.18),
            transparent 55%
        );
}


/* ================= INFORMACIÓN ================= */

.proyecto-tipo {
    display: inline-block;

    margin-bottom: 12px;

    color: #00b7ff;

    font-size: 14px;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.proyecto-info h3 {
    font-size: 34px;
    margin-bottom: 18px;
}

.proyecto-info > p {
    color: #cbd5e1;

    font-size: 17px;
    line-height: 1.7;

    margin-bottom: 24px;
}


/* ================= TECNOLOGÍAS ================= */

.proyecto-tecnologias {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 28px;
}

.proyecto-tecnologias span {
    padding: 8px 13px;

    background: rgba(0, 183, 255, 0.10);

    border: 1px solid rgba(0, 183, 255, 0.25);
    border-radius: 20px;

    color: #7ddcff;

    font-size: 14px;
    font-weight: bold;
}


/* ================= BOTONES ================= */

.proyecto-botones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ================= TABLET / CELULAR ================= */

@media (max-width: 850px) {

    .proyecto-destacado {
        grid-template-columns: 1fr;
    }

    .proyecto-imagen,
    .proyecto-placeholder {
        min-height: 280px;
    }
}

@media (max-width: 600px) {

    .proyectos {
        padding: 70px 7%;
    }

    .proyectos-descripcion {
        font-size: 16px;
    }

    .proyecto-destacado {
        padding: 18px;
    }

    .proyecto-info h3 {
        font-size: 28px;
    }

    .proyecto-info > p {
        font-size: 16px;
    }

    .proyecto-botones {
        flex-direction: column;
    }

    .proyecto-botones a {
        text-align: center;
    }
}



/* ================= CAPTURA DE PROYECTO ================= */

.proyecto-captura {
    width: 100%;
    height: 100%;
    min-height: 360px;

    display: block;

    object-fit: cover;
    object-position: top;

    transition: transform 0.5s ease;
}

.proyecto-imagen:hover .proyecto-captura {
    transform: scale(1.04);
}

@media (max-width: 850px) {

    .proyecto-captura {
        min-height: 280px;
    }
}



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

.contacto {
    padding: 100px 8%;
    background: #07111f;
}

.contacto-contenido {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contacto h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 18px;
}

.contacto-descripcion {
    max-width: 680px;
    margin: 0 auto 40px;

    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}


/* ================= OPCIONES DE CONTACTO ================= */

.contacto-opciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.contacto-card {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 24px;

    background: #0d1c2e;

    border: 1px solid rgba(0, 183, 255, 0.15);
    border-radius: 15px;

    text-decoration: none;
    color: white;

    text-align: left;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-7px);

    border-color: #00b7ff;

    box-shadow:
        0 15px 35px rgba(0, 183, 255, 0.12);
}

.contacto-icono {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(0, 183, 255, 0.10);

    border-radius: 12px;

    font-size: 26px;
}

.contacto-card strong {
    display: block;

    color: #00b7ff;

    font-size: 19px;

    margin-bottom: 5px;
}

.contacto-card p {
    color: #cbd5e1;
    line-height: 1.5;
}


/* ================= CELULAR ================= */

@media (max-width: 650px) {

    .contacto {
        padding: 70px 20px;
    }

    .contacto-descripcion {
        font-size: 16px;
    }

    .contacto-opciones {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }

    .contacto-card {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px;
        min-width: 0;
    }

    .contacto-card div {
        min-width: 0;
    }

    .contacto-card p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


/* ================= MENÚ HAMBURGUESA ================= */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: #00b7ff;

    font-size: 32px;
    cursor: pointer;
}


/* ================= MENÚ EN CELULAR ================= */

@media (max-width: 700px) {

    .navbar {
    position: relative;

    width: 100%;
    max-width: none;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 20px 14px;

    box-sizing: border-box;
}


    .logo {
        flex-shrink: 0;
    }

    .menu-toggle {
    display: block;

    position: static;

    margin-left: auto;
    margin-right: 12px;

    flex-shrink: 0;

    color: #00b7ff;
    font-size: 32px;

    z-index: 1000;
}

    .menu {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        gap: 0;

        padding: 15px;

        background: #0d1c2e;

        border: 1px solid rgba(0, 183, 255, 0.20);
        border-radius: 12px;

        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.30);

        z-index: 999;
    }

    .menu.activo {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        display: block;

        width: 100%;

        padding: 13px;

        text-align: center;

        border-radius: 8px;
    }

    .menu a:hover {
        background: rgba(0, 183, 255, 0.10);
    }
}


@media (max-width: 700px) {

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

    .hero {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-contenido {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-toggle {
        margin-left: auto;
        margin-right: 0;
    }

    .hero {
    padding-left: 12px;
    padding-right: 12px;
}

.navbar {
    padding-left: 12px;
    padding-right: 12px;
}

.hero-contenido {
    padding-left: 15px;
    padding-right: 15px;
}

.hero-botones {
    width: 100%;
    justify-content: center;
}

}


.codigo-flotante {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: rgba(8, 20, 35, 0.88);
    border: 1px solid rgba(0, 183, 255, 0.25);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    animation: flotarCodigo 5s ease-in-out infinite;
}

.codigo-header {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.codigo-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00b7ff;
    opacity: 0.7;
}

.codigo-contenido {
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #cbd5e1;
}

.codigo-contenido p {
    margin: 0;
}

.codigo-contenido span {
    color: #00b7ff;
}

.codigo-indentado {
    padding-left: 22px;
}

@keyframes flotarCodigo {
    0%,
    100% {
        transform: translateY(-50%) translateY(0);
    }

    50% {
        transform: translateY(-50%) translateY(-10px);
    }
}


/* Adaptación de la tarjeta de código */
@media (max-width: 1100px) {

    .codigo-flotante {
        position: static;
        transform: none;
        width: 100%;
        max-width: 320px;

        margin-top: 35px;

        animation: none;
    }

}



@media (max-width: 600px) {

    .codigo-flotante {
        max-width: 100%;
        padding: 16px;
        margin-top: 30px;
    }

    .codigo-contenido {
        font-size: 12px;
    }

}




/* ===== FOTO DE PERFIL ===== */

.foto-perfil {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.foto-perfil img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: 4px solid #00bfff;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.25);
}




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

.servicios {
    padding: 90px 20px;
}

.servicios-contenido {
    max-width: 1100px;
    margin: 0 auto;
}

.servicios h2 {
    margin-bottom: 15px;
}

.servicios-descripcion {
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.servicio-card {
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.15);
    transition: transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.servicio-icono {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 18px;
}

.servicio-card h3 {
    margin-bottom: 12px;
}

.servicio-card p {
    line-height: 1.7;
}


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

@media (max-width: 900px) {

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

}

@media (max-width: 650px) {

    .servicios {
        padding: 70px 20px;
    }

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

    .servicio-card {
        width: 100%;
    }

}


.servicios-cta {
    margin-top: 45px;
    text-align: center;
}

.servicios-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}


/* =========================================================
   CRILIZ DIGITAL — ETAPA 1
   Navbar + portada. El resto del sitio se conserva por ahora.
   ========================================================= */

:root {
    --criliz-navy: #0D132A;
    --criliz-navy-deep: #080D1D;
    --criliz-gold: #D4AF37;
    --criliz-white: #FFFFFF;
    --criliz-muted: #C9D0DE;
}

.hero {
    background:
        radial-gradient(circle at 78% 42%, rgba(212, 175, 55, 0.12), transparent 28%),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.04), transparent 22%),
        linear-gradient(135deg, var(--criliz-navy-deep), var(--criliz-navy));
    padding: 0 7%;
}

.hero::before {
    width: 430px;
    height: 430px;
    background: rgba(212, 175, 55, 0.07);
    filter: blur(95px);
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 92px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.marca-navbar {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.marca-navbar img {
    display: block;
    width: 235px;
    height: auto;
}

.menu a {
    color: #EEF2F8;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.menu a:hover {
    color: var(--criliz-gold);
}

.menu-toggle {
    color: var(--criliz-gold);
}

.hero-criliz {
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: 70px;
    padding: 70px 0 90px;
}

.hero-texto-criliz {
    max-width: 760px;
}

.saludo {
    color: var(--criliz-gold);
    font-size: 15px;
    letter-spacing: 5px;
    margin-bottom: 22px;
}

.hero-contenido h1 {
    max-width: 760px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -2.4px;
    margin-bottom: 26px;
}

.hero-contenido h1 span {
    color: var(--criliz-gold);
}

.descripcion {
    max-width: 700px;
    color: var(--criliz-muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.btn-principal,
.btn-secundario {
    padding: 14px 23px;
    border-radius: 8px;
}

.btn-principal {
    background: var(--criliz-gold);
    color: var(--criliz-navy-deep);
    box-shadow: 0 12px 34px rgba(212, 175, 55, 0.18);
}

.btn-secundario {
    border: 1px solid rgba(212, 175, 55, 0.85);
    color: #F2D978;
}

.btn-principal:hover,
.btn-secundario:hover {
    transform: translateY(-3px);
}

.hero-marca-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.hero-marca-halo {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .14);
    filter: blur(55px);
}

.hero-marca-visual img {
    position: relative;
    z-index: 1;
    width: min(72%, 310px);
    height: auto;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .24));
}

.hero-marca-visual p {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: #E9EDF5;
    font-size: 13px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    text-align: center;
}

/* Reutiliza la animación existente con el nuevo contenido */
.hero-texto-criliz .saludo,
.hero-texto-criliz h1,
.hero-texto-criliz .descripcion,
.hero-texto-criliz .hero-botones {
    opacity: 0;
    transform: translateY(25px);
    animation: aparecerSuave 0.8s ease forwards;
}

.hero-texto-criliz .saludo { animation-delay: .15s; }
.hero-texto-criliz h1 { animation-delay: .3s; }
.hero-texto-criliz .descripcion { animation-delay: .45s; }
.hero-texto-criliz .hero-botones { animation-delay: .6s; }

.hero-marca-visual {
    opacity: 0;
    transform: translateY(18px);
    animation: aparecerSuave .9s .55s ease forwards;
}

@media (max-width: 980px) {
    .hero-criliz {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
        padding-top: 55px;
    }

    .hero-texto-criliz,
    .descripcion {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-botones {
        justify-content: center;
    }

    .hero-marca-visual {
        width: min(100%, 560px);
        min-height: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar {
        min-height: 78px;
        padding: 12px 8px;
    }

    .marca-navbar img {
        width: 178px;
    }

    .menu {
        top: 76px;
        background: #10172D;
        border-color: rgba(212, 175, 55, .2);
    }

    .menu a:hover {
        background: rgba(212, 175, 55, .08);
    }

    .hero-criliz {
        min-height: auto;
        padding: 65px 15px 70px;
    }

    .hero-contenido h1 {
        font-size: clamp(42px, 12vw, 58px);
        letter-spacing: -1.6px;
    }

    .descripcion {
        font-size: 16px;
    }

    .hero-marca-visual {
        min-height: 310px;
        border-radius: 22px;
    }

    .hero-marca-visual img {
        width: min(72%, 245px);
    }

    .hero-marca-visual p {
        padding: 0 18px;
        font-size: 11px;
        letter-spacing: 1.8px;
    }
}


/* ================= CRILIZ DIGITAL - SERVICIOS ================= */
.servicios-criliz {
    padding: 95px 7%;
    background: #0D132A;
    color: #FFFFFF;
}

.contenedor-servicios {
    max-width: 1180px;
    margin: 0 auto;
}

.etiqueta-seccion {
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 12px;
}

.servicios-criliz h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}

.intro-servicios {
    max-width: 680px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 42px;
}

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

.tarjeta-servicio {
    padding: 30px 28px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-6px);
    border-color: #D4AF37;
    background: rgba(255,255,255,.06);
}

.icono-servicio {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 12px;
    background: rgba(212,175,55,.12);
    font-size: 1.55rem;
}

.tarjeta-servicio h3 {
    color: #D4AF37;
    font-size: 1.22rem;
    margin-bottom: 13px;
}

.tarjeta-servicio p {
    color: rgba(255,255,255,.74);
    line-height: 1.7;
    margin: 0;
}

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

    .servicios-criliz {
        padding: 75px 6%;
    }
}


/* ================= CRILIZ DIGITAL - PROYECTOS ================= */
.proyectos-criliz {
    padding: 95px 7%;
    background: #F7F8FB;
    color: #0D132A;
}

.contenedor-proyectos {
    max-width: 1180px;
    margin: 0 auto;
}

.proyectos-criliz h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}

.intro-proyectos {
    max-width: 760px;
    color: #5C6270;
    line-height: 1.7;
    margin-bottom: 42px;
}

.caso-proyecto {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(13,19,42,.08);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(13,19,42,.08);
}

.proyecto-imagen {
    overflow: hidden;
    border-radius: 16px;
    background: #0D132A;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.proyecto-tipo {
    display: inline-block;
    margin-bottom: 12px;
    color: #D4AF37;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.proyecto-contenido h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 24px;
}

.bloque-proyecto {
    margin-bottom: 20px;
}

.bloque-proyecto h4 {
    margin: 0 0 7px;
    color: #0D132A;
    font-size: 1rem;
}

.bloque-proyecto p {
    margin: 0;
    color: #5C6270;
    line-height: 1.7;
}

.funciones-proyecto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.funciones-proyecto span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.3);
    color: #0D132A;
    font-size: .86rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .caso-proyecto {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 22px;
    }

    .proyecto-imagen img {
        min-height: 240px;
    }

    .proyectos-criliz {
        padding: 75px 6%;
    }
}


/* ================= CRILIZ DIGITAL - CONTACTO ================= */
.contacto-criliz {
    padding: 95px 7%;
    background: #0D132A;
    color: #FFFFFF;
}

.contenedor-contacto {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.contacto-copy h2 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(2rem, 4.3vw, 3.4rem);
    line-height: 1.12;
}

.contacto-copy > p:last-child {
    max-width: 690px;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    font-size: 1.03rem;
}

.acciones-contacto {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.boton-contacto {
    display: block;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease;
}

.boton-contacto:hover {
    transform: translateY(-2px);
}

.boton-whatsapp {
    background: #D4AF37;
    color: #0D132A;
}

.boton-email {
    border: 1px solid rgba(212,175,55,.7);
    color: #FFFFFF;
    background: transparent;
}

.datos-contacto {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.datos-contacto span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.datos-contacto a {
    color: #FFFFFF;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-criliz {
    padding: 24px 7%;
    text-align: center;
    background: #090E20;
    color: rgba(255,255,255,.62);
    font-size: .9rem;
}

.footer-criliz strong {
    color: #D4AF37;
}

@media (max-width: 850px) {
    .contenedor-contacto {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .contacto-criliz {
        padding: 75px 6%;
    }
}


/* ================= CRILIZ DIGITAL - PASO 6: PULIDO ================= */
:root {
    --criliz-navy: #0D132A;
    --criliz-gold: #D4AF37;
    --criliz-white: #FFFFFF;
    --criliz-light: #F7F8FB;
    --criliz-text: #5C6270;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* Evita que los anclajes queden escondidos bajo la navegación */
section[id] {
    scroll-margin-top: 88px;
}

/* Estados de foco visibles para teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--criliz-gold);
    outline-offset: 4px;
}

/* Consistencia de botones */
a[class*="boton"],
.btn,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Mejora táctil y de legibilidad en pantallas pequeñas */
@media (max-width: 850px) {
    .grid-servicios,
    .caso-proyecto,
    .contenedor-contacto {
        width: 100%;
    }

    .tarjeta-servicio {
        padding: 26px 22px;
    }

    .funciones-proyecto {
        gap: 8px;
    }

    .funciones-proyecto span {
        font-size: .82rem;
    }

    .boton-contacto {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .servicios-criliz,
    .proyectos-criliz,
    .contacto-criliz {
        padding-left: 5%;
        padding-right: 5%;
    }

    .caso-proyecto {
        padding: 17px;
        border-radius: 16px;
    }

    .proyecto-imagen {
        border-radius: 12px;
    }

    .proyecto-imagen img {
        min-height: 200px;
    }

    .contacto-copy h2 {
        font-size: 2rem;
    }

    .footer-criliz {
        padding-left: 5%;
        padding-right: 5%;
        line-height: 1.6;
    }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
