* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  font-family: "Candara", serif;
  position: fixed;
  top: 0;
  width: 100%;
  background: #10403B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo img {
  color: white;
  width: 120px;
  height: auto;
  display: block;
}

.logo-link {
  cursor: pointer;
  display: inline-block;
}

.nav {
  color: white;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
}

.nav a:hover {
  color: #8FBC8F;
}

.contenido {
  padding-top: 20px;
}

.seccion {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.seccion h1 {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Calisto MT";
  text-align: center;
  margin-bottom: 5px;
  margin-top: 60px;
  color: #0F624A;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.seccion p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card h3 {
  color: #0F624A;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  flex-grow: 1;
  color: #555;
  margin-bottom: 15px;
}

.subcategoria {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin: 40px 0 20px;
  text-align: left;
  border-left: 5px solid #008F8C;
  padding-left: 10px;
}

.btn {
  padding: 10px 20px;
  background: #127369;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background: #008F8C;
}

a {
  text-decoration: none;
}

.dirección {
  display: flex;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: white;
}

.dirección a {
  text-decoration: none;
  color: lightseagreen;
}

.footer {
  background: #011F26;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 5px;
}

.footer p {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
