/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.header-info {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .header-info {
        text-align: left;
    }
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.05rem;
    color: #718096;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .contact-info {
        justify-content: flex-start;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.contact-item i {
    color: #667eea;
}

/* Navigation Styles */
.nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 140px;
    z-index: 90;
}

.nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.nav-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #4a5568;
    background: #f7fafc;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f7fafc;
}

/* Main Content Styles */
.main {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.period {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.company {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description {
    color: #4a5568;
    line-height: 1.6;
}

/* Education Styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.institution {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.location {
    color: #718096;
}

/* Technology Styles */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tech-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

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

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

/* Competencies Styles */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.competency-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.competency-bullet {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.competency-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Footer Styles */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-tabs {
        justify-content: center;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

    
}

@media (max-width: 480px) {
    .header-content{
        margin-top: -43px;
    }

    .language-toggle {
        top: 8%!important;
     }
    .container {
        padding: 0 15px;
    }
     
    .title{
        font-size: 0.8rem;
    }
    #navbar{
        top:90px;
    }
    .contact-info .contact-item:not(:first-child) {
        display: none;
    }
    .avatar-circle{
        width:0px;
        height: 0px;;
    }
    .name {
        font-size: 16px;
    }
   .nav-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    a.contact-link{
        font-size: 0.8rem!important;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Sección de portafolio */
#portafolio {
    padding: 40px 20px;
}

/* Filtros */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

/* Grilla de proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 24px;
    margin-top: 20px;
    justify-content: flex-start;
}

.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-info {
    padding: 16px;
}

.project-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.project-tech {
    font-size: 0.9em;
    color: #3498db;
    margin: 0 0 8px 0;
}

.project-desc {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.project-links a {
    font-size: 0.9em;
    color: #2980b9;
    text-decoration: none;
}

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

.project-links .disabled {
    color: #7f8c8d;
    cursor: not-allowed;
}

.centerx{
    margin: 4% 38%;
}

#testimonios {
    padding: 40px 20px;
    
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.quote {
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}


/* Botón hamburguesa */
.menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #2d3748;
    cursor: pointer;
    padding: 0.75rem 1rem;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

/* Mostrar hamburguesa en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-tabs {
        display: none; /* Ocultar pestañas por defecto en móvil */
        flex-direction: column;
        background: white;
        padding: 0.5rem 0;
        border-top: 1px solid #e2e8f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-tabs.active {
        display: flex;
        max-height: 300px; /* Altura suficiente para el menú */
        padding: 1rem 0;
    }

    .nav-tab {
        padding: 0.75rem 2rem;
        text-align: left;
        width: 100%;
    }
    #nav-tabs{
         margin-left: 20%;
    }

    /* Ajuste del contenedor */
    .nav .container {
        display: flex;
        /*justify-content: space-between;*/
        
        align-items: center;
    }

     .language-toggle {
        top: 8%!important;
     }

}

.language-toggle {
   position: absolute;
    right: 2%;
    top: 37%;
}

.lang-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background: #5a67d8;
}

