/* General */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #020b11;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1rem;
}

/* Navegación */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en varias filas */
}

nav ul li {
    font-size: 0.9rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Cambia los elementos a una lista vertical */
        gap: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.9rem;
    }

    nav ul li {
        font-size: 1rem;
    }
}

/* Sección */
.section {
    padding: 1rem 0;
    background-color: #fff;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #020b11;
    font-weight: 700;
}

/* Sobre mí */
.sobre-mi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}
/* Título "Sobre mí" */
#sobre-mi h2 {
    font-size: 2.5rem; /* Tamaño del título */
    color:#020b11;    /* Color del título */
    margin-bottom: 0.5rem;
    font-weight: 700;
}


.sobre-mi-texto {
    flex: 1;
    text-align: left;
    
}

.sobre-mi-texto p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.sobre-mi-texto .btn {
    display: inline-block;
    background-color:#020b11;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.sobre-mi-texto .btn:hover {
    background-color:#020b11;
}

.sobre-mi-imagen img {
    width: 300px;
    border-radius: 50%;
    border: 5px solid#020b11;
}


/* Habilidades */
/* Habilidades */
.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.habilidad {
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habilidad i {
    font-size: 3rem;
    color:#020b11;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.habilidad h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Efecto hover */
.habilidad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.habilidad:hover i {
    color: #fff;
    background-color: #020b11;
    padding: 0.5rem;
    border-radius: 50%;
}

.habilidad:hover h3 {
    color: #020b11;
}


/* Proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.proyecto {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.proyecto img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.proyecto h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.proyecto p {
    font-size: 0.9rem;
    color: #555;
}

/* Formulario */
form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input, form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form textarea {
    resize: none;
    height: 150px;
}

form button {
    background-color: #020b11;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color:#020b11;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

footer .social-links a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #020b11;
}
.carrusel {
    margin: 0 auto; /* Centra el carrusel */
}


.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Botones del carrusel */
.carrusel .prev, .carrusel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carrusel .prev {
    left: 10px;
}

.carrusel .next {
    right: 10px;
}

.carrusel .prev:hover, .carrusel .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carrusel .prev:focus, .carrusel .next:focus {
    outline: none;
}

.carrusel .prev i, .carrusel .next i {
    font-size: 1.5rem;
}

/* Sección Contacto */
.contacto-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contacto-section h2 {
    font-size: 2.5rem;
    color: #020b11;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contacto-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Estilo de los enlaces de redes sociales */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    font-size: 1.5rem;
    color: #020b11;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 2rem;
    color: #020b11;
}

/* Efecto hover */
.social-link:hover {
    transform: translateY(-5px);
    color: #fff;
    background-color: #020b11;
}

.social-link:hover i {
    color: #fff;
}


#servicio-remoto {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.servicio-remoto-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.explicacion, .instrucciones {
    flex: 1;
    min-width: 280px;
}

.grafico {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

h3 {
    color: #333;
}

p, ul, ol {
    color: #666;
}

a {
    color: #28a745;
}

a:hover {
    text-decoration: underline;
}

video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* Responsivo */
@media (max-width: 768px) {
    .sobre-mi-container {
        flex-direction: column;
    }

    .sobre-mi-texto {
        text-align: center;
    }
}