/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a237e 0%, #000051 50%, #000000 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navegación */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 181, 246, 0.3);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #64b5f6;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64b5f6;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Contenedor general */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sección Hero */
.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    transform: translateY(-10vh);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #1976d2, #64b5f6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
}

/* Botones de redes sociales */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(100, 181, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.2);
}

.social-btn i {
    font-size: 1rem;
}

/* Secciones generales */
section {
    padding: 4rem 0;
}

/* Sección Proyectos - padding reducido */
.projects {
    padding: 2rem 0;
    margin-top: -20vh;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(100, 181, 246, 0.3);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #64b5f6;
}

/* Sección Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 181, 246, 0.5);
    box-shadow: 0 10px 30px rgba(100, 181, 246, 0.2);
}

.project-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.project-card p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    padding: 0.5rem 1rem;
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.project-link:hover {
    background: rgba(100, 181, 246, 0.3);
    transform: scale(1.05);
}

/* Sección Contacto */
.contact {
    background: rgba(0, 0, 0, 0.3);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(100, 181, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.2);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 2rem 0;
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        height: 60vh;
    }
    
    .projects {
        padding: 1.5rem 0;
        margin-top: -5vh;
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(100, 181, 246, 0.3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        transform: translateY(0);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-top: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .social-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .social-btn {
        width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}
