* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-ocean: #0a1628;
  --ocean-blue: #0d3b66;
  --aqua: #00d9ff;
  --seafoam: #4ecdc4;
  --white: #ffffff;
  --light-gray: #e8f4f8;
  --shadow: rgba(0, 217, 255, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--white);
  background: var(--deep-ocean);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Water Canvas Background */
#waterCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

/* Bubbles */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(78, 205, 196, 0.5), rgba(0, 217, 255, 0.2));
  border-radius: 50%;
  animation: rise linear infinite;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes rise {
  to {
    bottom: 110%;
    transform: translateX(var(--drift));
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--aqua);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--aqua);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

/* Nuevo estilo para logo principal centrado */
.logo-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  opacity: 0;
  animation: fadeInScale 1s ease-out 0.3s forwards;
}

/* Agregando estilos para imagen de logo personalizable */
.logo-image-main {
  width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px var(--shadow));
  animation: float 4s ease-in-out infinite;
}

.logo-icon-main {
  width: 120px;
  height: 120px;
  color: var(--aqua);
  filter: drop-shadow(0 0 30px var(--shadow));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.logo-text-main {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, var(--aqua), var(--seafoam), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--shadow);
}

/* Button Grid */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Buttons */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: rgba(13, 59, 102, 0.3);
  border: 2px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  backdrop-filter: blur(10px);
  /* Adding styles for anchor tag buttons */
  text-decoration: none;
  color: inherit;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(78, 205, 196, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.action-btn:hover::before {
  opacity: 1;
}

.action-btn:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--aqua);
  box-shadow: 0 25px 50px var(--shadow);
}

.action-btn:active {
  transform: translateY(-5px) scale(0.98);
}

.btn-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.15);
  border-radius: 15px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 32px;
  height: 32px;
  color: var(--aqua);
  transition: transform 0.4s ease;
}

.action-btn:hover .btn-icon {
  background: rgba(0, 217, 255, 0.3);
  transform: rotate(360deg) scale(1.1);
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.btn-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

/* Ripple Effect */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.4);
  transform: scale(0);
  pointer-events: none;
}

.action-btn:active .btn-ripple {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Different button colors */
.action-btn.secondary .btn-icon {
  background: rgba(78, 205, 196, 0.15);
}

.action-btn.secondary .btn-icon svg {
  color: var(--seafoam);
}

.action-btn.secondary:hover {
  border-color: var(--seafoam);
}

.action-btn.secondary:hover .btn-icon {
  background: rgba(78, 205, 196, 0.3);
}

.action-btn.tertiary .btn-icon {
  background: rgba(232, 244, 248, 0.1);
}

.action-btn.tertiary .btn-icon svg {
  color: var(--light-gray);
}

.action-btn.tertiary:hover {
  border-color: var(--light-gray);
}

.action-btn.tertiary:hover .btn-icon {
  background: rgba(232, 244, 248, 0.2);
}

/* Floating Elements */
.float-element {
  position: absolute;
  animation: floatAround 6s ease-in-out infinite;
  opacity: 0.6;
}

.float-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(0, -40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -20px) rotate(270deg);
  }
}

/* Features Section */
.features {
  padding: 8rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  opacity: 0.8;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: rgba(13, 59, 102, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--aqua);
  background: rgba(13, 59, 102, 0.4);
  box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(0, 217, 255, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  color: var(--aqua);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.feature-desc {
  font-size: 1rem;
  color: var(--light-gray);
  opacity: 0.9;
  line-height: 1.6;
}

/* Stats Section */
.stats {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.4), rgba(10, 22, 40, 0.8));
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.stats-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* CTA Section */
.cta {
  padding: 8rem 2rem;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.3rem;
  color: var(--light-gray);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-button {
  padding: 1.5rem 4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-ocean);
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--shadow);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  background: rgba(10, 22, 40, 0.9);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--light-gray);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.footer-right {
  color: var(--light-gray);
  opacity: 0.7;
}

/* Nuevo estilo para sección de contacto */
.contact-section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-ocean);
  background: linear-gradient(135deg, var(--aqua), var(--seafoam));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 15px 40px var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px var(--shadow);
}

.contact-btn:active {
  transform: translateY(-2px) scale(1);
}

.contact-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .features,
  .stats,
  .cta {
    padding: 4rem 1rem;
  }

  .logo-main {
    margin-bottom: 3rem;
  }

  /* Haciendo la imagen de logo responsiva en móvil */
  .logo-image-main {
    width: 150px;
    max-height: 150px;
  }

  .logo-icon-main {
    width: 80px;
    height: 80px;
  }

  .action-btn {
    padding: 2rem 1.5rem;
  }

  .btn-label {
    font-size: 1.3rem;
  }

  .contact-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo-text-main {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  /* Reduciendo tamaño de logo en pantallas muy pequeñas */
  .logo-image-main {
    width: 100px;
    max-height: 100px;
  }

  .button-grid {
    gap: 1.2rem;
  }

  .action-btn {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem 1.2rem;
    gap: 1rem;
  }

  .btn-text {
    align-items: center;
  }

  .btn-icon {
    width: 50px;
    height: 50px;
  }

  .contact-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
