# Página web profesional — CSS

```css
/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.navbar {
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.logo span {
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #374151;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 75px;
    background:
        radial-gradient(circle at 80% 20%, #dbeafe, transparent 30%),
        #f8fafc;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.hero-subtitle {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #2563eb;
}

.hero-description {
    max-width: 650px;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================
   BOTONES
========================= */

.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #172033;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}


/* =========================
   VENTANA DE CÓDIGO
========================= */

.code-window {
    background: #111827;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.window-header {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background: #1f2937;
}

.window-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
}

.code-content {
    padding: 35px;
    font-family: monospace;
    color: #d1d5db;
    font-size: 1rem;
}

.keyword {
    color: #c084fc;
}

.string {
    color: #86efac;
}

.number {
    color: #facc15;
}

.indent {
    padding-left: 20px;
}

.indent-2 {
    padding-left: 40px;
}


/* =========================
   SECCIONES
========================= */

.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.8rem;
}

.section-title.light h2 {
    color: white;
}

.section-title.light p {
    color: #93c5fd;
}


/* =========================
   SOBRE MI
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.25);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #64748b;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 45px;
    margin-top: 35px;
}

.stats div {
    display: flex;
    flex-direction: column;
}

.stats strong {
    font-size: 2rem;
    color: #2563eb;
}

.stats span {
    color: #64748b;
    font-size: 0.85rem;
}


/* =========================
   SERVICIOS
========================= */

.section-dark {
    background: #111827;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 30px;
    border: 1px solid #374151;
    border-radius: 12px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #60a5fa;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #60a5fa;
}

.service-card h3 {
    color: white;
    margin-bottom: 15px;
}

.service-card p {
    color: #9ca3af;
}


/* =========================
   PROYECTOS
========================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 35px;
    border-radius: 12px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-number {
    color: #2563eb;
    font-weight: 800;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-card p {
    color: #64748b;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags span {
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* =========================
   TECNOLOGIAS
========================= */

.technologies {
    padding: 100px 0;
    background: #0f172a;
}

.tech-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-list span {
    padding: 12px 20px;
    border: 1px solid #334155;
    border-radius: 30px;
    color: #cbd5e1;
}


/* =========================
   CONTACTO
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-item strong {
    color: #2563eb;
}

.contact-item span {
    color: #64748b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2563eb;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #020617;
    color: white;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer p {
    color: #94a3b8;
}


/* =========================
   BOTÓN ARRIBA
========================= */

.btn-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
}

.btn-top.show {
    display: block;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 25px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}

/* =====================================================
   FOTO PRINCIPAL DEL HERO
===================================================== */

.hero-profile {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-container {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 4 / 5;
}

.hero-photo {
    width: 100%;
    height: 100%;
    padding: 8px;

    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.25);

    position: relative;
    z-index: 2;
}

.hero-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    border-radius: 23px;

    background: #e5e7eb;
}


/* =====================================================
   ETIQUETA SOBRE LA FOTO
===================================================== */

.profile-label {
    position: absolute;

    z-index: 5;

    left: 25px;
    right: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 18px;

    border-radius: 14px;

    background: rgba(15, 23, 42, 0.90);

    backdrop-filter: blur(10px);

    color: white;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-label strong {
    display: block;

    font-size: 0.95rem;
}

.profile-label small {
    display: block;

    margin-top: 3px;

    color: #cbd5e1;
}

.status-dot {
    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.15);
}


/* =====================================================
   DECORACIÓN
===================================================== */

.photo-decoration {
    position: absolute;

    border-radius: 50%;

    z-index: 1;
}

.decoration-one {
    width: 90px;
    height: 90px;

    background: #2563eb;

    top: -25px;
    right: -25px;
}

.decoration-two {
    width: 65px;
    height: 65px;

    background: #7c3aed;

    bottom: -20px;
    left: -20px;
}


/* =====================================================
   FOTO SOBRE MÍ
===================================================== */

.about-image {
    display: flex;

    justify-content: center;

    align-items: center;
}

.about-photo-wrapper {
    position: relative;

    width: min(330px, 100%);

    aspect-ratio: 4 / 5;

    padding: 7px;

    border-radius: 25px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    box-shadow:
        0 25px 60px rgba(37, 99, 235, 0.25);
}

.about-photo-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    border-radius: 19px;
}


/* =====================================================
   DISPONIBLE
===================================================== */

.photo-badge {
    position: absolute;

    left: 20px;
    bottom: 20px;

    padding: 9px 15px;

    border-radius: 30px;

    background: rgba(15, 23, 42, 0.92);

    color: white;

    font-size: 0.85rem;

    font-weight: 600;

    backdrop-filter: blur(8px);
}

.photo-badge span {
    color: #22c55e;

    margin-right: 5px;
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-profile {
        order: 2;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo-container {
        width: min(360px, 80vw);
    }

}


/* =====================================================
   RESPONSIVE - CELULAR
===================================================== */

@media (max-width: 600px) {

    .hero {
        padding-top: 110px;
        padding-bottom: 70px;
    }


    .hero h1 {
        font-size: 2.4rem;
    }


    .hero-description {
        font-size: 1rem;
    }


    .hero-photo-container {
        width: min(290px, 82vw);
    }


    .profile-label {
        left: 15px;
        right: 15px;
        bottom: 15px;

        padding: 11px 13px;
    }


    .profile-label strong {
        font-size: 0.82rem;
    }


    .profile-label small {
        font-size: 0.72rem;
    }


    .decoration-one {
        width: 55px;
        height: 55px;

        top: -15px;
        right: -15px;
    }


    .decoration-two {
        width: 45px;
        height: 45px;

        bottom: -15px;
        left: -15px;
    }


    .about-photo-wrapper {
        width: min(280px, 80vw);
    }

}





/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #e5e7eb;

    transition: 0.3s;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;
}


/* =====================================================
   LOGO
===================================================== */

.logo {

    text-decoration: none;

    color: #111827;

    font-size: 1.4rem;

    font-weight: 800;

    white-space: nowrap;
}

.logo span {

    color: #2563eb;

}


/* =====================================================
   MENÚ
===================================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;

    margin: 0;

    padding: 0;
}


.nav-menu li {

    margin: 0;

    padding: 0;

}


.nav-menu a {

    text-decoration: none;

    color: #374151;

    font-size: 0.95rem;

    font-weight: 600;

    transition: color 0.3s ease;

}


.nav-menu a:hover {

    color: #2563eb;

}


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {

    display: none;

    width: 45px;

    height: 45px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    z-index: 10001;
}


/* Líneas del botón */

.menu-toggle span {

    display: block;

    width: 26px;

    height: 3px;

    background: #111827;

    border-radius: 5px;

    transition: all 0.3s ease;

}


/* =====================================================
   ANIMACIÓN DEL HAMBURGUESA
===================================================== */

.menu-toggle.active span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}


/* =====================================================
   TABLET / CELULAR
===================================================== */

@media (max-width: 900px) {


    /* Mostrar botón */

    .menu-toggle {

        display: flex;

    }


    /* Menú */

    .nav-menu {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 0;

        background: white;

        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 15px 30px rgba(0,0,0,0.10);


        /* OCULTO */

        visibility: hidden;

        opacity: 0;

        transform: translateY(-15px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;

    }


    /* MENÚ ABIERTO */

    .nav-menu.active {

        visibility: visible;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

    }


    /* Elementos */

    .nav-menu li {

        width: 100%;

        text-align: center;

        border-bottom: 1px solid #f1f5f9;

    }


    .nav-menu li:last-child {

        border-bottom: none;

    }


    .nav-menu a {

        display: block;

        width: 100%;

        padding: 18px 20px;

        font-size: 1rem;

    }


    .nav-menu a:hover {

        background: #eff6ff;

    }

}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #e5e7eb;

    transition: 0.3s;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;
}


/* =====================================================
   LOGO
===================================================== */

.logo {

    text-decoration: none;

    color: #111827;

    font-size: 1.4rem;

    font-weight: 800;

    white-space: nowrap;
}

.logo span {

    color: #2563eb;

}


/* =====================================================
   MENÚ
===================================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;

    margin: 0;

    padding: 0;
}


.nav-menu li {

    margin: 0;

    padding: 0;

}


.nav-menu a {

    text-decoration: none;

    color: #374151;

    font-size: 0.95rem;

    font-weight: 600;

    transition: color 0.3s ease;

}


.nav-menu a:hover {

    color: #2563eb;

}


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {

    display: none;

    width: 45px;

    height: 45px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    z-index: 10001;
}


/* Líneas del botón */

.menu-toggle span {

    display: block;

    width: 26px;

    height: 3px;

    background: #111827;

    border-radius: 5px;

    transition: all 0.3s ease;

}


/* =====================================================
   ANIMACIÓN DEL HAMBURGUESA
===================================================== */

.menu-toggle.active span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}


/* =====================================================
   TABLET / CELULAR
===================================================== */

@media (max-width: 900px) {


    /* Mostrar botón */

    .menu-toggle {

        display: flex;

    }


    /* Menú */

    .nav-menu {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 0;

        background: white;

        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 15px 30px rgba(0,0,0,0.10);


        /* OCULTO */

        visibility: hidden;

        opacity: 0;

        transform: translateY(-15px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;

    }


    /* MENÚ ABIERTO */

    .nav-menu.active {

        visibility: visible;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

    }


    /* Elementos */

    .nav-menu li {

        width: 100%;

        text-align: center;

        border-bottom: 1px solid #f1f5f9;

    }


    .nav-menu li:last-child {

        border-bottom: none;

    }


    .nav-menu a {

        display: block;

        width: 100%;

        padding: 18px 20px;

        font-size: 1rem;

    }


    .nav-menu a:hover {

        background: #eff6ff;

    }

}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #e5e7eb;

    transition: 0.3s;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;
}


/* =====================================================
   LOGO
===================================================== */

.logo {

    text-decoration: none;

    color: #111827;

    font-size: 1.4rem;

    font-weight: 800;

    white-space: nowrap;
}

.logo span {

    color: #2563eb;

}


/* =====================================================
   MENÚ
===================================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;

    margin: 0;

    padding: 0;
}


.nav-menu li {

    margin: 0;

    padding: 0;

}


.nav-menu a {

    text-decoration: none;

    color: #374151;

    font-size: 0.95rem;

    font-weight: 600;

    transition: color 0.3s ease;

}


.nav-menu a:hover {

    color: #2563eb;

}


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {

    display: none;

    width: 45px;

    height: 45px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    z-index: 10001;
}


/* Líneas del botón */

.menu-toggle span {

    display: block;

    width: 26px;

    height: 3px;

    background: #111827;

    border-radius: 5px;

    transition: all 0.3s ease;

}


/* =====================================================
   ANIMACIÓN DEL HAMBURGUESA
===================================================== */

.menu-toggle.active span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}


/* =====================================================
   TABLET / CELULAR
===================================================== */

@media (max-width: 900px) {


    /* Mostrar botón */

    .menu-toggle {

        display: flex;

    }


    /* Menú */

    .nav-menu {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 0;

        background: white;

        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 15px 30px rgba(0,0,0,0.10);


        /* OCULTO */

        visibility: hidden;

        opacity: 0;

        transform: translateY(-15px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;

    }


    /* MENÚ ABIERTO */

    .nav-menu.active {

        visibility: visible;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

    }


    /* Elementos */

    .nav-menu li {

        width: 100%;

        text-align: center;

        border-bottom: 1px solid #f1f5f9;

    }


    .nav-menu li:last-child {

        border-bottom: none;

    }


    .nav-menu a {

        display: block;

        width: 100%;

        padding: 18px 20px;

        font-size: 1rem;

    }


    .nav-menu a:hover {

        background: #eff6ff;

    }

}


/* responsive 13/08/2026 */

/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #e5e7eb;

    transition: 0.3s;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;
}


/* =====================================================
   LOGO
===================================================== */

.logo {

    text-decoration: none;

    color: #111827;

    font-size: 1.4rem;

    font-weight: 800;

    white-space: nowrap;
}

.logo span {

    color: #2563eb;

}


/* =====================================================
   MENÚ
===================================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;

    margin: 0;

    padding: 0;
}


.nav-menu li {

    margin: 0;

    padding: 0;

}


.nav-menu a {

    text-decoration: none;

    color: #374151;

    font-size: 0.95rem;

    font-weight: 600;

    transition: color 0.3s ease;

}


.nav-menu a:hover {

    color: #2563eb;

}


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {

    display: none;

    width: 45px;

    height: 45px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    z-index: 10001;
}


/* Líneas del botón */

.menu-toggle span {

    display: block;

    width: 26px;

    height: 3px;

    background: #111827;

    border-radius: 5px;

    transition: all 0.3s ease;

}


/* =====================================================
   ANIMACIÓN DEL HAMBURGUESA
===================================================== */

.menu-toggle.active span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}


/* =====================================================
   TABLET / CELULAR
===================================================== */

@media (max-width: 900px) {


    /* Mostrar botón */

    .menu-toggle {

        display: flex;

    }


    /* Menú */

    .nav-menu {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 0;

        background: white;

        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 15px 30px rgba(0,0,0,0.10);


        /* OCULTO */

        visibility: hidden;

        opacity: 0;

        transform: translateY(-15px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;

    }


    /* MENÚ ABIERTO */

    .nav-menu.active {

        visibility: visible;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

    }


    /* Elementos */

    .nav-menu li {

        width: 100%;

        text-align: center;

        border-bottom: 1px solid #f1f5f9;

    }


    .nav-menu li:last-child {

        border-bottom: none;

    }


    .nav-menu a {

        display: block;

        width: 100%;

        padding: 18px 20px;

        font-size: 1rem;

    }


    .nav-menu a:hover {

        background: #eff6ff;

    }

}


/* =====================================================
   CELULAR PEQUEÑO
===================================================== */

@media (max-width: 500px) {

    .navbar {

        height: 65px;

    }


    .nav-menu {

        top: 65px;

    }


    .logo {

        font-size: 1.1rem;

    }

}