/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

/* Header & Nav */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

/* Secciones */
section {
    padding: 4rem 10%;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

/* Sobre Mí */
#sobre-mi {
    background-color: #fff;
    text-align: center;
}

.perfil-container {
    max-width: 800px;
    margin: 0 auto;
}

.avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.botones-sociales {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Tarjetas (Grid) */
#tarjetas {
    background-color: #f4f7f6;
}

.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tarjeta {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid #3498db;
}

.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.tarjeta h3 {
    margin-bottom: 1rem;
}

.tarjeta p {
    margin-bottom: 1.5rem;
}

.tarjeta a {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
}

/* Habilidades (Table) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 1.5rem;
    text-align: left;
}

th {
    background-color: #3498db;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Contacto (Form) */
#contacto {
    background-color: #fff;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit {
    padding: 1rem;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #34495e;
}

/* Especialidades (Flexbox) */
.flex-especialidades {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.especialidad {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    border-top: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.especialidad:hover {
    transform: translateY(-5px);
}

.especialidad h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #f4f7f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #3498db;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
