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

:root {
    --color-negro: #1a1a1a;
    --color-gris-oscuro: #2a2a2a;
    --color-gris: #4a4a4a;
    --color-gris-claro: #b0b0b0;
    --color-blanco: #ffffff;
    --color-crema: #d4c4b0;
    --color-crema-oscuro: #b8a591;
    --font-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* Clase sr-only para accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-crema);
    color: var(--color-negro);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--color-negro);
    color: var(--color-blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Estilos de foco para accesibilidad */
*:focus {
    outline: 2px solid var(--color-crema);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--color-crema);
    outline-offset: 3px;
}

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-crema);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-bracket {
    color: var(--color-crema);
    font-weight: bold;
    transition: var(--transition);
}

.logo:hover {
    color: var(--color-crema-oscuro);
}

.logo:hover .logo-bracket {
    color: var(--color-blanco);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Toggle Button */
.lang-toggle {
    background: transparent;
    border: 2px solid var(--color-crema);
    color: var(--color-crema);
    width: 50px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: bold;
    font-size: 0.85rem;
}

.lang-toggle:hover {
    background: var(--color-crema);
    color: var(--color-negro);
    transform: scale(1.05);
}

.lang-text {
    display: block;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--color-crema);
    color: var(--color-crema);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background-color: var(--color-crema);
    color: var(--color-negro);
    transform: rotate(180deg);
}

.nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    width: 280px;
    text-align: left;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    border-radius: 10px 0 0 10px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    list-style: none;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.nav-menu.active {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.nav-menu li {
    padding: 10px 30px;
    border-bottom: 1px solid rgba(212, 196, 176, 0.1);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-link {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: block;
    font-size: 1rem;
    padding: 8px 0;
}

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

.nav-link:hover {
    color: var(--color-crema);
    transform: translateX(5px);
}

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

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
    width: 45px;
    height: 45px;
}

.hamburger:hover {
    background: rgba(212, 196, 176, 0.1);
    border-radius: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-crema);
    transition: var(--transition);
    display: block;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

/* Canvas para partículas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-blanco);
}

.highlight {
    color: var(--color-crema);
    position: relative;
    display: inline-block;
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--color-gris-claro);
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.typing-text {
    color: var(--color-crema);
}

.cursor-blink {
    color: var(--color-crema);
    animation: blink 1s infinite;
}

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

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-gris-claro);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span, .btn i {
    position: relative;
    z-index: 1;
}

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

.btn-primary:hover {
    background-color: var(--color-crema-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 196, 176, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--color-crema);
    color: var(--color-crema);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-crema);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-video {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-crema);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: none;
    position: relative;
    z-index: 2;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0.9);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 196, 176, 0);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.05);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 30px 10px rgba(212, 196, 176, 0.3);
    }
}

.image-wrapper:hover img,
.image-wrapper:hover .hero-video {
    animation-play-state: paused;
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 25px 70px rgba(212, 196, 176, 0.3);
    filter: brightness(1.15) saturate(1.2);
}

/* Formas flotantes decorativas */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--color-crema), var(--color-crema-oscuro));
    opacity: 0.1;
    animation: morph 8s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    left: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -40px;
    animation-delay: 4s;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg) scale(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-crema);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    animation: bounce 2s infinite;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--color-crema);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--color-crema);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s backwards;
}

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

/* Secciones */
section {
    padding: 100px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-crema);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-crema), var(--color-crema-oscuro));
}

/* Efecto de revelación de texto */
.reveal-text {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Sobre Mí */
.about {
    background-color: var(--color-gris-oscuro);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease;
    display: block;
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 196, 176, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.image-container:hover .image-glow {
    opacity: 1;
}

.image-container:hover img {
    transform: scale(1.1);
    box-shadow: 0 25px 60px rgba(212, 196, 176, 0.4);
}

/* Efecto Tilt 3D */
.tilt-effect {
    transition: transform 0.1s ease;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-crema);
}

.about-text p {
    color: var(--color-gris-claro);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-negro);
    border-radius: 10px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background-color: var(--color-gris);
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--color-crema);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--color-gris-claro);
    font-size: 0.9rem;
}

/* Experiencia */
.experience, .practices {
    background-color: var(--color-negro);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-crema), var(--color-crema-oscuro));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-crema);
    border-radius: 50%;
    border: 3px solid var(--color-negro);
}

.timeline-content {
    background-color: var(--color-gris-oscuro);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--color-crema);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(212, 196, 176, 0.2);
}

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

.timeline-content h4 {
    color: var(--color-gris-claro);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-gris);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-crema);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--color-gris-claro);
}

/* Proyectos */
.projects {
    background-color: var(--color-gris-oscuro);
}

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

.project-card {
    background-color: var(--color-negro);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 196, 176, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

.project-card:hover {
    box-shadow: 0 20px 50px rgba(212, 196, 176, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(2deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-crema);
    color: var(--color-negro);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(20px);
}

.project-card:hover .btn-icon {
    transform: translateY(0);
}

.btn-icon:nth-child(1) {
    transition-delay: 0.1s;
}

.btn-icon:nth-child(2) {
    transition-delay: 0.2s;
}

.btn-icon:hover {
    background-color: var(--color-crema-oscuro);
    transform: scale(1.2) rotate(360deg);
}

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

.project-info h3 {
    color: var(--color-crema);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-card:hover .project-info h3 {
    color: var(--color-blanco);
}

.project-info p {
    color: var(--color-gris-claro);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 5px 15px;
    background-color: var(--color-gris);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-crema);
    transition: var(--transition);
}

.project-tags span:hover {
    background-color: var(--color-crema);
    color: var(--color-negro);
    transform: translateY(-3px);
}

/* Habilidades */
.skills {
    background-color: var(--color-negro);
}

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

.skill-category {
    background-color: var(--color-gris-oscuro);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 196, 176, 0.2);
}

.skill-category h3 {
    color: var(--color-crema);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skill-item span {
    color: var(--color-blanco);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

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

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--color-crema), var(--color-crema-oscuro));
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: slide 1.5s infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Footer */
.footer {
    background-color: var(--color-gris-oscuro);
    padding: 2rem 0;
    border-top: 1px solid var(--color-gris);
}

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

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

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: var(--color-negro);
    color: var(--color-crema);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-crema);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.footer-social a:hover::before {
    transform: translateY(0);
}

.footer-social a:hover {
    color: var(--color-negro);
    transform: translateY(-5px) rotate(360deg);
}

.footer-social a i {
    position: relative;
    z-index: 1;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    color: var(--color-gris-claro);
    margin: 0;
}

/* Cursor personalizado */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-crema);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-crema);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Tema Claro (Opcional) */
body.light-theme {
    --color-negro: #9bb885;
    --color-gris-oscuro: #b8d0a5;
    --color-gris: #9bb885;
    --color-gris-claro: #3a4835;
    --color-blanco: #222c1e;
    --color-crema: #7a5d3f;
    --color-crema-oscuro: #5d4330;
}

body.light-theme .hero {
    background: linear-gradient(135deg, #cce0b5 0%, #b8d0a5 100%);
}

body.light-theme .navbar {
    background-color: rgba(211, 227, 197, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-menu {
    background-color: rgba(211, 227, 197, 0.98);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.12);
}

body.light-theme .nav-link {
    color: #222c1e;
}

body.light-theme .nav-link:hover {
    color: #7a5d3f;
}

body.light-theme .nav-menu li {
    border-bottom: 1px solid rgba(122, 93, 63, 0.15);
}

body.light-theme .menu-overlay {
    background-color: rgba(34, 44, 30, 0.35);
}

body.light-theme .about,
body.light-theme .skills,
body.light-theme .passion {
    background: #b8d0a5;
}

body.light-theme .stat,
body.light-theme .timeline-content,
body.light-theme .project-card,
body.light-theme .skill-category,
body.light-theme .education-card,
body.light-theme .competency-item {
    background-color: #e8f2db;
    border-color: rgba(122, 93, 63, 0.2);
}

body.light-theme .practice-card,
body.light-theme .passion-item {
    background-color: #e8f2db;
}

body.light-theme .skill-bar {
    background-color: #9bb885;
}

body.light-theme .footer-social a {
    background-color: #e8f2db;
}

body.light-theme .btn-primary {
    background-color: #7a5d3f;
    color: #ffffff;
}

body.light-theme .btn-primary:hover {
    background-color: #5d4330;
    box-shadow: 0 10px 25px rgba(122, 93, 63, 0.3);
}

body.light-theme .btn-secondary {
    border-color: #7a5d3f;
    color: #2b2e28;
}

body.light-theme .btn-secondary:hover {
    border-color: #5d4330;
    color: #5d4330;
}

body.light-theme .hamburger span {
    background-color: #7a5d3f;
}

body.light-theme .lang-toggle,
body.light-theme .theme-toggle {
    border-color: #7a5d3f;
    color: #7a5d3f;
}

body.light-theme .lang-toggle:hover,
body.light-theme .theme-toggle:hover {
    background: #7a5d3f;
    color: #ffffff;
}

body.light-theme .logo,
body.light-theme .logo-bracket {
    color: #7a5d3f;
}

body.light-theme .logo:hover {
    color: #5d4330;
}

body.light-theme .timeline-dot {
    background-color: #7a5d3f;
    border-color: #e8f2db;
}

body.light-theme .project-overlay {
    background: rgba(232, 242, 219, 0.95);
}

body.light-theme .btn-icon {
    background-color: #7a5d3f;
    color: #ffffff;
}

body.light-theme .btn-icon:hover {
    background-color: #5d4330;
}

/* Animaciones de entrada mejoradas */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation para elementos importantes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow effect */
.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 196, 176, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 196, 176, 0.6);
    }
}

/* Educación Section */
.education {
    padding: 100px 0;
    background: var(--color-gris-oscuro);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.education-card {
    background: var(--color-negro);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 196, 176, 0.1);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-crema);
    box-shadow: 0 10px 30px rgba(212, 196, 176, 0.2);
}

.education-icon {
    font-size: 3rem;
    color: var(--color-crema);
    margin-bottom: 20px;
}

.education-card h3 {
    font-size: 1.5rem;
    color: var(--color-crema);
    margin-bottom: 10px;
}

.education-subtitle {
    color: var(--color-gris-claro);
    font-size: 1rem;
    margin-bottom: 20px;
}

.education-list {
    list-style: none;
    padding: 0;
}

.education-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 196, 176, 0.1);
    color: var(--color-gris-claro);
}

.education-list li:last-child {
    border-bottom: none;
}

.education-list strong {
    color: var(--color-crema);
}

/* Experience Tags */
.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.experience-tags span {
    padding: 5px 15px;
    background: rgba(212, 196, 176, 0.1);
    border: 1px solid rgba(212, 196, 176, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-crema);
}
body.light-theme .experience-tags span {
    background: #636663;
    color: #fff;
    border: 1px solid rgba(244, 221, 194, 0.3);
}

/* Buenas Prácticas Section */
.practices {
    padding: 100px 0;
    background: var(--color-negro);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.practice-card {
    background: var(--color-gris-oscuro);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 196, 176, 0.1);
}

.practice-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-crema);
    box-shadow: 0 15px 40px rgba(212, 196, 176, 0.15);
}

.practice-icon {
    font-size: 3rem;
    color: var(--color-crema);
    margin-bottom: 20px;
}

.practice-card h3 {
    font-size: 1.3rem;
    color: var(--color-crema);
    margin-bottom: 15px;
}

.practice-card p {
    color: var(--color-gris-claro);
    line-height: 1.6;
}

/* Competencias Section */
.competencies {
    padding: 100px 0;
    background: var(--color-gris-oscuro);
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.competency-item {
    background: var(--color-negro);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 196, 176, 0.1);
}

.competency-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-crema);
    box-shadow: 0 10px 30px rgba(212, 196, 176, 0.1);
}

.competency-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.competency-item h3 {
    font-size: 1.2rem;
    color: var(--color-crema);
    margin-bottom: 10px;
}

.competency-item p {
    color: var(--color-gris-claro);
    font-size: 0.9rem;
}

/* Pasión Section */
.passion {
    padding: 100px 0;
    background: var(--color-negro);
}

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

.passion-item {
    background: var(--color-gris-oscuro);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 196, 176, 0.1);
}

.passion-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-crema);
    box-shadow: 0 15px 40px rgba(212, 196, 176, 0.2);
}

.passion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.passion-item h3 {
    font-size: 1.4rem;
    color: var(--color-crema);
    margin-bottom: 15px;
}

.passion-item p {
    color: var(--color-gris-claro);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    
    .nav-controls {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    .hamburger {
        order: 3;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

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

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

    .hero-text h2 {
        font-size: 1.5rem;
    }

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

    .image-wrapper img {
        width: 300px;
        height: 300px;
    }
    
    .floating-shapes {
        display: none;
    }

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

    .about-image {
        display: none;
    }

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

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        border-left: none;
        border-top: 3px solid var(--color-crema);
    }

    .timeline-content:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }

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

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

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

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

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

    .passion-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-text {
        text-align: center;
    }

    section {
        padding: 60px 20px;
    }
    
    #particles-canvas {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .image-wrapper img {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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