:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Links - Eliminar decoración de texto */
a {
    text-decoration: none;
}

a:hover,
a:visited,
a:active,
a:focus {
    text-decoration: none;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    text-decoration: none;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(180deg);
    border-color: var(--primary-color);
}

/* Language Toggle */
.lang-toggle {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Profile Image */
.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--bg-primary);
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.download-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.about-highlights {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

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

.highlight-item i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 1rem;
    width: 30px;
}

.highlight-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Experience Section */
.experience {
    padding: 120px 0;
}

.timeline {
    position: relative;
    padding-left: 0;
}

/* Línea principal del timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--success-color));
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Markers del timeline */
.timeline-marker {
    position: absolute;
    left: 16px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-marker:hover {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px var(--primary-color), 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Línea conectora horizontal */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 31px;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

/* Último item del timeline */
.timeline-item:last-child .timeline-marker {
    background: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color);
}

.timeline-item:last-child .timeline-marker:hover {
    box-shadow: 0 0 0 5px var(--success-color), 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Eliminar línea después del último item */
.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    position: relative;
}

.experience-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.experience-card.expanded {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.position-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

.date-range {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.achievements {
    list-style: none;
    margin-bottom: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.experience-card.expanded .achievements {
    max-height: 500px;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.experience-card.expanded .achievements li {
    opacity: 1;
    transform: translateY(0);
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.2s;
}

.experience-card.expanded .tech-stack {
    opacity: 1;
    transform: translateY(0);
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.expand-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.experience-card.expanded .expand-indicator {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.skill-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.python-img {
    width: 50px;
}

.powerbi-img {
    width: 30px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 2s ease;
}

/* Projects Section */
.projects {
    padding: 120px 0;
}

/* Featured Project */
.featured-project {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

.featured-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

.project-image {
    padding: 2rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.project-preview {
    width: 100%;
    max-width: 300px;
    position: relative;
}

.preview-browser {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.featured-project:hover .preview-browser {
    transform: perspective(1000px) rotateY(0deg);
}

.browser-header {
    background: var(--bg-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.browser-buttons {
    display: flex;
    gap: 0.3rem;
    margin-right: 1rem;
}

.btn-close-browser, .btn-min, .btn-max {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.btn-close-browser {
    background: #ff5f57;
}

.btn-min {
    background: #ffbd2e;
}

.btn-max {
    background: #28ca42;
}

.browser-url {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex: 1;
}

.browser-content {
    padding: 1rem;
    min-height: 200px;
}

.project-content {
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-highlights {
    margin-bottom: 2rem;
}

.highlight-section {
    margin-bottom: 1.5rem;
}

.highlight-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.highlight-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.highlight-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tech .tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech .tech-tag:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.project-links .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Other Projects */
.other-projects {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.other-projects h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.other-projects h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.preview-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.preview-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.preview-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.preview-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tech-tag-small {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--bg-secondary);
    transform: translateX(10px);
}

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

.contact-info h5 {
    margin: 0;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* Education Section */
.education {
    padding: 120px 0;
}

.education-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.education-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.courses {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status {
    background: var(--warning-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.completed {
    background: var(--success-color);
}

/* Certificate Cards */
.certificate-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.certificate-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.certificate-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.certificate-status.completed {
    background: var(--success-color);
    color: white;
}

.certificate-status.in-progress {
    background: var(--warning-color);
    color: white;
}

.university-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--primary-color);
    padding: 3rem;
}

.university-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.university-proof i {
    margin-right: 0.5rem;
    color: var(--success-color);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN MEJORADO
======================================== */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .profile-container {
        width: 350px;
        height: 350px;
    }
    
    .profile-photo {
        width: 350px;
        height: 350px;
    }
}

/* Large Screens */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .profile-container {
        width: 280px;
        height: 280px;
    }
    
    .profile-photo {
        width: 280px;
        height: 280px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Medium Screens - Tablets */
@media (max-width: 991.98px) {
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
        margin: 2rem auto 0;
    }
    
    .profile-photo {
        width: 250px;
        height: 250px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .about, .experience, .skills, .projects, .education, .contact {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* Projects responsive */
    .featured-project {
        margin-bottom: 3rem;
    }
    
    .featured-project .row {
        flex-direction: column-reverse;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .project-links {
        justify-content: center;
    }
    
    .preview-browser {
        transform: none;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .project-image {
        padding: 2rem 1rem;
    }
}

/* Small Screens - Large Mobile */
@media (max-width: 767.98px) {
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .profile-container {
        width: 200px;
        height: 200px;
        margin: 1.5rem auto 0;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Sections */
    .about, .experience, .skills, .projects, .education, .contact {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .about-highlights {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .highlight-item {
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    /* Timeline - MOBILE VERSION SIMPLIFICADO */
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 16px;
        width: 2px;
        top: 16px;
        bottom: 16px;
    }
    
    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline-marker {
        left: 8px;
        top: 16px;
        width: 16px;
        height: 16px;
        border-width: 2px;
        box-shadow: 0 0 0 2px var(--primary-color);
    }
    
    .timeline-marker:hover {
        transform: scale(1.2);
        box-shadow: 0 0 0 3px var(--primary-color), 0 2px 8px rgba(99, 102, 241, 0.3);
    }
    
    .timeline-item::after {
        left: 24px;
        top: 23px;
        width: 24px;
        height: 2px;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .position-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .date-range {
        align-self: flex-start;
        margin-top: 0;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tech-stack {
        justify-content: flex-start;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* Skills */
    .skill-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .skill-title {
        font-size: 1.1rem;
    }
    
    .skill-list {
        gap: 0.4rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    /* Projects */
    .featured-project {
        margin-bottom: 2rem;
    }
    
    .project-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .project-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .project-highlights {
        text-align: left;
    }
    
    .highlight-section h5 {
        font-size: 0.9rem;
    }
    
    .highlight-section li {
        font-size: 0.85rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .project-links .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .preview-browser {
        transform: none;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .project-image {
        padding: 1.5rem;
    }
    
    .browser-content {
        padding: 0.8rem;
        min-height: 150px;
    }
    
    /* Other projects */
    .other-projects {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .preview-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .preview-title {
        font-size: 1rem;
    }
    
    /* Education */
    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .education-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .certificate-card {
        padding: 1.5rem;
    }
    
    .certificate-card h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* Contact */
    .contact-card {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact .lead {
        font-size: 1rem;
    }
    
    /* Footer */
    .social-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Extra Small Screens */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero .lead {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .profile-container {
        width: 160px;
        height: 160px;
    }
    
    .profile-photo {
        width: 160px;
        height: 160px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }
    
    .about, .experience, .skills, .projects, .education, .contact {
        padding: 60px 0;
    }
    
    /* Timeline - EXTRA SMALL SIMPLIFICADO */
    .timeline::before {
        left: 12px;
        width: 2px;
        top: 12px;
        bottom: 12px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        left: 6px;
        top: 12px;
        width: 12px;
        height: 12px;
        border-width: 2px;
        box-shadow: 0 0 0 2px var(--primary-color);
    }
    
    .timeline-marker:hover {
        transform: scale(1.1);
        box-shadow: 0 0 0 3px var(--primary-color);
    }
    
    .timeline-item::after {
        left: 18px;
        top: 17px;
        width: 20px;
        height: 1px;
    }
    
    .timeline-item {
        margin-bottom: 2.5rem;
    }
    
    .experience-card {
        padding: 1rem;
    }
    
    .position-title {
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .date-range {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Skills */
    .skill-card {
        padding: 1rem;
    }
    
    .skill-title {
        font-size: 1rem;
    }
    
    .skill-list {
        gap: 0.3rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    /* Projects */
    .featured-project {
        margin-bottom: 2rem;
    }
    
    .project-content {
        padding: 1rem;
        text-align: center;
    }
    
    .project-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .project-title {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .project-highlights {
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .highlight-section {
        margin-bottom: 1rem;
    }
    
    .highlight-section h5 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .highlight-section ul {
        margin-bottom: 0.8rem;
    }
    
    .highlight-section li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        line-height: 1.4;
    }
    
    .project-tech {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .project-tech .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .project-links .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .preview-browser {
        transform: none;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .project-image {
        padding: 1rem;
    }
    
    .browser-content {
        padding: 0.6rem;
        min-height: 120px;
    }
    
    /* Other projects */
    .other-projects {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .other-projects h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .preview-card {
        padding: 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .preview-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .preview-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .preview-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag-small {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Contact */
    .contact-card {
        padding: 1.5rem;
    }
    
    /* Education */
    .certificate-card {
        padding: 1rem;
    }
    
    /* Buttons */
    .hero-buttons .btn {
        width: 90%;
        font-size: 0.9rem;
    }
}

/* Ultra Small Screens */
@media (max-width: 399.98px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .profile-container {
        width: 140px;
        height: 140px;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .profile-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .theme-toggle,
    .lang-toggle,
    .expand-indicator {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    .section-title::after {
        display: none;
    }
    
    .experience-card,
    .skill-card,
    .certificate-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image {
        animation: none;
    }
    
    .profile-bg {
        animation: none;
    }
    
    .timeline-item.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
