:root {
    --color-primario: #08398a; /* Azul intenso usado en el texto */
    --color-secundario: #ff3b30; /* Rojo usado en la corona y el punto */
    --color-terciario: #fefefe; /* Blanco del contorno */
    --color-acento: #ffba3b; /* Naranja claro en "PRODUCTOS" */
}


body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.879);
  padding: 20px;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 9999; 
}
#cookie-banner p {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 10px;
}
#cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
#cookie-accept, #cookie-decline {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
#cookie-accept {
  background: var(--color-secundario);
  color: white;
}

.container {
    min-height: 100vh;
    background-image: url(https://farmaciaselpalmito.com/assets/resourcesimg/quino-al-mBQIfKlvowM-unsplash.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(27, 99, 255, 0.846), rgba(0, 34, 159, 0.488));
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.logo {
    height: 75px;
    transition: transform 0.3s ease; 
}
.logo:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño al hacer hover */
}
.burger-menu {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Estilos del menú */
.menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 1000;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu a {
  color: #1b63ff;
  text-decoration: none;
  padding: 5px 10px;
}

.menu a:hover {
  background-color: #f0f0f0;
  border-radius: 5px;
}

/* Mostrar el menú cuando está activo */
.burger-menu.active + .menu {
  display: flex;
}



main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}
h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
p {
    font-size: 1.2em;
}
.menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}
.menu a:hover {
    background-color: #f5f5f5;
}
.welcome{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.btn-conoce-productos {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-primario);
    background-color: var(--color-terciario); /* Cambia este color por el que prefieras */
    border: none;
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 100;
}

.btn-conoce-productos:hover {
    color: var(--color-terciario);
    background-color:var(--color-secundario); /* Color al pasar el mouse */
    transform: scale(1.05); /* Efecto de ampliación */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra al pasar el mouse */
}
.welcome img {
    margin-top: 10px;
    height: 400px;
    width: auto;
    transition: transform 0.3s ease; 
}

.welcome img:hover {
    transform: scale(1.07); /* Aumenta ligeramente el tamaño al hacer hover */
}
/*-------------------------------------------------------------------------*/

.titulohuno{
    
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primario);
    padding: 45px;
}
.titulohuno h1{
    font-size: 35px;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Card de producto */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 40%;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, border 0.3s ease;
    cursor: pointer;
    
}

.product-card img {
    width: 50%;
    height: auto;
    padding: 40px;
    
    
}

/* Estados de selección */
.product-card.selected {
    border: var(--color-primario);
    box-shadow: 0px 6px 12px rgba(0, 123, 255, 0.3);
    transform: scale(1.01);
}

/* Información nutrimental */
.nutrition-info {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    margin: 10px;
    text-align: left;
}   

.nutrition-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.nutrition-info p {
    margin: 3px 0;
    font-size: 0.9rem;
    color: #333;
}
.products-section{
    margin: 50px;
}
/*-------------------------------------------------------------------------*/
.rates {
    width: 100%;
    background: linear-gradient(to right, rgba(27, 99, 255, 0.846), rgba(0, 34, 159, 0.488));
    display: flex;
    flex-direction: column;justify-content: center; align-items: center;
}
.rates-title{
    color: var(--color-terciario);
    font-size:35px;
    margin: 40px;
    text-align: center;
}
.tipos-container {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px;
  }

  .tipos {
    background: linear-gradient(to right, #bdd4ee81, #f0f4fa75);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 80%;
    margin: 10px;
  }
  
  .tipos h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-terciario);
    text-align: center;
  }

  .tipos p {
    
    font-size: 0.95rem;
    color: var(--color-terciario);
    
  }

@media (max-width: 768px) {
  .tipos-container {
    flex-direction: column;
  }
  .tipos p{
    text-align: left;
  }
}

  /* ----------------------------------------------------- */
  .blog-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
    text-align: center;
  }

  .blog-header h1 {
    font-size: 2rem;
    color: var(--color-primario);
    margin-bottom: 10px;
  }

  .blog-header p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
  }
 

  .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .blog-card h2 {
    font-size: 1.5rem;
    color: var(--color-primario);
    margin: 15px 0;
    padding: 0 10px;
  }

  .blog-card p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 10px 15px;
  }

  .btn-read-more {
    background-color: var(--color-secundario);
    color: var(--color-terciario);
    border: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .btn-read-more:hover {
    background-color: var(--color-primario);
    transform: scale(1.05);
  }

  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
  }
/*-------------------------------------------------------------*/
.reviews-section {
    background-color: #d9d9d962;
    padding: 50px 20px;
    text-align: center;
  }

  .reviews-section h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 30px;
  }

  .reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .review-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
    text-align: left;
  }

  .review-card .stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 10px;
  }

  .review-card p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
  }

  .review-card h3 {
    font-size: 1.1rem;
    color: #003366;
    font-weight: bold;
    margin: 0;
  }

  /*-----------------------------------------------------------*/
  .history {
    width: 100%;
    background: linear-gradient(to right, #ffffff, #eaeaea);
    padding: 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-container {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.history-title {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 20px;
}

.history-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #7c7c7c;
    font-weight: 500;
    padding: 10px;
}

.history-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .history {
      width: 100%;
      background: linear-gradient(to right, #ffffff, #eaeaea);
      padding: 0 0;
      display: flex;
      justify-content: center;
      align-items: center;
      
    }
    .history-title {
        font-size: 2rem;
    }
    .history-text {
        font-size: 0.95rem;
    }
    
}

/*-------------------------------------------------------------*/
.contact-section {
  background-color: #f9f9f9;
  display: flex;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
  flex-direction: column;
}

.contact-section h2 {
  color: var(--color-primario);
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 50%;
}

label {
  font-size: 1rem;
  color: var(--color-primario);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.hidden {
  display: none;
}

button {
  background-color: var(--color-primario);
  color: white;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--color-secundario);
}
/*-------------------------------------------------------------*/
.footer-banner {
  width: 100%;
  background-color: var(--color-primario); /* Color del fondo */
  color: var(--color-terciario); /* Color del texto */
  text-align: center;
  
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d4e0ff;
}

/*-------------------------------------------------------------*/
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    p {
        font-size: 1em;
    }
    #cookie-banner{
        width:auto;
    }
    .welcome img {
        margin-top: 0px;
        height: 180px;
        
        width: auto;
    }
    .logo {
        height: 60px;
    }
    .products-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .product-card {
        width: 100%;
    }
    @media (max-width: 768px) {
        .blog-container {
          flex-direction: column;
          align-items: center;
        }
    
        .blog-card {
          width: 100%;
        }
      }

      @media (max-width: 768px) {
        .reviews-container {
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
    
        .review-card {
          width: 90%;
        }
        form {
          display: flex;
          flex-direction: column;
          gap: 15px;
          width: 90%;
        }
        
      }
    
}
