

:root {
  --main-color: #285e4b;
  --bg-color: #f6f6f6;
  --accent-color: #ff6600;
  --font-color: #1a1a1a;
  --radius: 10px;
  --blanco:#f5f5f5;
  --azul:#001948;
}

body {
  margin: 0;
  /*font-family: 'Segoe UI', sans-serif;*/
  background: var(--bg-color);
  color: var(--font-color);
  font-family: "Albert sans";
}

header {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

.container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 3rem 0rem 3rem ;
  color: var(--azul);
}

.logo {
  font-weight: bold;
  font-size: 3rem;
}

nav ul {
  list-style: none;
  display: flex;
  font-size: 1.5rem;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--font-color);
}
/*
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
}*/
.hero {
  background: 
    linear-gradient(to left, rgba(0, 25, 72, 0.7), rgba(0, 25, 72, 1)),
    url('./assets/posnet1.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 6rem 4rem;
}




.hero-content {
  max-width: 500px;
  max-height: 200px;
  animation: fadeIn 1s ease-in-out;
}

.hero img {
  max-width: 500px;
  animation: float 4s ease-in-out infinite;
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  background: var(--blanco);
  color: var(--azul);
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #94949d;
}

.features {
  display: flex;
  justify-content: space-evenly;
  padding: 3rem 2rem;
  background: #f5f5f5;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  background-color: var(--azul);
  max-width: 250px;
  margin: 1rem;
  animation: fadeInUp 0.5s ease forwards;
  padding: 1.5rem 1rem 2rem 1.5rem;
  border-radius: 12px;
}

.feature i {
  font-size: 2rem;
  color: var(--blanco);
  margin-bottom: 1rem;
}

.features-title{
  
  border-radius: 12px;
  text-align: center;
  color: var(--azul);
  background-color: var(--blanco);
  width: fit-content;
  padding: 0rem 1rem 0rem 1rem;

}

.benefits {
  padding: 3rem 2rem;
  background-color: var(--azul);
  color: var(--blanco);
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.card {
  background: #f5f5f5;
  color: var(--azul);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 10px 10px 10px  rgba(0,0,0,0.05); 
}

.contact {
  padding: 3rem 2rem;
  text-align: center;
}
.contact .num_contacto {
  font-size: 1.2rem;
}

.contact i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  color: var(--main-color);
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: var(--main-color);
}

footer {
  text-align: center;
  padding: 2rem 2rem 0rem 2rem;
  font-size: 0.9rem;
  background: var(--bg-color);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}



.products-section {

  padding: 0.5rem 0.5rem 2rem 0.5rem;
  background-color: #f5f5f5;
  text-align: center;
}

.products-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card img {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  padding: 12px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  display: block;
  width: 40px;
  height: 40px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
  .logo {
    margin-bottom: 0rem; /* o incluso menos */
  }

  .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .hero-content {
    max-width: 100%;
    max-height: unset;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 2rem;
    background-attachment: scroll; /* para mejor soporte en móviles */
    text-align: center;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    max-width: 60%;
    margin: 1rem 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-card img {
    width: 100px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid .card:last-child {
  grid-column: span 2;
}

  .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 2.2rem;
  }

  nav ul {
    font-size: 1.2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .products-section h2,
  .benefits h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-card img {
    width: 90px;
  }

  .card {
    font-size: 0.9rem;
  }

    footer {
    font-size: 0.8rem;
  }
}