@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #002233, #004466);
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  background: #003f5c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  z-index: 1000;
  flex-wrap: wrap;
  top: 0;
}

.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 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;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #ffffff;
}

#menu-toggle {
  display: none;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    left: 0;
    background: #003049;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    margin: 15px 0;
    text-align: center;
  }

  #menu-toggle:checked + .hamburger + .menu {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* HERO */
.hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('../img/marino-header.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 90%;
  margin: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero {
    height: auto;
    padding: 3rem 1rem;
  }
}

/* PRODUCTOS */
.productos-section {
  padding: 6rem 1rem 4rem;
  text-align: center;
  background-color: #f8fbff;
  color: #013a63;
}

.productos-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0077b6;
  border-bottom: 4px solid #0077b6;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.producto-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.producto-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.producto-card h3 {
  color: #001f3f;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.producto-card p {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.producto-card button {
  background: linear-gradient(to right, #0077b6, #00b4d8);
  color: white;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.producto-card button:hover {
  background: #023e8a;
}

/* RESPONSIVE PRODUCTOS */
@media (max-width: 420px) {
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .producto-card {
    padding: 1.2rem;
  }

  .producto-card h3 {
    font-size: 1.1rem;
  }

  .producto-card p,
  .producto-card button {
    font-size: 0.95rem;
  }
}

/* UBICACIÓN */
.ubicacion-section {
  padding: 4rem 1rem;
  background-color: #caf0f8;
  color: #003049;
  text-align: center;
}

.ubicacion-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ubicacion-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.ubicacion-section iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* RESPONSIVE UBICACIÓN */
@media (max-width: 480px) {
  .ubicacion-section h2 {
    font-size: 1.5rem;
  }

  .ubicacion-section p {
    font-size: 0.95rem;
  }

  .ubicacion-section iframe {
    height: 200px;
  }
}

/* FOOTER */
.footer {
  background-color: #001d3d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
}

.footer a {
  color: #90e0ef;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE FOOTER */
@media (max-width: 480px) {
  .footer {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
  }
}
