        /* 1. VARIABLES: Para cambiar colores en un solo lugar */
        :root {
            --color-principal: #d31746;
            --color-secundario: #201a1a;
            --color-terciario: #ffebb4;
            --imagen-fondo: url(img/fondo.png);
            --background-image: url(img/fondo.png);
            --color-texto: #6e132a;
            --fuente-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* 2. RESET: Limpiamos márgenes por defecto del navegador */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--fuente-base);
            line-height: 1.6;
            color: var(--color-texto);
            background-image: url(img/fondo.png);
            background-position: all;
            background-repeat: no-repeat;
            background-size: cover;
        }

        /* 3. FLEXBOX: Usado en la navegación para alinear elementos */
        nav {
            background-color: #ffebb4;
            padding: 1rem 5%;
            display: flex;
            /* ACTIVAMOS FLEXBOX */
            justify-content: space-between;
            /* Espacio entre logo y enlaces */
            align-items: center;
            /* Centrado vertical */
            position: sticky;
            top: 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 20px;
            /* Espacio entre cada link */
        }

        .nav-links a {
            text-decoration: none;
            color: var(--color-secundario);
            font-weight: 600;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--color-principal);
        }

        /* 4. HERO SECTION: Usando Flexbox para centrar contenido */
        header {
            height: 40vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-content: center;
            align-items: flex-end;
            text-align: end;
            background-image: url(img/intento.png);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            color: #ffebb4;
            padding: 90px;
        }

        .logotipo {
            height: 200px;
            align-self: flex-start;
        }

        header h1 {
            font-size: 3rem;
            margin-left: 350px;
        }

        .badge {
            background: var(--color-principal);
            padding: 2px 10px;
            border-radius: 30px;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        /* 5. SECCIONES GENERALES */
        section {
            padding: 80px 10%;
        }

        .cinta {
            height: 10px;
            background-size: 20px;
        }

        h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 3rem;
            color: var(--color-terciario);
            text-shadow: 0 0 7px var(--color-secundario);
        }

        /* 6. CSS GRID: Usado para la cuadrícula de proyectos */
        .grid-proyectos {
            display: grid;
            /* ACTIVAMOS GRID */
            /* Definimos 3 columnas iguales, pero que se ajusten solas */
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .tarjeta {
            background: #130303;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(216, 214, 214, 0.05);
            transition: transform 0.3s;
        }

        .tarjeta:hover {
            transform: translateY(-10px);
        }

        .tarjeta img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            /* Mantiene la proporción de la imagen */
            background-color: #ddd;
        }

        .contenido-tarjeta {
            padding: 20px;
            color: #ffebb4;
        }

        /* 7. GRID: Usado para habilidades (Skills) */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            max-width: 600px;
            margin: 0 auto;
        }

        .skill-item {
            background: #e2e8f0;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
            font-weight: bold;
            box-shadow: 0 0 5px var(--color-secundario);
        }

        /* 8. FORMULARIO */
        form {
            max-width: 500px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        input,
        textarea,
        button {
            padding: 12px;
            border: 1px solid #ffffff;
            border-radius: 5px;
            font-size: 1rem;
        }

        button {
            background-color: var(--color-principal);
            color: white;
            border: none;
            cursor: pointer;
            font-weight: bold;
        }

        /* 9. RESPONSIVE: Media Queries para celulares */
        @media (max-width: 768px) {
            nav {
                flex-direction: column;
                gap: 15px;
            }

            header h1 {
                font-size: 2rem;
            }

            .skills-container {
                grid-template-columns: 1fr;
            }
        }

        image {
            max-width: 100%;
            width: 150px;
            /* Ajusta según sea necesario */
            height: auto;
            display: auto;

        }

        hr {
            border: none;
            background-color: #130303;
            height: 20px;
        }

        .hr2 {
            border: none;
            background-color: transparent;
            height: 20px;

        }

        .soy {
            height: 260px;
            color: #ffebb4;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            align-content: center;
            text-align: left;
            gap: 25px;
            flex-wrap: wrap;
        }

        .edu {
            height: 60px;
            color: #ffebb4;
            background: var(--color-principal);
            padding: 5px;
            border-radius: 20px;
            margin-bottom: 25px;
            text-align: center;
        }

        .gif {
            align-self: center;
            align-items: center;
            height: auto;
            width: auto;
            border-radius: 25px;

        }

        .demo {
            height: auto;
            width: 100%;
            border-radius: 25px;
            object-position: center;
            shape-margin: 0 0 5px var(--color-terciario);
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            align-content: center;
            text-align: end;
            align-self: center;
        }

        .patos {
            background-image: url(img/taza/2.jpg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            backdrop-filter: blur(50px);
        }

        footer {
            text-align: center;
            padding: 20px;
            color: #ffffff;
        }