/* ==========================================================================
   RESET Y VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

:root {
  --primary-color: #2c1810;
  --secondary-color: #f4f1eb;
  --accent-color: #d4af37;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --bg-light: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Alexandria', sans-serif;
  line-height: 1.6;
  color: #333333; /* Cambiado a oscuro para mejor legibilidad */
  background: linear-gradient(135deg, #f9f6f3 0%, #e3d5cb 50%, #f2ebe5 100%);
  overflow-x: hidden;
}

/* ==========================================================================
   HEADER NUEVO - ESTILO MODERNO - CORREGIDO
   ========================================================================== */
.header {
  background: rgba(245, 150, 87, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: slideDown 0.6s ease-out;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

/* Contenedor del botón en el header */
.header-cta-button {
  margin-left: 1.5rem; /* Reducido para mejor espaciado */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Estilo del botón Get in Touch del header */
.header-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color); /* #2c1810 */
  color: white;
  padding: 0.75rem 2rem; /* Reducido ligeramente para equilibrio */
  border-radius: 50px;
  text-decoration: none !important; /* Eliminar subrayado azul */
  font-weight: 600; /* Reducido a 600 para menos énfasis */
  font-size: 0.95rem; /* Ajustado para mejor proporción */
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); /* Shadow más suave */
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  font-family: 'Alexandria', sans-serif;
  cursor: pointer;
}

.header-btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-btn-cta:hover {
  background: var(--accent-color); /* #d4af37 */
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3); /* Shadow más pronunciado en hover */
  border-color: var(--accent-color);
  text-decoration: none;
}

.header-btn-cta:hover::before {
  left: 100%;
}

.header-btn-cta:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); /* Shadow en focus */
}

/* Responsividad */
@media (max-width: 768px) {
  .header-cta-button {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    order: -1; /* Botón arriba en layout móvil */
  }

  .header-btn-cta {
    padding: 0.6rem 1.5rem; /* Ajuste para móviles */
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  }
}

@media (max-width: 480px) {
  .header-btn-cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  }
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.nav-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
  justify-content: flex-end;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

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

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

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

.nav-link:hover {
  transform: translateY(-1px);
}

/* Responsividad */
@media (max-width: 768px) {
  .cta-button {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    order: -1; /* Mantiene el botón arriba en el layout móvil */
  }

  .btn-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 24, 16, 0.2);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  font-family: 'Alexandria', sans-serif;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0px 0px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover::before {
  left: 100%;
}

/* Ajustes para accesibilidad */
.btn-cta:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ==========================================================================
   ANIMACIONES GENERALES
   ========================================================================== */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   BUBBLES BACKGROUND
   ========================================================================== */
#bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -10;
}

.bubble {
  position: absolute;
  width: 1200px;
  height: 1200px;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.bubble.visible {
  opacity: 0.6;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.main-content {
  margin-top: 100px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: 4rem 1rem 4rem 1rem;
  box-sizing: border-box;
  margin-top: -2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem;
  gap: 0.2rem;
}

.hero-content h1 {
  align-self: flex-start;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(45deg, #ad7b59, #2c2e35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: shimmer 3s ease-in-out infinite;
  text-align: left;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #4a4a4a;
  margin: 0;
  text-align: left;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #2c1810;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Alexandria', sans-serif;
}

.cta-button-header {
  display: inline-block;
  padding: 0rem 1rem;
  background: #2c1810;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Alexandria', sans-serif;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2c1810, rgba(255, 255, 255, 0.2),);
  transition: left 0.5s;
}

.cta-button-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2c1810, rgba(255, 255, 255, 0.2),);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Alexandria', sans-serif;
}

/* ==========================================================================
   NAVEGACIÓN ALTERNATIVA (BOTTOM MENU)
   ========================================================================== */
.bottom-menu {
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-top: 1rem;
  gap: 1rem;
}

.bottom-menu a {
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: none;
  font-family: 'Alexandria', sans-serif;
}

.bottom-menu a:hover {
  border-bottom: 2px solid #000;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.nav-links a {
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Alexandria', sans-serif;
}

.nav-links a:hover {
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   GRID DE PROYECTOS
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  backdrop-filter: blur(20px);
  border-radius: 20px;
  background: transparent;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #9E6457;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-card h3 {
  color: #2c2e35;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  font-family: 'Alexandria', sans-serif;
}

.project-card p {
  color: #828282;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.project-tech {
  displayaries: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.tech-tag {
  background: rgba(192, 179, 169, 0.2);
  color: #C0B3A9;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(192, 179, 169, 0.3);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 80%;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
}

.about-text {
  font-size: 1.1rem;
  color: #6a6a6a;
  line-height: 1.8;
  font-family: 'Alexandria', sans-serif;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: #9E6457;
  border-color: #9e645796;
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   SOFTWARE GRID
   ========================================================================== */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.software-card {
  border-radius: 20px;
  background: transparent;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 179, 169, 0.3);
}

.software-card.animate {
  opacity: 1;
}

.software-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #9E6457;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.software-card:hover {
  background: rgba(192, 179, 169, 0.3);
  transform: translateY(-5px);
}

.software-logo-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.software-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.software-info {
  width: 100%;
  position: relative;
  z-index: 2;
}

.software-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffff;
  font-weight: 600;
  font-family: 'Alexandria', sans-serif;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 1rem;
}

.progress-bar {
  flex-grow: 1;
  height: 12px;
  background: rgba(218, 209, 204, 0.6);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #ffff;
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressSlide 2s ease-in-out;
}

@keyframes progressSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-percent {
  min-width: 50px;
  color: #ffff;
  font-size: 1rem;
  text-align: right;
  font-weight: 600;
}

.skill-level {
  font-size: 0.9rem;
  color: #8a8a8a;
  margin-top: 0.8rem;
  font-style: italic;
}

/* ==========================================================================
   GALERÍA DE IMÁGENES
   ========================================================================== */
.image-gallery-with-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 515px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(192, 179, 169, 0.4);
}

.gallery-item p {
  color: #7a7a7a;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  font-family: 'Alexandria', sans-serif;
}

/* ==========================================================================
   VIDEO SCROLL SECTION
   ========================================================================== */
#scroll-zoom-video.fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2.5);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 999;
  border-radius: 0;
}

.scroll-video-section {
  height: 350vh;
  position: relative;
  z-index: 0;
}

.sticky-video {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 100 !important;
}

.sticky-video video {
  width: 100%;
  max-width: 700px;
  transition: transform 0.4s ease;
  transform-origin: center center;
  border-radius: 10px;
  transform: scale(1.2);
  z-index: 100 !important;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #9E6457;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: 'Alexandria', sans-serif;
}

.contact-item:hover {
  background: #9E6457;
  transform: translateY(-2px);
}

/* ==========================================================================
   BOTONES DE DEMO
   ========================================================================== */
.demo-button {
  background: linear-gradient(45deg, #C0B3A9, #CDC2BB);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
  font-family: 'Alexandria', sans-serif;
}

.demo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 179, 169, 0.3);
}

/* ==========================================================================
   CONTENIDO DE DEMO
   ========================================================================== */
.demo-content {
  padding: 2rem;
}

.demo-section {
  margin-bottom: 3rem;
}

.demo-card {
  background: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(192, 179, 169, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .nav-section {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .nav-list {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cta-button {
    margin-left: 0;
    order: -1;
    width: 100%;
    text-align: center;
  }
  
  .btn-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .main-content {
    margin-top: 120px;
  }

  .bottom-menu {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-menu a {
    width: 100%;
  }

  .logo {
    height: 40px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-content {
    padding: 1rem;
    margin-top: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    text-align: left;
  }

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

  .software-card {
    padding: 1.5rem;
  }

  .software-logo-container {
    width: 70px;
    height: 70px;
  }

  .software-logo {
    width: 50px;
    height: 50px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    width: 60%;
    margin: 0 auto;
  }

  .section {
    padding: 2rem 1rem;
  }

  .projects-grid,
  .skills-grid,
  .image-gallery-with-text {
    grid-template-columns: 1fr;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .video-container video {
    width: 100% !important;
    height: auto !important;
  }

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

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .nav-links a {
    padding: 0.2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-list {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }

  .header {
    padding: 0.5rem 1rem;
  }

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

/* ==========================================================================
   HEADER ANTIGUO (MANTENIDO POR SI LO NECESITAS)
   ========================================================================== */
.header-old {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 2rem 3rem;
}

.header-old.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
}

.header-left {
  align-items: center;
  margin-bottom: 1rem;
}

.header-title {
  font-size: 2rem;
  font-family: 'Alexandria', sans-serif;
}

.header-right img {
  width: 150px;
}

.header-button {
  background: #8B6D5C;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Alexandria', sans-serif;
}

.header-button:hover {
  background: #6b5245;
}

.header-right img {
  width: 200px;
  height: auto;
}

.header-old img {
  width: 200px;
  height: auto;
  margin-top: 1rem;
}

.header-old h1 {
  margin: 10px 0;
  font-size: 2.5em;
  font-family: 'Alexandria', sans-serif;
}

.header-old .get-in-touch {
  margin-top: 10px;
}

.header-old .get-in-touch a {
  background-color: #6b5b4d;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

nav a {
  text-decoration: none;
  color: transparent;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Alexandria', sans-serif;
}

/* ==========================================================================
   LANGUAGE SELECTOR - CORREGIDO
   ========================================================================== */
#language-selector {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#language-selector:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.lang-flag {
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
}

.lang-flag:hover {
  opacity: 1;
  transform: scale(1.2);
}

.lang-flag.active {
  opacity: 1;
  border-color: var(--accent-color);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  #language-selector {
    bottom: 10px;
    left: 10px;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  
  .lang-flag {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }
}


    /* ========================================================================== */
    /*           Creditos: Juan Pablo Peña Rodríguez (Backend & Fronted)          */
    /* ========================================================================== */