/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

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

/* Header con estética bento */
.bento-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #667eea;
}

/* Grid principal de bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tarjetas bento */
.bento-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

/* Sobre mí */
.about-me {
    grid-column: span 2;
}

.about-me p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Experiencia */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.2rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, #667eea, transparent);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #4a5568;
    font-size: 0.95rem;
}

/* Proyectos */
.projects-grid {
    display: grid;
    gap: 1rem;
}

.project-item {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.3s, transform 0.3s;
}

.project-item:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    transform: translateY(-4px) scale(1.02);
    text-decoration: none;
    color: inherit;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.project-item p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Educación */
.education-item {
    margin-bottom: 1.5rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.education-item p {
    color: #4a5568;
    font-size: 0.95rem;
}

/* Intereses */
.interests {
    grid-column: span 2;
    min-height: 200px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.interest-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.interest-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.interest-item span {
    font-weight: 500;
    color: #1a202c;
}

/* Footer */
.bento-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #4a5568;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .about-me {
        grid-column: span 1;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .interests {
        grid-column: span 1;
        min-height: auto;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}



@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .bento-card {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
}

/* Tema Oscuro */
.dark-theme {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

.dark-theme .bento-header,
.dark-theme .bento-card,
.dark-theme .bento-footer {
    background: rgba(45, 55, 72, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .profile-info h1,
.dark-theme .card-header h2,
.dark-theme .skill-category h3,
.dark-theme .timeline-content h3,
.dark-theme .project-item h3,
.dark-theme .education-item h3,
.dark-theme .interest-item span {
    color: #f7fafc;
}

.dark-theme .title,
.dark-theme .contact-info,
.dark-theme .about-me p,
.dark-theme .skill-category li,
.dark-theme .timeline-content p,
.dark-theme .project-item p,
.dark-theme .education-item p,
.dark-theme .footer-content p {
    color: #a0aec0;
}

.dark-theme .project-item {
    background: rgba(102, 126, 234, 0.1);
}

.dark-theme .interest-item {
    background: rgba(102, 126, 234, 0.1);
    color: inherit;
}

.dark-theme .interest-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
}

.dark-theme .profile-image {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-card {
    animation: fadeInUp 0.6s ease-out;
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.2s; }
.bento-card:nth-child(3) { animation-delay: 0.3s; }
.bento-card:nth-child(4) { animation-delay: 0.4s; }
.bento-card:nth-child(5) { animation-delay: 0.5s; }
.bento-card:nth-child(6) { animation-delay: 0.6s; } 