:root {
    --secondary-color: #f3f3f3;
    --accent-color: #fd5a5d;
    --color-texto-header: #616362;
    --color-texto-main: #000000;
    --footer-bg: #222222;
    --accent-color-dark: #c0392b;
    --color-gris: #5b5b5b;
    --tracking-title: 0.035em;
    --tracking-label: 0.06em;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

/* ── Estructura general ── */
html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
  background-color: var(--secondary-color);
  font-family: 'Poppins', sans-serif;
}



.index-search {
  width: min(100% - 3rem, 1200px);
}

/* ── Tipografía global (guía de estilos) ── */
h1, .h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.625rem); /* 36px → 58px */
    font-weight: 700;
    line-height: 1.1; /* 64 / 58 */
    letter-spacing: var(--tracking-title);
}

h2, .h2 {
    font-size: clamp(1.625rem, 2.8vw, 1.875rem); /* 26px → 30px */
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: var(--tracking-title);
}

h3, .h3 {
    font-size: clamp(1.25rem, 2vw, 1.375rem); /* 20px → 22px */
    font-weight: 700;
    line-height: 1.23;
    letter-spacing: var(--tracking-title);
}

h4, .h4{
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

h5, .h5{
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.188;
}

h6 {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.571;
}

p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.571;
}
/* header, footer */
.header-index{
  background-color: var(--secondary-color);
  color: var(--color-texto-header)
}

.header{
  background-color: transparent;
}

.header-alternativo{
  background-color: var(--accent-color);
  color:#fff !important;
}

@media (min-width: 1600px) {
    .header-container {
        max-width: 1560px;
    }
}

@media (min-width: 1920px) {
    .header-container {
        max-width: 1720px;
    }
}

.logo{

  height: 80px;
  width: auto;
  transform: rotate(-45deg);
  padding: 10px;
  cursor: pointer;
}

.nav-link{
  text-transform: uppercase;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
}

.header-index .nav-link {
  color: var(--color-texto-header) !important;
}

.header-index .nav-link:hover,
.header-index .nav-link.nav-active {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.header .nav-link {
  color: #fff !important;
}

.header .nav-link:hover,
.header .nav-link.nav-active {
  color: #fff !important;
  font-weight: 600;
  opacity: 0.8;
}


footer{
  background-color: var(--footer-bg);
  color: #fff;
}

.footer-index{
  background-color: var(--accent-color);
  font-size: 0.9rem;
  min-height: 160px;
  flex-shrink: 0;
}

.footer-wedge {
  background: var(--secondary-color);
  clip-path: polygon(0 0, 65% 100%, 100% 0);
  height: 100px;
}

.logo-footer{
  height: 90px;
  width: auto;
  padding: 5px;
}

.logo-footer-comercio{
  height: 150px;
  width: auto;
  padding: 5px;
}

.footer-logos{
  width: 100%;
  padding: 30px;
}

.social-icon{
  height: 30px;
  width: auto;
}

.social-icon:hover{
  filter: brightness(1.2);
  cursor: pointer;
}

footer .img:hover{
  filter: brightness(1.2);
  cursor: pointer;
}
.footer-bottom{
  width: 100%;
}


.footer-link:hover{
    font-weight:bold;
    text-decoration:underline !important;
}
/* ── Estilos generales ── */
main {
    background-color: var(--secondary-color);
    color: var(--color-texto-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
  color: var(--color-texto-main);
  text-decoration: none;
}
.buscar-container{
  width: fit-content !important;
}

.borde-sup{
  border: 1px solid #9c9c9c;
  width: 100px;
  margin: 0px 10px;
}

.buscador-h1{
    margin-top: 20px;
  font-weight: 600;
}

.buscador-h2{
    font-weight: 300;
}
.escribe{
  font-size: 16pt;
}

.buscador-input{
  font-size: 1.2rem;
  text-align: center;
  height: 60px;
}

.btn-buscar {
    position: relative;
    right: -1.5rem;
    background: var(--accent-color);
    clip-path: polygon(0 50%, 50% 100%, 100% 0);
    color: white;
    padding: 23px 70px 26px 72px;
    font-size: 2rem;
    border: none !important;
}

.btn-buscar:hover{
  background: #fff;
  color: var(--accent-color);
}

.escribe{
  color: var(--accent-color);
  text-transform: uppercase;
}

.form-control{
  width: 100% !important;
  flex-grow: 0 !important;
}

.form-control:focus{
  box-shadow: none !important;
  border-color: var(--accent-color) !important;
}

.form-control::placeholder{
  text-align: center;
}

#categoria,
#subcategoria,
[name="poblaciones"]{
  background-color: white;
  border: 1px solid #9c9c9c;
  border-radius: 4px;
  width: 33.3% !important;
}

.list-group-item {
  background-color: transparent !important;
  padding: 0.5rem 0;
}

/* ── Estilos para el buscador ── */
.hero-buscador {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 4rem 5rem 8rem;
  align-items: center;
}

.hero-buscador::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 70% 100%, 0 80%);
  pointer-events: none;
}

.hero-buscador form
{
    flex: 1 1 0;
    min-width: 0;
}

.hero-input {
  height: 52px;
  font-size: 1rem;
  border: none;
  border-radius: 2px;
}

.hero-select {
  height: 44px;
  font-size: 0.85rem;
  border: none;
  border-radius: 2px;
  background-color: #fff;
  width: 33.3% !important;
}

    .hero-select option {
        padding: 12px 16px;
        color: #333;
        background: #fff;
        font-size: .95rem;
    }

        .hero-select option:checked {
            color: #ff5a5f;
            background: #f5f5f5;
            font-weight: 600;
        }

.btn-hero-buscar {
  background: transparent;
  color: #fff;
  font-weight: 400;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  white-space: nowrap;
  border: none;
  flex-shrink: 0;
  align-content: end;
}

.btn-hero-buscar:hover {
  color: #fff;
}

.texto-placeholder {
  font-size: 1.5rem;
  color: var(--accent-color);
  text-align: center;
  margin-top: 5rem;
}
/* ── Login / Register – Enar theme ── */
.main_title {
  text-align: left;
  margin-bottom: 1.5rem;
}
.main_title.centered {
  text-align: center;
}
.main_title.upper h2 {
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #12263a;
}
.main_title .line {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  margin: 0 auto;
  position: relative;
}
.main_title .line .dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}

.main-page{
    width:100%;
    background-color:white;
}

.login_form_colored {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
}

.lfc_header {
  background: #f5f6fa;
  border-bottom: 1px solid #dde3ec;
  padding: 12px 20px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7a8d;
}

.lfc_body {
  padding: 20px 20px 10px;
}

.lfc_user_row {
  position: relative;
  margin-bottom: 1rem;
}
.lfc_user_row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7a8d;
  margin-bottom: 0.3rem;
}
.lfc_input_wrap {
  position: relative;
}
.lfc_icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #aab4c4;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}
.ico-email {
  -webkit-mask-image: url("../assets/icons/mail.svg");
  mask-image: url("../assets/icons/mail.svg");
}
.ico-key3 {
  -webkit-mask-image: url("../assets/icons/key.svg");
  mask-image: url("../assets/icons/key.svg");
}

.lfc_user_row input[type="email"],
.lfc_user_row input[type="password"],
.lfc_user_row input[type="text"] {
  display: block;
  width: 100%;
  border: 1px solid #dde3ec;
  border-radius: 3px;
  padding: 9px 10px 9px 36px;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}
.lfc_user_row input:focus {
  border-color: #aab4c4;
  box-shadow: none;
}

.lfc_remember {
  padding: 0 20px 10px;
  font-size: 0.82rem;
  color: #6b7a8d;
}
.lfc_remember label {
  cursor: pointer;
}

.send_button {
  display: block;
  width: calc(100% - 40px);
  margin: 5px 20px 20px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 11px 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}
.send_button:hover,
.send_button:focus {
  background: var(--accent-color-dark);
  color: #fff;
}

.lfc_forget_pass {
  background: #f5f6fa;
  border-top: 1px solid #dde3ec;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.82rem;
}
.lfc_forget_pass a {
  color: var(--color-texto-main);
  text-decoration: none;
}
.lfc_forget_pass a:hover {
  text-decoration: underline;
}
.lfc_forget_pass .sep {
  color: #bbc4cf;
  margin: 0 6px;
}

/* ── Search results ── */
.resultados-container {
  width: fit-content;
  border-bottom: 1px solid var(--accent-color);
}

.resultados-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.resultados-label {
  font-size: 0.8rem;
  color: var(--accent-color);
  letter-spacing: 0.12em;
  display: block;
  text-transform: uppercase;
}

.filtro-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    background-color: #DDDDDD;
    border: 1px solid #bbb;
    padding: 0 10px;
    text-decoration: none;
}

.filtro-tag:hover {
  background: #f5f5f5;
  color: #333;
}

.filtro-tag span{
    color: var(--accent-color);
    font-size: 25px;
    font-weight:300;
}

.filtro-sep {
  color: #bbb;
  font-size: 1.2rem;
}

.resultado-item {
  position: relative;
  border-top: 1px solid #e0e0e0;
  padding: 1.4rem 0;
  cursor: pointer;
}

.resultado-item-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.resultado-item a:not(.resultado-item-link),
.resultado-item button {
  position: relative;
  z-index: 2;
}

.resultado-item-fondo {
  background-color: var(--secondary-color);
}

.resultado-item-blanco {
  background-color: #fff;
}

.resultado-item:last-of-type {
  border-bottom: 1px solid #e0e0e0;
}

.resultado-item:hover h2, .resultado-item:hover .resultado-arrow .st0{
  color: var(--accent-color);
  fill: var(--accent-color);
}

.resultado-nombre {
  text-transform: uppercase;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}


.resultado-direccion,
.resultado-ciudad {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
}

.resultado-link-ecommerce,
.resultado-link-horario {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}


.resultado-link-line {
  display: inline-block;
  width: 2rem;
  margin-right: .55rem;
  border-top: 1px solid var(--color-gris);
  vertical-align: middle;
}
.resultado-link-horario {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: uppercase;
}

.resultado-link-horario span,
.resultado-link-ecommerce span{
  color: var(--accent-color);
}

.horario-content {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.4rem;
  padding-left: 2.55rem;
  white-space: pre-line;
}

.resultado-arrow {
  font-size: 6rem;
  font-weight: 100;
  color: #bbb;
  text-decoration: none;
  line-height: 1;
  padding: 0 0.5rem;
  flex-shrink: 0;
  transition: color 0.15s;
}

.resultado-arrow .st0 {
    fill: var(--color-texto-main);
}

.resultado-arrow:hover {
  color: var(--color-texto-main);
  text-decoration: none;
}

/* ── Guía de Comercios ── */
.guia-hero {
  background-color: var(--accent-color);
  width: 100%;
  padding: 3rem 5rem;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  padding-bottom: 5rem;
}

.guia-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
  padding: 2rem 1.5rem;
  align-items: flex-start;
}

/* Sidebar */
.guia-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 1.8rem;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.sidebar-select {
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.85rem;
}

.sector-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sector-list li {
  border-bottom: 1px solid #f0f0f0;
}

.sector-link {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  color: #444;
  text-decoration: none;
  transition: color 0.15s;
}

.sector-link:hover,
.sector-link.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Results area */
.guia-resultados {
  flex: 1;
  min-width: 0;
}

.guia-results-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
}

.guia-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
}

.guia-count-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
}

/* Cards grid */
.guia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .guia-grid { grid-template-columns: repeat(2, 1fr); }
  .guia-layout { flex-direction: column; }
  .guia-sidebar { width: 100%; }
}

@media (max-width: 560px) {
  .guia-grid { grid-template-columns: 1fr; }
}

.guia-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.guia-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.guia-card-img {
  position: relative;
  height: 160px;
  background: #f5f5f5;
  overflow: hidden;
}

.guia-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guia-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.85;
}

.guia-badge-ecommerce {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-color);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.guia-card-body {
  padding: 0.9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.guia-card-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

.guia-card:hover .guia-card-nombre {
  color: var(--accent-color);
}

.guia-card-ciudad {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guia-card-sectores {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.3rem;
}

.guia-sector-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ── Guía directorio de categorías ── */
.guia-dir-container {
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 2rem;
}

.guia-dir-title {
  font-size: 2rem;
  font-weight: 300;
  color: #bbb;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.guia-dir-section {
  margin-bottom: 2.5rem;
}

.guia-dir-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #888;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

.guia-dir-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0;
  columns: 2;
  column-gap: 3rem;
}

@media (max-width: 600px) {
  .guia-dir-list { columns: 1; }
}

.guia-dir-padre {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.guia-dir-link-padre {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.guia-dir-link-padre:hover {
  color: var(--accent-color);
}

.guia-dir-sublist {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.2rem 0 0.4rem;
}

.guia-dir-sublist li {
  margin-bottom: 0.1rem;
}

.guia-dir-link-hijo {
  font-size: 0.85rem;
  text-decoration: none;
}

.guia-dir-link-hijo:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ── Guía de Comercios – Category Grid ── */
.guia-comercios-page{
    width: 100%;
    background-color:white;
}

.cat-page {
    width: 100%;
    padding: 3rem 2rem 5rem;
}

.cat-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.cat-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .cat-grid { flex-direction: column; }
  .cat-col { flex: none; width: 100%; }
}

.cat-card {
  border: 1px solid #e8e8e8;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cat-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem 1.4rem;
}

.cat-card-icon-wrap {
  display: block;
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.cat-card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: filter 0.2s;
}

.cat-card-header:hover img.cat-card-icon {
  filter: grayscale(1);
}

.cat-placeholder-box {
  width: 80px;
  height: 80px;
  background: #ebebeb;
  border-radius: 4px;
}

.cat-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  color: #1a1a1a;
  line-height: 1.35;
  text-decoration: none;
}

.cat-card-label:hover {
  color: var(--color-texto-main);
  text-decoration: none;
}

.cat-chevron {
  background: none;
  border: none;
  padding: 0.3rem;
  margin-top: 0.5rem;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  transition: transform 0.25s;
}

.cat-card--open .cat-chevron {
  transform: rotate(180deg);
}

.cat-sublist {
  list-style: none;
  padding: 0.4rem 0 1rem;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  display: none;
}

.cat-card--open .cat-sublist {
  display: block;
}

.cat-sub-link {
  display: block;
  padding: 0.35rem 1.5rem;
  font-size: 0.82rem;
  color: #444;
  text-decoration: none;
  text-align: center;
}

.cat-sub-link:hover {
  color: var(--color-texto-main);
  text-decoration: none;
}

.cat-wedge {
  width: 100%;
  background: #f0f0f0;
  clip-path: polygon(0 80px, 35% 0, 100% 80px, 100% 100%, 0 100%);
  padding: 120px 0 80px;
}

.cat-wedge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
    .cat-wedge-content{
        gap: 1rem;
    }
}




.cat-wedge-map {
  display: none;
}

#map-svg-container {
  flex: 0 0 auto;
  width: 42%;
  max-width: 500px;
}

#map-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.lista-municipios {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 155px;
}

.lista-municipios:last-child {
  align-items: flex-end;
}

.cat-municipio-link {
  display: inline-block;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s;
}

.cat-municipio-link::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent-color);
  margin-top: 6px;
}

.cat-municipio-link:hover,
.cat-municipio-link.active {
  color: var(--accent-color);
}

/* ── Página Empresa ── */

.emp-subnav {
  width: 100%;
  background: var(--accent-color);
  border-bottom: 1px solid #ddd;
  padding: 1.5rem 0;
}

.emp-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emp-back,
.emp-nova-cerca {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: transparent;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.emp-back svg, .emp-nova-cerca svg {
  color: #fff;
}

.emp-back:hover,
.emp-nova-cerca:hover {
  color: #fff;
}

/* Hero */
.emp-hero {
    width: 100%;
    background: #fff;
    padding: 4rem 5rem 8rem;
    background-color: var(--secondary-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 70% 100%, 0 calc(100% - 3rem));
}

.emp-hero-img img {
    width: 100%;
}

.emp-hero-inner {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.emp-img-ph {
  width: 100%;
  aspect-ratio: 1.5;
  background: #d5d5d5;
  border-radius: 4px;
}

.emp-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.emp-nombre {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.emp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #444;
}

.emp-row-xxss:hover span {
    color: var(--accent-color);
}

.emp-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #666;
}

.emp-row-text {
  margin: 0;
  line-height: 1.5;
}

.emp-row-label {
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
}

.emp-mapa {
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
}

.emp-mapa:hover {
  color: var(--accent-color);
}

.emp-horari-text {
  white-space: pre-line;
  line-height: 1.6;
}

.emp-web-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.88rem;
}

    .emp-web-link:hover {
        text-decoration: underline;
        color: var(--accent-color);
        font-weight: 600;
    }

.emp-btn-tenda {
  display: inline-flex;
  position:relative;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  width: fit-content;
}

.fondo-tenda{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
}

.emp-btn-tenda:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.emp-btn-tenda:hover #icono-tenda-blanc,
.emp-btn-tenda #icono-tenda-color
{
    display:none;
}

.emp-btn-tenda #icono-tenda-blanc,
.emp-btn-tenda:hover #icono-tenda-color
{
    display: block;
}

/* Seccions comunes */
.emp-section-inner {
  padding: 2.5rem 2rem;
}

.emp-poligon-central {
    background-color: var(--secondary-color) !important;
    clip-path: polygon( 0 3rem, 30% 0, 100% 3rem, 100% calc(100% - 3rem), 70% 100%, 0 calc(100% - 3rem) );
    padding: 3rem 0;
}

    .emp-poligon-central:last-child {
        clip-path: polygon( 0 3rem, 30% 0, 100% 3rem, 100% 100%, 0 100%);
    }

.emp-section-header {
  margin-bottom: 2rem;
}

.emp-section-num {
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
}

.emp-section-num--accent {
  color: var(--accent-color);
}

.emp-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #111;
  margin: 0;
}

.emp-section-title::after {
    content: '';
    display: block;
    width: 2rem;
    height: 0.15rem;
    background: var(--color-gris);
    margin-top: 1rem;
}

/* Informació */
.emp-informacio {
  width: 100%;
  background: #fff;
  padding: 2rem 0;
}

.emp-info-cols {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.emp-logo {
    width: 100%;
}

.emp-logo-ph {
  width: 160px;
  height: 120px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #aaa;
  font-style: italic;
}

.emp-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.emp-tags-block {
  margin-bottom: 1rem;
}

.emp-tags-title {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 0.3rem;
}

.emp-tags-title--accent {
  color: var(--accent-color);
}

.emp-tags-list {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.8;
}

.emp-tag-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.emp-tag-link:hover {
  color: var(--color-texto-main);
}

.emp-altres {
    padding-top: 1rem;
    display: flex;
    gap:1rem;
    align-items: flex-start;
}

.emp-altres-icon {
    color: var(--color-gris);
}

.emp-altres-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
}

.emp-altres-check {
  font-size: 1rem;
}

.emp-altres-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: #999;
}

.emp-altres-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  margin: 0;
}

.emp-altres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.emp-altres-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
    line-height: 1.2;
}

.emp-altres-card:hover {
  border-color: #aaa;
}

    .emp-altres-card:hover .emp-altres-nom,
    .emp-altres-card:hover .emp-altres-mas {
        color: var(--accent-color);
    }

.emp-altres-mas {
    color: #000;
    font-size: 1.5rem;
    line-height: .8;
}

.emp-altre:hover emp-altres-mas {
    color: var(--accent-color);
}

.emp-altres-nom {
    font-size: 0.95rem;
    margin: 0;
    color: #111;
    text-transform: uppercase;
}

.emp-altres-dir {
  font-size: 0.85rem;
  color: #333;
  margin: 0;
}

.emp-altres-cp {
  font-size: 0.85rem;
  color: #333;
  margin: 0;
}

.emp-altres-tel {
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
  margin: 0.1rem 0 0;
}

.emp-altres-tel-num {
  color: var(--accent-color);
  font-weight: 500;
}

.emp-altres-fax-num {
  color: #2e7d32;
  font-weight: 500;
}

.emp-altres-sep {
  color: #333;
}

/* Productes */
.emp-productes {
  width: 100%;
  background: white;
  position: relative;
}

.emp-productes-wave {
    width: 100%;
    height: 60px;
    background: var(--secondary-color);
    clip-path: polygon(0 100%, 30% 0, 100% 100%);
}

.emp-cat-header {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  text-transform: uppercase;
  margin: 1.5rem 0 0.8rem;
}

.emp-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.emp-prod-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.emp-prod-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.emp-prod-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 74, 74, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.emp-prod-card:hover .emp-prod-overlay {
  opacity: 1;
}

.emp-prod-nom {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.3rem 0;
}

.emp-prod-marca {
  color: #fff;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

.emp-prod-img-ph {
  width: 100%;
  aspect-ratio: 1;
  background: #d0d0d0;
}

.emp-prod-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.emp-btn-tenda-online {
  display: block;
  position: absolute;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 2.5rem;
}

.emp-btn-tenda-online:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.emp-btn-tenda-online:hover #icono-tenda-productes-blanc,
.emp-btn-tenda-online #icono-tenda-productes-color{
    display:block;

}

.emp-btn-tenda-online #icono-tenda-productes-blanc,
.emp-btn-tenda-online:hover #icono-tenda-productes-color {
    display: none;
}

/* Galeria */
.emp-galeria {
  width: 100%;
  background: #fff;
}

.emp-galeria-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #111;
  margin: 0 0 1.5rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent-color);
}

.emp-galeria-grid {
  column-count: 3;
  column-gap: 1rem;
}

.emp-galeria-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  vertical-align: top;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.emp-galeria-item:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.emp-galeria-img {
  display: block;
  width: 100%;
  height: auto;
}

.emp-galeria-modal .modal-dialog {
  max-width: min(1120px, calc(100% - 2rem));
}

.emp-galeria-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.26);
}

.emp-galeria-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1.1rem;
  border: 0;
  border-bottom: 0.15rem solid var(--color-gris);
}

.emp-galeria-modal-eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.emp-galeria-modal-title {
  margin: 0;
  color: #111;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: var(--tracking-title);
  text-transform: uppercase;
}

.emp-galeria-modal-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid #222;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.emp-galeria-modal-close:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #fff;
}

.emp-galeria-modal-close:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.emp-galeria-modal .modal-body {
  position: relative;
  display: grid;
  min-height: 12rem;
  padding: 1.5rem 5.25rem 2.75rem;
  place-items: center;
  background: var(--secondary-color);
}

.emp-galeria-imagen-wrap {
  display: grid;
  width: 100%;
  place-items: center;
}

.emp-galeria-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.emp-galeria-nav:hover {
  border-color: var(--accent-color);
  background: #fff;
  color: var(--accent-color);
  transform: scale(1.06);
}

.emp-galeria-nav:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.emp-galeria-nav:disabled {
  display: none;
}

.emp-galeria-nav--prev {
  left: 1.25rem;
}

.emp-galeria-nav--next {
  right: 1.25rem;
}

.emp-galeria-nav svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: currentColor;
}

.emp-galeria-contador {
  position: absolute;
  bottom: 0.85rem;
  margin: 0;
  color: var(--color-gris);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.emp-galeria-ampliada {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border: 0.4rem solid #fff;
  box-shadow: 0 0.55rem 1.6rem rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .emp-galeria-grid {
    column-count: 2;
  }
}

@media (max-width: 575.98px) {
  .emp-galeria-grid {
    column-count: 1;
  }

  .emp-galeria-modal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .emp-galeria-modal .modal-header {
    padding: 1rem;
  }

  .emp-galeria-modal-title {
    font-size: 1rem;
  }

  .emp-galeria-modal .modal-body {
    padding: 0.75rem 3.25rem 2.5rem;
  }

  .emp-galeria-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .emp-galeria-nav--prev {
    left: 0.35rem;
  }

  .emp-galeria-nav--next {
    right: 0.35rem;
  }

  .emp-galeria-nav svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .emp-galeria-ampliada {
    max-height: 68vh;
    border-width: 0.25rem;
  }
}

/*  Servicos */
.servicios-header{
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  background: #aaaaaa88;
  width: 100vw;
  word-wrap: break-word;
  text-align: center;
  padding: 2.5rem 7.5rem 0;
}
.laboral-servicios {
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 768px) {
  .emp-hero-inner {
    flex-direction: column;
  }
  .emp-hero-img {
    flex: unset;
    width: 100%;
  }
  .emp-info-cols {
    flex-direction: column;
  }
  .emp-prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desplegables personalizados del buscador */
.custom-select {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width:100%;
}

.custom-select__native {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 1.25rem 0 1rem;
  color: #343434;
  font: inherit;
  font-size: .95rem;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.custom-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__arrow {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-left: 1rem;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 10px solid var(--accent-color);
  transition: transform .18s ease;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__trigger:focus-visible,
.custom-select__option:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.custom-select__menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  max-height: 300px;
  padding: .45rem 0;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 12px 24px rgb(0 0 0 / 12%);
}

.custom-select__option {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  color: #343434;
  font: inherit;
  font-size: .95rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option:focus-visible {
  color: var(--accent-color);
  background: #fff7f7;
}

.custom-select__option.is-selected {
  color: var(--accent-color);
  font-weight: 600;
}

/* El subrayado de la columna derecha queda alineado a su extremo. */
.lista-municipios:last-child .cat-municipio-link::after {
  margin-left: auto;
}

@media (min-width:1200px)
{
    .border-xl-end-0 {
        border-right: 0 !important;
    }

    .border-xl-start-1 {
        border-left: 1px solid;
    }
}

@media (max-width:768px)
{
    .hero-buscador{
        padding: 3rem 0rem 5rem;
    }

    .emp-hero{
        padding: 3rem 0 5rem;
    }
}

@media (max-width:576px)
{
    .hero-buscador{
        padding: 3rem 2rem 5rem;
    }
}

@media (max-width: 600px) {
    .cat-wedge-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1rem;
        padding: 0 1.5rem;
    }

    #map-svg-container {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(80%, 320px);
        justify-self: center;
    }

    .lista-municipios:first-child {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    .lista-municipios:last-child {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        align-items: flex-end;
    }
}

.flecha-icono-left {
    transform: rotate(90deg);
}

.flecha-icono-right{
    transform: rotate(-90deg);
}


/* Página 404 */
.error-page {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.error-page::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(39vw, 35rem);
  background: var(--secondary-color);
  content: '';
}

.error-page-inner {
  position: relative;
  display: flex;
  min-height: clamp(30rem, calc(100vh - 20rem), 43rem);
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.error-page-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
}

.error-page-eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.error-page h1 {
  max-width: 28rem;
  margin: 0;
  color: #111;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: var(--tracking-title);
  line-height: 1.03;
  text-transform: uppercase;
}

.error-page h1::after {
  display: block;
  width: 2.5rem;
  height: 0.2rem;
  margin: 1.5rem 0;
  background: var(--accent-color);
  content: '';
}

.error-page-text {
  max-width: 27rem;
  margin: 0;
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.error-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.error-page-btn--primary {
  border: 1px solid var(--accent-color);
  background: var(--accent-color);
  color: #fff;
}

.error-page-btn--primary:hover {
  background: #fff;
  color: var(--accent-color);
}

.error-page-btn--secondary {
  border: 1px solid #222;
  background: #fff;
  color: #222;
}

.error-page-btn--secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.error-page-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.error-page-number {
  position: absolute;
  z-index: 1;
  right: max(3rem, 8vw);
  margin: 0;
  color: var(--accent-color);
  font-size: clamp(10rem, 25vw, 23rem);
  font-weight: 800;
  letter-spacing: -0.11em;
  line-height: 0.75;
  user-select: none;
}

@media (max-width: 767.98px) {
  .error-page::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 13rem;
  }

  .error-page::after {
    top: 12.8rem;
    right: 1rem;
    width: calc(100% - 2rem);
    height: 0.2rem;
  }

  .error-page-inner {
    display: block;
    min-height: 39rem;
    padding-top: 15rem;
  }

  .error-page-number {
    top: 3rem;
    right: 50%;
    font-size: 10.5rem;
    transform: translateX(50%);
  }

  .error-page-copy {
    width: 100%;
  }

  .error-page-actions {
    flex-direction: column;
    align-items: stretch;
  }
}