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

    :root {
        --azul: #0D6EFD;
        --azul-oscuro: #083D91;
        --gris: #4C5C75;
        --borde: #DCE7F7;
    }

    body {
        font-family: 'Inter', sans-serif;
        line-height: 1.7;
        color: #0E1B2E;
        background: white;
    }

    img {
        max-width: 100%;
        display: block;
    }

    a {
        color: var(--azul);
        text-decoration: none;
    }

    a:hover {
        color: var(--azul-oscuro);
    }

    h1, h2, h3 {
        font-family: 'Outfit', sans-serif;
        line-height: 1.2;
        color: #052A6E;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.15rem; }

    p {
        color: var(--gris);
    }

    .contenedor {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 24px;
    }

    section {
        padding: 60px 0;
    }

    section.alt {
        background: #F2F7FF;
    }

    .etiqueta {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--azul);
        margin-bottom: 8px;
    }

    .script {
        font-family: 'Caveat', cursive;
        font-size: 1.15em;
        color: var(--azul);
    }

    .titulo-seccion {
        margin-bottom: 30px;
        max-width: 600px;
    }

    .grid-2 {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .grid-3 {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .grid-4 {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .skip-link {
        position: absolute;
        left: -9999px;
    }

    .skip-link:focus {
        left: 10px;
        top: 10px;
        background: var(--azul-oscuro);
        color: white;
        padding: 10px 16px;
        border-radius: 6px;
    }

    .cabecera {
        background: white;
        border-bottom: 1px solid var(--borde);
        padding: 14px 0;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .cabecera .contenedor {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .logo {
        margin-right: auto;
        font-family: 'Outfit', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        color: #052A6E;
    }

    .logo-bruce {
        font-family: 'Caveat', cursive;
        font-size: 1.6rem;
        color: var(--azul);
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 4px;
        flex-wrap: wrap;
    }

    nav a {
        display: block;
        padding: 8px 12px;
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: #052A6E;
        border-radius: 6px;
        position: relative;
    }

    nav a:hover {
        background: #E6F0FF;
        color: var(--azul);
    }

    nav a.activo {
        color: var(--azul);
    }

    nav a.activo::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 4px;
        height: 2px;
        background: var(--azul);
        border-radius: 2px;
    }

    .btn-whatsapp {
        background: var(--azul);
        color: white;
        padding: 10px 20px;
        border-radius: 30px;
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        font-size: 14px;
    }

    .btn-whatsapp:hover {
        background: var(--azul-oscuro);
        color: white;
    }

    .boton {
        display: inline-block;
        background: var(--azul);
        color: white;
        padding: 13px 28px;
        border-radius: 30px;
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }

    .boton:hover {
        background: var(--azul-oscuro);
        color: white;
    }

    .boton-claro {
        background: white;
        color: var(--azul-oscuro);
        border: 2px solid #E6F0FF;
    }

    .boton-claro:hover {
        background: #E6F0FF;
        color: #052A6E;
    }

    .botones {
        display: flex;
        gap: 12px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .portada {
        background: linear-gradient(135deg, #052A6E, #083D91);
        color: white;
        padding: 70px 0 80px;
    }

    .portada .grid-2 {
        grid-template-columns: 1.4fr 1fr;
        align-items: center;
        gap: 40px;
    }

    .portada .etiqueta {
        color: #8FB8FF;
    }

    .portada h1 {
        color: white;
        margin: 10px 0;
    }

    .portada p {
        color: #D3E3FF;
    }

    .portada-rol {
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        font-size: 18px;
        color: white;
        border-left: 4px solid var(--azul);
        padding-left: 12px;
        margin-top: 16px;
    }

    .portada .boton-claro {
        background: transparent;
        border-color: rgba(255, 255, 255, .5);
        color: white;
    }

    .portada .boton-claro:hover {
        background: rgba(255, 255, 255, .15);
        color: white;
    }

    .tarjeta-perfil {
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 20px;
        padding: 28px;
        text-align: center;
    }

    .avatar {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: var(--azul);
        color: white;
        font-family: 'Outfit', sans-serif;
        font-size: 2rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
    }

    .tarjeta-perfil h2 {
        color: white;
        font-size: 1.2rem;
    }

    .tarjeta-perfil p {
        font-size: 14px;
        margin-top: 4px;
    }

    .tarjeta {
        background: white;
        border: 1px solid var(--borde);
        border-radius: 14px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        transition: transform .2s, box-shadow .2s;
    }

    .tarjeta:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(8, 61, 145, .1);
    }

    .tarjeta .boton {
        align-self: flex-start;
        margin-top: auto;
    }

    .badges {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .badge {
        background: #E6F0FF;
        color: var(--azul-oscuro);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .lista {
        list-style: none;
    }

    .lista li {
        padding-left: 20px;
        position: relative;
        color: var(--gris);
        margin-bottom: 8px;
    }

    .lista li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--azul);
    }

    .imagen-proyecto {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        overflow: hidden;
        background: #E6F0FF;
    }

    .imagen-proyecto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .numero-proyecto {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--azul);
    }

    .cta {
        background: var(--azul);
        color: white;
        padding: 30px;
        border-radius: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .cta h2 {
        color: white;
    }

    .cta p {
        color: #D3E3FF;
        margin-top: 6px;
    }

    .cta .boton {
        background: white;
        color: var(--azul-oscuro);
    }

    .cta .boton:hover {
        background: #E6F0FF;
    }

    .pie {
        background: #052A6E;
        color: #A9C4EC;
        padding: 40px 0;
        margin-top: 20px;
    }

    .pie .contenedor {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .pie strong {
        display: block;
        color: white;
        font-family: 'Outfit', sans-serif;
        margin-top: 4px;
    }

    .pie p {
        color: #A9C4EC;
        font-size: 13px;
    }

    .enlaces-pie {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }

    .pie a {
        color: white;
        font-size: 14px;
    }

    .pie a:hover {
        color: #9CC6FF;
    }

    .copyright {
        max-width: 1140px;
        margin: 20px auto 0;
        padding: 16px 24px 0;
        border-top: 1px solid rgba(255, 255, 255, .15);
        font-size: 13px;
        color: #9DB9E4;
    }

    .whatsapp-flotante {
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: var(--azul);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 8px 20px rgba(8, 61, 145, .4);
        z-index: 100;
    }

    .whatsapp-flotante:hover {
        color: white;
        background: var(--azul-oscuro);
    }

    .encabezado-pagina {
        background: #F2F7FF;
        padding: 50px 0;
        border-bottom: 1px solid var(--borde);
    }

    form {
        background: white;
        border: 1px solid var(--borde);
        border-radius: 14px;
        padding: 26px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .campo {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    label {
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        font-size: 14px;
    }

    input, textarea {
        padding: 12px 14px;
        border: 1px solid var(--borde);
        border-radius: 8px;
        font-family: inherit;
        font-size: 15px;
        background: #F2F7FF;
    }

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--azul);
        background: white;
    }

    textarea {
        min-height: 130px;
        resize: vertical;
    }

    .contacto-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 24px;
    }

    .dato {
        padding: 10px 0;
        border-bottom: 1px solid var(--borde);
    }

    .dato strong {
        display: block;
        font-family: 'Outfit', sans-serif;
        color: #052A6E;
        font-size: 14px;
    }

    .skills {
        list-style: none;
    }

    .skills li {
        margin-bottom: 16px;
    }

    .skill-nombre {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .skill-barra {
        background: #E6F0FF;
        height: 8px;
        border-radius: 4px;
        overflow: hidden;
    }

    .skill-nivel {
        height: 100%;
        background: var(--azul);
        border-radius: 4px;
    }

    .estrellas {
        color: var(--azul);
        font-size: 18px;
        letter-spacing: 2px;
    }

    .precio {
        font-family: 'Outfit', sans-serif;
        font-size: 17px;
        font-weight: 700;
        color: var(--azul-oscuro);
    }

    .faq {
        background: white;
        border: 1px solid var(--borde);
        border-radius: 10px;
        padding: 16px 20px;
        margin-bottom: 10px;
    }

    .faq summary {
        cursor: pointer;
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        color: #052A6E;
    }

    .faq p {
        margin-top: 10px;
    }

    .nav-proyectos {
        display: flex;
        gap: 12px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    @media (max-width: 900px) {
        .portada .grid-2 { grid-template-columns: 1fr; }
        .contacto-grid { grid-template-columns: 1fr; }
        .cabecera .contenedor { justify-content: center; }
        nav {
            order: 3;
            width: 100%;
        }
        nav ul { justify-content: center; }
    }

    @media (max-width: 600px) {
        h1 { font-size: 1.7rem; }
        h2 { font-size: 1.35rem; }
        section { padding: 40px 0; }
        .contenedor { padding: 0 16px; }
        .botones { flex-direction: column; }
        .botones .boton { width: 100%; text-align: center; }
        .cta {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
        }
        .pie .contenedor {
            flex-direction: column;
            text-align: center;
        }
        .enlaces-pie { justify-content: center; }
    }