/* 
* ESTILOS PRINCIPALES - JOSÉ VENTURA PORTAFOLIO
* Desarrollado por José Eduardo Ventura Tito
* Última actualización: 2024
*/

/* ======= VARIABLES Y RESET ======= */
:root {
    --primary-color: #2d46b9;
    --secondary-color: #1a2552;
    --accent-color: #4f67e3;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Altura del navbar */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

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

section {
    padding: 100px 0;
}

/* ======= COMPONENTES COMUNES ======= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.separator {
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
    border-radius: 5px;
}

.separator::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    bottom: 0;
    left: 15px;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ======= NAVEGACIÓN ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.navbar.scrolled .logo a {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.navbar.scrolled .menu-toggle {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: white;
    padding: 5px 0;
    position: relative;
}

.navbar.scrolled .nav-menu a {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 0;
    bottom: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ======= HERO SECTION ======= */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    background-size: cover;
    opacity: 0.1;
    top: 0;
    left: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.hero-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.7s;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.9s;
}

.social-icons {
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 1.1s;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1.3s;
    z-index: 1;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 5px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/profile.jpg');
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
}

/* ======= ABOUT SECTION ======= */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-item {
    flex: 1;
    min-width: 250px;
}

.detail-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.detail-item h3::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 20px;
    background-color: var(--primary-color);
    left: 0;
    top: 5px;
    border-radius: 4px;
}

.detail-item ul {
    margin-left: 10px;
}

.detail-item li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    color: var(--success-color);
}

/* ======= EXPERIENCE SECTION ======= */
.experience {
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 5px solid white;
    border-radius: 50%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    width: 45%;
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    margin-left: auto;
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: white;
    top: 20px;
    left: -7px;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -7px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.timeline-content .date {
    display: inline-block;
    font-size: 14px;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-light);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ======= SKILLS SECTION ======= */
.skills {
    background-color: var(--bg-light);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    border-radius: 3px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background-color: rgba(77, 103, 227, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ======= PORTFOLIO SECTION ======= */
.portfolio {
    background-color: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary-color);
    background-color: rgba(77, 103, 227, 0.1);
}

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

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    width: 100%;
    bottom: -80px;
    left: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(26, 37, 82, 0.9), transparent);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
}

.portfolio-info h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.btn-view {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .btn-view {
    opacity: 1;
    transform: translateY(0);
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-more {
    text-align: center;
}

/* ======= CERTIFICATES SECTION ======= */
.certificates {
    background-color: var(--bg-light);
}

.certificates-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.certificate-filter {
    padding: 8px 18px;
    background-color: #fff;
    color: var(--secondary-color);
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.certificate-filter.active,
.certificate-filter:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.certificates-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.certificates-timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
    left: 0;
    top: 10px;
}

.certificate-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.certificate-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -29px;
    top: 10px;
    z-index: 1;
}

.certificate-date {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 3px 12px;
    background-color: rgba(77, 103, 227, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin-bottom: 10px;
}

.certificate-title {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.certificate-issuer {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.certificate-description {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.btn-certificate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-certificate:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Estilos para mostrar/ocultar elementos por categoría */
.certificate-item.coursera,
.certificate-item.platzi,
.certificate-item.telefonica,
.certificate-item.udemy,
.certificate-item.google,
.certificate-item.otros {
    display: block;
}

/* Media queries específicas para la sección de certificados */
@media (max-width: 768px) {
    .certificates-filter {
        gap: 5px;
    }
    
    .certificate-filter {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .certificate-title {
        font-size: 16px;
    }
    
    .certificate-issuer {
        font-size: 14px;
    }
}

/* ======= CONTACT SECTION ======= */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: rgba(77, 103, 227, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-details p {
    color: var(--text-light);
}

.contact-social {
    margin-top: 20px;
}

.contact-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(77, 103, 227, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 103, 227, 0.1);
}

/* ======= FOOTER ======= */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 70px;
    }

    /* Ocultar título principal en móvil */
    .hero-content h1 {
        font-size: 28px;
    }

    /* Ajuste específico para el título "Software Engineer" en móvil */
    .hero-content h2 {
        font-size: 32px;
        margin-top: 20px;
        font-weight: 600;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
        justify-content: center;
        margin-top: 40px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-top: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-content::before {
        left: -7px;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: -7px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }

    .menu-toggle {
        display: block;
        z-index: 1010; /* Aumentar z-index para asegurar que esté sobre otros elementos */
        background: transparent;
        border: none;
        outline: none;
        line-height: 1;
        padding: 8px;
        cursor: pointer;
    }

    /* Ocultar nombre en versión móvil */
    .hero-content h1 {
        display: none; /* Cambio de font-size a display: none para ocultar completamente */
    }

    /* Ajuste para el título "Software Engineer" en móvil */
    .hero-content h2 {
        margin-top: 10px; /* Espacio adicional arriba */
        margin-bottom: 20px;
        font-size: 28px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--secondary-color) !important; /* Forzar color en móvil */
        width: 100%;
        display: block;
        padding: 10px 0;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        color: var(--secondary-color);
        z-index: 1002; /* Asegurar que esté sobre otros elementos */
    }

    .close-menu-container {
        display: block; /* Mostrar en vista móvil */
        position: absolute;
        top: 0;
        right: 0;
        padding: 20px;
    }

    /* Ajustar z-index y visibilidad para el menú móvil */
    .navbar {
        z-index: 1000;
    }

    .navbar .container {
        position: relative;
    }

    /* Estilo adicional para el botón hamburguesa en móvil */
    .menu-toggle {
        background: transparent;
        border: none;
        outline: none;
        line-height: 1;
        z-index: 1010; /* Aumentar z-index para asegurar que esté sobre otros elementos */
    }

    .certificates-timeline::before {
        display: none;
    }

    .certificate-item {
        padding-left: 0;
    }

    .certificate-item::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

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

/* ======= EDUCATION SECTION ======= */
.education {
    background-color: white;
}

.education-container {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
    position: relative;
}

.education-item:not(:last-child)::after {
    content: '';
    position: absolute;
    height: calc(100% + 30px);
    width: 2px;
    background-color: #e9ecef;
    left: 25px;
    top: 50px;
    z-index: 1;
}

.education-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.education-content {
    flex: 1;
    background-color: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.education-place {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.education-date {
    display: inline-block;
    font-size: 14px;
    padding: 3px 12px;
    background-color: rgba(77, 103, 227, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin-bottom: 15px;
}

.education-content p {
    color: var(--text-light);
}

/* Actualización para media queries */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        gap: 15px;
        margin-left: 25px;
    }
    
    .education-icon {
        position: absolute;
        left: -25px;
        top: 0;
    }
    
    .education-item:not(:last-child)::after {
        left: 0;
        height: calc(100% + 35px);
    }
}

/* ======= HOBBIES SECTION ======= */
.hobbies {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hobbies::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(77, 103, 227, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hobbies::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(77, 103, 227, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    z-index: 0;
}

.hobbies-container {
    position: relative;
    z-index: 1;
}

.hobbies-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.hobbies-intro p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hobby-item {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.hobby-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hobby-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: rgba(77, 103, 227, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.hobby-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hobby-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.hobbies-journey {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.hobbies-journey h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.hobbies-journey h3::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    background-color: var(--primary-color);
    left: 0;
    top: 4px;
    border-radius: 4px;
}

.hobbies-journey p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hobby-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hobby-icon {
        margin-bottom: 15px;
    }
    
    .hobbies-intro,
    .hobbies-journey {
        padding: 20px;
    }
} 