/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-bg-secondary: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

ul {
    list-style: none;
}

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

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

/* ========================================
   Typography
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Prevent Horizontal Scroll
   ======================================== */
section {
    max-width: 100%;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 1);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

/* Simple underline effect para desktop */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--text-white);
}

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

/* Language Switcher - Flotante esquina inferior derecha */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 998;
    transition: all 0.3s ease;
    border: none;
}

.language-switcher:hover {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

.lang-btn {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    color: var(--text-white);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lang-btn.active {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.lang-separator {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.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.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 0rem;
    transition: var(--transition);
}

.hero-image-container:hover {
    transform: scale(1.05);
}

.hero-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(99, 102, 241, 0.7);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5),
                0 0 80px rgba(99, 102, 241, 0.3),
                0 0 120px rgba(14, 165, 233, 0.2);
    transition: var(--transition);
}

.hero-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
    animation: float 3s ease-in-out infinite;
}

.code-badge {
    top: 10px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.db-badge {
    bottom: 20px;
    left: -10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    animation-delay: 1.5s;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    animation: fadeInScale 1s ease-out;
    position: relative;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(10px);
    }
    60% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0px !important;
    color: var(--primary-color);
    background: linear-gradient(135deg, #0ea5e9, #bd48e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle:first-of-type::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.hero-role {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-skills {
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skills-track {
    display: flex;
    gap: 10px;
    animation: scroll-skills 20s linear infinite;
    width: fit-content;
}

@keyframes scroll-skills {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skills-track:hover {
    animation-play-state: paused;
}

.skill-tag {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.hero-experience {
    margin-bottom: 2rem;
}

.experience-badge {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(15, 40, 71, 0.8));
    border-radius: 50px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.15rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.experience-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

.experience-number {
    font-weight: 700;
    font-size: 1.1em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-text {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.about-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.role-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(14, 165, 233, 0.05));
}

.role-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.role-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.role-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
    padding: 100px 0;
    background: var(--card-bg);
}

.skills-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: var(--text-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.skill-item:hover {
    box-shadow: var(--shadow-md);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    font-weight: 600;
    color: var(--primary-color);
}

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

.skill-progress {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* ========================================
   Education Section
   ======================================== */
.education {
    padding: 100px 0;
    background: var(--light-bg);
}

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.education-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.education-content {
    flex: 1;
}

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

.education-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.education-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.education-badge.graduated {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.education-badge.completed {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.education-badge.certified {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.education-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
    padding: 100px 0;
    background: var(--card-bg);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.9rem;
    box-shadow: 0 0 0 5px var(--card-bg);
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateX(5px);
}

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

.timeline-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* ========================================
   Certifications Section
   ======================================== */
.certifications {
    padding: 100px 0;
    background: var(--light-bg);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.certification-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.certification-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9333ea;
    font-size: 1.3rem;
}

.certification-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.certification-issuer {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certification-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Languages Section
   ======================================== */
.languages {
    padding: 100px 0;
    background: var(--card-bg);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.language-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.language-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.language-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.language-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.language-percent {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: var(--text-white);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social h4 {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

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

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-bg);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 600px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-roles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .certifications-grid,
    .languages-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Móviles y tablets pequeñas */
@media (max-width: 768px) {
    /* Prevenir overflow horizontal */
    section {
        max-width: 100%;
        width: 100%;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
    }

    /* Navegación móvil ESPECTACULAR - Fullscreen con efectos */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(30, 41, 59, 0.98) 50%,
            rgba(15, 23, 42, 0.98) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 0;
        clip-path: circle(0% at top right);
        opacity: 0;
        visibility: hidden;
        transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Efecto de fondo animado */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
        animation: float-gradient 15s ease-in-out infinite;
        pointer-events: none;
        overflow: hidden;
    }

    @keyframes float-gradient {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg);
        }
        33% {
            transform: translate(20px, -20px) rotate(120deg);
        }
        66% {
            transform: translate(-20px, 20px) rotate(240deg);
        }
    }

    /* Grid pattern decorativo */
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: grid-move 20s linear infinite;
        pointer-events: none;
        opacity: 0.5;
    }

    @keyframes grid-move {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: 50px 50px;
        }
    }

    .nav-menu.active {
        clip-path: circle(150% at top right);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 2rem;
        font-weight: 600;
        padding: 20px 50px;
        width: auto;
        text-align: center;
        border-radius: 20px;
        position: relative;
        margin: 15px 0;
        overflow: hidden;
        transform: translateY(50px);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.05), 
            rgba(14, 165, 233, 0.05));
        border: 2px solid rgba(99, 102, 241, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 1;
    }

    /* Efecto de brillo animado */
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.4),
            rgba(14, 165, 233, 0.4),
            transparent
        );
        transition: left 0.6s ease;
    }

    /* Efecto de glow en hover */
    .nav-link::after {
        display: none;
    }

    .nav-menu.active .nav-link {
        transform: translateY(0);
        opacity: 1;
    }

    /* Animación escalonada de los items */
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }
    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }
    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }
    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.4s;
    }
    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.2), 
            rgba(14, 165, 233, 0.2),
            rgba(6, 182, 212, 0.2));
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 
            0 0 30px rgba(99, 102, 241, 0.4),
            0 0 60px rgba(14, 165, 233, 0.2),
            inset 0 0 30px rgba(99, 102, 241, 0.1);
        transform: scale(1.05) translateY(-5px);
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
        padding: 12px;
        border-radius: 12px;
        background: rgba(99, 102, 241, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(99, 102, 241, 0.2);
        transition: all 0.4s ease;
        position: relative;
    }

    .nav-toggle:hover {
        background: rgba(99, 102, 241, 0.2);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        transform: scale(1.05);
    }

    .nav-toggle span {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }

    .nav-toggle.active {
        background: rgba(99, 102, 241, 0.3);
        transform: rotate(90deg);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    }

    /* Language switcher en móvil */
    .language-switcher {
        bottom: 15px;
        right: 10px;
        gap: 5px;
    }
    
    .lang-btn {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    /* Hero responsive */
    .hero {
        padding: 100px 20px 50px;
        min-height: auto;
    }

    .hero-image {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-role {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .hero-skills {
        margin-bottom: 1.5rem;
    }
    
    .skills-track {
        animation: scroll-skills 15s linear infinite;
    }

    .skill-tag {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .experience-badge {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 2rem;
        gap: 0.75rem;
        padding: 0 15px;
    }

    .hero-buttons .btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Secciones */
    section {
        padding: 50px 0;
        overflow-y: visible;
        max-height: none;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* About section */
    .about-text {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    /* Skills responsive */
    .skills-filter {
        gap: 0.5rem;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .skill-item {
        padding: 1.25rem;
    }

    /* Timeline responsive */
    .timeline {
        padding-left: 30px;
    }

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

    .timeline-icon {
        left: -30px;
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    /* Educación y certificaciones */
    .education-card,
    .certification-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .education-header,
    .timeline-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Contacto responsive */
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Navegación */
    .nav-container {
        padding: 0.75rem 15px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hero ultra responsive */
    .hero {
        padding: 85px 15px 35px;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .hero-badge {
        width: 60px;
        height: 60px;
        font-size: 1.85rem;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-role {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .experience-badge {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .hero-social .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Secciones */
    section {
        padding: 40px 0;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Botones */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Cards y contenido */
    .about-text,
    .stat-card,
    .role-card,
    .skill-item,
    .timeline-content,
    .education-card,
    .certification-card,
    .contact-info,
    .contact-form-wrapper {
        padding: 1.1rem;
    }

    .stat-card,
    .role-card {
        border-radius: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label,
    .role-card p {
        font-size: 0.85rem;
    }

    /* Skills */
    .filter-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .filter-btn i {
        display: none;
    }

    /* Timeline */
    .timeline {
        padding-left: 25px;
    }

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

    .timeline-icon {
        left: -25px;
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .timeline-content,
    .education-card,
    .certification-card {
        padding: 1.1rem;
    }

    .timeline-header h3,
    .education-card h3 {
        font-size: 0.95rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    /* Contacto */
    .contact-item {
        gap: 0.75rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Success message */
    .success-message {
        padding: 2rem 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon i {
        font-size: 2rem;
    }

    .success-message h3 {
        font-size: 1.5rem;
    }

    .success-message p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 1.25rem 0;
    }

    .footer-content p,
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-image {
        width: 110px;
        height: 110px;
    }

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

    .stat-number {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

/* ========================================
   Custom Styles - Ajustes Finales
   ======================================== */

/* Mejoras en skill items */
.skill-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.skill-item:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* Animación inicial de porcentajes */
.skill-percent {
    transition: all 0.3s ease;
}

/* Mejorar language cards */
.language-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

/* Asegurar transiciones suaves en todos los elementos */
.about-text,
.education-card,
.certification-card,
.language-card,
.timeline-item,
.skill-item,
.stat-card,
.role-card {
    transition: all 0.3s ease;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-message h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.success-message p {
    font-size: 1.1rem;
    color: #64748b;
    animation: fadeInUp 0.6s ease 0.4s both;
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.animate-success {
    animation: fadeInUp 0.6s ease;
}

/* Evitar que el contenido se mueva al abrir el menú móvil */
body.menu-open {
    overflow: hidden;
}

/* Optimizaciones adicionales de responsive */
@media (max-width: 768px) {
    a, button, .nav-link, .filter-btn, .social-link, .social-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    p {
        line-height: 1.7;
    }

    .hero-content > * + * {
        margin-top: 1rem;
    }

    .stat-card:active,
    .role-card:active,
    .skill-item:active {
        transform: scale(0.98) !important;
    }

    .nav-toggle {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle span {
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
}

@media (max-width: 480px) {
    .hero-content > * + * {
        margin-top: 0.75rem;
    }

    .btn {
        min-height: 48px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
    }

    .nav-link {
        padding: 15px 20px;
    }

    html {
        -webkit-overflow-scrolling: touch;
    }

    .stat-icon,
    .role-icon {
        font-size: 1.5rem;
    }
}

/* Landscape móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }

    .hero-image {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Tablets medianas */
@media (min-width: 768px) and (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-roles {
        grid-template-columns: repeat(3, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   WebKit/Safari/iPhone Specific Fixes
   ======================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS/Safari specific styles */
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    section,
    .nav-container,
    .hero-container,
    .container {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}

/* Fix para prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px;
    }
    
    /* Fix específico para Safari/iOS */
    @supports (-webkit-touch-callout: none) {
        html, body {
            width: 100%;
            overflow-x: hidden !important;
            position: relative;
        }
        
        .navbar {
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        
        * {
            -webkit-overflow-scrolling: touch;
        }
        
        section,
        .container,
        .about,
        .about-content,
        .about-text,
        .skills,
        .experience,
        .education,
        .certifications,
        .contact,
        .about-stats,
        .about-roles,
        .skills-grid,
        .certifications-grid,
        .languages-grid,
        .timeline,
        .contact-wrapper {
            overflow: visible !important;
            overflow-y: visible !important;
            overflow-x: visible !important;
            max-height: none !important;
            height: auto !important;
        }
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
