
/* ===== Variables y Reset ===== */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #2d3436;
    --accent-color: #fd79a8;
    --light-color: #f5f6fa;
    --dark-color: #2d3436;
    --text-color: #2d3436;
    --text-light: #636e72;
    --white: #faf7f1;
    --black: #000000;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 12px;
    
    /* Modo oscuro */
    --dark-bg: #1a1a2e;
    --dark-card: #16213e;
    --dark-text: #e6e6e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    transition: background 0.5s ease;
}

body.dark-mode {
    --text-color: var(--dark-text);
    --white: var(--dark-bg);
    --light-color: var(--dark-card);
    --dark-color: var(--dark-text);
}

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

.section {
    padding: 80px 0;
}

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

.section-title span {
    color: var(--primary-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== Header y Navegación ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo con efecto typing */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typing-container {
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    color: var(--accent-color);
    font-weight: bold;
}

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

/* Menú de navegación */
.nav-list {
    display: flex;
    gap: 5px;
    list-style: none;
    padding-left: 0; /* Esto quita el padding por defecto de las listas */
}

.nav-link {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-link:hover, 
.nav-link.active {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

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

.nav-link:hover i,
.nav-link.active i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  width: 50px;
  height: 50px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  position: relative;
}

.hamburger:hover {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary-color);
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
  position: relative;
}

.hamburger:hover .bar {
  background-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}

/* Animación mejorada al activarse */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
  background-color: var(--primary-color);
}

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

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
  background-color: var(--primary-color);
}


/* ===== Secciones ===== */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--light-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}



.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-img {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-img img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite, glow 3s ease-in-out infinite;

    /* Borde innovador con múltiples capas */
    box-shadow: 
        0 0 0 8px rgba(108, 92, 231, 0.3),
        0 0 0 16px rgba(253, 121, 168, 0.2),
        0 0 30px rgba(108, 92, 231, 0.5),
        0 0 60px rgba(253, 121, 168, 0.3),
        inset 0 0 50px rgba(255, 255, 255, 0.1);

    /* Borde degradado animado */
    border: 4px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, 
            #6c5ce7, 
            #fd79a8, 
            #00cec9, 
            #fdcb6e,
            #6c5ce7
        ) border-box;
    background-size: 300% 300%;
    animation: gradient-border 4s ease infinite, morph 8s ease-in-out infinite, glow 3s ease-in-out infinite;

    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 12px rgba(108, 92, 231, 0.4),
        0 0 0 24px rgba(253, 121, 168, 0.3),
        0 0 50px rgba(108, 92, 231, 0.7),
        0 0 100px rgba(253, 121, 168, 0.5),
        inset 0 0 80px rgba(255, 255, 255, 0.2);
}



/* Animación del degradado del borde */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animación de resplandor */
@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(253, 121, 168, 0.7));
    }
}

/* Sobre Mí */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: none; /* Asegurarse que no hay borde */
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    outline: none; /* Eliminar cualquier outline */
    border: none; /* Eliminar cualquier borde */
}

.about-img:hover img {
    transform: scale(1.05);
    outline: none; /* Eliminar outline en hover */
}

/* Para modo oscuro */
body.dark-mode .about-img {
    border: none;
}

body.dark-mode .about-img img {
    border: none;
    outline: none;
}

body.dark-mode .about-text p {
    color: var(--dark-text);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-info {
    display: flex;
    gap: 30px;
    margin: 20px 0 30px;
}

.info-item p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.info-item p span {
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== Carrusel de Habilidades ===== */
.skills-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.skills-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: calc(250px * 24); /* Ancho de cada item * cantidad total (12 originales + 12 duplicadas) */
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 150px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-item i {
    font-size: 3.5rem; /* Tamaño de los iconos */
    margin-bottom: 10px;
    transition: var(--transition);
}

.skill-item:hover i {
    transform: scale(1.1);
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 12)); /* Mover la mitad (solo los originales) */
}

}

/* Responsive */
@media (max-width: 768px) {
    .skills-track {
        gap: 15px;
        animation-duration: 20s;
    }
    
    .skill-item {
        min-width: 150px;
        height: 120px;
    }
    
    .skill-item i {
        font-size: 2.5rem;
    }
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--width); }
}

.html::after { --width: 95%; }
.css::after { --width: 90%; }
.js::after { --width: 85%; }
.node::after { --width: 80%; }
.python::after { --width: 75%; }
.git::after { --width: 85%; }
.responsive::after { --width: 90%; }

/* Proyectos */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  width: 350px;
  flex-shrink: 0;
}

.project-card:hover {
  transform: translateY(-10px);
}

/* Responsive para tablet */
@media (max-width: 1024px) {
  .projects-grid {
    justify-content: center;
  }
}

/* Responsive para mobile */
@media (max-width: 768px) {
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: unset;
  }

  .project-card {
    width: 100%;
  }
}

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

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    padding: 5px 10px;
    background-color: #f1f1f1;
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Testimonios */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    border: 3px solid var(--primary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 a {
    color: var(--dark-color);
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contacto */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

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

/* Mini Juego */
.mini-game-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#game-trigger {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

#game-trigger:hover {
    transform: scale(1.1);
}

.mini-game {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: none;
}

.mini-game h3 {
    margin-bottom: 15px;
    text-align: center;
}

.game-area {
    width: 100%;
    height: 200px;
    background: #cdcdcd;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.game-score {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.game-target {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: rgb(247, 219, 219);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-target:hover {
    transform: scale(1.2);
}

/* ===== Estilos del Footer con Modo Oscuro ===== */
/* ===== Footer Mejorado ===== */

.footer {
  background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Efecto decorativo de fondo */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-about, .footer-links, .footer-contact {
  animation: fadeInUp 0.6s ease-out;
}


.footer h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  transition: var(--transition);
}

.footer-links ul li a:hover ~ h3::after,
.footer:hover h3::after {
  width: 100px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li a:before {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-links ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Redes Sociales Mejoradas */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(108, 92, 231, 0.15);
  border: 2px solid rgba(108, 92, 231, 0.3);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
  z-index: -1;
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.social-links a:hover::before {
  width: 100%;
  height: 100%;
}

/* Footer Bottom Mejorado */
.footer-bottom {
  background: linear-gradient(90deg, 
    #fd79a8 0%, 
    #6c5ce7 25%, 
    #ffd93d 50%, 
    #4a90e2 75%, 
    #fd79a8 100%);
  padding: 30px 0;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-bottom p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  letter-spacing: 0.3px;
}

.footer-bottom strong {
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animación del corazón */
.heart {
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
  font-size: 1.1rem;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}

/* Responsive para Mobile */
@media (max-width: 768px) {
  .footer-bottom {
    padding: 25px 20px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
    gap: 4px;
  }

  .heart {
    font-size: 1rem;
  }
}

/* ===== Footer - Modo Oscuro ===== */

body.dark-mode .footer {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: var(--dark-text);
}

body.dark-mode .footer h3 {
  color: var(--dark-text);
}

body.dark-mode .footer-about p {
  color: rgba(230, 230, 230, 0.8);
}

body.dark-mode .footer-links ul li a {
  color: rgba(230, 230, 230, 0.7);
}

body.dark-mode .footer-links ul li a:hover {
  color: var(--primary-color);
}

body.dark-mode .social-links a {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--primary-color);
}

body.dark-mode .social-links a:hover {
  color: var(--white);
  background: rgba(108, 92, 231, 0.3);
}

body.dark-mode .footer-contact ul li a {
  color: rgba(230, 230, 230, 0.7);
}

body.dark-mode .footer-contact ul li a:hover {
  color: var(--primary-color);
}

/* Footer Bottom en modo oscuro */
body.dark-mode .footer-bottom {
  background: linear-gradient(90deg,
    #fd79a8 0%,
    #6c5ce7 25%,
    #ffd93d 50%,
    #4a90e2 75%,
    #fd79a8 100%);
  color: var(--white);
}

body.dark-mode .footer-bottom p {
  color: var(--white);
}

body.dark-mode .footer-bottom strong {
  color: var(--white);
}

/* Back to Top en modo oscuro */
body.dark-mode .back-to-top {
  background: var(--primary-color);
  color: var(--white);
}

body.dark-mode .back-to-top:hover {
  background: var(--accent-color);
}

/* Opción alternativa para footer-bottom con menos brillo */
body.dark-mode .footer-bottom {
  background: linear-gradient(90deg,
    #fd79a8 0%,
    #6c5ce7 25%,
    #ffd93d 50%,
    #4a90e2 75%,
    #fd79a8 100%);
  opacity: 0.9;
}

/* ===== Footer - Enlaces en color blanco correcto ===== */

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
}

.footer-contact ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
}

.footer-about p a {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hover states */
.footer-links ul li a:hover {
  color: var(--primary-color) !important;
}

.footer-contact ul li a:hover {
  color: var(--primary-color) !important;
}

.footer-about p a:hover {
  color: var(--accent-color) !important;
}

/* Asegurar que los links no tengan underline azul */
a {
  color: inherit;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

/* Específico para los links del footer */
.footer-links a,
.footer-contact a,
.footer-about a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  transition: var(--transition);
}

.footer-links a:visited,
.footer-contact a:visited,
.footer-about a:visited {
  color: rgba(255, 255, 255, 0.7);
}



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


/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Partículas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-img {
        height: auto; 
    }

    .hero-content {
        margin-top: 20px; 
        margin-bottom: 20px;
    }

    /* Nuevos estilos para la sección Sobre mí */
    .about-content {
        flex-direction: column;
    }

    .about-img {
        order: 2; /* Mover la imagen después del texto */
        margin-top: 30px;
    }

    .about-text {
        order: 1; /* Mover el texto antes de la imagen */
    }

    .hero-btns {
        justify-content: center;
    }

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

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

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

    .hamburger {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
}

/* Modo oscuro para el menú */
body.dark-mode .header {
    background-color: rgba(45, 52, 54, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background-color: rgba(108, 92, 231, 0.2);
}

body.dark-mode .hamburger:hover .bar {
    background-color: var(--accent-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-img img {
        width: 300px;
        height: 300px;
    }
    
    .about-img img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Eliminar outline en elementos interactivos */
a, button, input, textarea {
    outline: none !important;
}

/* Eliminar estilos por defecto de enlaces en algunos navegadores */
a:focus, a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mejorar la visualización de la imagen en móvil */
@media (max-width: 768px) {
    .about-img img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        display: block;
        border: none !important;
        outline: none !important;
    }
}

/* Animación de escala entrada */
@keyframes scaleIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


/* ===== Sección de Video ===== */

.video-section {
  background-color: var(--light-color);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Mantiene proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.video-container:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* Responsive para tablet */
@media (max-width: 1024px) {
  .video-container {
    padding-bottom: 56.25%;
  }
}

/* Responsive para mobile */
@media (max-width: 768px) {
  .video-container {
    padding-bottom: 56.25%;
  }
  
  .video-section .section-title {
    font-size: 1.8rem;
  }
}
