* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Nunito, "Segoe UI", sans-serif;
  color: #3c2a1c;
  background:
    radial-gradient(900px 380px at 80% -40px, rgba(212, 138, 58, 0.18), transparent 70%),
    #f6efe4;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #4a3018;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(72, 36, 12, 0.18), transparent 60%),
    linear-gradient(to bottom, rgba(62, 32, 10, 0.18) 0%, transparent 36%, rgba(62, 28, 8, 0.38) 100%);
}
.marca-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.2rem 5.5rem;
}
.logo {
  width: 8.4rem;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}
.marca {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.viive { font-size: 3.1rem; color: #fff; }
.el {
  font-size: 1.25rem;
  color: #ffe0a8;
  margin: 0 0.18rem 0 0.28rem;
  position: relative;
  top: -0.85rem;
}
.agro { font-size: 2.7rem; color: #2cf95a; }
.lema {
  margin: 0.85rem 0 0;
  color: #fff8ee;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 18px rgba(60, 28, 8, 0.45);
}
.saludo {
  margin: 0.55rem auto 0;
  max-width: 22rem;
  color: #fff4e4;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 4px 14px rgba(60, 28, 8, 0.4);
}

.barra {
  position: relative;
  z-index: 2;
  width: min(68rem, calc(100% - 1.4rem));
  margin: -2.6rem auto 0;
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  background: rgba(255, 248, 240, 0.94);
  border: 1px solid rgba(255, 236, 214, 0.9);
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(92, 52, 18, 0.16);
  backdrop-filter: blur(10px);
}
.tipos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.28rem;
  background: #f3e4cf;
  border-radius: 16px;
}
.tipos button {
  border: 0;
  background: transparent;
  color: #6a4630;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  cursor: pointer;
}
.tipos button.activo {
  background: #c56a32;
  color: #fffaf3;
  box-shadow: 0 6px 16px rgba(168, 78, 28, 0.28);
}
.campo label {
  display: block;
  margin: 0 0 0.28rem;
  color: #8a6248;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.campo input, .campo select, .ver {
  width: 100%;
  border: 1.5px solid #ead9c4;
  background: #fffaf4;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #3c2a1c;
  padding: 0.85rem 0.9rem;
}
.ver {
  border: 0;
  background: #8d4e24;
  color: #fff8ee;
  cursor: pointer;
}

main {
  width: min(68rem, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 1.8rem 0 2.5rem;
}
.contadores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}
.contadores p {
  margin: 0;
  padding: 0.9rem 0.35rem 0.8rem;
  text-align: center;
  background: #fffaf4;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(92, 52, 18, 0.08);
}
.contadores strong {
  display: block;
  color: #8d4e24;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.contadores span {
  display: block;
  margin-top: 0.3rem;
  color: #8a6248;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}
.cabeza {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cabeza h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.resumen { margin: 0; color: #8a6248; font-weight: 700; }
.aviso {
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
  font-weight: 700;
  background: #fdecec;
  color: #8c2f2f;
}
.resultados { display: grid; gap: 1rem; }
.vacio {
  margin: 0;
  padding: 2.2rem 1.2rem;
  text-align: center;
  color: #8a6248;
  font-weight: 800;
  background: #fffaf4;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(92, 52, 18, 0.08);
}

.oferta {
  background: #fffaf4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(92, 52, 18, 0.1);
}
.oferta img, .sin-foto {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, #f6e7cf, #e7d3b4);
}
.sin-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d4e24;
  font-weight: 800;
}
.sin-foto svg { width: 4.4rem; height: 4.4rem; }
.cuerpo { padding: 0.95rem 1rem 1.05rem; }
.nombre {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.ofrece {
  margin: 0.3rem 0 0;
  color: #6a3e1c;
  font-weight: 700;
  line-height: 1.35;
}
.dato { margin: 0.35rem 0 0; }
.dato span {
  display: block;
  color: #a07858;
  font-size: 0.72rem;
  font-weight: 800;
}
.dato strong { font-size: 1.02rem; }
.dato.valor strong {
  color: #8d4e24;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.ruta {
  margin: 0.45rem 0 0;
  color: #5c4030;
  font-weight: 700;
  line-height: 1.35;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.chips span {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f6e6d2;
  color: #6a3e1c;
  font-size: 0.78rem;
  font-weight: 800;
}
.paginas {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.paginas button {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: #fffaf4;
  color: #8d4e24;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 6px 16px rgba(92, 52, 18, 0.08);
  cursor: pointer;
}
.paginas button.activo { background: #c56a32; color: #fffaf3; }
.paginas button:disabled { opacity: 0.4; }

footer {
  width: min(68rem, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 0.4rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a07858;
  font-weight: 800;
}
footer a { color: #8d4e24; text-decoration: none; }

@media (min-width: 441px) and (max-width: 918px) {
  .hero { min-height: 62vh; }
  .logo { width: 9.2rem; }
  .viive { font-size: 3.6rem; }
  .agro { font-size: 3.15rem; }
  .lema { font-size: 1.3rem; }
  .contadores span { font-size: 0.85rem; }
  .resultados { grid-template-columns: 1fr 1fr; }
  .oferta img, .sin-foto { height: 11rem; }
}

@media (min-width: 919px) {
  .hero { min-height: 72vh; }
  .logo { width: 10.5rem; }
  .viive { font-size: 4.4rem; }
  .el { font-size: 1.55rem; top: -1.15rem; }
  .agro { font-size: 3.85rem; }
  .lema { font-size: 1.45rem; }
  .barra {
    grid-template-columns: auto minmax(12rem, 1.4fr) minmax(11rem, 0.9fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.9rem;
  }
  .ver { width: auto; padding-inline: 1.5rem; }
  .cabeza h2 { font-size: 1.8rem; }
  .contadores strong { font-size: 2.15rem; }
  .contadores span { font-size: 0.9rem; }
  .resultados { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .oferta { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .oferta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(92, 52, 18, 0.14);
  }
}
