
:root {
  --primario: #F59E0B; /* Naranja Gato Pinto */
  --oscuro: #000000;
  --texto: #333333;
  --fondo: #ffffff;
  --gris-claro: #f9f9f9;
  --borde: #e0e0e0;
  --sombra: rgba(0, 0, 0, 0.05);
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  background-color: var(--fondo);
  color: var(--texto);
}

h1, h2, h3 {
  color: var(--oscuro);
}

a {
  color: var(--primario);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* proporción principal */
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto; /* centra */
}


main, .sidebar {
  background-color: var(--gris-claro);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--sombra);
}

img.cover {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--primario);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card {
  background-color: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.card h2 {
  margin-top: 0;
}

.info dt {
  font-weight: bold;
  margin-top: 0.5rem;
}

.info dd {
  margin: 0 0 0.5rem 0;
}

.cat-list a {
  display: block;
  margin-bottom: 0.5rem;
}

.noticias li {
  margin-bottom: 0.5rem;
}

.banner img {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.relacionados {
  padding: 2rem;
  background-color: var(--gris-claro);
  border-top: 1px solid var(--borde);
}

.rel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mini {
  width: 200px;
  background-color: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
}

.mini img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.btn-volver {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background-color: var(--primario);
  color: white;
  font-weight: bold;
  border-radius: 1rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #d97706; /* tono más oscuro */
}


@media (max-width: 600px) {
  body {
    /*padding: 1rem;*/
  }

  .filtro-cat {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  ul {
    padding-left: 0;
    list-style: none;
  }

  ul li {
    background-color: #fff;
    
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 6px var(--sombra);
  }

  ul li img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  ul li div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  ul li a {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--primario);
  }

  .relacionados {
    padding: 1rem;
  }

  .rel-grid {
    flex-direction: column;
    align-items: center;
  }

  .mini {
    width: 100%;
    max-width: 320px;
  }

  .btn-volver {
  display: block;
  text-align: center;
  margin: 1rem auto;
}
}


/* HERO PRINCIPAL */
.hero {
  background-color: #000;
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-radius: 0 0 20px 20px;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.hero-logo {
  max-width: 150px;
  height: auto;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 0.3rem;
  color: white;
}

.hero-content p {
  font-size: 1rem;
  color: #f1f1f1;
  margin: 0;
}
/* Asegura que el contenedor del hero tenga diseño responsivo y bien alineado */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  justify-content: center;
}

.tarjeta {
  width: 300px;
  background-color: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tarjeta-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.tarjeta-enlace {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tarjeta-enlace:hover {
  background-color: #fdf5e6; /* opcional: tono suave */
  transition: background-color 0.2s ease;
}

.footer {
  background-color: #000;
  color: white;
  padding: 2rem;
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  max-width: 300px;
  color: #fff;
}

.footer-pagos img {
  max-width: 280px;
  height: auto;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.footer-col {
  flex: 1 1 200px;
  margin: 1rem;
}

.footer-col h4 {
  color: #F59E0B;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: white;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-redes img {
  margin-right: 1rem;
  vertical-align: middle;
}


.boton-footer {
  display: inline-block;
  background-color: #F59E0B;
  color: black;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  margin-top: 0.8rem;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }
  .hero-flex {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-logo {
    margin-bottom: 1rem;
  }


  .footer-col ul li a {
    display: inline-block;
    width: auto;
    background: none;
    padding: 0;
    border-radius: 0;
    color: white;
    text-align: center;
  }

  .footer-col ul {
    padding: 0;
    margin: 0;
  }

  .footer-col ul li {
    background: none;
    margin: 0.5rem 0;
    padding: 0;
  }

  .layout {
    display: block;
    padding: 1rem;
  }

  main, .sidebar {
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--sombra);
    background-color: var(--gris-claro);
    margin-bottom: 1.5rem;
  }
}

.barra-filtros {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.barra-filtros form,
.barra-filtros .filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.barra-filtros input[type="text"] {
  padding: 0.4rem;
  border: 1px solid var(--borde, #ccc);
  border-radius: 5px;
}

.barra-filtros button {
  padding: 0.4rem 1rem;
  background: var(--primario);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}


.filtro-cat {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  background: var(--gris-claro, #f9f9f9);
  text-decoration: none;
  border: 1px solid var(--borde, #ccc);
  color: var(--texto, #333);
  transition: 0.2s;
  font-size: 0.9rem;
}

.filtro-cat.activo,
.filtro-cat:hover {
  background: var(--primario, #F59E0B);
  color: #fff;
  border-color: var(--primario, #F59E0B);
}

select {
  padding: 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--borde, #ccc);
}
.input-estandar {
  padding: 0.4rem;
  border: 1px solid var(--borde);
  border-radius: 5px;
  font-size: 0.95rem;
}
.filtros-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.filtros-contenido.fila {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}


.form-busqueda,
.form-orden {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.form-orden {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* HEADER Y NAV */
.site-header {
  background-color: var(--oscuro);
  color: #fff;
  width: 100%;
  padding: 0.5rem 0;
}

/* Ajustes para el HEADER y NAV responsivo y alineado */

.site-header .contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*max-width: 1200px;*/
  /*margin: 0 auto;*/
  /*padding: 0 1rem;*/
  width: 100%;
}

.logo-link img,
.hero-logo {
  /*max-height: 50px;*/
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  color: var(--primario);
  border-bottom: 2px solid var(--primario);
}

/* ESCRITORIO */
@media (min-width: 1025px) {
  .site-nav {
    flex-direction: row;
    position: static;
    background-color: transparent;
    display: flex !important;
  }
}

/* HAMBURGER */
.hamburger {
  display: none; /* 🚩 por defecto oculto */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 20;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 10;
  }


  .site-nav.show {
    display: flex !important;
  }

  .site-nav a {
    padding: 1rem;
    border-bottom: 1px solid #333;
    text-align: center;
  }
}

.hero-buscador {
  background: url('../img/fondo-hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* opcional, si quieres más alto */
}
.hero-contenido {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-buscador h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff; /* 👈 aquí */
}

.hero-buscador p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f1f1f1; /* opcional */
}

.form-buscador {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.form-buscador input[type="text"],
.form-buscador select {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  min-width: 180px;
  height: 48px;
  border: 1px solid var(--borde);
}

/* Aplica solo en escritorio (mayor a 600px) */
@media (min-width: 601px) {
  .form-buscador input[type="text"],
  .form-buscador select {
    flex: 1 1 200px;
    max-width: 300px;
  }
}

.form-buscador button {
  padding: 0 1.2rem;
  background-color: var(--primario);
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  height: 48px;
  font-size: 1rem;
  min-width: 100px;
}

.form-buscador input[type="text"],
.form-buscador select,
.form-buscador button {
  height: 48px;
  font-size: 1rem;
  line-height: 1;
  box-sizing: border-box;
}

.form-buscador button:hover {
  background-color: #d97706; /* tono más oscuro */
}

/* --- Mejoras móviles --- */
@media (max-width: 600px) {
  .hero-buscador {
    /* Si tienes otra imagen para móvil, la puedes poner aquí */
    /* background-image: url('../img/fondo-hero-mobile.jpg'); */
    background-position: center top;
    background-size: cover;
    padding: 2rem 1rem; /* menos padding en móvil */
  }

  .hero-buscador h1 {
    font-size: 1.6rem; /* más pequeño y legible */
  }

  .hero-buscador p {
    font-size: 1rem;
  }

  .form-buscador {
    flex-direction: column;
    gap: 0.8rem;
    max-width: 90%;
    /*background: rgba(255, 255, 255, 0.95);*/ 
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .form-buscador input[type="text"],
  .form-buscador select {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
    height: 56px;
  }

  .form-buscador button {
    padding: 1rem;
    font-size: 1.1rem;
    height: 56px;
    border-radius: 8px;
  }
}

.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 👈 logo a la izquierda, menú a la derecha */
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Si deseas centrar el logo y el menú solo en pantallas muy grandes (opcional) */
@media (min-width: 1200px) {
  .logo-nav {
    justify-content: center; /* opcional, si quieres centrado en pantallas muy grandes */
  }
}

/* En pantallas pequeñas (<768px) mantenemos igual: logo a la izquierda, menú a la derecha */
@media (max-width: 768px) {
  .logo-nav {
    justify-content: space-between;
  }
}
.site-nav a.activo {
  color: var(--primario);
  border-bottom: 2px solid var(--primario);
  font-weight: bold;
}

.noticias {
  list-style: none;
  padding: 0;
  margin: 0;
}

.noticias li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.noticias li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.noticias img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.noticias a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 500;
  line-height: 1.3;
}

.noticias a:hover {
  color: var(--primario);
}

/* Ajuste para pantallas medianas */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 5fr 2fr; /* un poco más compacto */
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Ajuste para pantallas pequeñas (<900px) */
@media (max-width: 1024px) {
  .layout {
    display: block;
    padding: 1rem;
  }
}
/* Tarjeta: borde y sombra al pasar */
.tarjeta {
  border: 1px solid var(--borde);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tarjeta:hover {
  border-color: var(--primario);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Enlace dentro de la tarjeta */
.tarjeta-enlace {
  text-decoration: none;
  color: inherit;
}

/* Título dentro de la tarjeta (strong) */
.tarjeta-enlace strong {
  display: block;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* Cambia a naranja al pasar */
.tarjeta:hover .tarjeta-enlace strong {
  color: var(--primario);
}
.tarjeta div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.categoria-icono {
  font-size: 0.95rem;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.categoria-icono .icono {
  width: 16px;
  height: 16px;
  fill: var(--primario);
}
.hero-buscador {
  position: relative;
  overflow: hidden; /* asegura que nada se salga */
}

.hero-buscador::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Ajusta opacidad */
  z-index: 1;
}

.hero-contenido {
  position: relative;
  z-index: 2;
}
.categorias-filtro {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 900px;
}

.categorias-filtro .cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: var(--primario);
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 120px;
  height: 120px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.categorias-filtro .cat svg {
  fill: white;
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.categorias-filtro .cat span {
  font-size: 0.9rem;
  text-align: center;
  color: #fff;
  transition: all 0.3s ease;
}

.categorias-filtro .cat:hover {
  background: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.categorias-filtro .cat:hover svg {
  fill: black;
}

.categorias-filtro .cat:hover span {
  color: black;
}

/* TABLET */
@media (max-width: 1024px) {
  .categorias-filtro {
    max-width: 600px;
  }

  .categorias-filtro .cat {
    width: 100px;
    height: 100px;
    padding: 0.8rem;
  }

  .categorias-filtro .cat svg {
    width: 32px;
    height: 32px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .categorias-filtro {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .categorias-filtro .cat {
    width: 80px;
    height: 80px;
    padding: 0.4rem;
  }

  .categorias-filtro .cat svg {
    width: 24px;
    height: 24px;
  }

  .categorias-filtro .cat span {
    font-size: 0.7rem;
  }
}

/*Boton de verificacion de lugar */
.verificar-contenedor {
  background-color: #111; /* negro */
  color: #fff; /* letras blancas */
  padding: 20px;
  margin: 30px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.verificar-contenedor .verificar-texto {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.verificar-contenedor .verificar-texto span {
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #ccc;
}

.verificar-boton {
  background-color: #f59e0b; /* naranja Gato Pinto */
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.verificar-boton:hover {
  background-color: #d97706;
}
