@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 1% 2% 1% 2%;
  padding: 0;
  text-align: center;
  background: linear-gradient(135deg, #f4f4f4, #e0f7fa);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.5s ease;
}

header,
main,
footer {
  border-radius: 1rem;
}

header {
  background: linear-gradient(90deg, #2d6a4f, #40916c);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 100px;
  position: absolute;
  left: 20px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

main {
  background: #d8f3dc;
  padding: 20px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  margin: 20px 0;
}

.link-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.link-box {
  overflow: hidden;
  background-color: white;
  border: 3px solid #40916c;
  border-radius: 10px;
  padding: 25px 30px;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #1b4332;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  width: 100%;
}
.link-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.link-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: #e9f5ec;
}

footer {
  background: linear-gradient(90deg, #40916c, #2d6a4f);
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 80%;
  margin: 0 auto 20px;
}

.info {
  text-align: center;
  flex: 1;
  min-width: 250px;
}

.links {
  text-align: center;
  margin-top: 20px;
}

.links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: white;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease;
}

.links a:hover {
  color: #d8f3dc;
}

.links a:hover::after {
  width: 100%;
}


.navegation {
  text-align: left;
  padding: 10px 15px;
  margin: 0 0 15px 0; 
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: fit-content; 
  transition: all 0.3s ease;
  margin-right: auto; 
}

.navegation a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navegation a:hover {
  color: #2d6a4f;
}

.navegation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #2d6a4f;
  transition: width 0.3s ease;
}

.navegation a:hover::after {
  width: 100%;
}

.navegation > a:not(:last-child)::after {
  content: '';
  margin: 0 5px;
}

.navegation:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 30px;               
  max-width: 1000px;
  margin: 0 auto;          
  padding: 10px 0;
  align-items: start;      
}

.item {
  background: white;
  border: 3px solid #40916c;
  border-radius: 10px;
  text-decoration: none;
  color: #1b4332;
  
  display: flex;
  flex-direction: column;
  height: 160px;
  width: 200px;  
  transition: transform .3s, box-shadow .3s, background-color .3s;
}
.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: #e9f5ec;
}

.item-img {
  height: 100px;
  padding-top: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.item-code {
  margin-top: auto;       
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-grid-title {
  display: inline-block;
  padding: 0 10px 5px;
  margin: 0 auto 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #2d6a4f;
  border-bottom: 3px solid #40916c;
}


.logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  max-width: 1000px;
  width: 100%;
}

.miniLogos {
  max-width: 100px;
  height: auto;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.miniLogos:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}