* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f8fafc;
  color: #0f172a;
}

/* ================= HEADER ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

header.top nav a,
header.top .logo-text {
  color: #002168;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    transparent
  );
  pointer-events: none;
}

.logo {
  height: 40px;
  transition: opacity 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: #ffffff;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(to bottom, #f8fafc 0%, #cbd5f5 35%, #1e3a8a 75%, #001a4d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  color: #0f172a;
  animation: fadeUp 1.2s ease;
}

.hero h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-content img {
  width: 20%;
  border-radius: 20%;
  position: relative;
  z-index: 3;
  animation: floatBoat 6s ease-in-out infinite;
}

/* ANIMACIÓN BARCO */
@keyframes floatBoat {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-8px) rotate(-1deg); }
  50% { transform: translateY(4px) rotate(1deg); }
  75% { transform: translateY(-6px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* BOTÓN */
.btn {
  padding: 12px 20px;
  background: white;
  color: #002168;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* OVERLAY HERO */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    #001a4d 0%,
    #1e3a8a 40%,
    rgba(30, 58, 138, 0.4) 50%,
    transparent 70%
  );
  z-index: 1;
}

/* EFECTO LUZ */
.hero::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent);
  top: -50%;
  left: -50%;
}

/* OLA */
.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 2;
}

.wave path {
  filter: drop-shadow(0px -10px 20px rgba(0,0,0,0.2));
}

.hero .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* ANIMACIÓN TEXTO */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SECCIONES ================= */
.section {
  padding: 80px 60px;
}

.section h2 {
  margin-bottom: 20px;
}

/* ================= INTRO ================= */
.intro {
  text-align: center;
  max-width: 800px;
  margin: auto;
  padding-top: 60px;
  position: relative;
}

.intro::before {
  content: "";
  width: 60px;
  height: 3px;
  background: #0a4fd6;
  display: block;
  margin: 0 auto 20px;
  border-radius: 10px;
}

.intro h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #002168;
}

.intro p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

/* ================= SERVICES ================= */
.services {
  padding: 100px 40px;
  text-align: center;
}

.services-title {
  font-size: 32px;
  margin-bottom: 50px;
  color: #002168;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 25px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 30px 25px;
  border-radius: 18px;
  border: 1px solid rgba(0,26,77,0.05);
  transition: 0.3s;
}

.service-card h3 {
  color: #002168;
}

.service-card p {
  font-size: 14px;
  color: #475569;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 26, 77, 0.9);
  color: #f8fafc;
  margin-top: 50px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #64748b;
}

/* ================= MOBILE ================= */
/* BOTÓN */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 200;
}

/* LAS 3 LÍNEAS */
.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: currentColor;
  left: 0;
  transition: all 0.4s ease;
  border-radius: 5px;
}

.menu-toggle span {
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* POSICIÓN INICIAL */
.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* ===== ANIMACIÓN A X ===== */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

.menu-toggle.active {
  color: #fff !important;
}

@media (min-width: 769px) and (max-width: 1400px){
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 0 20px 80px;
  }
  
  .hero .wave {
    height: 70%;
  }
}

.wave-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 768px) {

  header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  /* CONTENEDOR MENU */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;

    background: rgba(0, 26, 77, 0.96);
    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;

    transform: translateX(100%);
    transition: transform 0.4s ease;

    z-index: 150;
  }

  /* MENU ACTIVO */
  nav.active {
    transform: translateX(0);
  }

  /* LINKS */
  nav a {
    font-size: 22px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
  }

  /* EFECTO HOVER */
  nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: 0.3s ease;
  }

  nav a:hover::after {
    width: 100%;
  }

  nav a:hover {
    transform: translateY(-2px);
  }

  /* HAMBURGUESA */
  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    z-index: 200;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 0 20px 80px;
    overflow: hidden;
  }

  /* .hero .wave {
    width: 100%;
    height: 70%;
  } */

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-content img {
    width: 60%;
    animation: floatBoat 9s ease-in-out infinite;
  }

  .wave-mobile {
    display: block;
    width: 100%;
    height: 780px;
    /* background: yellow; */
  }

  .hero .wave {
    bottom: 0;
  }

  .wave-desktop {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: auto;
  }

  .section {
    padding: 60px 20px;
  }

  .logo-text {
    font-size: 14px;
  }

  /* ANIMACIÓN BARCO */
  @keyframes floatBoat {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-6px) rotate(-1deg); }
    50%  { transform: translateY(3px) rotate(1deg); }
    75%  { transform: translateY(-4px) rotate(-0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
  }

}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  background: #25D366;
  color: white;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 32px;

  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  z-index: 999;

  transition: all 0.3s ease;
}

/* hover */
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* animación suave */
.whatsapp-float::before {
  content: "";
  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);

  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}