body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  background-image: url('backgnd.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

.title-bar {
  background-color: #ffffff;
  background-image: url('backgnd.jpg');
  color: rgb(163, 133, 0);
  padding: 5px 0 0 0;
  font-size: 5em;
  letter-spacing: 0.2em;
  font-family: 'Dancing Script', cursive;
  text-align: center;
}

.logo-section {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
 
}

.logo {
  width: 250px;
}

.section-title {
  color:  rgb(163, 133, 0);
  font-size: 2em;
  letter-spacing: 0.1em;
  word-spacing: 0.1em;
  text-align: left;         /* Alinea el texto a la izquierda */
  font-weight: bold;
  margin-left: 20px;        /* Evita el centrado automático */
  padding-top: 10px;
   font-family: 'Dancing Script', cursive;
}

.about-text {
  font-size: 1.5em;
  color: rgb(97, 71, 57);
  background-color: transparent;
  letter-spacing: 0.05em;
  word-spacing: 0.2em;
  text-align: justify;
  margin: 10px auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 1000px; /* Limita el ancho en pantallas grandes */
  box-sizing: border-box;
  overflow-wrap: break-word; /* Evita desbordes por palabras largas */
  white-space: normal; /* Asegura que el texto se ajuste y no se trunque */
}


.product-sections {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente */
  gap: 10px;
  padding: 10px 0px 10px 0px;
}

.product-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap; /* permite que se acomoden en pantallas pequeñas */
  margin-top: 30px;
}

.featured-product {
  text-align: center;
  width: 300px;
}

.product-title {
  font-size: 2em;
  color: rgb(163, 133, 0);
  margin-bottom: 10px; /* más cerca de la imagen */
  font-weight: 100;
  font-family: 'Dancing Script', cursive;
}

.product-image {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid #cecccc;
  margin-bottom: 10px;
  padding: 5px;
  box-sizing: border-box;
}

.product-image:hover {
  transform: scale(1.03);
}

.see-all-link {
  display: block;
  margin-top: 5px;
  font-size: 1.4em;
  color: rgb(0, 103, 163);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 100;
  font-family: 'Dancing Script', cursive;
}


.see-all-link:hover {
  color: #d2691e;
  transform: scale(1.05);
}

.product {
  display: flex;
  flex-direction: column;       /* Apila imagen y texto verticalmente */
  align-items: center;          /* Centra horizontalmente */
  background-color: #ffffff;
  padding: 20px;
  padding-left: 10px;
  width: 400px;
  border-radius: 10px;
  display: block;
}

.product img {
  width: 100%;
  object-fit: contain;
  background-color: #E0BFB8;
  padding: 5px;
  margin-left: 0px;
  margin-bottom: 0; /* elimina espacio extra */
}

.product p {
  width: 100%;
  font-size: 1.5em;
  color: #705d06;
  background-color: #E0BFB8;
  text-align: center;
  padding: 5px; /* igual al de la imagen */
  margin-top: -5px; /* opcional: elimina espacio extra arriba */
  margin-bottom:0px; /* opcional: elimina espacio extra arriba */
}

.contact-text {
  font-size: 1.5em;           /* Tamaño de letra */
  color: rgb(97, 71, 57);             /* Color del texto */
  background-color: #E0BFB8;  /* Fondo suave */
  letter-spacing: 0.05em;     /* Espacio entre letras */
  word-spacing: 0.2em;        /* Espacio entre palabras */
  text-align: center;         /* Centrado opcional */
  max-width: 100%;           /* Ancho máximo */
  margin: 10px 200px 10px 200px; 
  padding: 20px;
  border: 5px solid #ffffff;
  border-radius: 10px;
}

.email-text {
  color: rgb(97, 71, 57);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(0.8em, 4.5vw, 1.2em); /* Se adapta al ancho de pantalla */
  white-space: nowrap;                  /* Mantiene en una sola línea */
  overflow: hidden;                     /* Oculta si se desborda */
  text-overflow: ellipsis;             /* Agrega "..." si se corta */
  max-width: 100%;                     /* No se sale del contenedor */
}

.contact-text .email-text:hover {
  text-decoration: underline;
}



.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px; /* Aumenta el espacio entre íconos */
  padding: 20px 10px 50px 10px;
  text-align: center;
  
}

.social-icons i {
  font-size: 3em;
  color: #E0BFB8;
  background-color: rgb(97, 71, 57);
  padding:10px;
  border-radius: 10%;
  transition: transform 0.3s ease;
  border: 2px solid #ffffff;
}

.social-icons i:hover {
  transform: scale(2);
  color: rgb(97, 71, 57);
  border: 2px solid #ffffff;
  background-color: #E0BFB8;
  padding:5px;  

}

.back-to-top {
  text-align: center;
  margin: 80px 0;
  margin-bottom: 700px;
}

.back-to-top a {
  font-size: 2em;
  letter-spacing: 0.1em;    /* Space between letters */
  word-spacing: 0.4em;      /* Space between words */
  color: #E0BFB8;
  background-color: rgb(97, 71, 57);
  text-decoration: none;
  padding: 1px 100px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-top a:hover {
  background-color: #E0BFB8;
  color: rgb(97, 71, 57);
  border: 2px solid #ffffff;
}

/* 🌐 Escalado responsivo para pantallas pequeñas */
/* Escalabilidad para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .title-bar {
    font-size: 2.5em;
    text-align: center;
  }

  .logo-mini {
    right: 10px;
    height: 1.2em;
  }

  .menu {
    flex-direction: column;
    margin: 0 20px;
    gap: 15px;
  }

  .menu a {
    font-size: 1.2em;
  }

  .divider {
    display: none;
  }

  /* Ajustes para pantallas medianas */
  @media (max-width: 768px) {
    .about-text {
      font-size: 1.2em;
      margin: 10px 40px;
      padding: 18px;
    }
  }
  .section-title {
    font-size: 1.5em;
    margin-left: 10px;
    padding-top: 30px;
  }

  .product {
    width: 90%;
    padding: 15px;
  }

  .product p {
    font-size: 1.2em;
  }

  .contact-text {
    margin: 10px 20px;
    padding: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .email-text {
    display: inline-block;
    font-size: clamp(0.8em, 4.5vw, 1.2em); /* Se adapta al ancho de pantalla */
    white-space: nowrap;                  /* Mantiene en una sola línea */
    overflow: hidden;                     /* Oculta si se desborda */
    text-overflow: ellipsis;             /* Agrega "..." si se corta */
    max-width: 100%;                     /* No se sale del contenedor */
    font-family: monospace;              /* Opcional: estilo tipo código para copiar fácil */
    font-weight: bold;
  }

  .social-icons {
    gap: 20px;
    flex-wrap: wrap;
  }

  .social-icons i {
    font-size: 2em;
    padding: 8px;
  }

  .back-to-top a {
    font-size: 1.5em;
    padding: 10px 30px;
  }

  .logo {
    width: 180px;
  }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
  .about-text {
    font-size: 1em;
    margin: 10px 20px;
    padding: 15px;
  }
}
