/* Variables globales */
:root {
  --primary-color: #0077b6; /* Azul principal */
  --secondary-color: #90e0ef; /* Celeste claro */
  --text-color-light: #ffffff; /* Blanco */
  --text-color-dark: #000000; /* Negro */
  --background-gradient: linear-gradient(
    to bottom,
    #023e8a,
    #0096c7,
    #00b4d8
  ); /* Gradiente */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Arial", sans-serif;
  color: var(--text-color-light);
  line-height: 1.6;
  background: var(--background-gradient);
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

/* Navegación */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.5); /* Fondo transparente inicial */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9); /* Fondo sólido al hacer scroll */
  padding: 0.5rem 1.5rem; /* Reducir padding al hacer scroll */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Logo */
.navbar .logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  width: 80px;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.logo-container img:hover {
  transform: scale(1.1);
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Menu Button (Mobile) */
.menu-button {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Ocultar enlaces en pantallas pequeñas */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    gap: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex; /* Mostrar enlaces al hacer clic en el menú */
  }

  .menu-button {
    display: block; /* Mostrar botón en pantallas pequeñas */
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-content {
  color: var(--text-color-light);
  max-width: 800px;
  padding: 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 15px;
}
.card {
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: center;
}
.card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}
.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 1rem;
  color: var(--text-color-light);
}

/* Call to Action */
.cta {
  padding: 4rem 0;
  background: url(../img/beach-6292382_1920.jpg) no-repeat fixed;
  text-align: center;
  color: var(--text-color-light);
}
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #007bff;
}
.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #007bff;
}

/* Footer */
.footer {
  background: #023e8a;
  padding: 0rem 0;
  text-align: center;
  color: var(--text-color-light);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-around;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
}
.mi-link {
  color: #ffffff;
}
