:root {
  --bg-base: #EFE8DE;
  --surface: #FFFFFF;
  --text-main: #2F2F2F;
  --primary: #F07C3E;
  --secondary: #3A6EA5;
  --success: #6BBF8E;
  --divider: #E4DED5;
}

/* =========================================================
   RESET Y BASE
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
}

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.2s ease;
}

.header.header-small .header-container {
  padding: 6px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px;
  height: 32px;
}

.brand {
  font-size: 18px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* =========================================================
   LAYOUT GENERAL
   ========================================================= */
.home {
  display: flex;
  justify-content: center;
}

.home-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   BANNER HOME
   ========================================================= */
.banner {
  width: 100%;
  height: 300px;
  background-image: url("../img/bannerh1.png");
  background-size: 100% 100%;
  background-position: center;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.banner-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
}

.banner-content h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 18px;
}


/* =========================================================
   FILTROS
   ========================================================= */
.filters-wrapper {
  text-align: right;
  margin: 16px 0 0px;

  background: var(--bg-base);
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0px 12px;
  margin-bottom: 4px;

  max-width: 1200px;
  margin: 0 auto;

}

.filters select {
  padding: 6px 10px;
  font-size: 14px;
}

/* Botón limpiar filtros */
.clear-filters {
  padding: 8px 14px;
  font-size: 13px;
  background: #d6d6d6;
  color: #333;
  border: 1px solid #bbb;
  cursor: pointer;
}

.clear-filters:hover {
  background: #e3e3e3;
}

/* =========================================================
   RESULTADOS
   ========================================================= */
/* Estado base: oculto (se habilita en desktop por media query) */
.resultado-info {
  display: none;
  margin: -12px 0 12px;
  font-size: 15px;
  color: #555;
}


/* =========================================================
   TARJETAS / LISTADO
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;

  /* Cambio1 */
  border-radius: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card h3 {
  padding: 12px;
  font-size: 16px;

  /* Cambio3 */
  padding: 8px 12px;
  font-size: 16x;
  line-height: 1.2;

}


/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  background: #f0f0f0;
  font-size: 14px;
}


/* =========================================================
   DETALLE – BANNER PRINCIPAL
   (nota: unificado, elimina duplicación previa)
   ========================================================= */
.detalle-banner {
  margin-top: 8px;
  position: relative;
  width: 100%;
  height: 300px;        /* 👈 menos alto */
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.detalle-banner img {
  width: 100%;
  height: 100%;
  object-fit: fill;     /* 👈  Rellena */
  display: block;
  background: #000;     /* relleno discreto */
}

/* Overlay oscuro */
.detalle-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.08)
  );
}

/* Información sobre el banner */
.detalle-banner-info {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  color: #ffffff;
  max-width: 75%;
}

.detalle-banner-info h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 6px;
}

.detalle-banner-info p {
  font-size: 15px;
  opacity: 0.9;
  letter-spacing: 0.2px;
}


/* =========================================================
   DETALLE – DESCRIPCIÓN
   ========================================================= */
.detalle {
  max-width: 1200px;
  margin: 0 auto 40px; /* 👈 sin espacio arriba */
  padding: 0 20px 40px;
}

.detalle-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

.detalle-card {
  background: #fff;
}

/* Descripción */
.detalle-descripcion {
  color: #333;
}

.detalle-descripcion h2 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 20px;
}

.detalle-descripcion p {
    font-size: 18px;
    line-height: 1.65;
}

/* =========================================================
   DETALLE – CONTACTO
   ========================================================= */
.detalle-acciones {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.detalle-acciones a,
.detalle-acciones span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

.detalle-acciones i,
.detalle-acciones img,
.detalle-acciones svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.detalle-acciones .accion-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.detalle-acciones .accion-whatsapp i,
.detalle-acciones .accion-whatsapp img,
.detalle-acciones .accion-whatsapp svg {
  color: #fff;
}

/* =========================================================
   DETALLE – LINEA SEARADORA
   ========================================================= */
.separador-doble {
  margin: 28px 0;
  border-top: 2px solid #e5e5e5;
  border-bottom: 2px solid #e5e5e5;
  height: 6px;
}

/* =========================================================
   DETALLE – OTROS NEGOCIOS (CONJUNTO / ZONA)
   ========================================================= */
.detalle-otros-conjunto,
.detalle-otros-zona {
  margin-top: 12px;
  padding: 8px 0;
  background: #f7f7f7;
}

.detalle-otros-conjunto h2,
.detalle-otros-zona h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #222;
}

.detalle-otros-conjunto .cards,
.detalle-otros-zona .cards {
  gap: 16px;
  margin-top: 24px;   /* ← ESTO agrega espacio bajo el título */
}

/* =========================================================
   RESPONSIVE – DESKTOP
   ========================================================= */
@media (min-width: 769px) {
  .resultado-info {
    display: block;
  }
}

/* =========================================================
   RESPONSIVE – MÓVIL
   ========================================================= */
@media (max-width: 768px) {

  /* Header */
  header {
    transition: all 0.3s ease;
  }

  header.header-small {
    padding: 6px 16px;
  }

  header.header-small img {
    height: 32px;
  }

  /* Menú */
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    display: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 20px;
    border-top: 1px solid #eee;
  }

  /* Banner Home */
  .banner {
    height: 220px;
  }

  .banner-content h1 {
    font-size: 20px;
  }

  .banner-content p {
    font-size: 12px;
  }

  /* Banner Detalle */
  .detalle-banner {
    margin-top: 8px;
    height: 180px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .detalle-banner-info {
    bottom: 20px;
    left: 20px;
    max-width: 90%;
  }

  .detalle-banner-info h1 {
    font-size: 21px;
  }

  .detalle-banner-info p {
    font-size: 11px;
  }

  .detalle-descripcion p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Filtros */
  .filters-wrapper {
    margin-bottom: 2px;
    text-align: left;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;

    width: 80%;
    margin: 0 auto;
  }

  .filters select {
    width: 100%;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
  }

  .clear-filters {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border-radius: 10px;
    font-size: 15px;
  }

  /* Ocultar resultados */
  body .resultado-info {
    display: none !important;
  }

  /* Cards */
  .cards {
    margin-top: 12px;
  }

  .card h3 {
    margin: 2px 0;
  }

  .card {
    margin-bottom: 8px;
  }

/* Cambio2 */
  .card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

/* =========================================================
   DETALLE – CONTAXTO
   ========================================================= */
  .detalle-contacto {
    padding: 16px;
  }

  .detalle-contacto-titulo {
    font-size: 18px;
  }

  .detalle-contacto-botones {
    flex-direction: column;
  }

  .btn-contacto {
    padding: 16px 0;
    font-size: 16px;
  }

/* =========================================================
   DETALLE – OTROS NEGOCIOS (CONJUNTO / ZONA)
   ========================================================= */
  .detalle-otros-conjunto h2,
  .detalle-otros-zona h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

}

/* === DEBUG ESPACIO === */
.detalle-acciones {
  margin-bottom: 2px !important;
}

.detalle-otros-conjunto,
.detalle-otros-zona {
  margin-top: 2px !important;
  padding-top: 4px !important;
}
