@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --color-gold-primary: #C8A04F;        /* Dorado principal para iconos, botones, textos destacados */
  --color-gold-hover: #BFA054;          /* Variante más intensa para hover / active states */
  --color-background-marble: #FAFAFA;   /* Fondo principal tipo mármol blanco */
  --color-marble-veins: #D0D0D0;        /* Vetado sutil del mármol */
  --color-text-primary: #C8A04F;        /* Mismo dorado que el icono, para textos premium */
  --color-text-secondary: #7A7A7A;      /* Gris neutro para textos secundarios */
  --color-border-soft: #E0E0E0;         /* Borde suave si usas tarjetas o contenedores */
  
  /* Sistema de diseño proporcional basado en viewport */
  --base-unit: 1vw;                     /* Unidad base proporcional */
  --section-padding: calc(4 * var(--base-unit));  /* Padding de secciones */
  --container-padding: calc(2 * var(--base-unit)); /* Padding de contenedores */
  --border-radius: calc(1.5 * var(--base-unit));  /* Border radius base */
  --gap-small: calc(0.5 * var(--base-unit));      /* Gap pequeño */
  --gap-medium: calc(1 * var(--base-unit));       /* Gap medio */
  --gap-large: calc(2 * var(--base-unit));        /* Gap grande */
  --gap-xl: calc(3 * var(--base-unit));           /* Gap extra large */
  
  /* Tipografía proporcional */
  --font-size-xs: calc(0.8 * var(--base-unit));
  --font-size-sm: calc(1 * var(--base-unit));
  --font-size-base: calc(1.2 * var(--base-unit));
  --font-size-lg: calc(1.5 * var(--base-unit));
  --font-size-xl: calc(2 * var(--base-unit));
  --font-size-2xl: calc(2.5 * var(--base-unit));
  --font-size-3xl: calc(3 * var(--base-unit));
  --font-size-4xl: calc(4 * var(--base-unit));
  --font-size-5xl: calc(5 * var(--base-unit));
  
  /* Espaciado proporcional */
  --spacing-xs: calc(0.5 * var(--base-unit));
  --spacing-sm: calc(1 * var(--base-unit));
  --spacing-md: calc(1.5 * var(--base-unit));
  --spacing-lg: calc(2 * var(--base-unit));
  --spacing-xl: calc(3 * var(--base-unit));
  --spacing-2xl: calc(4 * var(--base-unit));
  --spacing-3xl: calc(6 * var(--base-unit));
  
  /* Tamaños de componentes */
  --button-padding: calc(1 * var(--base-unit)) calc(2 * var(--base-unit));
  --input-padding: calc(1 * var(--base-unit));
  --card-padding: calc(2 * var(--base-unit));
  --modal-padding: calc(3 * var(--base-unit));
  
  /* Sombras proporcionales */
  --shadow-sm: 0 calc(0.2 * var(--base-unit)) calc(0.4 * var(--base-unit)) rgba(0,0,0,0.1);
  --shadow-md: 0 calc(0.4 * var(--base-unit)) calc(0.8 * var(--base-unit)) rgba(0,0,0,0.15);
  --shadow-lg: 0 calc(0.8 * var(--base-unit)) calc(1.6 * var(--base-unit)) rgba(0,0,0,0.2);
  --shadow-xl: 0 calc(1.2 * var(--base-unit)) calc(2.4 * var(--base-unit)) rgba(0,0,0,0.25);
}

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

body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--color-text-secondary);
  overflow-x: hidden;
  background-color: var(--color-background-marble);
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--color-background-marble), var(--color-marble-veins));
  opacity: 0.3;
  pointer-events: none;
}

.contenido {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: calc(3.2 * var(--base-unit)); /* Mucho más grande en móvil */
  margin-bottom: var(--spacing-lg);
  animation: fadeIn 1s ease-in;
  font-weight: 700;
  color: var(--color-text-primary);
  text-shadow: none;
  letter-spacing: calc(0.2 * var(--base-unit));
}

.slogan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-small);
  margin-top: var(--spacing-md);
}

.slogan {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  font-weight: 400;
  letter-spacing: calc(0.1 * var(--base-unit));
  text-shadow: none;
}

.slogan-highlight {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: calc(0.2 * var(--base-unit));
  display: flex;
  justify-content: center;
  gap: calc(0.1 * var(--base-unit));
  margin-top: var(--spacing-md);
}

.letter {
  display: inline-block;
  animation: wave 4s ease-in-out infinite;
  transform-origin: bottom;
  color: var(--color-text-primary);
  text-shadow: none;
}

/* Añadir delay a cada letra para crear el efecto de onda */
.letter:nth-child(1) { animation-delay: 0.0s; }
.letter:nth-child(2) { animation-delay: 0.05s; }
.letter:nth-child(3) { animation-delay: 0.1s; }
.letter:nth-child(4) { animation-delay: 0.15s; }
.letter:nth-child(5) { animation-delay: 0.2s; }
.letter:nth-child(6) { animation-delay: 0.25s; }
.letter:nth-child(7) { animation-delay: 0.3s; }
.letter:nth-child(8) { animation-delay: 0.35s; }
.letter:nth-child(9) { animation-delay: 0.4s; }
.letter:nth-child(10) { animation-delay: 0.45s; }
.letter:nth-child(11) { animation-delay: 0.5s; }
.letter:nth-child(12) { animation-delay: 0.55s; }
.letter:nth-child(13) { animation-delay: 0.6s; }
.letter:nth-child(14) { animation-delay: 0.65s; }
.letter:nth-child(15) { animation-delay: 0.7s; }
.letter:nth-child(16) { animation-delay: 0.75s; }
.letter:nth-child(17) { animation-delay: 0.8s; }
.letter:nth-child(18) { animation-delay: 0.85s; }
.letter:nth-child(19) { animation-delay: 0.9s; }
.letter:nth-child(20) { animation-delay: 0.95s; }
.letter:nth-child(21) { animation-delay: 1.0s; }
.letter:nth-child(22) { animation-delay: 1.05s; }
.letter:nth-child(23) { animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-1.5px);
  }
}

button {
  background: var(--color-gold-primary);
  border: none;
  padding: var(--button-padding);
  font-size: var(--font-size-base);
  color: white;
  border-radius: calc(1 * var(--base-unit));
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 calc(1.5 * var(--base-unit)) var(--color-gold-primary);
  background: var(--color-gold-hover);
}

.seccion {
  position: relative;
  z-index: 2;
  padding: calc(0.8 * var(--base-unit)) calc(0.5 * var(--base-unit)) calc(2 * var(--base-unit)) calc(0.5 * var(--base-unit)); /* Reducido el padding inferior */
  background-color: transparent;
  text-align: center;
  margin: calc(0.5 * var(--base-unit)) 0 calc(0.2 * var(--base-unit)) 0; /* Reducido el margen para eliminar separación */
  width: 100vw;
  max-width: 100vw;
}

/* Añadir un pseudo-elemento para el fondo oscuro con borde dorado */
.seccion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(208, 208, 208, 0.2);
  z-index: -1;
  pointer-events: none;
  border: calc(0.1 * var(--base-unit)) solid var(--color-gold-primary);
  border-radius: var(--border-radius);
  margin: calc(1 * var(--base-unit));
}

/* Asegurar que los elementos interactivos estén por encima */
.contact-form,
.proyecto-card,
button,
input,
textarea {
  position: relative;
  z-index: 3;
}

/* Proyectos */
.proyectos-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: calc(0.1 * var(--base-unit)) 0; /* Mínimo padding para reducir separación */
}

.proyectos-track {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: calc(1 * var(--base-unit));
  transition: transform 0.5s ease;
  padding: calc(0.5 * var(--base-unit)); /* Menos padding */
  width: 100%;
}

.proyecto-card {
  height: calc(35 * var(--base-unit)); /* Más alto en desktop */
  background: linear-gradient(135deg, 
    rgba(250, 247, 240, 0.95), 
    rgba(252, 249, 243, 0.98)
  );
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-md);
  border: calc(0.15 * var(--base-unit)) solid var(--color-gold-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: calc(25 * var(--base-unit));
}

.proyecto-card:hover {
  transform: translateY(calc(-0.8 * var(--base-unit)));
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold-hover);
  border-width: calc(0.2 * var(--base-unit));
}

/* Eliminado el indicador "Ver detalles" */

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

/* Efecto de brillo deslizante */
.proyecto-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 160, 79, 0.1),
    transparent
  );
  transition: 0.5s;
}

.proyecto-card:hover::after {
  left: 100%;
}

.proyecto-info {
  text-align: center;
  position: relative;
  z-index: 2;
  height: calc(15 * var(--base-unit));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.proyecto-info::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--base-unit));
  left: 50%;
  transform: translateX(-50%);
  width: calc(3 * var(--base-unit));
  height: calc(0.2 * var(--base-unit));
  background: var(--color-gold-primary);
  border-radius: calc(0.1 * var(--base-unit));
}

.proyecto-card:hover {
  transform: translateY(calc(-0.5 * var(--base-unit)));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-hover);
}

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

.proyecto-media {
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border-radius: calc(0.5 * var(--base-unit));
  height: calc(18 * var(--base-unit));
  flex-shrink: 0;
}

.proyecto-media img {
  width: 100%;
  height: calc(18 * var(--base-unit));
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proyecto-info h3 {
  font-size: 1.4rem; /* Más grande */
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.proyecto-info p {
  font-size: 1rem; /* Más grande */
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  position: relative;
}

/* Indicador sutil en el texto siempre visible */
.proyecto-info p::after {
  content: '';
  display: none;
}

.proyecto-card:hover .proyecto-info p::after {
  display: none;
}

/* Formulario de contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  max-width: calc(120 * var(--base-unit));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.contact-form-section {
  display: flex;
  flex-direction: column;
}

.contact-form-section h3 {
  color: var(--color-text-primary);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  position: relative;
}

.contact-form-section h3::after {
  content: '';
  position: absolute;
  bottom: calc(-0.8 * var(--base-unit));
  left: 50%;
  transform: translateX(-50%);
  width: calc(6 * var(--base-unit));
  height: calc(0.3 * var(--base-unit));
  background: var(--color-gold-primary);
  border-radius: calc(0.2 * var(--base-unit));
}

.calendly-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calendly-section h3 {
  color: var(--color-text-primary);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.calendly-section h3::after {
  content: '';
  position: absolute;
  bottom: calc(-0.8 * var(--base-unit));
  left: 50%;
  transform: translateX(-50%);
  width: calc(6 * var(--base-unit));
  height: calc(0.3 * var(--base-unit));
  background: var(--color-gold-primary);
  border-radius: calc(0.2 * var(--base-unit));
}

.calendly-section p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  max-width: calc(40 * var(--base-unit));
}

.calendly-inline-widget {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: calc(0.2 * var(--base-unit)) solid var(--color-gold-primary);
  background: white;
  height: 600px; /* Altura normal para desktop */
}

.contact-form {
  max-width: 100%;
  margin: 0;
  padding: var(--card-padding);
  background: linear-gradient(135deg, 
    rgba(250, 247, 240, 0.95), 
    rgba(252, 249, 243, 0.98)
  );
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: calc(0.2 * var(--base-unit)) solid var(--color-gold-primary);
  backdrop-filter: blur(calc(1 * var(--base-unit)));
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 600px; /* Misma altura que el Calendly */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form:hover {
  transform: translateY(calc(-0.5 * var(--base-unit)));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-hover);
}

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.form-group input,
.form-group textarea {
  padding: calc(0.4 * var(--base-unit));
  font-size: calc(1 * var(--base-unit)); /* Más grande */
  width: 100%;
  max-width: 100%;
  border: calc(0.2 * var(--base-unit)) solid rgba(200, 160, 79, 0.2);
  border-radius: calc(1.2 * var(--base-unit));
  background: rgba(252, 249, 243, 0.9);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 
    0 0 0 calc(0.4 * var(--base-unit)) rgba(200, 160, 79, 0.1),
    var(--shadow-md);
  transform: translateY(calc(-0.2 * var(--base-unit)));
  background: rgba(252, 249, 243, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
  transform: translateX(calc(1 * var(--base-unit)));
}

.form-group textarea {
  min-height: calc(13 * var(--base-unit));
  flex: 1; /* Que ocupe el espacio disponible */
  resize: none; /* No permitir redimensionar manualmente */
  line-height: 1.6;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: calc(1.2 * var(--base-unit));
  margin-bottom: var(--spacing-lg);
  padding: var(--input-padding);
  background: rgba(200, 160, 79, 0.05);
  border-radius: calc(1.2 * var(--base-unit));
  border: calc(0.1 * var(--base-unit)) solid rgba(200, 160, 79, 0.1);
  transition: all 0.3s ease;
}

.privacy-check:hover {
  background: rgba(200, 160, 79, 0.08);
  border-color: var(--color-gold-primary);
}

.privacy-check input[type="checkbox"] {
  width: calc(2 * var(--base-unit));
  height: calc(2 * var(--base-unit));
  cursor: pointer;
  accent-color: var(--color-gold-primary);
  transition: all 0.3s ease;
}

.privacy-check input[type="checkbox"]:checked {
  transform: scale(1.1);
}

.privacy-check label {
  color: var(--color-text-secondary);
  font-size: calc(0.95 * var(--base-unit));
  transition: all 0.3s ease;
}

.privacy-check a {
  color: var(--color-gold-primary);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.privacy-check a::after {
  content: '';
  position: absolute;
  bottom: calc(-0.2 * var(--base-unit));
  left: 0;
  width: 0;
  height: calc(0.1 * var(--base-unit));
  background: var(--color-gold-primary);
  transition: width 0.3s ease;
}

.privacy-check a:hover::after {
  width: 100%;
}

#submitBtn {
  padding: calc(0.4 * var(--base-unit));
  font-size: calc(1 * var(--base-unit)); /* Más grande */
  width: 100%;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-hover));
  color: white;
  border: none;
  border-radius: calc(1.2 * var(--base-unit));
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: calc(0.1 * var(--base-unit));
}

#submitBtn::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: all 0.6s ease;
}

#submitBtn:hover {
  transform: translateY(calc(-0.3 * var(--base-unit)));
  box-shadow: var(--shadow-lg);
}

#submitBtn:hover::before {
  left: 100%;
}

#submitBtn:active {
  transform: translateY(calc(-0.1 * var(--base-unit)));
}

.form-status {
  margin-top: var(--spacing-lg);
  padding: var(--input-padding);
  border-radius: calc(1.2 * var(--base-unit));
  display: none;
  animation: slideIn 0.4s ease;
  text-align: center;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: rgba(200, 160, 79, 0.1);
  color: var(--color-gold-primary);
  border: calc(0.1 * var(--base-unit)) solid rgba(200, 160, 79, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: calc(0.1 * var(--base-unit)) solid rgba(220, 53, 69, 0.2);
}

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

/* Chat Section */
.chat-prompt {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-background-marble);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(200, 160, 79, 0.1);
  border: 1px solid var(--color-border-soft);
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-background-marble);
  border-radius: 10px;
  border: 1px solid var(--color-border-soft);
}

.message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  max-width: 80%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.user-message {
  background: var(--color-gold-primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  border: 1px solid var(--color-gold-hover);
}

.ai-message {
  background: var(--color-background-marble);
  color: var(--color-text-secondary);
  margin-right: auto;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--color-border-soft);
}

.ai-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url('assets/images/ai-icon.png');
  background-size: cover;
  background-position: center;
}

.message-content {
  flex: 1;
}

.chat-input-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chat-input-container input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--color-background-marble);
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.chat-input-container input::placeholder {
  color: var(--color-text-secondary);
}

.chat-input-container input:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px rgba(200, 160, 79, 0.1);
  background: var(--color-background-marble);
}

.chat-input-container button {
  padding: 15px 30px;
  background: var(--color-gold-primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.chat-input-container button:hover {
  transform: translateY(-2px);
  background: var(--color-gold-hover);
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.2);
}

.queries-left {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Animaciones */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones de scroll con IntersectionObserver */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones específicas para diferentes elementos */
.hero.scroll-animate {
  transform: translateY(60px) scale(0.95);
}

.hero.scroll-animate.animate-in {
  transform: translateY(0) scale(1);
}

.section-header.scroll-animate {
  transform: translateY(30px);
}

.section-header.scroll-animate.animate-in {
  transform: translateY(0);
}

.about-features.scroll-animate {
  transform: translateY(50px);
}

.about-features.scroll-animate.animate-in {
  transform: translateY(0);
}

.feature-item.scroll-animate {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.proyectos-carousel.scroll-animate {
  transform: translateY(40px);
}

.proyectos-carousel.scroll-animate.animate-in {
  transform: translateY(0);
}

.proyecto-card.scroll-animate {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.proyecto-card.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.contact-container.scroll-animate {
  transform: translateY(50px);
}

.contact-container.scroll-animate.animate-in {
  transform: translateY(0);
}

.contact-form-section.scroll-animate,
.calendly-section.scroll-animate {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-section.scroll-animate.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.calendly-section.scroll-animate {
  transform: translateX(30px);
}

.calendly-section.scroll-animate.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.demo-section.scroll-animate {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-section.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Animación para el about content */
.about-content.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

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

/* AI Highlight Section */
.ai-highlight {
  background: linear-gradient(135deg, rgba(200, 160, 79, 0.1), rgba(191, 160, 84, 0.05));
  padding: 3rem 2rem;
  margin: 0;
}

.ai-highlight-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ai-highlight h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.ai-highlight p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.ai-highlight button {
  background: var(--color-gold-primary);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
}

.ai-highlight button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(200, 160, 79, 0.4);
  background: var(--color-gold-hover);
}

.binary-number {
  position: fixed;
  color: var(--color-gold-primary);
  font-family: monospace;
  font-size: 2rem;
  font-weight: bold;
  animation: floatUp 8s linear infinite;
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 0 10px rgba(200, 160, 79, 0.5);
  opacity: 0.3;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.section-header {
  text-align: center;
  margin-top: 1rem; /* Reducido margen superior */
  margin-bottom: 2rem; /* Reducido el margen inferior del header */
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  gap: 1px;
}

.section-header h2 .letter {
  display: inline-block;
  animation: wave 3s ease-in-out infinite;
  transform-origin: bottom;
  background: linear-gradient(45deg, var(--color-gold-primary), var(--color-gold-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 
    0 0 20px rgba(200, 160, 79, 0.3),
    0 0 40px rgba(200, 160, 79, 0.2);
}

/* Añadir delays para cada letra en los títulos de sección */
.section-header h2 .letter:nth-child(1) { animation-delay: 0.0s; }
.section-header h2 .letter:nth-child(2) { animation-delay: 0.05s; }
.section-header h2 .letter:nth-child(3) { animation-delay: 0.1s; }
.section-header h2 .letter:nth-child(4) { animation-delay: 0.15s; }
.section-header h2 .letter:nth-child(5) { animation-delay: 0.2s; }
.section-header h2 .letter:nth-child(6) { animation-delay: 0.25s; }
.section-header h2 .letter:nth-child(7) { animation-delay: 0.3s; }
.section-header h2 .letter:nth-child(8) { animation-delay: 0.35s; }
.section-header h2 .letter:nth-child(9) { animation-delay: 0.4s; }
.section-header h2 .letter:nth-child(10) { animation-delay: 0.45s; }
.section-header h2 .letter:nth-child(11) { animation-delay: 0.5s; }
.section-header h2 .letter:nth-child(12) { animation-delay: 0.55s; }
.section-header h2 .letter:nth-child(13) { animation-delay: 0.6s; }
.section-header h2 .letter:nth-child(14) { animation-delay: 0.65s; }
.section-header h2 .letter:nth-child(15) { animation-delay: 0.7s; }
.section-header h2 .letter:nth-child(16) { animation-delay: 0.75s; }
.section-header h2 .letter:nth-child(17) { animation-delay: 0.8s; }
.section-header h2 .letter:nth-child(18) { animation-delay: 0.85s; }
.section-header h2 .letter:nth-child(19) { animation-delay: 0.9s; }
.section-header h2 .letter:nth-child(20) { animation-delay: 0.95s; }
.section-header h2 .letter:nth-child(21) { animation-delay: 1.0s; }
.section-header h2 .letter:nth-child(22) { animation-delay: 1.05s; }
.section-header h2 .letter:nth-child(23) { animation-delay: 1.1s; }
.section-header h2 .letter:nth-child(24) { animation-delay: 1.15s; }
.section-header h2 .letter:nth-child(25) { animation-delay: 1.2s; }
.section-header h2 .letter:nth-child(26) { animation-delay: 1.25s; }
.section-header h2 .letter:nth-child(27) { animation-delay: 1.3s; }
.section-header h2 .letter:nth-child(28) { animation-delay: 1.35s; }
.section-header h2 .letter:nth-child(29) { animation-delay: 1.4s; }
.section-header h2 .letter:nth-child(30) { animation-delay: 1.45s; }

.section-header p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-background-marble);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-button {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: var(--color-gold-hover);
  color: white;
}

.nav-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* About section styles */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.about-main {
  margin-bottom: 2rem;
}

.highlight-text {
  font-size: 1.4rem;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(200, 160, 79, 0.2);
  animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(200, 160, 79, 0.2);
  }
  50% {
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(200, 160, 79, 0.3);
  }
}

.about-description {
  max-width: 1200px;
  margin: 0 auto 0.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  padding: 0 1rem;
  text-align: center;
}

.results-intro {
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(200, 160, 79, 0.2);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(1 * var(--base-unit));
  padding: calc(0.5 * var(--base-unit));
  width: 100%;
  max-width: 100%;
}

.feature-item {
  background-color: rgba(200, 160, 79, 0.05);
  border: 1px solid var(--color-gold-primary);
  border-radius: 15px;
  padding: calc(1 * var(--base-unit)); /* Mucho menos padding */
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(200, 160, 79, 0.08);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.5s;
}

.feature-item:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.feature-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(200, 160, 79, 0.1) 0%,
    rgba(200, 160, 79, 0.05) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: all 0.4s ease;
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 12px 30px rgba(200, 160, 79, 0.15),
    0 4px 12px rgba(200, 160, 79, 0.1);
  border-color: var(--color-gold-hover);
  background-color: rgba(200, 160, 79, 0.08);
}

.feature-item:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.feature-icon {
  color: var(--color-gold-primary);
  font-size: 2.5em;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(200, 160, 79, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--color-gold-hover);
  text-shadow: 
    0 0 20px rgba(200, 160, 79, 0.4),
    0 0 40px rgba(200, 160, 79, 0.2);
}

.feature-item:hover .feature-icon::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle at center,
    rgba(200, 160, 79, 0.2) 0%,
    transparent 70%
  );
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.feature-item h4 {
  color: var(--color-text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-item:hover h4 {
  transform: translateY(-2px);
  color: var(--color-gold-hover);
  text-shadow: 0 2px 8px rgba(200, 160, 79, 0.2);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.feature-item:hover p {
  color: var(--color-text-primary);
}

.about-cta {
  display: none;
}

@media (max-width: 1200px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(1 * var(--base-unit));
  }
  
  .proyectos-track {
    gap: var(--gap-medium);
  }
}

@media (max-width: 768px) {
  .about-description {
    padding: var(--spacing-lg) var(--spacing-md);
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: calc(1 * var(--base-unit));
  }

  .feature-item {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .feature-item h4 {
    font-size: var(--font-size-lg);
  }

  .feature-item p {
    font-size: var(--font-size-base);
  }

  .highlight-text {
    font-size: var(--font-size-xl);
  }

  /* Contact layout responsive */
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }

  .contact-form-section h3,
  .calendly-section h3 {
    font-size: var(--font-size-xl);
  }

  .calendly-section p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }

  .calendly-inline-widget {
    width: 100%;
    min-width: calc(28 * var(--base-unit));
    height: calc(60 * var(--base-unit));
  }
  
  /* Footer responsive */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .footer-section {
    padding: var(--spacing-md);
  }

  .footer-section h3::after {
    width: calc(4 * var(--base-unit));
  }

  .social-links {
    gap: var(--spacing-sm);
  }

  .footer-section a {
    font-size: var(--font-size-sm);
  }

  .footer-section a:hover {
    transform: translateY(calc(-0.2 * var(--base-unit)));
  }

  .footer-section a::before {
    height: calc(0.1 * var(--base-unit));
  }

  .proyecto-card {
    height: calc(30 * var(--base-unit)); /* Más alto para mostrar todo el contenido */
  }

  .demo-description {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .hero h1 {
    font-size: 3rem; /* Aumentado significativamente para móviles */
  }
}

.footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(200, 160, 79, 0.05) 0%, rgba(250, 250, 250, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-gold-primary);
  padding: 4rem 2rem 1rem; /* Restaurado para desktop */
  margin-top: 4rem; /* Restaurado para desktop */
  box-shadow: 0 -2px 20px rgba(200, 160, 79, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-gold-primary) 50%, 
    transparent 100%
  );
  opacity: 0.5;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem; /* Restaurado para desktop */
  position: relative;
}

.footer-section {
  position: relative;
  padding: 1.5rem; /* Restaurado para desktop */
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(200, 160, 79, 0.1);
  transition: all 0.3s ease;
}

.footer-section:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(200, 160, 79, 0.1);
  border-color: var(--color-gold-primary);
}

.footer-section h3 {
  color: var(--color-text-primary);
  font-size: 1.4rem; /* Restaurado para desktop */
  margin-bottom: 1.5rem; /* Restaurado para desktop */
  font-weight: 600;
  position: relative;
  padding-bottom: 0.8rem; /* Restaurado para desktop */
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-primary), transparent);
  transition: width 0.3s ease;
}

.footer-section:hover h3::after {
  width: 100px;
}

.footer-section p {
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem; /* Restaurado para desktop */
  line-height: 1.6; /* Restaurado para desktop */
  transition: color 0.3s ease;
}

.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem; /* Restaurado para desktop */
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.footer-section a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--color-gold-primary);
}

.footer-section a:hover {
  color: var(--color-gold-primary);
  transform: translateX(10px);
}

.footer-section a:hover::before {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem; /* Restaurado para desktop */
  margin-top: 1rem; /* Restaurado para desktop */
}

.social-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-link:hover {
  color: var(--color-gold-primary);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0; /* Restaurado para desktop */
  padding-top: 2rem; /* Restaurado para desktop */
  border-top: 1px solid rgba(200, 160, 79, 0.1);
  text-align: center;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-gold-primary) 50%, 
    transparent 100%
  );
}

.footer-bottom p {
  color: var(--color-text-secondary);
  font-size: 0.9rem; /* Restaurado para desktop */
  position: relative;
  display: inline-block;
}

.footer-bottom p::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-gold-primary);
  transition: width 0.3s ease;
}

.footer-bottom:hover p::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer {
    padding: calc(1 * var(--base-unit)) calc(0.5 * var(--base-unit)) calc(0.5 * var(--base-unit)); /* Mucho menos alto en móvil */
    margin-top: calc(1 * var(--base-unit)); /* Menos separación superior en móvil */
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: calc(1 * var(--base-unit)); /* Mucho menos gap en móvil */
    text-align: center;
    padding: calc(0.5 * var(--base-unit));
  }

  .footer-section {
    text-align: center;
    margin-bottom: calc(0.5 * var(--base-unit));
    padding: calc(0.5 * var(--base-unit)); /* Mucho menos padding en móvil */
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section h3 {
    font-size: calc(1 * var(--base-unit)); /* Menos grande en móvil */
    margin-bottom: calc(0.5 * var(--base-unit)); /* Menos separación en móvil */
    padding-bottom: calc(0.3 * var(--base-unit)); /* Menos padding en móvil */
  }

  .footer-section p {
    margin-bottom: calc(0.3 * var(--base-unit)); /* Menos separación en móvil */
    line-height: 1.2; /* Menos alto en móvil */
  }

  .footer-section a {
    margin-bottom: calc(0.3 * var(--base-unit)); /* Menos separación en móvil */
  }

  .social-links {
    justify-content: center;
    gap: calc(0.5 * var(--base-unit)); /* Menos gap en móvil */
    margin-top: calc(0.5 * var(--base-unit)); /* Menos separación en móvil */
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-section a {
    padding: 0.5rem 1rem;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(200, 160, 79, 0.05);
  }
  
  .footer-section a:hover {
    transform: translateY(-2px);
    background: rgba(200, 160, 79, 0.1);
    color: var(--color-gold-primary);
  }
  
  .footer-section a::before {
    display: none;
  }

  .footer-bottom {
    margin: calc(0.5 * var(--base-unit)) auto 0; /* Mucho menos separación en móvil */
    padding-top: calc(0.5 * var(--base-unit)); /* Mucho menos padding en móvil */
    text-align: center;
  }

  .footer-bottom p {
    font-size: calc(0.6 * var(--base-unit)); /* Menos grande en móvil */
  }
}

.animated-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.animated-title h1 {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--color-gold-primary);
  letter-spacing: 1px;
  position: relative;
  text-shadow: 
    0 0 20px rgba(200, 160, 79, 0.3),
    0 0 40px rgba(200, 160, 79, 0.2);
  transition: all 0.3s ease;
}

.animated-title h1 span {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.8;
  filter: brightness(1);
}

.animated-title h1 span:hover {
  opacity: 1;
  color: #FFE5A3;
  filter: brightness(1.3);
  text-shadow: 
    0 0 15px rgba(255, 229, 163, 0.8),
    0 0 30px rgba(255, 229, 163, 0.4);
}

/* Efecto en letras adyacentes */
.animated-title h1 span:hover + span,
.animated-title h1 span:hover + span + span {
  opacity: 0.9;
  filter: brightness(1.2);
  color: #FFE5A3;
  text-shadow: 
    0 0 10px rgba(255, 229, 163, 0.6),
    0 0 20px rgba(255, 229, 163, 0.3);
  transition: all 0.3s ease;
}

.animated-title h1 span:hover + span + span + span {
  opacity: 0.85;
  filter: brightness(1.1);
  color: #FFE5A3;
  text-shadow: 
    0 0 8px rgba(255, 229, 163, 0.4),
    0 0 15px rgba(255, 229, 163, 0.2);
  transition: all 0.3s ease;
}

/* Efecto en letras anteriores */
.animated-title h1 span:hover ~ span {
  opacity: 0.8;
  filter: brightness(1);
  transition: all 0.3s ease;
}

.title-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: 
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 229, 163, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 229, 163, 0.15) 0%,
      transparent 40%
    );
  filter: blur(10px);
  animation: glowPulse 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-300px * 5 - 2rem * 5));
  }
}

/* Floating Chat Button Styles */
.floating-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.chat-button {
  background-color: var(--color-gold-primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.chat-button:hover {
  background-color: var(--color-gold-hover);
  transform: scale(1.1);
}

.chat-button.pulse {
  animation: chatButtonPulse 1s ease-in-out;
}

.chat-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.chat-bubble {
  background: var(--color-background-marble);
  color: var(--color-text-secondary);
  padding: 20px 30px;
  border-radius: 15px;
  font-size: 0.95rem;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.1);
  position: absolute;
  bottom: 80px;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  border: 1px solid var(--color-border-soft);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 25px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: var(--color-background-marble) transparent transparent transparent;
}

.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chat Modal Styles */
.chat-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 77.5vh;
  margin: 75px 20px 20px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-modal.active {
  display: flex;
  animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

  .chat-modal-content {
    background-color: var(--color-background-marble);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(200, 160, 79, 0.15);
    border-radius: 20px;
    border: 1px solid var(--color-border-soft);
    transition: all 0.3s ease;
    animation: chatContentSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  }

.chat-modal-content:hover {
  box-shadow: 0 12px 40px rgba(200, 160, 79, 0.25);
  border-color: var(--color-gold-hover);
}

.chat-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-hover));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-soft);
  border-radius: 20px 20px 0 0;
  transition: all 0.3s ease;
  animation: chatHeaderGlow 2s ease-in-out infinite;
}

.chat-header:hover {
  background: linear-gradient(135deg, var(--color-gold-hover), var(--color-gold-primary));
}

.chat-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.chat-header h3:hover {
  transform: translateX(5px);
}

.chat-header h3 img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.chat-header h3:hover img {
  transform: rotate(15deg) scale(1.1);
  filter: brightness(1.2);
}

.chat-messages {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--color-background-marble);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease;
}

.message {
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 15px;
  max-width: 80%;
  position: relative;
  box-shadow: 0 2px 10px rgba(200, 160, 79, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: messageSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 15px 20px;
  background: var(--color-background-marble);
  border: 1px solid var(--color-border-soft);
  border-radius: 15px;
  max-width: 80%;
  margin-bottom: 15px;
  animation: typingIndicator 1.5s ease-in-out infinite;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold-primary);
  border-radius: 50%;
  animation: typingDots 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Animaciones chulas para el chat */
@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes chatContentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chatHeaderGlow {
  0% {
    box-shadow: 0 0 20px rgba(200, 160, 79, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(200, 160, 79, 0.6), 0 0 40px rgba(200, 160, 79, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(200, 160, 79, 0.3);
  }
}

@keyframes chatButtonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(200, 160, 79, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(200, 160, 79, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(200, 160, 79, 0);
  }
}

@keyframes chatInputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes typingIndicator {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

@keyframes typingDots {
  0%, 20% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.user-message {
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-hover));
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  border: 1px solid var(--color-gold-hover);
}

.user-message:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.2);
}

.ai-message {
  background: var(--color-background-marble);
  color: var(--color-text-secondary);
  margin-right: auto;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--color-border-soft);
}

.ai-message:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.1);
  border-color: var(--color-gold-primary);
}

.chat-input-container {
  padding: 20px 30px;
  background: var(--color-background-marble);
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

.chat-input-container:hover {
  background: linear-gradient(to bottom, var(--color-background-marble), rgba(200, 160, 79, 0.05));
}

.chat-input-container input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color-background-marble);
  color: var(--color-text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-container input:hover {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px rgba(200, 160, 79, 0.1);
}

.chat-input-container input:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 4px rgba(200, 160, 79, 0.15);
  transform: translateY(-2px);
  animation: chatInputFocus 0.3s ease-in-out;
}

.chat-input-container button {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.chat-input-container button::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: 0.5s;
}

.chat-input-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200, 160, 79, 0.3);
}

.chat-input-container button:hover::before {
  left: 100%;
}

.chat-input-container button:active {
  transform: translateY(-1px);
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  position: relative;
}

.close-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.close-button:hover {
  transform: rotate(90deg);
}

.close-button:hover::before {
  transform: scale(1);
}

/* Scrollbar personalizado para el chat */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(200, 160, 79, 0.05);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--color-gold-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-hover);
}

/* Privacy Policy Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  overflow-y: auto;
  /* Asegurar que el modal sea visible cuando se muestre */
  visibility: visible;
  opacity: 1;
}

.modal[style*="display: block"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-content {
  background-color: var(--color-background-marble);
  margin: 50px auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(200, 160, 79, 0.2);
  border: 1px solid var(--color-border-soft);
  animation: modalFadeIn 0.3s ease;
}

.modal-header {
  padding: 20px 30px;
  background-color: var(--color-gold-primary);
  color: white;
  border-bottom: 1px solid var(--color-border-soft);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.modal-body h3 {
  color: var(--color-text-primary);
  margin: 25px 0 15px;
  font-size: 1.4rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 20px;
}

.modal-body ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.modal-body ul li:before {
  content: '•';
  color: var(--color-gold-primary);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  overflow: hidden;
}

.project-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  margin: 5vh auto;
  background: var(--color-background-marble);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(200, 160, 79, 0.2);
  border: 1px solid var(--color-border-soft);
  animation: modalFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.close-project-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 2;
}

.close-project-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.projects-container {
  position: relative;
  width: 100%;
  min-height: calc(20 * var(--base-unit)); /* Mucho menos alto */
  padding-bottom: calc(0.5 * var(--base-unit)); /* Reducir separación con el botón de demo */
}

.project-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(200, 160, 79, 0.25);
  border: 1px solid var(--color-gold-primary);
  padding: 25px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 10;
}

.project-gallery.active {
  opacity: 1;
  visibility: visible;
}

.gallery-content {
  flex: 1;
  display: flex;
  gap: 25px;
  align-items: center;
  height: calc(100% - 50px);
  position: relative;
}

.gallery-image-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 15px;
  background: var(--color-background-marble);
  border: 1px solid var(--color-gold-primary);
  padding: 20px;
}

.gallery-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-info {
  flex: 1;
  padding: 20px;
  color: var(--color-text-secondary);
  background: var(--color-background-marble);
  border-radius: 15px;
  border: 1px solid var(--color-gold-primary);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-info h3 {
  color: var(--color-text-primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.gallery-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.gallery-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery-nav {
  background: var(--color-gold-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.gallery-nav:hover:not(:disabled) {
  background: var(--color-gold-hover);
  transform: scale(1.1);
}

.gallery-nav:disabled {
  background: var(--color-border-soft);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Animaciones para las transiciones */
.gallery-image-container.fade-out img {
  opacity: 0;
  transform: scale(0.95);
}

.gallery-image-container.fade-in img {
  opacity: 1;
  transform: scale(1);
}

.gallery-info.fade-out {
  opacity: 0;
  transform: translateX(20px);
}

.gallery-info.fade-in {
  opacity: 1;
  transform: translateX(0);
}

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

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

.close-gallery {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(200, 160, 79, 0.1);
  border: 1px solid var(--color-gold-primary);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 0;
  line-height: 1;
  aspect-ratio: 1;
}

.close-gallery:hover {
  background: var(--color-gold-primary);
  color: white;
  transform: rotate(90deg);
  border-color: var(--color-gold-hover);
}

@media (max-width: 1200px) {
  .proyectos-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .proyectos-track {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .project-gallery {
    width: 90%;
    margin: 10vh 0;
  }
  
  .gallery-info h3 {
    font-size: 1.6rem;
  }
  
  .gallery-info p {
    font-size: 1rem;
  }
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
  /* Ajustar variables base para móviles */
  :root {
    --base-unit: 2vw; /* Unidad base más pequeña para compactar */
    --section-padding: calc(2 * var(--base-unit));
    --container-padding: calc(1 * var(--base-unit));
    --border-radius: calc(0.8 * var(--base-unit));
    --gap-small: calc(0.5 * var(--base-unit));
    --gap-medium: calc(1 * var(--base-unit));
    --gap-large: calc(1.5 * var(--base-unit));
    --gap-xl: calc(2 * var(--base-unit));
    
    /* Tipografía compacta para móviles */
    --font-size-xs: calc(0.8 * var(--base-unit));
    --font-size-sm: calc(1 * var(--base-unit));
    --font-size-base: calc(1.2 * var(--base-unit));
    --font-size-lg: calc(1.5 * var(--base-unit));
    --font-size-xl: calc(2 * var(--base-unit));
    --font-size-2xl: calc(2.5 * var(--base-unit));
    --font-size-3xl: calc(3 * var(--base-unit));
    --font-size-4xl: calc(3.5 * var(--base-unit));
    --font-size-5xl: calc(4 * var(--base-unit));
    
    /* Espaciado compacto */
    --spacing-xs: calc(0.5 * var(--base-unit));
    --spacing-sm: calc(1 * var(--base-unit));
    --spacing-md: calc(1.5 * var(--base-unit));
    --spacing-lg: calc(2 * var(--base-unit));
    --spacing-xl: calc(3 * var(--base-unit));
    --spacing-2xl: calc(4 * var(--base-unit));
    --spacing-3xl: calc(6 * var(--base-unit));
  }

  /* Asegurar que no haya scroll horizontal */
  body, html {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }

  /* Hero section más compacto */
  .hero {
    height: 60vh; /* Reducir altura del hero */
    padding: calc(1 * var(--base-unit));
    width: 100vw;
    max-width: 100vw;
  }

  /* Header responsive compacto */
  .main-header {
    padding: calc(0.5 * var(--base-unit)) 0;
    width: 100vw;
    max-width: 100vw;
  }

  .nav-container {
    padding: calc(0.3 * var(--base-unit)) calc(0.5 * var(--base-unit));
    gap: calc(0.5 * var(--base-unit));
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100vw;
    max-width: 100vw;
  }

  .nav-button {
    padding: calc(0.4 * var(--base-unit)) calc(0.6 * var(--base-unit));
    font-size: calc(0.8 * var(--base-unit));
    white-space: nowrap;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  /* Hero section compacto */
  .hero h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    width: 100%;
  }

  .slogan {
    font-size: var(--font-size-base);
    width: 100%;
  }

  .slogan-highlight {
    font-size: var(--font-size-lg);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  /* Proyectos ajustados al ancho del móvil */
  .proyectos-track {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Layout 2x2 */
    gap: calc(0.5 * var(--base-unit));
    padding: calc(0.5 * var(--base-unit));
    width: 100%;
    max-width: 100%;
  }

  .proyecto-card {
    width: 100%;
    height: calc(35 * var(--base-unit)); /* Mucho más alto para mostrar todo el contenido */
    max-width: none;
    padding: calc(0.4 * var(--base-unit));
  }

  .proyecto-media {
    height: calc(12 * var(--base-unit));
    margin-bottom: calc(0.2 * var(--base-unit));
    width: 100%;
  }

  .proyecto-media img {
    height: calc(12 * var(--base-unit));
    width: 100%;
    object-fit: cover;
  }

  .proyecto-info {
    height: calc(20 * var(--base-unit));
    padding: calc(0.2 * var(--base-unit));
    width: 100%;
  }

  .proyecto-info h3 {
    font-size: calc(1.4 * var(--base-unit)); /* Mucho más grande en móvil */
    margin-bottom: calc(0.3 * var(--base-unit));
    line-height: 1.2;
    width: 100%;
  }

  .proyecto-info p {
    font-size: calc(1.1 * var(--base-unit)); /* Mucho más grande en móvil */
    line-height: 1.3;
    width: 100%;
  }

  /* Indicador de clickeable más pequeño */
  .proyecto-card::before {
    font-size: calc(0.5 * var(--base-unit));
    padding: calc(0.2 * var(--base-unit)) calc(0.4 * var(--base-unit));
    bottom: calc(0.2 * var(--base-unit));
  }

  /* Footer ajustado al ancho del móvil */
  .footer-content {
    display: flex;
    flex-direction: row;
    gap: calc(0.5 * var(--base-unit));
    padding: calc(0.5 * var(--base-unit));
    overflow: hidden;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .footer-section {
    flex: 1;
    padding: calc(0.3 * var(--base-unit));
    text-align: center;
    min-width: 0;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-section h3 {
    font-size: calc(0.7 * var(--base-unit));
    margin-bottom: calc(0.3 * var(--base-unit));
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-section p,
  .footer-section a {
    font-size: calc(0.55 * var(--base-unit));
    margin-bottom: calc(0.2 * var(--base-unit));
    line-height: 1.1;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .social-links {
    justify-content: center;
    gap: calc(0.3 * var(--base-unit));
    width: 100%;
    flex-wrap: wrap;
  }

  /* Enlaces de texto con flechas ANTES del texto */
  .footer-section a {
    display: inline-flex;
    align-items: center;
    gap: calc(0.3 * var(--base-unit));
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: calc(0.6 * var(--base-unit));
    transition: all 0.3s ease;
    padding: calc(0.2 * var(--base-unit)) 0;
  }

  .footer-section a::before {
    content: '→';
    font-size: calc(0.7 * var(--base-unit));
    transition: transform 0.3s ease;
  }

  .footer-section a:hover {
    color: var(--color-gold-primary);
    transform: translateX(calc(0.2 * var(--base-unit)));
  }

  .footer-section a:hover::before {
    transform: translateX(calc(0.2 * var(--base-unit)));
  }

  /* Botón de LinkedIn más pequeño */
  .social-link {
    width: calc(5 * var(--base-unit));
    height: calc(5 * var(--base-unit));
  }

  .social-link i {
    font-size: calc(0.8 * var(--base-unit));
  }

  /* Chat compacto y no intrusivo */
  .floating-chat {
    bottom: calc(1 * var(--base-unit));
    right: calc(1 * var(--base-unit));
    position: fixed;
    z-index: 1000;
  }

  .chat-button {
    width: calc(5.3 * var(--base-unit)); /* 33% menos grande */
    height: calc(5.3 * var(--base-unit)); /* 33% menos grande */
  }

  .chat-icon {
    width: calc(5 * var(--base-unit));
    height: calc(5 * var(--base-unit));
  }

  .chat-bubble {
    font-size: calc(1.2 * var(--base-unit));
    padding: calc(0.8 * var(--base-unit)) calc(1.2 * var(--base-unit));
    max-width: calc(120 * var(--base-unit));
    white-space: normal;
    bottom: calc(6 * var(--base-unit));
    right: calc(0.5 * var(--base-unit));
  }

  /* Chat modal ocupando casi toda la pantalla */
  .chat-modal {
    width: 100vw;
    height: 80vh;
    margin: 0;
    top: 0;
    left: 0;
    border-radius: 0;
    /* Posicionar más hacia arriba en móvil */
    transform: translateY(10vh);
    background: transparent;
  }

  .chat-header {
    padding: calc(0.8 * var(--base-unit)) calc(1 * var(--base-unit));
    height: calc(8 * var(--base-unit));
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-hover));
    color: white;
  }

  .chat-header h3 {
    font-size: calc(2.2 * var(--base-unit)); /* Mucho más grande */
    margin-left: calc(2 * var(--base-unit)); /* Mover hacia la derecha */
  }

  .chat-header h3 img {
    width: calc(4.5 * var(--base-unit));
    height: calc(4.5 * var(--base-unit));
  }

  .chat-messages {
    padding: calc(1 * var(--base-unit));
    height: calc(100vh - 25 * var(--base-unit)); /* Menos alto en móvil */
    background: var(--color-background-marble);
  }

  .message {
    padding: calc(0.5 * var(--base-unit)) calc(0.8 * var(--base-unit));
    font-size: calc(1.4 * var(--base-unit)); /* Mucho más grande */
    margin-bottom: calc(0.5 * var(--base-unit));
  }

  .chat-input-container {
    padding: calc(0.8 * var(--base-unit)) calc(1 * var(--base-unit));
    gap: calc(0.5 * var(--base-unit));
    height: calc(8 * var(--base-unit));
    background: var(--color-background-marble);
  }

  .chat-input-container input {
    padding: calc(0.5 * var(--base-unit)) calc(0.8 * var(--base-unit));
    font-size: calc(1.4 * var(--base-unit)); /* Mucho más grande */
  }

  .chat-input-container button {
    padding: calc(0.5 * var(--base-unit)) calc(1 * var(--base-unit));
    font-size: calc(1.4 * var(--base-unit)); /* Mucho más grande */
    min-width: calc(8 * var(--base-unit));
  }

  .close-button {
    width: calc(4 * var(--base-unit));
    height: calc(4 * var(--base-unit));
    font-size: calc(2.5 * var(--base-unit));
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: calc(1 * var(--base-unit));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  /* Títulos de sección compactos */
  .section-header {
    margin-top: 0.5rem; /* Separación mínima superior */
    margin-bottom: 0.5rem; /* Separación mínima inferior */
  }

  .section-header h2 {
    font-size: calc(1.8 * var(--base-unit)); /* Más grande */
    margin-bottom: calc(0.3 * var(--base-unit)); /* Mínima separación */
    width: 100%;
  }

  .section-header p {
    font-size: calc(1.1 * var(--base-unit)); /* Más grande */
    padding: 0 calc(1.5 * var(--base-unit));
    width: 100%;
    margin-bottom: calc(0.3 * var(--base-unit)); /* Mínima separación */
    max-width: calc(100% - 3 * var(--base-unit));
  }

  /* About section ajustado al ancho del móvil */
  .about-features {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Layout 2x2 */
    gap: calc(1 * var(--base-unit));
    padding: calc(1 * var(--base-unit)) calc(1.5 * var(--base-unit));
    width: 100%;
    max-width: calc(100% - 3 * var(--base-unit));
    margin: 0 auto;
  }

  .feature-item {
    padding: calc(1.2 * var(--base-unit));
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .feature-item h4 {
    font-size: calc(1.2 * var(--base-unit)); /* Mucho más grande */
    margin-bottom: calc(0.3 * var(--base-unit));
    width: 100%;
  }

  .feature-item p {
    font-size: calc(1 * var(--base-unit)); /* Mucho más grande */
    line-height: 1.2;
    width: 100%;
  }

  .feature-icon {
    font-size: calc(2 * var(--base-unit));
    margin-bottom: calc(0.5 * var(--base-unit));
  }

  /* Contact section en horizontal con tamaños iguales */
  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: calc(1 * var(--base-unit)); /* Separación entre formulario y Calendly */
    padding: calc(1 * var(--base-unit)); /* Padding para separación de la sección */
    width: 100%;
    max-width: 100%;
  }

  .contact-form-section,
  .calendly-section {
    width: 100%;
    max-width: none; /* Sin límite de ancho para que estén dentro de la sección */
  }

  .contact-form-section h3,
  .calendly-section h3 {
    font-size: calc(1.3 * var(--base-unit)); /* Más grande */
    margin-bottom: calc(0.5 * var(--base-unit)); /* Más separación con el subtítulo */
    width: 100%;
  }

  .calendly-section p {
    font-size: calc(1 * var(--base-unit)); /* Más grande */
    margin-bottom: calc(0.3 * var(--base-unit)); /* Menos separación */
    width: 100%;
  }

  .calendly-inline-widget {
    width: 100%;
    min-width: auto;
    height: calc(30 * var(--base-unit)); /* Misma altura que el formulario */
    max-width: 100%;
  }

  /* Reducir zoom interno del Calendly SOLO en móvil */
  .calendly-inline-widget iframe {
    transform: scale(0.6);
    transform-origin: top left;
    width: 166.67%; /* Compensar el scale */
    height: 166.67%; /* Compensar el scale */
  }

  /* Formulario compacto */
  .contact-form {
    padding: calc(0.8 * var(--base-unit));
    width: 100%;
    max-width: 100%;
    height: calc(30 * var(--base-unit)); /* Misma altura que Calendly */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .form-group {
    margin-bottom: calc(0.6 * var(--base-unit));
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    padding: calc(0.4 * var(--base-unit));
    font-size: calc(1 * var(--base-unit)); /* Más grande */
    width: 100%;
    max-width: 100%;
  }

  .form-group textarea {
    min-height: calc(5 * var(--base-unit)); /* Más alto */
    flex: 1; /* Que ocupe el espacio disponible */
    resize: none;
  }

  #submitBtn {
    padding: calc(0.4 * var(--base-unit));
    font-size: calc(1 * var(--base-unit)); /* Más grande */
    width: 100%;
  }

  /* About content compacto */
  .about-content {
    padding: 0 calc(1.5 * var(--base-unit));
    max-width: calc(100% - 3 * var(--base-unit));
    margin: 0 auto;
  }
  
  .about-description {
    font-size: calc(1.1 * var(--base-unit)); /* Más grande */
    line-height: 1.3;
    margin-bottom: calc(1 * var(--base-unit));
    width: 100%;
    padding: 0 calc(1.5 * var(--base-unit));
    max-width: calc(100% - 3 * var(--base-unit));
  }

  .highlight-text {
    font-size: calc(1.3 * var(--base-unit)); /* Más grande */
    line-height: 1.3;
    margin-bottom: calc(0.8 * var(--base-unit));
    width: 100%;
    padding: 0 calc(1.5 * var(--base-unit));
    max-width: calc(100% - 3 * var(--base-unit));
  }

  .results-intro {
    font-size: calc(1.1 * var(--base-unit)); /* Más grande */
    margin-bottom: calc(0.5 * var(--base-unit));
    width: 100%;
    padding: 0 calc(1.5 * var(--base-unit));
    max-width: calc(100% - 3 * var(--base-unit));
  }

  /* Ajustar contenedores principales */
  .seccion {
    padding: calc(0.8 * var(--base-unit)) calc(0.5 * var(--base-unit)) calc(4 * var(--base-unit)) calc(0.5 * var(--base-unit)); /* Aumentado el padding inferior */
    width: 100vw;
    max-width: 100vw;
  }

  .contenido {
    width: 100vw;
    max-width: 100vw;
  }

  /* Asegurar que todos los elementos respeten el ancho */
  * {
    box-sizing: border-box;
  }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 480px) {
  :root {
    --base-unit: 2.5vw; /* Unidad base para pantallas muy pequeñas */
  }

  .hero {
    height: 50vh; /* Aún más compacto para pantallas pequeñas */
  }

  .hero h1 {
    font-size: var(--font-size-xl);
  }

  .slogan-highlight {
    font-size: var(--font-size-base);
  }

  .proyecto-card {
    height: calc(28 * var(--base-unit)); /* Mucho más alto solo en móvil */
  }

  .footer-section {
    padding: calc(0.2 * var(--base-unit));
    max-width: none;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .feature-item {
    padding: calc(0.6 * var(--base-unit));
    max-width: calc(22 * var(--base-unit));
  }

  .chat-button {
    width: calc(7 * var(--base-unit));
    height: calc(7 * var(--base-unit));
  }

  .chat-icon {
    width: calc(4 * var(--base-unit));
    height: calc(4 * var(--base-unit));
  }

  .social-link {
    width: calc(5 * var(--base-unit));
    height: calc(5 * var(--base-unit));
  }

  .social-link i {
    font-size: calc(0.8 * var(--base-unit));
  }

  .calendly-inline-widget {
    height: calc(25 * var(--base-unit)); /* Más alto para pantallas muy pequeñas */
  }

  .calendly-inline-widget iframe {
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%; /* Compensar el scale */
    height: 200%; /* Compensar el scale */
  }

  .contact-form {
    height: calc(25 * var(--base-unit)); /* Más alto para pantallas muy pequeñas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .contact-form-section,
  .calendly-section {
    max-width: calc(40 * var(--base-unit));
  }

  /* Footer específico para pantallas muy pequeñas */
  .footer-content {
    gap: calc(0.2 * var(--base-unit));
    padding: calc(0.3 * var(--base-unit));
  }

  .footer-section h3 {
    font-size: calc(1.2 * var(--base-unit)); /* Mucho más grande para SmartHotels */
    margin-bottom: calc(0.2 * var(--base-unit));
  }

  .footer-section p {
    font-size: calc(0.2 * var(--base-unit)); /* Mucho más pequeño para "todos los derechos reservados" */
    margin-bottom: calc(0.05 * var(--base-unit));
    line-height: 0.8;
  }

  .footer-section a {
    font-size: calc(0.5 * var(--base-unit));
    margin-bottom: calc(0.1 * var(--base-unit));
    line-height: 1.0;
  }

  .social-link {
    width: calc(4 * var(--base-unit));
    height: calc(4 * var(--base-unit));
  }

  .social-link i {
    font-size: calc(0.7 * var(--base-unit));
  }

  /* Section header ultra-compacto para pantallas muy pequeñas */
  .section-header {
    margin-top: 0.5rem; /* Separación mínima */
    margin-bottom: 0.5rem; /* Separación mínima */
  }

  .section-header h2 {
    margin-bottom: calc(0.2 * var(--base-unit)); /* Separación mínima */
  }

  .section-header p {
    margin-bottom: calc(0.2 * var(--base-unit)); /* Separación mínima */
  }



  .footer-section a {
    display: inline-flex;
    align-items: center;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0;
    font-size: calc(0.7 * var(--base-unit));
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: calc(0.2 * var(--base-unit));
    line-height: 1.2;
    transition: color 0.3s;
  }
  .footer-section a::before {
    content: '→';
    font-size: calc(0.9 * var(--base-unit));
    margin-right: 0.5em;
    color: var(--color-gold-primary);
    transition: transform 0.3s;
  }
  .footer-section a:hover {
    color: var(--color-gold-primary);
    background: none;
    transform: none;
  }
  .footer-section a:hover::before {
    transform: translateX(0.2em);
  }
}

/* Estilos para la sección de demo */
.demo-section {
  text-align: center;
  margin-top: 0; /* Sin separación */
  padding: 0.5rem; /* Mínimo padding */
  position: relative;
}

.demo-title {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
  background: linear-gradient(135deg, #C8A04F, #B8943F, #A67C2F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(200, 160, 79, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 2px 4px rgba(200, 160, 79, 0.3), 0 0 10px rgba(200, 160, 79, 0.2);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 4px 8px rgba(200, 160, 79, 0.5), 0 0 20px rgba(200, 160, 79, 0.4);
    transform: scale(1.02);
  }
}

.demo-description {
  color: #8B7355;
  margin-bottom: 0.5rem; /* Mínima separación */
  font-size: 1.1rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(139, 115, 85, 0.2);
  letter-spacing: 0.3px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

@media (max-width: 768px) {
  .proyecto-card {
    height: calc(30 * var(--base-unit)); /* Más alto para mostrar todo el contenido */
  }
  .demo-description {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .hero h1 {
    font-size: 2rem; /* Ajustado para que quepa en una línea */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-button {
    width: calc(5 * var(--base-unit));
    height: calc(5 * var(--base-unit));
  }
  .chat-icon {
    width: calc(4.5 * var(--base-unit));
    height: calc(4.5 * var(--base-unit));
  }
}

/* Botón de demo con animaciones avanzadas */
.demo-button {
  display: inline-block;
  background: linear-gradient(135deg, #C8A04F, #B8943F);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.demo-button::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: 0.5s;
}

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

.demo-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(200, 160, 79, 0.4),
    0 0 30px rgba(200, 160, 79, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #D4B05F, #C8A04F);
}

.demo-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Icono del botón */
.demo-icon {
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.demo-button:hover .demo-icon {
  transform: scale(1.2) rotate(10deg);
  animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1.2) rotate(10deg);
  }
  50% {
    transform: scale(1.4) rotate(15deg);
  }
}

/* Efecto de brillo */
.demo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.demo-button:hover .demo-glow {
  opacity: 1;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Responsive para el botón de demo */
@media (max-width: 768px) {
  .demo-section {
    padding: 0.2rem; /* Mínimo padding en móvil */
    margin-top: 0; /* Sin separación en móvil */
  }
  
  .demo-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem; /* Mínima separación */
  }
  
  .demo-description {
    font-size: 0.9rem;
    margin-bottom: 0.3rem; /* Mínima separación */
  }
  
  .demo-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .demo-button:hover {
    transform: translateY(-2px) scale(1.03);
  }
} 

/* ===== COMPONENTE SLIDESHOW ===== */

/* Contenedor principal del slideshow */
.slideshow-container {
  position: relative;
  max-width: calc(80 * var(--base-unit));
  margin: 0 auto;
  background: linear-gradient(135deg, 
    rgba(250, 247, 240, 0.95), 
    rgba(252, 249, 243, 0.98)
  );
  border-radius: calc(2 * var(--base-unit));
  box-shadow: var(--shadow-lg);
  border: calc(0.2 * var(--base-unit)) solid var(--color-gold-primary);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-container:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold-hover);
  transform: translateY(calc(-0.3 * var(--base-unit)));
}

/* Contenedor de slides */
.slides-wrapper {
  position: relative;
  width: 100%;
  height: calc(40 * var(--base-unit));
  overflow: hidden;
}

/* Slide individual */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(1.5 * var(--base-unit));
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  max-width: 100%;
  max-height: 100%;
}

.slide:hover img {
  transform: none;
  box-shadow: var(--shadow-lg);
}

/* Caption del slide - OCULTO */
.slide-caption {
  display: none;
}

/* Controles de navegación */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(200, 160, 79, 0.9);
  color: white;
  border: none;
  width: calc(4 * var(--base-unit));
  height: calc(4 * var(--base-unit));
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 10;
}

.slideshow-container:hover .slideshow-nav {
  opacity: 1;
}

.slideshow-prev {
  left: calc(1 * var(--base-unit));
}

.slideshow-next {
  right: calc(1 * var(--base-unit));
}

.slideshow-nav:hover {
  background: var(--color-gold-hover);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(200, 160, 79, 0.4);
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Indicadores (dots) - OCULTOS */
.slideshow-indicators {
  display: none;
}

/* Contador de slides */
.slideshow-counter {
  position: absolute;
  top: calc(1 * var(--base-unit));
  right: calc(1 * var(--base-unit));
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: calc(0.5 * var(--base-unit)) calc(1 * var(--base-unit));
  border-radius: calc(1 * var(--base-unit));
  font-size: var(--font-size-sm);
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(5px);
  border: calc(0.1 * var(--base-unit)) solid rgba(255, 255, 255, 0.2);
}

.current-slide {
  color: var(--color-gold-primary);
  font-weight: 700;
}

.separator {
  margin: 0 calc(0.3 * var(--base-unit));
  opacity: 0.7;
}

/* Animaciones para transiciones */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Efecto de brillo en hover */
.slideshow-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
  z-index: 5;
  pointer-events: none;
}

.slideshow-container:hover::before {
  left: 100%;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .slideshow-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .slides-wrapper {
    height: calc(25 * var(--base-unit));
    width: 100%;
    overflow: hidden;
  }
  
  .slideshow-nav {
    width: calc(3 * var(--base-unit));
    height: calc(3 * var(--base-unit));
    font-size: var(--font-size-base);
    opacity: 1; /* Siempre visibles en móvil */
  }
  
  .slideshow-prev {
    left: calc(0.5 * var(--base-unit));
  }
  
  .slideshow-next {
    right: calc(0.5 * var(--base-unit));
  }
  
  .slide-caption {
    display: none;
  }
  
  .slideshow-counter {
    top: calc(0.5 * var(--base-unit));
    right: calc(0.5 * var(--base-unit));
    padding: calc(0.4 * var(--base-unit)) calc(0.8 * var(--base-unit));
    font-size: calc(1.2 * var(--base-unit)); /* Más grande en móvil */
    background: rgba(0, 0, 0, 0.8); /* Más opaco para mejor visibilidad */
    border: calc(0.15 * var(--base-unit)) solid var(--color-gold-primary); /* Borde más visible */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Sombra para destacar */
    z-index: 20; /* Asegurar que esté por encima de todo */
    position: absolute;
  }
  
  .slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .slides-wrapper {
    height: calc(20 * var(--base-unit));
  }
  
  .slideshow-nav {
    width: calc(2.5 * var(--base-unit));
    height: calc(2.5 * var(--base-unit));
    font-size: calc(0.8 * var(--base-unit));
  }
  
  .slide-caption {
    display: none;
  }
  
  .slideshow-counter {
    top: calc(0.3 * var(--base-unit));
    right: calc(0.3 * var(--base-unit));
    padding: calc(0.3 * var(--base-unit)) calc(0.6 * var(--base-unit));
    font-size: calc(1 * var(--base-unit));
    background: rgba(0, 0, 0, 0.9); /* Aún más opaco */
    border: calc(0.2 * var(--base-unit)) solid var(--color-gold-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    z-index: 20; /* Asegurar que esté por encima de todo */
    position: absolute;
  }
  
  .slideshow-container {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  
  .slides-wrapper {
    width: 100%;
    overflow: hidden;
  }
  
  .slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
}