/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
}

/* Secciones */
section {
    padding: 40px 0;
    border-bottom: #ccc 1px solid;
    background: #fff;
    margin-bottom: 20px;
}

section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Acerca de Mí */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    flex-shrink: 0;
    margin: 0 auto; /* Centrar en móvil */
}

.about-content div {
    flex: 1;
    min-width: 280px; /* Asegura que el texto no se haga demasiado pequeño */
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-content ul li::before {
    content: '🚀'; /* Icono de cohete */
    position: absolute;
    left: 0;
    color: #007bff;
}

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

.project-item {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.project-item h3 {
    color: #007bff;
    margin-top: 0;
}

.project-item a {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.project-item a:hover {
    background: #0056b3;
}

/* Contacto */
#contact ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

#contact ul li {
    margin-bottom: 10px;
}

#contact ul li a {
    color: #007bff;
    text-decoration: none;
}

#contact ul li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: #333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}