/* Estilos globales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #acacac; /* Fondo neutro claro */
    color: #333; /* Color de texto oscuro para buena legibilidad */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

a {
    text-decoration:dotted;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

p {
    margin-bottom: 15px;
    color: #555; /* Color neutro para párrafos */
    font-size: 1.1rem; /* Tamaño de texto legible */
    text-align: center;
}

/* Header */
header {
    background-color: #272727;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
}

header .logo {
    font-size: 1.8em;
    color: #f6c90e;
    font-weight: bold;
}

header .nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .nav-item {
    display: inline-block;
}

header .nav-link {
    font-size: 1em;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header .nav-link:hover {
    color: #f6c90e;
    border-bottom: 2px solid #f6c90e;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8, #161616);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 30px;
}

#hero .btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#hero .btn-primary {
    background-color: #0066cc;
    border: none;
    color: #ffffff;
}

#hero .btn-primary:hover {
    background-color: #005bb5;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

#hero .btn-outline-light {
    color: #ffffff;
    border: 2px solid #ffffff;
}

#hero .btn-outline-light:hover {
    background-color: #ffffff;
    color: #0066cc;
    transform: translateY(-5px);
}

/* Fondo dinámico */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/1920x1080/?technology') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}

/* Secciones generales */
section {
    max-width: 1000px; /* Centrado con límite de ancho */
    margin: 40px auto; /* Espaciado entre secciones */
    padding: 40px;
    background-color: #020202; /* Fondo blanco para contraste */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Títulos de secciones */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

/* Texto de secciones */
section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Cards de habilidades */
.skill-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 15px;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: scale(1.1);
    background-color: #f1f1f1;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.skill-card i {
    font-size: 3.5em;
    color: #1a73e8;
    margin-bottom: 10px;
}

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

#projects li {
    background-color: #272727;
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#projects li:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Formulario de contacto */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #7777773f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form .form-control {
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

form .form-label{
    color: white;
}

form .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 5px rgba(26, 115, 232, 0.5);
}

form button {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1a202c;
    padding: 20px 0;
    text-align: center;
    color: #dddddd;
}

footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    header .nav {
        flex-direction: column;
        gap: 10px;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #skills .skill-card, #projects li {
        width: 100%;
        margin: 10px auto;
    }

    form {
        padding: 0 15px;
    }
    form {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background-color: #7777773f;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Navegación Oculta en Móvil */
header .nav {
    display: flex;
    gap: 20px;
}

header .menu-toggle {
    display: none; /* Oculto por defecto */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

header .nav.responsive {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    background: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

header .nav.responsive .nav-item {
    margin: 10px 0;
}

header .nav.responsive .nav-link {
    color: #f6c90e;
    text-decoration: none;
}

/* Media Query para Móviles */
@media screen and (max-width: 768px) {
    header .nav {
        display: none; /* Oculta la navegación */
    }

    header .menu-toggle {
        display: block; /* Muestra el botón hamburguesa */
    }
}

/* Media Query para ocultar el menú en móviles */
@media screen and (max-width: 768px) {
    header .nav {
        display: none; /* Oculta el menú */
    }

    header .menu-toggle {
        display: block; /* Muestra el botón hamburguesa */
    }

    header .nav.responsive {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
}

/* Header */
header {
    background-color: #272727;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.6s ease; /* Cambia la duración a 0.6s */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
