/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevenir selección de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevenir clic derecho y arrastre */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #0f0f0f;
    --accent-color: #00c6ff;
    --accent-secondary: #00c6ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d93;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 198, 255, 0.2);
    --mouse-glow-before: rgba(0, 198, 255, 0.15);
    --mouse-glow-after: rgba(0, 198, 255, 0.1);
    --scrolled: rgba(7, 10, 23, 0.9);
}

/* Light theme variables */
body.light-mode {
    --primary-bg: #ffffff;
    /* Fondo blanco */
    --secondary-bg: #f5f5f5;
    /* Fondo gris claro */
    --accent-color: #00c6ff;
    /* Mantener el azul */
    --accent-secondary: #00c6ff;
    /* Mantener el azul */
    --text-primary: #000000;
    /* Texto negro */
    --text-secondary: #333333;
    /* Texto gris oscuro */
    --text-muted: #555555;
    /* Texto más claro para texto secundario */
    --border-color: rgba(0, 0, 0, 0.1);
    /* Borde suave oscuro */
    --glass-bg: rgba(0, 0, 0, 0.05);
    /* Fondo ligeramente oscuro */
    --glass-border: rgba(0, 0, 0, 0.1);
    /* Borde oscuro sutil */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    --shadow-hover: 0 12px 40px rgba(0, 198, 255, 0.2);
    /* Sombra azul cuando se pasa el ratón */
    --mouse-glow-before: rgba(0, 198, 255, 0.15);
    /* Efecto glow azul */
    --mouse-glow-after: rgba(0, 198, 255, 0.1);
    --scrolled: rgba(240, 240, 240, 0.9);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
    min-width: 320px;
    width: 100%;
    /* Ancho mínimo para evitar problemas */
}

/* Prevenir overflow horizontal global */
* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* Protección contra copia y descarga */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* Prevenir clic derecho en toda la página */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir selección solo en campos de formulario */
input,
textarea,
select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Mouse glow effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--mouse-glow-before),
            transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body:hover::before {
    opacity: 1;
}

/* Additional glow effect for better visibility */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--mouse-glow-after),
            transparent 40%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover::after {
    opacity: 1;
}

/* Efecto de iluminación estático en móvil */
@media (max-width: 768px) {
    body::before {
        background: radial-gradient(600px circle at 80% 20%,
                var(--mouse-glow-before),
                transparent 50%);
        opacity: 1;
    }

    body::after {
        background: radial-gradient(300px circle at 80% 20%,
                var(--mouse-glow-after),
                transparent 40%);
        opacity: 1;
    }

    body:hover::before,
    body:hover::after {
        opacity: 1;
    }
}

/* Navbar translúcido con efecto difuminado */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--scrolled);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-shrink: 0;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--accent-secondary));
    transition: width 0.3s ease;
}

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

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

.themeToggle {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.themeToggle:hover {
    opacity: 0.6;
}

.languageToggle {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.languageToggle:hover {
    opacity: 0.6;
}

/* Hamburger menu para móviles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 4px;
    transition: all 0.3s ease;
    position: relative;
    width: 33px;
    height: 21px;
    justify-content: space-between;
    margin-left: 5px;
}

.nav-burger-mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
    position: absolute;
    left: 4px;
}

.bar:nth-child(1) {
    top: 4px;
}

.bar:nth-child(2) {
    top: 9px;
}

.bar:nth-child(3) {
    top: 14px;
}

/* Animación del hamburger a X */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.hero-greeting {
    display: inline;
}

.highlight {
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    width: 200px;
    height: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow);
}

/* Flecha de scroll animada */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.arrow-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: var(--shadow);
}

.arrow-link:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Animación de rebote para la flecha */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* Secciones generales */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--accent-secondary));
    border-radius: 2px;
}

/* Sobre mí */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats-profile {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
}

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

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

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

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100%;
    text-align: center;
    box-shadow: var(--shadow);
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.profile-card-inside {
    background: rgba(166, 68, 68, 0.02);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100%;
    text-align: center;
    box-shadow: var(--shadow);
    width: 190px;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border-radius: 20px;
}

.profile-img {
    width: 190px;
    height: 190px;
    border-radius: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Tecnologías */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease !important;
}

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

.tech-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(12, 225, 233, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    /* background: rgba(0, 198, 255, 0.1); */
    transform: translateX(5px);
}

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

.tech-item span {
    font-weight: 500;
}

.tech-icon {
    width: 20px;
    height: 20px;
    filter: hue-rotate(11.01deg);
    /* Cambia el color del SVG */
}

.SQLite-icon {
    width: 20px;
    height: 20px;
    filter: hue-rotate(-10deg);
}

.HeidiSQL-icon {
    width: 20px;
    height: 20px;
    filter: hue-rotate(100deg);
}

.Firebase-icon {
    width: 20px;
    height: 20px;
    filter: hue-rotate(160deg);
}

.Tailwind-icon {
    width: 20px;
    height: 20px;
}

.Flask-icon {
    width: 25px;
    height: 25px;
    color: var(--accent-color);
    filter: hue-rotate(-70deg);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: min(800px, calc(100% - 40px));
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 70px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-marker {
    position: absolute;
    left: 19.5px; /* Centro matemático: 30px + 1.5px - 12px = 19.5px */
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: 4px solid var(--primary-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.2);
    z-index: 10;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

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

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.certificate-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

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

.certificate-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.certificate-content {
    flex: 1;
}

.certificate-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.certificate-issuer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.certificate-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.certificate-id {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: monospace;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.cert-skill-tag {
    background: rgba(0, 198, 255, 0.08);
    color: var(--accent-color);
    padding: 0.25rem 0.7rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease !important;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);

}

.project-image {
    height: 200px;
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Para que la imagen no se salga del contenedor */
    position: relative;
}

/* Overlay invisible para proteger imágenes */
.project-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    /* Transición suave para el efecto */
}

/* Efecto de escala en la imagen cuando se hace hover en el project-card */
.project-card:hover .project-img {
    transform: scale(1.1);
    /* Escala la imagen al 110% */
}

.project-placeholder {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color);
}

/* Proyectos ocultos y Load More */
.hidden-project {
    display: none;
    opacity: 0;
    transform: translateY(40px);
    transition: none;
    /* Sin transición para estado inicial */
}

.hidden-project.show {
    display: block;
    animation: fadeInUpSmooth 0.8s ease-out forwards;
}

/* Animación suave para proyectos del Load More */
@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeIn 0.6s ease;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
    transform: translateY(0);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;

}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-method i {
    color: var(--accent-color);
    width: 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

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

/* Formulario */
.form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

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

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);

}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        gap: 2rem;
    }

    .hero-container {
        gap: 2rem;
    }
}

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

    .themeToggle {
        padding: 9px;
        font-size: 15px;
    }

    .languageToggle {
        padding: 9px;
        font-size: 15px;
    }

    .nav-burger-mode-toggle-container {
        gap: 9px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(7, 10, 23, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 0;
        border-top: 1px solid var(--glass-border);
    }

    /* Fondo del menú hamburger en modo claro */
    body.light-mode .nav-menu {
        background: rgba(240, 240, 240, 0.9);
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        font-weight: 700;
        padding: 0.75rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .floating-card {
        margin-top: 3rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .scroll-arrow {
        bottom: 1rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats-profile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: center;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 0;
    }

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

    .profile-card {
        width: 140px;
        height: 140px;
        justify-self: center;
    }

    .profile-card-inside {
        width: 130px;
        height: 130px;
    }

    .profile-img {
        width: 130px;
        height: 130px;
    }


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

    .form {
        padding: 1.5rem;
        border-radius: 12px;
    }

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

    .form-input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .tech-items {
        grid-template-columns: 1fr;
    }

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

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

    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .load-more-container {
        margin-top: 2rem;
    }

    /* Timeline responsive */
    .timeline {
        padding: 1.5rem 0;
        width: calc(100% - 30px);
        max-width: 100%;
        overflow-x: hidden;
    }

    .timeline::before {
        left: 25px;
        width: 3px;
        z-index: 1;
    }

    .timeline-item {
        padding-left: 60px;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-marker {
        left: 17.5px; /* Centro matemático: 25px + 1.5px - 9px = 17.5px */
        width: 18px;
        height: 18px;
        z-index: 10;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-company {
        font-size: 1rem;
    }

    /* Certificates responsive */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .certificate-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .certificate-icon {
        align-self: center;
        margin-bottom: 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }


}

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

    .nav-container {
        padding: 0 0.75rem;
    }

    .themeToggle {
        padding: 8px;
        font-size: 14px;
    }

    .languageToggle {
        padding: 8px;
        font-size: 14px;
    }

    .nav-burger-mode-toggle-container {
        gap: 8px;
    }

    .nav-logo .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        margin-bottom: 6rem;
    }

    .hero-container {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }

    .hero-content {
        max-width: 100%;
        overflow: hidden;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        text-align: center;
        line-height: 1.5;
    }

    .floating-card {
        margin-top: 4rem;
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .about-description {
        font-size: 0.9rem;

    }

    .section {
        padding: 1rem 0;
        margin-bottom: 6rem;
    }

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

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-description {
        font-size: 0.9rem;

    }


    .form {
        padding: 1.2rem;
        border-radius: 10px;
    }

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

    .form-input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .social-links {
        gap: 0.8rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .profile-card {
        width: 120px;
        height: 120px;
    }

    .profile-card-inside {
        width: 110px;
        height: 110px;
    }

    .profile-img {
        width: 110px;
        height: 110px;
    }

    /* Timeline mobile adjustments */
    .timeline {
        padding: 1rem 0;
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: 100%;
        overflow-x: hidden;
    }

    .timeline::before {
        left: 20px;
        width: 3px;
        z-index: 1;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 3rem;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-marker {
        left: 13.5px; /* Centro matemático: 20px + 1.5px - 8px = 13.5px */
        width: 16px;
        height: 16px;
        z-index: 10;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-company {
        font-size: 0.9rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    /* Certificates mobile adjustments */
    .certificate-card {
        padding: 1.2rem;
    }

    .certificate-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .certificate-title {
        font-size: 1rem;
    }

    .certificate-issuer {
        font-size: 0.85rem;
    }

    .cert-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

}

/* Enhanced hover effects */
.project-card,
.tech-category,
.social-link,
.nav-link {
    position: relative;
    z-index: 2;
}

.project-card:hover,
.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 198, 255, 0.3);
}

/* Smooth transitions for all interactive elements */
.btn,
.nav-link,
.project-link,
.social-link,
.tech-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animaciones de entrada más visibles */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial - elementos completamente ocultos */
.project-card,
.tech-category,
.about-content,
.contact-content,
.timeline-item,
.certificate-card {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

/* Animación cuando aparecen */
.project-card.fade-in-up,
.tech-category.fade-in-up,
.about-content.fade-in-up,
.contact-content.fade-in-up,
.timeline-item.fade-in-up,
.certificate-card.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--primary-bg);
    /* Mismo color que el fondo de la página */
}

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

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

/* Media query para pantallas muy pequeñas */
@media (max-width: 375px) {
    .hero-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem;
        padding: 0 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.4rem;
        min-width: 160px;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .floating-card {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
        margin-top: 3rem;
    }

    /* Certificates for very small screens */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Timeline ultra-mobile adjustments */
    .timeline {
        width: calc(100% - 20px);
        padding: 1rem 0;
        margin: 0 auto;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
        z-index: 1;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 2.5rem;
    }

    .timeline-marker {
        left: 9px; /* Centro matemático: 15px + 1px - 7px = 9px */
        width: 14px;
        height: 14px;
        border: 2px solid var(--primary-bg);
        z-index: 10;
    }

    .timeline-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .timeline-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .timeline-company {
        font-size: 0.85rem;
    }

    .timeline-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .certificate-card {
        padding: 1rem;
        gap: 1rem;
    }

    .timeline {
        padding: 1rem 0;
        margin: 0 0.5rem;
    }

    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }
}