/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* HEADER */
header {
    background: linear-gradient(90deg, #0077b6 60%, #00b4d8 100%);
    color: #fff;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(162,89,198,0.10);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    position: relative;
    z-index: 10;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* NAVEGACIÓN */
nav {
    background: transparent;
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 0;
    padding: 18px 0 12px 0;
    background: linear-gradient(90deg, #00b4d8 60%, #90e0ef 100%);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}

nav ul li {
    display: inline;
}

nav ul li a,
nav a {
    text-decoration: none;
    color: #fff;
    background: none;
    font-weight: bold;
    padding: 10px 24px;
    margin: 0 2px;
    border-radius: 8px;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(0,123,255,0.04);
}

nav ul li a:hover,
nav a:hover {
    background: linear-gradient(90deg, #48cae4 60%, #0077b6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(162,89,198,0.12);
    transform: translateY(-2px) scale(1.07);
}

/* MAIN Y SECCIONES */
main {
    max-width: 1000px;
    margin: 10px auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.container {
    width: 100%;
}

.section {
    margin-bottom: 40px;
}

h2, h3 {
    color: #0077b6;
    margin-bottom: 5px;
}

p {
    max-width: 1000px;
    text-align: justify;
    margin-bottom: 5px;
}

/* SOBRE MI Y TARJETAS */
.card {
    background: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* HABILIDADES */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    margin: 16px auto 32px auto;
    max-width: 900px;
}

.skill-item {
    background: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    color: #a259c6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-size: 1.1em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border 0.2s;
}
.skill-item:hover {
    transform: translateY(-10px) scale(1.08);
    background: #90e0ef;
    color: #03045e;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.18);
    border: 2px solid #00b4d8;
}

/* CONTACTO */
form {
    max-width: 500px;
    margin: 0 auto;
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

label {
    font-weight: bold;
    color: #000000;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

input[type="submit"] {
    background-color: #00b4d8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background-color: #0077b6;
}

/* FOOTER Y REDES */
footer {
    background: linear-gradient(90deg, #00b4d8 60%, #90e0ef 100%);
    color: #fff;
    text-align: center;
    padding: 24px 0 10px 0;
    width: 100%;
    box-sizing: border-box;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -4px 12px rgba(255,184,107,0.10);
    position: static;
    /* Removed min-width and left properties for centering */
}

.social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
}

.social-icons img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-icons img:hover {
    transform: scale(1.18) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(162,89,198,0.18);
    filter: none;
}

/* Icono GitHub en gris y vuelve a color al pasar el cursor */
.social-icons img[alt="GitHub"] {
    filter: grayscale(0.7) brightness(1.5) contrast(1.2);
}
.social-icons img[alt="GitHub"]:hover {
    filter: none;
}

.copyright {
    font-size: 1em;
    color: #e0e0e0;
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* BOTONES GENERALES */
.button {
    background-color: #00b4d8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.button:hover {
    background-color: #0077b6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 10px;
    }
    nav a {
        margin: 0 8px;
    }
    .card {
        padding: 10px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .skill-item {
        padding: 12px;
        font-size: 1em;
    }
}