* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
}
html {
  scroll-behavior: smooth;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
body {
  background-color: lightblue;
}

/*Header*/
header {
  color: #ffffff;
  font-size: 1rem;
  font-family: "Silkscreen", sans-serif;
  text-align: center;
  background-color: #000000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 8.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
nav {
  padding: 0 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
#logo-kaineos {
  height: 7rem;
  width: 7rem;
  background-image: url("../Images/Icons/Kaineos.webp");
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-x, 0px) var(--shadow-y, 0px)
    var(--shadow-diffusion, 0px) rgb(206, 195, 195);
}
nav h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 0.01rem;
  transition: text-shadow 0.3s ease;
}
nav h1:hover {
  text-shadow: 0px 0px 3px rgb(255, 255, 255);
}
nav ul {
  display: flex;
  gap: 0.5rem;
}
nav ul li {
  transition: transform 0.3s ease;
}
nav ul li:hover {
  transform: translateY(-3px);
}
nav ul li a {
  display: inline-block; /* Evitar desborde */
  color: #f08f3e;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease-in;
}
nav ul li a:hover,
nav ul li a:focus {
  background-color: #222;
}
/*Main*/
main {
  padding-top: 8.4rem;
  width: 100%;
  margin: 0 auto;
}
section {
  width: 100%;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

/*Section "Home"*/
#home {
  background-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 55%,
      #b0e36c 100%
    ),
    url("../Apoyaceluar.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  height: 50rem;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
}
#home p {
  padding: 1.5rem;
  margin: 0;
  width: 100%;
  font-size: 1.1rem;
  line-height: 1.3;
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.226);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.6s ease, background-color 0.6s ease;
}
#home p:hover {
  transform: translateY(-7px);
  box-shadow: none;
  backdrop-filter: none;
  background-color: #f08f3e;
}

/*Section Product*/
#product {
  margin-top: 0;
  background-color: #b0e36c;
}
#product h2 {
  text-align: center;
  font-size: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f08f3e;
}
#product > p {
  margin-top: 2.3rem;
  margin-bottom: 3.3rem;
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  background-color: #f5f5f5ff;
}
.gallery-products {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 3rem;
}
.product-item {
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}
.product-item:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
}
.product-img {
  height: 9rem;
  width: 100%;
  object-fit: cover;
}
.product-secret-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.6);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-secret-text h3 {
  position: relative; /* 1. Crea el contexto para posicionar la línea */
  padding-bottom: 0.5rem; /* Espacio para que la línea no se pegue al texto */
  cursor: default;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  transition: background-color 0.5s ease;
}
/* 2. Creamos la línea usando un pseudo-elemento */
.product-secret-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%; /* La posicionamos en el centro horizontal */
  width: 0; /* 3. Inicia con ancho cero (invisible) */
  height: 2px; /* Grosor de la línea */
  background-color: #019c89; /* Color de la línea */
  transform: translateX(-50%); /* Mantiene la línea centrada mientras crece */
  transition: width 0.3s ease-in-out; /* 5. Animamos el cambio de ancho */
}
/* 4. Cuando se hace hover en el h3, afectamos a la línea (::after) */
.product-secret-text h3:hover::after {
  width: 100%; /* La línea crece al 100% del ancho del h3 */
}
.product-secret-text h3:hover {
  background-color: #222;
}
.product-secret-text a {
  text-decoration: none;
}
.product-secret-text p {
  padding: 0.5rem 1rem;
  margin-top: 1.5rem;
  border-radius: 0.3rem;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.product-item:hover .product-secret-text {
  opacity: 1;
}
.product-secret-text p:hover {
  background-color: #f08f3e;
  transform: scale(1.1);
}
#product-contact {
  text-align: center;
  margin-top: 2rem;
}

/*Section "About us"*/
#about-us h2 {
  text-align: center;
  font-size: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f08f3e;
}
#about-us > p {
  margin-top: 2.3rem;
  margin-bottom: 2.3rem;
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  background-color: #f5f5f5ff;
}
#about-us h3 {
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
  color: #333;
  text-align: center;
}
.gallery-department {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}
.department {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.department:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}
.department-emoji {
  width: 100%;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ddd;
  background-color: black;
}
.department-block-info {
  padding: 0.75rem;
}
.department-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
  text-align: center;
}
.department-info-text {
  margin: 0.5rem;
  text-align: center;
}

/*Footer*/
footer {
  background-color: lightpink;
  padding: 2rem 1rem;
}
.footer-content {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-right {
  text-align: right;
}
.footer-logo {
  height: 4rem;
  border-radius: 0.3rem;
}
.footer-brand h4 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.social-media {
  margin-bottom: 0.5rem;
  border: 1px solid black;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
}
.social-media img {
  height: 2.5rem;
  border-radius: 20%;
  transition: transform 0.3s ease;
}
.social-media img:hover {
  transform: scale(1.1);
}
.copyright {
  font-size: 0.9rem;
  color: black;
}
#whatsapp-icon-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 4.7rem;
  height: 4.7rem;
  transition: transform 0.3s ease;
}
#whatsapp-icon-floating img {
  height: 100%;
  width: auto;
}
#whatsapp-icon-floating:hover {
  transform: scale(1.3);
}
