@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #003049, #006494);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #ffffff;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: row;
}

.menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-left: 20px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #ffd60a;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  background: url('img/hero-ocean.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 76, 0.5);
}

.hero-text {
  position: relative;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 2s ease;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-hero {
  background: #0096c7;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero:hover {
  background: #0077a6;
}

/* SECTIONS */
.section {
  padding: 80px 20px;
  background-color: #f0f9ff;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* MISIÓN Y VISIÓN */
.mision-vision-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 60px 20px;
  background-color: #eaf6fb;
}

.card {
  background: white;
  border-left: 5px solid #0096c7;
  padding: 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

/* SERVICIOS */
.que-hacemos .servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.servicio {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio i {
  font-size: 2rem;
  color: #0077a6;
  margin-bottom: 10px;
}

/* VIDEO */
.video-section {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.video-overlay {
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

/* FOOTER */
footer {
  padding: 30px;
  background: #002e42;
  color: white;
  text-align: center;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MEDIA QUERIES */

/* Navbar responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #003049;
    padding: 10px 0;
    z-index: 999;
  }

  input#menu-toggle:checked + label + .menu {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    margin: 15px 0;
    text-align: center;
  }
}

/* Hero Text */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .btn-hero {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn-hero {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .card h3,
  .servicio h4 {
    font-size: 1.2rem;
  }

  .video-overlay h2 {
    font-size: 1.4rem;
  }

  .video-overlay p {
    font-size: 1rem;
  }

  .card {
    padding: 20px;
  }
}

/* Misión y Video Section */
@media (max-width: 768px) {
  .mision-vision-section {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 95%;
  }

  .video-section {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }

  .video-overlay {
    padding: 1.5rem;
  }
}

/* Pequeños dispositivos como iPhone SE */
@media (max-width: 400px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 10px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-hero {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .card,
  .servicio {
    padding: 15px;
  }
}
