:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-color: #00edfd;
  --accent-hover: #00d7e6;
  --card-bg: rgba(20, 20, 20, 0.7);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.5;
  color: #a0a0a0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo img {
  height: 40px;
  object-fit: contain;
}

.btn-reservar {
  text-decoration: none;
  color: var(--bg-color);
  background-color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-reservar:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  color: var(--bg-color);
  background-color: var(--accent-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 237, 253, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Scrollytelling Sections */
.scroll-sequence {
  position: relative;
  width: 100%;
}

.scroll-space {
  height: 500vh; 
}

.sticky-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* REGLAS ORIGINALES DEL CANVAS CON ZOOM APLICADO */
canvas {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  /* El zoom deseado en las animaciones */
  transform: scale(1.2);
  transform-origin: center center;
}

/* Mayor zoom en dispositivos móviles porque el video es horizontal 16:9 */
@media (max-width: 768px) {
  canvas {
    transform: scale(2.5);
  }
}

/* Features Overlay */
.features-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.feature-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0; 
  width: 350px;
  pointer-events: auto;
}

.feature-left {
  left: 10%;
}

.feature-right {
  right: 10%;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 24px;
}

.feature-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.feature-card p {
  font-size: 1.2rem;
  margin: 0;
}

/* Transition Section */
.transition-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.transition-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

.transition-content p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* CTA Section */
.cta-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  background: radial-gradient(circle at center, rgba(30,30,30,1) 0%, var(--bg-color) 70%);
}

.cta-content {
  max-width: 600px;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .reservation-form {
    flex-direction: row;
  }
}

.reservation-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.reservation-form input:focus {
  border-color: var(--accent-color);
}

.disclaimer {
  font-size: 0.85rem !important;
  color: #666 !important;
}

/* Footer */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content img {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .feature-left { left: 5%; }
  .feature-right { right: 5%; }
  .feature-item { width: 300px; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  .feature-item {
    width: 90%;
    left: 5% !important;
    right: 5% !important;
    text-align: center;
  }
  
  .feature-card {
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.85); /* Un poco mas oscuro en mobile para legibilidad sobre el video grande */
  }
}


/* CTA Details Additions */
.cta-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .cta-details {
    flex-direction: row;
    text-align: left;
    background: rgba(20, 20, 20, 0.5);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.cta-image-wrapper {
  flex-shrink: 0;
}

.ecosistema-img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .ecosistema-img {
    max-width: 300px; /* Un poco mas grande en desktop para compensar */
  }
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cta-includes {
  font-size: 1.2rem !important;
  color: var(--text-color) !important;
  margin: 0 !important;
}

.cta-price {
  font-size: 1.5rem !important;
  color: var(--accent-color) !important;
  margin: 0 !important;
}

.cta-reservation-text {
  font-size: 1.1rem !important;
  color: #bbb !important;
  margin: 0 !important;
}


/* Floating action button */
.fab-up {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: rgba(20, 20, 20, 0.8);
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  border: 1px solid rgba(0, 237, 253, 0.3);
  box-shadow: 0 4px 12px rgba(0, 237, 253, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.fab-up.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-up:hover {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 237, 253, 0.4);
}
