/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  background-color: #ffffff;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* NAVBAR */
header {
  background-color: #181818;
}

.navbar-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.logo img {
  height: 70px;
}

.search-bar {
  flex: 1;
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 100px 0 0 100px;
  font-size: 16px;
}

.search-bar button {
  padding: 0 15px;
  background-color: white;
  border: none;
  border-radius: 0 100px 100px 0;
  cursor: pointer;
}

.navbar-bottom ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.navbar-bottom li a {
  text-decoration: none;
  color: white;
  font-weight: 450;
}

.navbar-bottom li a img {
  filter: brightness(0) invert(1); 
}

/* Responsive Navbar */

@media (max-width: 768px) {
  .navbar-container {
    padding: 10px 15px;
  }

  .navbar-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo img {
    height: 50px;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input {
    font-size: 14px;
    padding: 8px;
    border-radius: 100px 0 0 100px;
  }

  .search-bar button {
    padding: 0 12px;
  }

  .navbar-bottom ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .navbar-bottom li {
    flex: 1 1 auto;
  }

  .navbar-bottom li a {
    display: block;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .navbar-top {
    gap: 8px;
  }

  .logo img {
    height: 40px;
  }

  .search-bar input {
    font-size: 13px;
    padding: 6px;
  }

  .search-bar button {
    padding: 0 10px;
  }

  .navbar-bottom ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .navbar-bottom li {
    flex: 0 0 auto;
  }

  .navbar-bottom li a {
    padding: 6px 8px;
    font-size: 14px;
    white-space: nowrap;
  }
}


/* HERO */
.hero {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 70px;
  font-weight: 600;
  margin-bottom: 25px;
  background: linear-gradient(to right, #149440, #b3c910, #059dde, #173f81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.icono-h1 {
  width: 60px;
  height: 60px;
}

.hero h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #6e6e73;
}

.hero p {
  font-size: 20px;
  color: #4b4b4f;
  max-width: 800px;
  margin: 0 auto;
}

/* CAROUSEL */
.carousel-item {
  display: none;
}

.carousel-item.active {
  display: block;
}

.carousel-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active {
  background-color: #333;
}

/* FLOATING CARDS */
.floating-cards {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: -80px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.floating-cards .card {
  background: #fff;
  width: 230px;
  height: 130px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.2s ease, background 0.3s;
  flex-shrink: 0;
}

.floating-cards .card:hover {
  background: #f5f5f5;
  transform: translateY(-4px);
}

.floating-cards .card a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.card-title {
  font-weight: bold;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  object-fit: contain;
}

.card-desc {
  font-size: 12px;
  color: #666;
}

/* GRID TITLE */
.grid-title {
  text-align: center;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* CATALOGO - GRID DE PRODUCTOS */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: center; 
  max-width: 1200px;        
  margin: 0 auto;          
}


.producto-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 250px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.producto-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.producto-card .precio {
  color: green;
  font-weight: bold;
  margin-bottom: 10px;
}

.producto-card .btn-ver {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.producto-card .btn-ver:hover {
  background-color: #0056b3;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
  }
  .floating-cards {
    margin-top: -30px;
    gap: 20px;
  }
  .floating-cards .card {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

.contenedor-catalogo {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

/* FOOTER */
.footer {
  background-color: #f5f5f7;
  padding: 20px 15px;
  font-size: 14px;
  color: #6e6e73;
  text-align: center;
  border-top: 1px solid #d2d2d7;
  width: 100%;
}

.contacto-ayuda {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 1000;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 12px;
  color: #222;
  text-align: center;
  width: 100px;
}
.contacto-titulo {
  margin: 0 0 5px 0;
  font-weight: bold;
}

.icono-social {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

