@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
  /* Modo claro - Paleta mejorada con mejor contraste */
  --text-color: #1a202c;
  --bg-color: #f7fafc;
  --primary-color: #2b6cb0;
  --secondary-color: #38a169;
  --accent-color: #805ad5;

  /* Variables para el diseño en modo claro */
  --header-bg: rgba(255, 255, 255, 0.95);
  --sidebar-bg: rgba(43, 108, 176, 0.95);
  --section-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --button-bg: #2b6cb0;
  --button-hover: #2c5282;
  --button-bg-rgb: 43, 108, 176;
  --line-dec-color: #805ad5;
  --border-color: rgba(226, 232, 240, 0.8);
  --tech-tag-bg: #2b6cb0;
  --tech-tag-text: #ffffff;
  --gradient-bg: linear-gradient(135deg, #2b6cb0, #805ad5);
  --hover-bg: rgba(43, 108, 176, 0.1);
}

/* Modo oscuro - Mantener los colores actuales que funcionan bien */
[data-theme="dark"] {
  --text-color: #e2e8f0;
  --bg-color: rgba(26, 32, 44, 0.95);
  --primary-color: #63b3ed;
  --secondary-color: #4fd1c5;
  --accent-color: #7f9cf5;

  --header-bg: rgba(26, 32, 44, 0.95);
  --sidebar-bg: rgba(26, 32, 44, 0.98);
  --section-bg: rgba(26, 32, 44, 0.95);
  --card-bg: rgba(45, 55, 72, 0.95);
  --button-bg: #63b3ed;
  --button-hover: #4fd1c5;
  --button-bg-rgb: 99, 179, 237;
  --border-color: rgba(255, 255, 255, 0.1);
  --tech-tag-bg: #63b3ed;
  --tech-tag-text: #ffffff;
  --gradient-bg: linear-gradient(135deg, #2d3748, #4a5568);
  --hover-bg: rgba(99, 179, 237, 0.1);
}

/* Estilos para modo oscuro usando media query (respaldo automático) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-color: #e0e6ff;
    --bg-color: rgba(22, 28, 65, 0.1);
    --primary-color: #6c63ff;
    --secondary-color: #4e54c8;
    --accent-color: #00c9ff;
    
    --header-bg: rgba(22, 28, 65, 0.8);
    --sidebar-bg: rgba(16, 20, 45, 0.95);
    --section-bg: rgba(22, 28, 65, 0.1);
    --card-bg: rgba(30, 39, 97, 0.2);
    --button-bg: #6c63ff;
    --button-hover: #4e54c8;
    --border-color: rgba(255, 255, 255, 0.1);
    --tech-tag-bg: #6c63ff;
    --tech-tag-text: #ffffff;
  }
}

/* Selector de tema */
.theme-switch-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: var(--sidebar-bg);
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Selector de idioma */
.language-switch-wrapper {
  display: none; /* O podemos eliminar completamente este bloque */
}

/* Actualizamos los estilos para el sidebar */
.sidebar-language-switch {
  padding: 20px;
  margin-top: auto; /* Empuja el selector hacia abajo */
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.language-switch {
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  opacity: 0.7;
}

.language-switch:hover {
  opacity: 1;
}

.language-switch.active {
  background-color: var(--accent-color);
  opacity: 1;
}

.language-icon {
  color: var(--accent-color);
  font-size: 1.2em;
}

/* Ajustes responsive */
@media screen and (max-width: 1024px) {
  .sidebar-language-switch {
    padding: 15px;
  }
}

.theme-switch-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.theme-icon {
  margin: 0 8px;
  color: var(--accent-color);
  font-size: 16px;
}

/* Fuentes */
html, body, #page-wraper {
  background: var(--gradient-bg) !important;
}

body {
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 400;
  color: var(--text-color);
  line-height: 2;
  letter-spacing: 0.5px;
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

html {font-size: 100%;} /* 16px */
h1 {font-size: 4.210rem;} /* 67.36px */
h2 {font-size: 3.158rem;} /* 50.56px */
h3 {font-size: 2.369rem;} /* 37.92px */
h4 {font-size: 1.777rem;} /* 28.48px */
h5 {font-size: 1.333rem;} /* 21.28px */
small {font-size: 0.750rem;} /* 12px */

/* Personalización de la plantilla Reflux */
/* Mejoras en el sidebar */
.responsive-nav {
  width: 280px;
  height: 100vh;

  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  border-radius: 0 24px 24px 0; /* Bordes redondeados en el lado derecho */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombra suave para dar profundidad */
}

/* Ajustar los elementos internos para que respeten los bordes redondeados */
.sidebar-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible; /* Permitir que el contenido sea visible en móvil */
}

.menu .container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 0;
}

.image {
  margin-bottom: 30px;
}

.image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.author-content {
  margin-bottom: 30px;
}

.author-content h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.author-content span {
  font-size: 1rem;
  color: var(--secondary-color);
}

.main-nav {
  margin: 30px 0;
  flex-grow: 1;
}

.main-menu {
  padding: 0;
  margin: 0;
}

.main-menu li {
  margin-bottom: 15px;
}

.main-menu li a {
  font-size: 1rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.main-menu li a:hover {
  color: var(--primary-color);
}

/* Estilos mejorados para iconos sociales */
.social-network {
  margin-top: auto;
  padding: 20px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  transition: all 0.3s ease;
}

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

.social-icon i {
  font-size: 1.2rem;
}

/* Variables para el tema */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #2ecc71;
  --text-color: #333;
}

/* Variables para tema oscuro */
[data-theme="dark"] {
  --primary-color: #64b5f6;
  --secondary-color: #81c784;
  --text-color: #fff;
}

/* Estilos para la sección de proyectos (isotope) */
.isotope-toolbar input[type="radio"] + span {
  color: var(--text-color);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.isotope-toolbar input[type="radio"]:checked + span {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Estilos para la sección de proyectos */
.filters {
  margin-bottom: 40px;
}

.filters-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.item-filter {
  position: relative;
  margin: 0 5px;
}

.item-filter input[type="radio"] {
  display: none;
}

.item-filter label {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.item-filter input[type="radio"]:checked + label {
  background-color: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.item-filter label:hover {
  background-color: var(--button-hover);
  color: white;
  border-color: var(--button-hover);
  transform: translateY(-2px);
}

.isotope-box {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.isotope-item {
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .isotope-box {
    grid-template-columns: 1fr;
  }
}

/* NUEVA ANIMACIÓN DE PROYECTOS - REEMPLAZA COMPLETAMENTE LA ANTERIOR */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gradient-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  aspect-ratio: 4/3;
}

.gradient-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: pattern-move 20s linear infinite;
}

.preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.preview-content i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.preview-title {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

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

@keyframes pattern-move {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.project-card:hover .gradient-preview {
  transform: scale(1.05);
}

.project-card h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card p.project-description {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  max-height: none;
}

.project-card .project-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.project-card:hover h4,
.project-card:hover p.project-description,
.project-card:hover .project-btn {
  opacity: 1;
  transform: translateY(0);
}

.project-card .project-btn:hover {
  background-color: #ffffff;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Mejora del contraste para las etiquetas de tecnologías - AHORA FUERA DE LA IMAGEN */
.project-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.tech-tags-container {
  background-color: var(--card-bg);
  padding: 12px 15px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 3px solid var(--accent-color);
}

.tech-tag {
  display: inline-block;
  padding: 6px 12px;
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Colores variados para las etiquetas de tecnología */
.tech-tag.python {
  background: linear-gradient(135deg, #306998, #4B8BBE);
}

.tech-tag.javascript {
  background: linear-gradient(135deg, #F0DB4F, #F7DF1E);
  color: #323330;
}

.tech-tag.react {
  background: linear-gradient(135deg, #61DAFB, #00D8FF);
  color: #282c34;
}

.tech-tag.flutter {
  background: linear-gradient(135deg, #42A5F5, #0D47A1);
}

.tech-tag.dart {
  background: linear-gradient(135deg, #00B4AB, #0175C2);
}

.tech-tag.node {
  background: linear-gradient(135deg, #68A063, #3C873A);
}

.tech-tag.database {
  background: linear-gradient(135deg, #F29111, #E48E00);
}

.tech-tag.api {
  background: linear-gradient(135deg, #8E44AD, #9B59B6);
}

.tech-tag.web {
  background: linear-gradient(135deg, #E44D26, #F16529);
}

.tech-tag.mobile {
  background: linear-gradient(135deg, #A4C639, #78C257);
}

.tech-tag.desktop {
  background: linear-gradient(135deg, #0078D7, #5B9BD5);
}

.tech-tag.default {
  background: linear-gradient(135deg, #3f45b2, #4e54c8);
}

.tech-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mensaje cuando no hay proyectos que coincidan con el filtro */
.no-projects-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-color);
  font-size: 1.1rem;
  opacity: 0.7;
  grid-column: 1 / -1; /* Ocupa todo el ancho del grid */
}

/* ===== PROYECTOS DESTACADOS ===== */
.featured-projects-section {
  margin: 60px 0;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.featured-heading {
  text-align: center;
  margin-bottom: 40px;
}

.featured-heading h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-heading p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  margin: 0;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* Ajustar ancho del formulario de contacto */
.contact-section .row {
  display: flex;
  align-items: stretch;
}

.contact-section .col-lg-5 {
  flex: 0 0 35%;
  max-width: 35%;
}

.contact-section .col-lg-7 {
  flex: 0 0 65%;
  max-width: 65%;
}

.featured-project-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.4s ease;
  overflow: hidden;
}

.featured-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B, #4ECDC4);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-project-card:hover::before {
  opacity: 0.1;
}

.featured-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.featured-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.featured-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.featured-content p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.featured-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.featured-metrics .metric {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-color);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.featured-metrics .metric i {
  color: var(--button-bg);
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.featured-tech .tech-tag {
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

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

.featured-btn:hover i {
  transform: translateX(5px);
}

/* Separador para todos los proyectos */
.all-projects-heading {
  text-align: center;
  margin: 60px 0 40px 0;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.all-projects-heading h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.all-projects-heading p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
}

/* Badge destacado en el grid normal */
.featured-project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive para proyectos destacados */
@media (max-width: 768px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .featured-project-card {
    padding: 20px;
  }

  .featured-heading h3 {
    font-size: 1.8rem;
  }

  .featured-content h4 {
    font-size: 1.3rem;
  }

  .featured-metrics {
    justify-content: center;
  }
}

/* ===== SECCIÓN DE CONTACTO MODERNA ===== */
.contact-section {
  margin-top: 40px;
}

.contact-info {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
}

.contact-info-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.contact-info-header p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
  border-color: var(--button-bg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  color: white;
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
}

/* Formulario de contacto moderno */
.contact-form-container {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 35px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
  text-align: center;
  margin-bottom: 35px;
}

.form-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.form-header p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--text-color);
  opacity: 0.5;
  font-size: 1rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.textarea-icon {
  top: 15px;
  align-self: flex-start;
}

.modern-input,
.modern-textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.modern-input:focus,
.modern-textarea:focus {
  outline: none;
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px rgba(var(--button-bg-rgb), 0.1);
  background: var(--card-bg);
}

.modern-input:focus + .input-icon,
.modern-textarea:focus + .input-icon {
  color: var(--button-bg);
  opacity: 1;
}

.modern-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.modern-submit-btn {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.modern-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.modern-submit-btn:active {
  transform: translateY(0);
}

.btn-loading {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-submit-btn.loading .btn-loading {
  opacity: 1;
}

.modern-submit-btn.loading span,
.modern-submit-btn.loading > i {
  opacity: 0;
}

/* Placeholder styling */
.modern-input::placeholder,
.modern-textarea::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

/* Estados de error y focus */
.input-wrapper.error .modern-input,
.input-wrapper.error .modern-textarea {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-wrapper.error .input-icon {
  color: #dc3545;
}

.input-wrapper.focused .input-icon {
  color: var(--button-bg);
  opacity: 1;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

/* Animaciones adicionales */
.modern-input,
.modern-textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-submit-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras para el modo oscuro */
[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form-container {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-method {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modern-input,
[data-theme="dark"] .modern-textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .modern-input:focus,
[data-theme="dark"] .modern-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--button-bg);
}

[data-theme="dark"] .modern-input::placeholder,
[data-theme="dark"] .modern-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== MEJORAS ESPECÍFICAS PARA MODO CLARO ===== */
/* Mejorar contraste de cards en modo claro */
:root:not([data-theme="dark"]) .project-card,
:root:not([data-theme="dark"]) .contact-info,
:root:not([data-theme="dark"]) .contact-form-container,
:root:not([data-theme="dark"]) .featured-project-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mejorar contraste de texto en modo claro */
:root:not([data-theme="dark"]) .project-card h4,
:root:not([data-theme="dark"]) .featured-content h4,
:root:not([data-theme="dark"]) .contact-info h3,
:root:not([data-theme="dark"]) .form-header h3 {
  color: #1a202c;
}

/* Mejorar contraste de descripciones en modo claro */
:root:not([data-theme="dark"]) .project-description,
:root:not([data-theme="dark"]) .featured-content p,
:root:not([data-theme="dark"]) .contact-info-header p,
:root:not([data-theme="dark"]) .form-header p {
  color: #4a5568;
}

/* Mejorar contraste de inputs en modo claro */
:root:not([data-theme="dark"]) .modern-input,
:root:not([data-theme="dark"]) .modern-textarea {
  background: #f7fafc;
  border-color: rgba(226, 232, 240, 0.8);
  color: #1a202c;
}

:root:not([data-theme="dark"]) .modern-input:focus,
:root:not([data-theme="dark"]) .modern-textarea:focus {
  background: #ffffff;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

/* Mejorar contraste de métodos de contacto en modo claro */
:root:not([data-theme="dark"]) .contact-method {
  background: #f7fafc;
  border-color: rgba(226, 232, 240, 0.6);
}

:root:not([data-theme="dark"]) .contact-method:hover {
  background: #ffffff;
  border-color: #2b6cb0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Mejorar contraste de métricas en modo claro */
:root:not([data-theme="dark"]) .featured-metrics .metric {
  background: #f7fafc;
  border-color: rgba(226, 232, 240, 0.6);
  color: #1a202c;
}

/* Mejorar contraste de tech tags en modo claro */
:root:not([data-theme="dark"]) .tech-tags-container .tech-badge,
:root:not([data-theme="dark"]) .featured-tech .tech-tag {
  background: #2b6cb0;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.2);
}

/* Mejorar contraste de overlays en modo claro */
:root:not([data-theme="dark"]) .project-card .overlay {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* Mejorar contraste de preview en modo claro */
:root:not([data-theme="dark"]) .gradient-preview {
  background: linear-gradient(135deg, #2b6cb0, #805ad5);
}

/* Mejorar contraste de badges destacados en modo claro */
:root:not([data-theme="dark"]) .featured-badge,
:root:not([data-theme="dark"]) .featured-project-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a202c;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ===== ANIMACIONES DE NAVEGACIÓN SUAVE ===== */
/* Desactivar scroll-behavior nativo para usar nuestra animación personalizada */
html {
  scroll-behavior: auto !important;
}

/* Navegación suave - solo animación básica del contenido */

/* Responsive para contacto */
@media (max-width: 991px) {
  .contact-info {
    margin-bottom: 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form-container {
    padding: 30px 25px;
  }

  .contact-info {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .contact-method {
    padding: 15px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-icon i {
    font-size: 1.1rem;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .modern-input,
  .modern-textarea {
    padding: 12px 12px 12px 40px;
  }

  .modern-submit-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }
}

/* Estilos para las páginas de detalle de proyectos */
.project-details {
  padding: 60px 0;
}

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-heading .line-dec {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 20px auto;
}

.section-heading span {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
}

/* Stack Tecnológico */
.tech-stack-section {
  margin: 4rem 0;
}

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

.tech-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-item h4 {
  font-size: 1.25rem;
  margin: 1rem 0;
}

.tech-item p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Características */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: white;
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Enlaces y Recursos */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
}

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

/* Responsive */
@media (max-width: 768px) {
  .tech-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ajustes para el modo oscuro */
[data-theme="dark"] .challenge-box {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .project-navigation {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejoras de espaciado general */
p {
  margin-bottom: 1.8rem;
  line-height: 2;
}

.about-content {
  padding: 30px 0;
}

.content-text {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  line-height: 2;
}

.content-text h4 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
}

.content-text p {
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 500;
}

.service-item ul {
  padding-left: 25px;
  margin-top: 15px;
}

.service-item ul li {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Mejoras para la sección de contacto */
.contact-me .container {
  padding: 30px 0;
}

.contact-me form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-me fieldset {
  margin-bottom: 20px;
}

.contact-me .form-control {
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-me .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(63, 69, 178, 0.2);
  outline: none;
}

.contact-me textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-me button.button {
  padding: 12px 30px;
  border-radius: 5px;
  background-color: var(--button-bg);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.contact-me button.button:hover {
  background-color: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Mejoras adicionales para la animación de los proyectos - COMPLETAMENTE NUEVA */
figure.snip1321 {
  display: none; /* Ocultamos completamente la clase anterior */
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #4a0635, #7b1fa2);
}

/* Eliminar los estilos alternativos para móviles ya que ahora usamos solo gradiente */
@media (max-width: 991px) {
  body {
    background: linear-gradient(135deg, #a71d31, #3a1c71);
  }
  
  [data-theme="dark"] body {
    background: linear-gradient(135deg, #4a0635, #7b1fa2);
  }
}

/* Ajuste para modo oscuro */
[data-theme="dark"] html, 
[data-theme="dark"] body, 
[data-theme="dark"] #page-wraper {
  background: linear-gradient(135deg, #4a0635, #7b1fa2) !important;
}

/* Mejora del contraste para textos */
.section p, .content-text p, .service-item p {
  color: var(--text-color);
  font-weight: 500;
}

.service-item h4, .content-text h4 {
  color: var(--primary-color);
  font-weight: 700;
}

[data-theme="dark"] .section p, 
[data-theme="dark"] .content-text p, 
[data-theme="dark"] .service-item p {
  color: #f5f5f5;
}

.project-preview {
  position: relative;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}

.preview-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: var(--card-bg);
  margin-bottom: 2rem;
}

.main-preview {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.metrics-overlay {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-bg);
  border-radius: 8px;
  color: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.tech-category {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--tech-tag-bg);
  color: var(--tech-tag-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s;
}

.tech-badge:hover {
  transform: translateY(-2px);
}

/* Estilos para la página de proyecto */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header del proyecto */
.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-tags {
    margin: 1rem 0;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

/* Características compactas */
.features-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Desafíos y Soluciones */
.challenge-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.challenge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Detalles Técnicos */
.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-card pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* Resultados y Métricas */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.result-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
}

.result-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .challenge-content {
        grid-template-columns: 1fr;
    }
    
    .technical-details {
        grid-template-columns: 1fr;
    }
}
/* Estilos para el selector de idioma en el sidebar */
.sidebar-language-switch {
  padding: 20px;
  margin-top: auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.language-label {
  display: block;
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.language-options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.language-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.language-switch:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-switch.active {
  background: var(--accent-color);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.flag-icon {
  font-size: 1.2rem;
}

.lang-text {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Efecto hover suave */
.language-switch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.language-switch:hover::after {
  opacity: 1;
}

/* Asegurarse que los íconos de Font Awesome sean visibles */
.fas, .fa {
  display: inline-block;
  line-height: 1;
}

/* Ajustes responsive */
@media screen and (max-width: 1024px) {
  .sidebar-language-switch {
    padding: 15px;
  }
  
  .language-switch {
    padding: 6px 12px;
  }
}

/* Animación suave al cambiar de idioma */
.language-switch.active {
  animation: selectLanguage 0.3s ease;
}

@keyframes selectLanguage {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Efecto de presión al hacer clic */
.language-switch:active {
  transform: scale(0.95);
}

/* Ajustes de colores para el sidebar */
.menu {
  background: var(--sidebar-bg);
}

.author-content h4 {
  color: #ffffff;
}

.author-content span {
  color: var(--accent-color);
}

.main-menu li a {
  color: #ffffff;
}

.main-menu li a:hover {
  color: var(--accent-color);
}

.social-icon {
  background: var(--accent-color);
}

.social-icon:hover {
  background: var(--primary-color);
}

.service-item {
  background: var(--card-bg, rgba(255, 255, 255, 0.1));
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
  transform: translateY(-5px);
  background: var(--accent-color, #4a90e2);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-item h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-item:hover h4 {
  color: #ffffff;
}

.service-item ul li {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.service-item:hover ul li {
  color: #ffffff;
}

/* Variables para modo claro */
:root {
  --card-bg: #ffffff;
  --primary-color: #333333;
  --text-color: #666666;
  --accent-color: #4a90e2;
}

/* Variables para modo oscuro */
[data-theme="dark"] {
  --card-bg: #2a2a2a;
  --primary-color: #ffffff;
  --text-color: #cccccc;
  --accent-color: #5a9ff2;
}

/* Asegurarse que los íconos también cambien de color */
.service-item .service-icon {
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  color: #ffffff;
}

/* Ajuste del layout principal */
#page-wraper {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ajustes del sidebar */
.responsive-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 999;
  overflow-y: auto;
}

.menu {
  background: var(--sidebar-bg);
  margin: 20px;
  border-radius: 24px;
  padding: 20px;
  height: calc(100vh - 40px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem 10rem; 
}

/* Estilizar los elementos internos */
.nav-link {
  border-radius: 12px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

/* Ajustes responsive */
@media screen and (max-width: 845px) {
  .menu {
    margin: 0;
    border-radius: 0;
   
  }
}

/* Ajuste del contenido principal */
.section {
  padding-top: 80px;
  min-height: 100vh;
}

/* Ajustes responsive */
@media screen and (max-width: 1024px) {
  #page-wraper {
    padding-left: 0;
  }
}

/* Asegurarse que los proyectos estén correctamente espaciados */
.project-details {
  padding: 80px 30px;
}

/* Ajuste de los botones de navegación */
.main-menu li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-menu li a:hover,
.main-menu li.active a {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Corregir el espaciado del contenedor principal en páginas de proyectos */
.project-details .container {
  padding-top: 0;
}

/* Estilos para las páginas de proyectos */
.project-details {
  padding: 40px 0;
}

.project-preview {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.preview-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: var(--card-bg);
}

.main-preview {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.main-preview:hover {
  transform: scale(1.02);
}

.metrics-overlay {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--glass-bg);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
}

.metric-card i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Secciones de proyecto */
.project-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.project-section h3 {
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.project-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* Grid de características */
.key-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Stack tecnológico */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-badge {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px;
  background: var(--glass-bg);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

/* Enlaces y recursos */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: default;
}

.resource-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.resource-info i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.resource-info.github i {
  color: #333;
}

.resource-info.docs i {
  color: var(--primary-color);
}

.resource-info.production i {
  color: var(--secondary-color);
}

.resource-info span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.resource-info small {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 200px;
}

/* Mejoras para modo oscuro */
[data-theme="dark"] .resource-info {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .resource-info:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .resource-info.github i {
  color: #f0f0f0;
}

/* Navegación entre proyectos */
.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.prev-project,
.next-project {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: var(--glass-bg);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.prev-project:hover,
.next-project:hover {
  background: var(--accent-color);
  color: white;
  transform: translateX(0);
}

.prev-project:hover {
  transform: translateX(-5px);
}

.next-project:hover {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-section {
    padding: 1.5rem;
  }

  .key-features,
  .tech-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    width: 100%;
    justify-content: center;
  }
}
/* Contenedor para los controles del sidebar */
.sidebar-controls {
  margin-bottom: 5rem;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Estilos para el selector de idioma */
.sidebar-language-switch {
  margin-bottom: 20px;
  text-align: center;
}

/* Estilos para el selector de tema */
.sidebar-theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.theme-toggle {
  position: relative;
  display: inline-block;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.theme-icon {
  color: var(--accent-color);
  font-size: 1.2em;
}

/* Eliminar el antiguo theme-switch-wrapper flotante */
.theme-switch-wrapper {
  display: none;
}

/* Ajustes responsive */
@media screen and (max-width: 1024px) {
  .sidebar-controls {
    padding: 15px;
  }
}
/* Estilos base para el menú */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem; /* Espacio entre items de navegación */
}

.main-nav ul li {
  padding: 0;
  margin: 0;
}

.main-nav ul li a {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.856); /* Color más suave */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 5px 0;
}

.main-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.main-nav ul li.active a {
  background-color: #00c9ff4d;
  color: #ffffff;
}

/* Asegurarse que los menús sean visibles cuando corresponda */
.main-menu, .project-menu {
  display: block !important;
}

/* Contenedor del menú */
.menu {
  background: var(--sidebar-bg);
  padding: 20px 0;
  width: 300px;
}

/* Ajustes para el contenedor del autor */
.author-content {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  color: #ffffff;
}

.author-content h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .menu {
    width: 250px;
  }
  
  .main-nav ul li a {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}


.sidebar-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

/* Perfil */
.profile-section {
  margin-bottom: 2 rem;
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.profile-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.name {
  font-size: 1.25rem;
  color: var(--text-color);
  margin: 0;
}

.role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* Navegación */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.nav-link i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
  margin-bottom: 3rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--hover-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

/* Controles del Sidebar */
.sidebar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Selector de Idioma */
.language-buttons {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--hover-bg);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--accent-color);
  color: white;
}

.lang-btn.active {
  background: var(--accent-color);
  color: white;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
}

.theme-switch {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--hover-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switch:hover {
  background: var(--accent-color);
  color: white;
}

.theme-switch i {
  font-size: 1.25rem;
}

/* Estado inicial de los íconos */
.theme-switch .fa-sun {
  display: none;
  color: var(--accent-color);
}

.theme-switch .fa-moon {
  display: inline-block;
  color: var(--accent-color);
}

/* Estado de los íconos en modo oscuro */
[data-theme="dark"] .theme-switch .fa-sun {
  display: inline-block;
}

[data-theme="dark"] .theme-switch .fa-moon {
  display: none;
}


/* Asegurar buen contraste en los textos */
.section p, 
.content-text p, 
.service-item p {
  color: var(--text-color);
  font-weight: 400;
  line-height: 1.6;
}

.service-item h4, 
.content-text h4 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Mejorar visibilidad de enlaces */
a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

/* Mejorar contraste en cards */
.card, 
.project-preview, 
.service-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mejorar visibilidad de botones */
.button, 
.btn {
  background: var(--button-bg);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button:hover, 
.btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}
/* Estilos del botón de tema */
.theme-switch {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Estilos de los íconos */
.theme-switch .fa-sun,
.theme-switch .fa-moon {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Modo claro (default) */
.theme-switch .fa-sun {
    display: none;
}

.theme-switch .fa-moon {
    display: block;
}

/* Modo oscuro */
[data-theme="dark"] .theme-switch .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-switch .fa-moon {
    display: none;
}

/* Variables del tema claro */
:root {
    /* Colores base de la paleta */
    --coral: #ff7477;
    --rose: #e69597;
    --mauve: #ceb5b7;
    --teal-light: #b5d6d6;
    --teal-bright: #9cf6f6;
    
    /* Nueva distribución de colores */
    --bg-color: #f5f8f8;            /* Fondo principal suave turquesa-gris */
    --bg-secondary: #e8f0f0;        /* Fondo secundario */
    --text-color: #2c3e50;          /* Texto principal azul oscuro */
    --text-secondary: #526475;      /* Texto secundario */
    
    /* Contenedores y elementos principales */
    --card-bg: #ffffff;             /* Fondo de tarjetas */
    --sidebar-bg: #ceb5b7;          /* Sidebar en malva */
    --header-bg: #b5d6d6;           /* Header en turquesa suave */
    
    /* Elementos interactivos */
    --primary-color: #ff7477;       /* Botones y elementos principales en coral */
    --secondary-color: #e69597;     /* Elementos secundarios en rosa suave */
    --accent-color: #9cf6f6;        /* Acentos en turquesa brillante */
    
    /* Estados y bordes */
    --border-color: #ceb5b7;        /* Bordes en malva */
    --hover-bg: rgba(255, 116, 119, 0.1); /* Hover con coral transparente */
    --active-bg: rgba(156, 246, 246, 0.2); /* Active con turquesa transparente */
    
    /* Enlaces */
    --link-color: #ff7477;          /* Enlaces en coral */
    --link-hover: #e69597;          /* Hover en rosa suave */
    
    /* Estados */
    --success-color: #b5d6d6;
    --error-color: #ff7477;
    --warning-color: #ffd3d3;
    
    /* Sombras refinadas */
    --shadow-sm: 0 2px 4px rgba(206, 181, 183, 0.1);
    --shadow-md: 0 4px 6px rgba(206, 181, 183, 0.15);
    --shadow-lg: 0 8px 16px rgba(206, 181, 183, 0.2);
}

/* Variables del tema oscuro (mantenemos las existentes pero las incluyo para referencia) */
[data-theme="dark"] {
    --text-color: #e9ecef;
    --bg-color: #1a202c;
    --primary-color: #4299e1;
    --secondary-color: #a0aec0;
    --accent-color: #63b3ed;
    --header-bg: #2d3748;
    --sidebar-bg: #1a202c;
    --card-bg: #2d3748;
    --hover-bg: #2d3748;
    --button-bg: #4299e1;
    --button-hover: #3182ce;
    --border-color: #4a5568;
    --text-muted: #a0aec0;
    --text-light: #e2e8f0;
    --text-dark: #f7fafc;
}

/* Aplicación de las nuevas variables */
body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

.section-heading h2 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-item h4, 
.content-text h4 {
    color: var(--text-dark);
    font-weight: 600;
}

.service-item p {
    color: var(--text-color);
}

/* Enlaces */
a {
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Cards y contenedores */
.card, 
.project-preview, 
.service-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover, 
.project-preview:hover, 
.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Botones */
.button, 
.btn {
    background: var(--button-bg);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.button:hover, 
.btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Texto secundario */
.text-muted {
    color: var(--text-muted) !important;
}

/* Sidebar y navegación */
.sidebar-content {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
    background: var(--hover-bg);
}

/* Mejoras para los botones de idioma y tema */
.lang-btn {
    background: var(--hover-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-switch {
    background: var(--hover-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mejoras para elementos de texto */
.project-description,
.service-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Mejoras para elementos interactivos */
.hover-effect:hover {
    background: var(--hover-bg);
    transition: background-color 0.3s ease;
}
/* Estilos base del sidebar */
.responsive-nav {
  transition: transform 0.3s ease;
  height: 100vh;
  width: 300px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}



.responsive-nav {
  transition: transform 0.3s ease;
}



/* Estilos para pantallas grandes (mantener el diseño original) */
@media screen and (min-width: 769px) {
  .responsive-nav {
    background: transparent;
  }

  /* Ocultar botón hamburguesa en desktop */
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ===== NUEVO SISTEMA DE MENÚ MÓVIL ===== */

/* Botón hamburguesa */
.mobile-menu-toggle {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Líneas del hamburguesa */
.hamburger-line {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación cuando el menú está abierto */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay para cerrar el menú */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Comportamiento del sidebar en móvil */
@media screen and (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Ocultar sidebar por defecto en móvil */
  .responsive-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background: var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Permitir scroll vertical */
  }

  /* Mostrar sidebar cuando está activo */
  .responsive-nav.mobile-active {
    transform: translateX(0);
  }

  /* Ajustar el ancho del sidebar en móvil */
  .responsive-nav {
    width: 280px;
    max-width: 85vw; /* No más del 85% de la pantalla */
  }

  /* Arreglar el contenido del sidebar para móvil */
  .sidebar-content {
    height: auto !important; /* Permitir altura automática */
    min-height: 100vh; /* Mínimo altura completa */
    overflow: visible !important; /* Permitir que el contenido sea visible */
    padding: 2rem 1.5rem 3rem; /* Más padding abajo para los controles */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Espacio entre secciones */
  }

  /* Ajustar el menú para que no crezca demasiado */
  .main-nav {
    flex-shrink: 0; /* No permitir que se encoja */
  }

  /* Empujar los controles hacia abajo */
  .sidebar-controls {
    margin-top: auto;
    flex-shrink: 0; /* No permitir que se encoja */
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }

  /* Asegurar que el contenido principal no se vea afectado */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Mejorar el scroll del sidebar */
  .responsive-nav::-webkit-scrollbar {
    width: 6px;
  }

  .responsive-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .responsive-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .responsive-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* Asegurar que los social links sean visibles */
  .social-links {
    flex-shrink: 0;
    margin: 1.5rem 0;
  }

  /* Asegurar que el perfil sea visible */
  .profile-section {
    flex-shrink: 0;
  }

  /* Mejorar el espaciado de los controles de idioma y tema */
  .sidebar-language-switch {
    margin-bottom: 1.5rem;
  }

  .theme-toggle {
    margin-top: 1rem;
  }

  /* Mejorar el espaciado del formulario en móvil */
  .modern-contact-form {
    padding: 2rem 1.5rem !important;
    margin-top: 0 !important;
  }

  .form-header h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .form-grid {
    gap: 1rem !important;
  }

  .modern-input,
  .modern-textarea {
    font-size: 16px !important; /* Evitar zoom en iOS */
  }
}

/* Estilos generales para el formulario de contacto a ancho completo */
.contact-form-container {
  max-width: 800px; /* Ancho máximo para mejor legibilidad */
  margin: 0 auto; /* Centrar el formulario */
  width: 100%;
}

.modern-contact-form {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.form-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
  .contact-form-container {
    margin: 0 15px;
    max-width: calc(100% - 30px);
  }

  .modern-contact-form {
    padding: 2rem 1.5rem;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .form-header p {
    font-size: 1rem;
  }
}

/* ===== ESTILOS PARA VIDEO DEMO ===== */
.video-demo {
  margin: 2rem 0;
}

.video-container {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Asegurar que el video info no ocupe demasiado espacio */
.video-info {
  margin-top: 1.5rem;
}

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

.video-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.video-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Contenedor responsive para YouTube embed */
.youtube-embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: #000;
  /* Optimizaciones para mejor calidad */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  /* Mejorar renderización y calidad */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0); /* Forzar aceleración por hardware */
  backface-visibility: hidden; /* Optimizar renderización */
  will-change: transform; /* Optimizar para animaciones */
}

/* Información del video */
.video-info {
  margin-top: 1.5rem;
  text-align: center;
}

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

.video-description {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Estilos para el placeholder (cuando no hay video) */
.video-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  border-color: var(--primary-color);
  background: var(--hover-bg);
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.video-placeholder p {
  color: var(--text-color);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.video-placeholder small {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive para videos */
@media (max-width: 768px) {
  .video-container {
    padding: 1rem; /* Reducir padding para más espacio al video */
    margin: 1rem 0; /* Reducir márgenes */
  }

  /* Hacer el video más grande en móvil */
  .youtube-embed-container {
    padding-bottom: 56.25%; /* Mantener aspect ratio 16:9 */
    margin-bottom: 1rem; /* Espacio entre video e info */
    border-radius: 6px; /* Bordes más pequeños en móvil */
    /* Mejorar calidad en móvil */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .youtube-embed-container iframe {
    /* Forzar mejor calidad en móvil */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    border-radius: 6px;
  }

  /* Optimizar la información del video */
  .video-info {
    padding: 0; /* Eliminar padding extra */
  }

  .video-title {
    font-size: 1.1rem; /* Título más pequeño */
    margin-bottom: 0.5rem; /* Menos espacio */
    line-height: 1.3; /* Mejor espaciado de líneas */
  }

  .video-description {
    font-size: 0.85rem; /* Texto más pequeño */
    line-height: 1.4; /* Mejor legibilidad */
    margin-bottom: 0; /* Eliminar margen inferior */
  }

  .video-placeholder {
    padding: 2rem 1rem; /* Reducir padding del placeholder */
  }

  .video-placeholder i {
    font-size: 2.5rem;
  }

  /* Optimizar las pestañas en móvil */
  .demo-tabs-content {
    padding: 0.5rem; /* Menos padding en el contenedor */
  }

  .demo-tab-pane {
    padding: 0; /* Eliminar padding extra */
  }

  /* Hacer que el video ocupe más espacio vertical */
  .demo-tabs-container {
    margin: 1rem 0; /* Reducir márgenes del contenedor */
  }
}

/* Optimizaciones adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .video-container {
    padding: 0.75rem; /* Aún menos padding en pantallas pequeñas */
    margin: 0.5rem 0;
  }

  .youtube-embed-container {
    border-radius: 4px; /* Bordes aún más pequeños */
    margin-bottom: 0.75rem;
  }

  .video-title {
    font-size: 1rem; /* Título más pequeño */
    margin-bottom: 0.4rem;
  }

  .video-description {
    font-size: 0.8rem; /* Texto aún más pequeño */
    line-height: 1.3;
  }

  /* Optimizar pestañas para pantallas pequeñas */
  .demo-tab {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .demo-tabs-content {
    padding: 0.25rem;
  }

  /* Reducir espaciado general en la sección del proyecto */
  .project-section {
    padding: 1rem;
    margin: 1rem 0;
  }
}

/* Mejoras para modo oscuro */
[data-theme="dark"] .video-container {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .video-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .video-placeholder:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

/* ===== ESTILOS PARA PESTAÑAS DE DEMO ===== */
.demo-tabs-container {
  margin: 2rem 0;
}

.demo-tabs-header {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  overflow: hidden;
}

.demo-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.demo-tab:hover {
  background: var(--hover-bg);
}

.demo-tab.active {
  background: var(--primary-color);
  color: white;
}

.demo-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.demo-tab i {
  font-size: 1.1rem;
}

.demo-tabs-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  min-height: 400px;
}

.demo-tab-pane {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in-out;
}

.demo-tab-pane.active {
  display: block;
}

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

/* Estilos para el contenido de la guía */
.guide-content {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 1rem;
}

.guide-content::-webkit-scrollbar {
  width: 8px;
}

.guide-content::-webkit-scrollbar-track {
  background: var(--hover-bg);
  border-radius: 4px;
}

.guide-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.guide-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Secciones de la guía */
.guide-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.guide-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.guide-section h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-section h5 {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
}

.guide-section p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.guide-section ul {
  color: var(--text-color);
  line-height: 1.6;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.guide-section li {
  margin-bottom: 0.5rem;
}

.guide-section strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Destacados en la guía */
.guide-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.guide-highlight h6 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: 1rem;
}

.guide-highlight p {
  margin: 0;
  opacity: 0.95;
  color: white;
}

/* Grid para comparaciones */
.guide-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.guide-comparison-item {
  background: var(--hover-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.guide-comparison-item h6 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-weight: 600;
}

.guide-comparison-item:nth-child(2) {
  border-left-color: var(--accent-color);
}

.guide-comparison-item:nth-child(2) h6 {
  color: var(--accent-color);
}

/* Responsive para pestañas */
@media (max-width: 768px) {
  .demo-tab {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .demo-tab-pane {
    padding: 1.5rem;
  }

  .guide-content {
    max-height: 500px;
    padding-right: 0.5rem;
  }

  .guide-comparison {
    grid-template-columns: 1fr;
  }
}

/* Mejoras para modo oscuro */
[data-theme="dark"] .demo-tabs-header {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .demo-tabs-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .guide-comparison-item {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .guide-section {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== ESTILOS PARA CARRUSEL DE IMÁGENES ===== */
.project-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: var(--card-bg);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 20%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--card-bg);
  cursor: default;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.05);
}

.carousel-slide.active {
  opacity: 1;
}

/* Controles del carrusel */
.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-controls:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.carousel-indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

/* Contador de imágenes */
.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
  backdrop-filter: blur(10px);
}

/* Botón de pantalla completa */
.carousel-fullscreen {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-fullscreen:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Modal de pantalla completa - MÁXIMA PRIORIDAD */
.carousel-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 999999 !important;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.carousel-modal.active {
  display: flex !important;
}

.carousel-modal img {
  max-width: 95vw !important;
  max-height: 95vh !important;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.carousel-modal-close {
  position: fixed !important;
  top: 30px !important;
  right: 30px !important;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 9999999 !important;
}

.carousel-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Controles de navegación en el modal */
.carousel-modal-nav {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999998 !important;
  backdrop-filter: blur(10px);
}

.carousel-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-modal-prev {
  left: 30px !important;
}

.carousel-modal-next {
  right: 30px !important;
}

/* Contador en el modal */
.carousel-modal-counter {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 9999998 !important;
  backdrop-filter: blur(10px);
}

/* Forzar que el modal esté por encima de TODO */
body.modal-open {
  overflow: hidden !important;
}

html.modal-open {
  overflow: hidden !important;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
  .carousel-container {
    height: 450px;
  }

  .carousel-controls {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 15px;
  }

  .carousel-next {
    right: 15px;
  }

  .carousel-indicators {
    bottom: 20px;
    gap: 10px;
    padding: 6px 12px;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }

  .carousel-counter {
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .carousel-fullscreen {
    width: 35px;
    height: 35px;
    top: 15px;
    left: 15px;
    font-size: 0.9rem;
  }

  .carousel-modal-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .carousel-modal img {
    max-width: 95vw;
    max-height: 95vh;
  }

  .carousel-modal-nav {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .carousel-modal-prev {
    left: 20px !important;
  }

  .carousel-modal-next {
    right: 20px !important;
  }

  .carousel-modal-counter {
    bottom: 20px !important;
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 350px;
  }

  .carousel-controls {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-indicators {
    gap: 8px;
    padding: 5px 10px;
  }

  .carousel-indicator {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
  }
}

/* Mejoras para modo oscuro */
[data-theme="dark"] .project-carousel {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-counter {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-indicators {
  background: rgba(255, 255, 255, 0.1);
}
