/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #6a5acd 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --font-main: 'Arial', 'Helvetica', sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem 1.5rem 1.5rem;
    margin-top: 70px;
}

.profile-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

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

.img-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.summary p:last-child {
    margin-bottom: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
}

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

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
}

/* Proyectos Section */
.proyectos {
    padding: 5rem 0;
    background: var(--background-light);
}

.proyectos-grid {
    display: grid;
    gap: 2rem;
}

.proyecto-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.proyecto-card.destacado {
    padding: 1.5rem;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.proyecto-card.destacado {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.proyecto-card.destacado:hover {
    transform: scale(1.02) translateY(-5px);
}

.proyecto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.proyecto-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.proyecto-card.destacado .proyecto-header i {
    color: var(--secondary-color);
}

.proyecto-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.project-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
}

.proyecto-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proyecto-content h4 i {
    color: var(--accent-color);
}

.proyecto-card.destacado .proyecto-content h4 i {
    color: var(--accent-color);
}

.challenge, .solution, .impact, .description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.proyecto-card.destacado .challenge,
.proyecto-card.destacado .solution,
.proyecto-card.destacado .impact,
.proyecto-card.destacado .description {
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.proyecto-card.destacado .challenge,
.proyecto-card.destacado .solution,
.proyecto-card.destacado .impact,
.proyecto-card.destacado .description {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid var(--secondary-color);
}

.description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.description li {
    margin-bottom: 0.5rem;
}

.tech-stack {
    margin-top: 1.5rem;
}

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

.tech-tags span {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.proyecto-card.destacado .tech-tags span {
    background: var(--primary-color);
    color: white;
    border: none;
}

.app-link {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.proyecto-card:not(.featured) .app-link {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--secondary-color);
}

.app-link i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.proyecto-card.destacado .app-link i {
    color: var(--accent-color);
}

.app-link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.proyecto-card:not(.destacado) .app-link a {
    color: var(--secondary-color);
}

.app-link a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

.features {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.proyecto-card.destacado .features {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid var(--secondary-color);
}

.features ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.features li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.features strong {
    color: var(--secondary-color);
}

.proyecto-card.destacado .features strong {
    color: var(--primary-color);
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 1.5rem;
}

.proyecto-card.destacado .collapsible-section {
    margin-bottom: 1rem;
}

.collapsible-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    user-select: none;
    margin-bottom: 0;
}

.proyecto-card.destacado .collapsible-trigger {
    padding: 0.6rem 0.8rem;
}

.proyecto-card.destacado .collapsible-trigger {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--secondary-color);
}

.collapsible-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.proyecto-card.destacado .collapsible-trigger:hover {
    background: rgba(52, 152, 219, 0.15);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.collapsible-trigger.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.proyecto-card.destacado .collapsible-content {
    padding: 0.8rem;
}

.proyecto-card.destacado .collapsible-content {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.collapsible-content.collapsed {
    max-height: 0;
    padding: 0 1rem;
    border: none;
}

.collapsible-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.collapsible-content li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.collapsible-content .app-gallery {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* App Gallery Styles */
.app-gallery {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proyecto-card.featured .app-gallery {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-gallery h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.proyecto-card.destacado .app-gallery h4 {
    color: var(--primary-color);
}

.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.gallery-item {
    display: none;
    position: relative;
    width: 100%;
    background: white;
}

.gallery-item.active {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: contain;
    object-position: top;
}

.gallery-caption {
    padding: 0.8rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.gallery-caption strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-caption p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding: 0 0.3rem;
}

.gallery-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.gallery-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.proyecto-card.destacado .gallery-btn {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.proyecto-card.destacado .gallery-btn:hover {
    background: var(--primary-color);
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.gallery-dots .dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

.proyecto-card.destacado .gallery-dots .dot {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.3);
}

.proyecto-card.destacado .gallery-dots .dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.gallery-dots .dot:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Mobile optimizations for gallery */
@media (max-width: 768px) {
    .app-gallery {
        padding: 1rem;
    }
    
    .gallery-item img {
        max-height: 300px;
    }
    
    .gallery-caption {
        padding: 0.8rem;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        padding: 0;
        margin-top: 0.8rem;
    }
    
    .gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        max-height: 250px;
    }
    
    .gallery-caption strong {
        font-size: 1rem;
    }
    
    .gallery-caption p {
        font-size: 0.85rem;
    }
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background: white;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 45%;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

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

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

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: var(--background-light);
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category.featured {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.skill-category.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.skill-category.featured h3 i {
    color: white;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    margin-bottom: 1.2rem;
}

.skill-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.skill-name::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.skill-category.featured .skill-name {
    color: rgba(255, 255, 255, 0.9);
}

.skill-category.featured .skill-name::before {
    color: rgba(255, 255, 255, 0.8);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.skill-tags span {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tags span:hover {
    transform: scale(1.05);
}

.skill-category.featured .skill-tags span {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* Loading Skills Card - Special Design */
.skill-category.loading-skills {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: visible;
    transform: rotate(-1deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 0 50px rgba(0, 0, 0, 0.05);
    clip-path: polygon(
        8% 0%, 
        92% 0%, 
        100% 15%, 
        95% 25%, 
        100% 40%, 
        100% 85%, 
        95% 100%, 
        80% 95%, 
        70% 100%, 
        25% 100%, 
        15% 95%, 
        0% 85%, 
        5% 70%, 
        0% 55%, 
        0% 20%, 
        5% 8%
    );
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.skill-category.loading-skills:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 0 50px rgba(0, 0, 0, 0.05);
}

.skill-category.loading-skills::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #f8f9fa;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-category.loading-skills::after {
    content: "📝";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.skill-category.loading-skills h3 {
    color: #495057;
    font-style: italic;
    position: relative;
}

.skill-category.loading-skills h3 i {
    color: #007bff;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content {
    position: relative;
}

.loading-text p {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
    color: #007bff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.loading-tags {
    gap: 0.4rem;
}

.loading-tags .loading {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    position: relative;
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.loading-tags .glitched {
    background: #dc3545;
    color: white;
    animation: glitch 0.5s infinite;
    font-family: monospace;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.loading-tags .incomplete {
    background: #6c757d;
    color: white;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "..."; }
    40% { content: ".."; }
    60% { content: "."; }
    80%, 100% { content: "..."; }
}

.torn-edge {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #fff3cd;
    border: 2px dashed #856404;
    border-radius: 8px;
    position: relative;
    transform: rotate(1deg);
    text-align: center;
}

.torn-edge::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 10px;
    width: 20px;
    height: 10px;
    background: #f8f9fa;
    border-radius: 50%;
}

.loading-dots {
    color: #856404;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.skill-category.featured .tech-tags span {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Quien Soy Section */
.quien-soy {
    padding: 5rem 0;
    background: white;
}

.quien-soy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quien-soy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.interests {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 20px;
}

.interests h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.interests-tags span {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.interests-tags span:hover {
    transform: scale(1.05);
}

.interests-tags i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-contact .contact-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .timeline-item {
        flex-direction: column;
        margin-left: 40px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-date {
        position: relative;
        left: -40px;
        transform: none;
        margin-bottom: 1rem;
    }

    .timeline-content {
        width: 100%;
        margin-top: 0;
    }

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

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

    .skill-category.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .proyecto-card.featured {
        transform: none;
    }

    .interests-tags {
        justify-content: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }

    .summary {
        padding: 1.5rem;
    }

    .proyecto-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .interests {
        padding: 1.5rem;
    }

    .tech-tags {
        justify-content: center;
    }
}

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

.proyecto-card,
.timeline-item,
.skill-category {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: white;
}

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

.education-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--background-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.education-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.education-details {
    flex: 1;
    text-align: left;
}

.education-details h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-details h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-location,
.education-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-location i,
.education-date i {
    color: var(--accent-color);
    width: 16px;
}

/* Certifications Section */
.certifications {
    padding: 5rem 0;
    background: var(--background-light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.cert-item.featured-cert {
    background: linear-gradient(135deg, #e8f2ff 0%, #d1e7ff 100%);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.cert-item.featured-cert .cert-icon {
    background: var(--secondary-color);
}

.cert-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.cert-item.featured-cert .cert-content h3 {
    color: var(--primary-color);
}

.cert-content h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cert-item.featured-cert .cert-content h4 {
    color: var(--secondary-color);
}

.cert-date {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.cert-item.featured-cert .cert-date {
    background: var(--secondary-color);
    border: none;
}

.cert-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.cert-item.featured-cert .cert-description {
    color: var(--text-light);
}

.cert-link {
    margin-top: 0.8rem;
}

.cert-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-link a:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cert-link i {
    font-size: 0.8rem;
}

/* Languages Section */
.languages {
    padding: 5rem 0;
    background: white;
}

.languages-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.language-item {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.language-info {
    flex: 1;
}

.language-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.language-level {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-bars {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.language-progress[data-level="5"] {
    width: 100%;
}

.language-progress[data-level="4"] {
    width: 80%;
}

.language-progress[data-level="3"] {
    width: 60%;
}

.language-progress[data-level="2"] {
    width: 40%;
}

.language-progress[data-level="1"] {
    width: 20%;
}

.language-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .education-details {
        text-align: center;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .language-item {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .language-bars {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .education-item,
    .cert-item,
    .language-item {
        padding: 1.5rem;
    }
    
    .education-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cert-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}