/* ===============================
   VARIABLES DE COLOR
================================ */
:root {
  --blue-light: #eaf4fb;
  --blue-main: #4fa3e3;
  --blue-dark: #0a1f44;
  --white: #ffffff;
  --text-dark: #333333;
  --shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ===============================
   RESET GENERAL
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--blue-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===============================
   CONTENEDOR
================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   TOPBAR / MENÚ
================================ */
.topbar {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand img {
  width: 120px;
  height: auto;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav a:hover {
  background: var(--blue-main);
  transform: translateY(-3px);
}

/* ===============================
   HERO / PRESENTACIÓN
================================ */
.hero {
  min-height: 85vh;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 20px;
}

.hero-content p {
  max-width: 780px;
  margin: auto;
  font-size: 18px;
}

/* ===============================
   SOBRE NOSOTROS
================================ */
.about {
  padding: 110px 0;
  background: var(--white);
  text-align: center;
}

.about h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.about p {
  max-width: 820px;
  margin: auto;
  margin-bottom: 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--white);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.about-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.about-card h3 {
  margin-bottom: 10px;
}

/* ===============================
   PRODUCTOS
================================ */
.products {
  padding: 110px 0;
  background: var(--blue-light);
}

.products h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 10px;
}

.products-desc {
  text-align: center;
  margin-bottom: 40px;
}

.product-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
  scroll-snap-type: x mandatory;
}

.product-scroller::-webkit-scrollbar {
  height: 10px;
}

.product-scroller::-webkit-scrollbar-thumb {
  background: var(--blue-main);
  border-radius: 10px;
}

.product-card {
  min-width: 260px;
  background: var(--white);
  padding: 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.product-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  color: var(--blue-dark);
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer h4 {
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 6px;
}

.legal {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
}

/* ===============================
   RESPONSIVE TABLET
================================ */
@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav {
    justify-content: center;
  }
}

/* ===============================
   RESPONSIVE MÓVIL
================================ */
@media (max-width: 600px) {

  .topbar .container {
    flex-direction: column;
    gap: 10px;
  }

  .brand img {
    width: 100px;
  }

  .nav {
    justify-content: center;
    gap: 10px;
  }

  .hero {
    min-height: 75vh;
    padding: 20px 0;
  }

  .hero-content p {
    font-size: 16px;
  }

  .about {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .products {
    padding: 80px 0;
  }

  .product-card {
    min-width: 220px;
  }

  .product-card img {
    width: 180px;
    height: 180px;
  }
}
