/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --verde-oscuro: #1a5d1a;
    --verde-medio: #2e8b57;
    --verde-claro: #90ee90;
    --blanco-transparente: rgba(255, 255, 255, 0.85);
    --sombra-suave: 0 8px 32px rgba(26, 93, 26, 0.1);
}

body {
    background: linear-gradient(135deg, #f5fdf5 0%, #e8f5e8 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Efecto glass */
.glass-card {
    background: var(--blanco-transparente);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--sombra-suave);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 93, 26, 0.15);
}

/* Navegación */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: var(--verde-oscuro);
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(144, 238, 144, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--verde-oscuro);
    background: rgba(144, 238, 144, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--verde-oscuro);
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--verde-oscuro);
}

.highlight {
    color: var(--verde-medio);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(144, 238, 144, 0.4);
    z-index: -1;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    background: var(--verde-medio);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--verde-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--verde-medio);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Secciones */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--verde-oscuro);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--verde-claro);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Proyectos */
.projects {
    margin-bottom: 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    text-align: center;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--verde-medio);
    margin-bottom: 20px;
}

.project-card h3 {
    color: var(--verde-oscuro);
    margin-bottom: 15px;
}

.project-card p {
    color: #666;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(144, 238, 144, 0.3);
    color: var(--verde-oscuro);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Sobre mí */
.about {
    margin-bottom: 80px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills h3 {
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.skill-bar {
    height: 10px;
    background: rgba(144, 238, 144, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--verde-claro), var(--verde-medio));
    border-radius: 5px;
}

/* Contacto */
.contact {
    margin-bottom: 80px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--verde-oscuro);
    font-weight: 500;
}

.contact-item i {
    color: var(--verde-medio);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(144, 238, 144, 0.2);
    border-radius: 50%;
    color: var(--verde-medio);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--verde-medio);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid rgba(144, 238, 144, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--blanco-transparente);
        backdrop-filter: blur(10px);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        padding-top: 40px;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

.profile-image {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
}