:root {
  /* Midnight Electric Palette */
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.5);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.5);
  --accent: #22d3ee;
  
  --bg-deep: #020617;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px var(--primary-glow);
  
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: top, width, border-radius, background-color, padding;
}

header.scrolled {
  top: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  padding: 15px 40px;
  background: rgba(2, 6, 23, 0.95);
  border-top: none;
  border-left: none;
  border-right: none;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.logo {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.logo-hydro {
  color: #2653ca;
}

.logo-accent {
  color: #0B96DC;
}

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: 0.3s;
  font-weight: 500;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.header-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary {
  padding: 16px 32px;
  text-decoration: none;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.section-padding {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle strong {
  color: #ffffff;
}

/* Modalidades Grid */
/* Badges */
.badge-hero {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: 0 0 15px var(--primary-glow);
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.grid-modalidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card-modalidade {
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

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

.card-modalidade::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.card-modalidade:hover::before {
  opacity: 0.05;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

/* Testimonials Slider */
.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.testimonials-track .card-testimonial {
  width: calc((1200px - 48px - 140px) / 3);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .testimonials-wrapper { gap: 0; }
  .testimonials-wrapper .carousel-btn { display: none; }
  .testimonials-track { flex-wrap: wrap; width: 100%; }
  .testimonials-track .card-testimonial { width: 100%; }
}

.card-testimonial {
  padding: 40px;
  position: relative;
}

.stars {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border-glass);
}

.mobile-nav, .mobile-menu-btn {
  display: none;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 5500;
}

.mobile-overlay.active {
  font-weight: 500;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.header-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.header-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.header-social-btn:hover,
header.scrolled .header-social-btn {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 992px) {
  .desktop-nav { display: none !important; }
  .header-cta { display: none !important; }
  .header-socials { display: none !important; }
  
  header {
    z-index: 5000 !important;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-deep);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 6000;
  }
  
  .mobile-nav.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5000;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  
  .mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .mobile-nav a {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .gallery-item, .gallery-item-large, .gallery-item-wide {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 !important;
  }
  
  .gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  }
  
  .gallery-overlay h3 {
    transform: translateY(0);
    font-size: 1rem;
  }
}

nav a:hover {
  color: white !important;
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Manual Slider Moments Section */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 20px 0;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.carousel-track img {
  height: 250px;
  width: calc((1200px - 60px) / 4);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.carousel-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: 0.3s;
  z-index: 10;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

@media (max-width: 992px) {
  .carousel-wrapper {
    gap: 10px;
  }
  
  .carousel-btn {
    display: none; /* Keep mosaic/scroll on mobile */
  }

  .carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
  }

  .carousel-track img {
    height: 180px;
    width: 100%;
    border-radius: 12px;
  }
}
