/* portfolio-styles.css - Estilos minimalistas y profesionales con nueva paleta */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

.section-bg-primary {
    background: linear-gradient(135deg, #49306B 0%, #635380 100%);
}

.section-bg-secondary {
    background: linear-gradient(135deg, #635380 0%, #90708C 100%);
}

.section-bg-tertiary {
    background: linear-gradient(135deg, #90708C 0%, #49306B 100%);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #ddd;
    margin: 20px 0;
}

.hero-summary {
    font-size: 1rem;
    color: #ccc;
    margin: 10px 0 20px 0;
    max-width: 80%;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #90708C;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 400;
    transition: background-color 0.3s, transform 0.3s;
    margin-right: 10px;
}

.cta-button:hover {
    background-color: #49306B;
    transform: scale(1.05);
}

.hero-image {
    max-width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1;
    align-self: flex-start;
    margin-top: 30px;
}

.navigation {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, rgba(73, 48, 107, 0.95), rgba(99, 83, 128, 0.95));
    padding: 15px 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(144, 112, 140, 0.2);
    transition: all 0.3s ease;
}

.hamburger, .nav-title {
    display: none;
}

.navigation a {
    margin: 0 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover {
    color: #fff;
    background-color: rgba(144, 112, 140, 0.3);
    transform: translateY(-2px);
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #90708C;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Estilos para secciones generales */
.section {
    padding: 60px 50px;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Educación */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.education-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.education-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.education-card p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 10px;
}

.cert-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #90708C;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 400;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.cert-link:hover {
    background-color: #49306B;
}

/* Efecto hover para education-card */
.education-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Ocupación */
.occupation-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.occupation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.occupation-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.occupation-card p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Experiencias y Skills - Estilos mejorados */
.experiences-skills-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 40px;
}

.experiences, .skills {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.experiences h3, .skills h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    text-align: left;
}

/* Accordion para Experiencias */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.accordion-header {
    display: flex;
    flex-direction: column;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(144, 112, 140, 0.2);
}

.accordion-header h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #fff;
}

.accordion-header p {
    font-size: 1rem;
    color: #ddd;
    margin: 0;
}

.accordion-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #90708C;
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: translateY(-50%) rotate(180deg);
    color: #fff;
}

.accordion-header:hover .accordion-icon {
    color: #fff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Ajusta según contenido máximo */
    padding: 20px;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.accordion-content li {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 8px;
}

/* Skills - Estilos optimizados */
.skills-section {
    margin-bottom: 30px;
}

.skills-section h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.95rem; 
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(144, 112, 140, 0.3);
    white-space: normal; 
    min-height: 50px;
    line-height: 1.4; 
}

.skill-tag i {
    font-size: 1.2rem;
    color: #90708C;
    flex-shrink: 0;
}

.skill-tag:hover {
    transform: scale(1.05);
    background: #90708C;
    color: #fff;
}

.skill-tag:hover i {
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #90708C, #49306B);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card h3 i {
    font-size: 1.3rem;
    color: #90708C;
    transition: color 0.3s;
}

.project-card:hover h3 i {
    color: #fff;
}

.project-card p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #90708C;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.9rem;
}

.project-link:hover {
    background-color: #49306B;
    transform: scale(1.05);
}

.section-separator {
    height: 1px;
    background: linear-gradient(to right, rgba(144, 112, 140, 0), #90708C, rgba(144, 112, 140, 0));
    margin: 0 auto;
    max-width: 1200px;
    width: 90%;
}

.footer {
    background-color: #fff;
    color: #333;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 1rem;
    margin: 0;
}

.footer a {
    color: #49306B;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Contacto */
.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 5px 0;
}

.contact-info a {
    color: #ddd;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-links .cta-button {
    margin-right: 0;
}

#contacto p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* portfolio-styles.css - RESPONSIVE (Mobile) */
@media (max-width: 768px) {
    .navigation {
        padding: 8px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block; 
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        order: 1;
    }

    .nav-title {
        display: block; 
        font-size: 1rem;
        color: #fff;
        font-weight: 500;
        order: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(90deg, rgba(73, 48, 107, 0.95), rgba(99, 83, 128, 0.95));
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .navigation a {
        margin: 5px 0;
        font-size: 0.9rem;
        padding: 10px 15px;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-summary {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-image {
        max-width: 200px;
        height: 200px;
        align-self: center;
        margin-top: 0;
    }

    .section {
        padding: 40px 20px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        padding: 20px;
    }

    .education-logo {
        max-width: 100px;
    }

    .education-card h3 {
        font-size: 1.3rem;
    }

    .education-card p {
        font-size: 0.95rem;
    }

    .occupation-grid {
        grid-template-columns: 1fr;
    }

    .occupation-card {
        padding: 20px;
    }

    .occupation-card h3 {
        font-size: 1.6rem;
    }

    .occupation-card p {
        font-size: 1rem;
    }

    .experiences-skills-grid {
        grid-template-columns: 1fr;
    }

    .accordion-item {
        margin-bottom: 15px;
    }

    .accordion-item:not(.active) .accordion-content {
        display: none;
    }

    .accordion-header {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .accordion-content {
        padding: 15px;
        font-size: 0.95rem;
    }

    .accordion-icon {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .project-card p {
        font-size: 0.95rem;
    }

    .project-link {
        font-size: 0.85rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .section-separator {
        width: 95%;
    }
}