/* Estilos generales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    display: inline-block;
}

header h1 span {
    color: var(--primary-color);
    font-weight: 300;
}

nav ul {
    list-style: none;
    float: right;
}

nav ul li {
    display: inline-block;
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 8rem 0 4rem;
    text-align: center;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Section */
#about {
    padding: 4rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.profile-img {
    flex: 1;
    text-align: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Materias Section */
#materia {
    padding: 4rem 0;
}

#materia h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.materia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.materia-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.materia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.materia-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.materia-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contacto Section */
#contacto {
    padding: 4rem 0;
    background-color: var(--light-color);
}

#contacto h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
}

.social-link i {
    margin-right: 8px;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    font-weight: 500;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Estilos para páginas de materias */
#materia-content {
    padding: 6rem 0 4rem;
}

#materia-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

.parcial-section {
    margin-bottom: 3rem;
}

.parcial-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card {
    display: flex;
    gap: 1.5rem;
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
    padding-top: 0.5rem;
}

.project-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .profile-img {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .profile-pic {
        width: 200px;
        height: 200px;
    }
    
    nav ul {
        float: none;
        text-align: center;
        margin-top: 1rem;
    }
    
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
    
    .project-card {
        flex-direction: column;
    }
}