/* Elimina la barra inicial y la ruta completa, usa rutas relativas */
@import url('../components/atoms/atoms.css');
@import url('../components/molecules/molecules.css');
@import url('../components/organism/organism.css');

/* Importación de nuevos componentes de Proyectos */
@import url('../components/molecules/project-card.css');
@import url('../components/organism/projects-grid.css');

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

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Agrega esto para que el padding no rompa el ancho */
}

/* TASK 3: Imágenes responsivas globales */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1c1e; /* Se agregó el punto y coma faltante */
}

/* Estilos para iconos SVG (clase size-6) */
/* Esta clase es común en frameworks como Tailwind CSS para definir tamaños. */
/* Aquí la definimos para que tus SVGs en los botones tengan un tamaño consistente. */
.size-6 {
    width: 1.5rem; /* Equivalente a 24px si 1rem = 16px. Ajusta según tu base de rem. */
    height: 1.5rem;
}

/* Estilos para iconos Devicon en la sección de Tech Skills */
.skills-list-tecno li i {
    font-size: 3rem; /* Tamaño de los iconos de tecnología para que sean visibles. */
    /* Los colores de devicon suelen venir con la clase 'colored' que ya aplicas. */
}

/* Estilos para iconos Font Awesome en Soft Skills y Contacto */
.soft-skills-list li i,
.info-list li i {
    font-size: 1.5rem; /* Tamaño de los iconos de soft skills y contacto. */
    color: var(--accent-purple); /* Asignamos un color de tu paleta para que destaquen. */
    margin-right: 10px; /* Añadimos un pequeño espacio entre el icono y el texto. */
}

/* --- RESPONSIVE DESIGN --- */
/* Configuración Escritorio (Reset para el menú) */
@media (min-width: 769px) {
    .menuburger, .cerrar-menu {
        display: none;
    }
    nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }
    .menu-list {
        display: flex;
        gap: 20px;
    }
}

/* Tablet y Celulares Grandes (max-width: 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-container { gap: 2rem; }
    .about-container { margin: 20px; padding: 25px; }
}

/* TASK 2: Media Query para Tablets (específico) */
@media (min-width: 769px) and (max-width: 1024px) {
    .skills-list-tecno {
        grid-template-columns: repeat(3, 1fr); /* Galería de 3 columnas en tablet */
    }
    .menu-list a {
        font-size: 0.9rem;
    }
    .logo  {
        width: 8rem;
        
    }
    .header-container {
        padding: 0;
    }
}

/* Celulares (max-width: 768px) */
@media (max-width: 768px) {
    /* Header / Navegación */
    .menuburger {
        display: block;
    }

    .menuburger button {
        background: none;
        border: 1px solid var(--accent-purple);
        width: 38px;
        height: 32px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        padding: 6px;
        border-radius: 5px;
    }

    .menuburger button span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-white, #ffffff);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .cerrar-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto inicialmente a la derecha */
        width: 80%;
        height: 100vh;
        background-color: #1a1c1e;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
        border-left: 2px solid var(--accent-purple); /* Borde para que el menú se vea */
    }

    nav.nav-visible {
        right: 0; /* Desliza el menú a la vista */
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 1rem 1.5rem;
    }

    .menu-list  {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    
    /* TASK 2: Galería de imágenes (Tech Skills) reducida a 2 columnas en móviles */
    .skills-list-tecno {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero Section */
    .hero-container {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo */
        text-align: center;
        gap: 3rem;
        padding: 40px 20px;
    }
    .hero-img img { width: 220px; }
    .hero-buttons { justify-content: center; }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .vertical-divider { display: none; } /* Quitamos la línea vertical */

    /* Contacto */
    .contact-grid { flex-direction: column; }

    /* Footer */
    .follow-bar {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
    }
}

/* Celulares Pequeños (max-width: 480px) */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .logo img { width: 150px; }
}