
/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #faf8f4;
    color: #252525;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   ACCESIBILIDAD
========================================= */

.salto-contenido {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 10000;
    padding: 12px 18px;
    background: #252525;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
}

.salto-contenido:focus {
    top: 15px;
}

/* =========================================
   ENCABEZADO Y NAVEGACIÓN
========================================= */

.header,
.encabezado {
    min-height: 72px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header.encabezado {
    padding: 0;
    display: block;
}

.encabezado-contenido {
    max-width: 1500px;
    min-height: 72px;
    margin: 0 auto;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 25px;
    font-weight: 900;
    color: #252525;
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-footer {
    justify-content: center;
    margin-bottom: 6px;
}

.logo-icono {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f47721;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 21px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(244, 119, 33, 0.18);
}

.logo-texto {
    color: #252525;
}

.logo-texto > span {
    color: #f47721;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-shrink: 0;
}

nav a {
    color: #555555;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 0;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #f47721;
}

/* BUSCADOR DEL ENCABEZADO */

.buscador-encabezado {
    flex: 1;
    max-width: 430px;
    min-width: 180px;
    margin: 0 auto;
    padding: 4px 5px;
    border-radius: 10px;
    box-shadow: none;
    gap: 5px;
}

.buscador-encabezado:focus-within {
    box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.09);
}

.buscador-encabezado .buscador-icono {
    font-size: 21px;
    padding-left: 8px;
}

.buscador-encabezado input {
    font-size: 13px;
    padding: 8px 4px;
}

.buscador-encabezado .btn-limpiar {
    width: 25px;
    height: 25px;
}

.buscador-encabezado .btn-buscar {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
}

/* =========================================
   BOTONES REUTILIZABLES
========================================= */

.btn-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f47721;
    color: #ffffff;
    border: none;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(244, 119, 33, 0.22);
}

.btn-principal:hover {
    background: #df6415;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 119, 33, 0.32);
}

.btn-principal:active {
    transform: translateY(0);
}

.btn-principal:focus-visible,
.categoria:focus-visible,
.buscador button:focus-visible,
.tarjeta:focus-visible,
.galeria-item:focus-visible {
    outline: 3px solid rgba(244, 119, 33, 0.35);
    outline-offset: 2px;
}

.btn-volver {
    background: #fff3e8;
    color: #e86d16;
    border: 1px solid #ffd8b8;
    box-shadow: none;
    padding: 10px 18px;
    font-size: 14px;
}

.btn-volver:hover {
    background: #f47721;
    color: #ffffff;
    border-color: #f47721;
    box-shadow: 0 4px 12px rgba(244, 119, 33, 0.2);
}

.btn-whatsapp {
    background: #20b858;
    box-shadow: 0 4px 14px rgba(32, 184, 88, 0.25);
}

.btn-whatsapp:hover {
    background: #199e49;
    box-shadow: 0 6px 18px rgba(32, 184, 88, 0.35);
}

.btn-telefono {
    background: #252525;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.btn-telefono:hover {
    background: #3b3b3b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-ubicacion {
    background: #f47721;
    box-shadow: 0 4px 14px rgba(244, 119, 33, 0.22);
}

.btn-restablecer {
    margin-top: 16px;
}

/* =========================================
   PROMOCIONES PÚBLICAS
========================================= */

.promociones-seccion {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 8% 12px;
    overflow: hidden;
}

.promociones-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.promociones-encabezado .etiqueta {
    margin-bottom: 5px;
    padding: 5px 11px;
    font-size: 9px;
}

.promociones-encabezado h2 {
    color: #252525;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.6px;
}

.promociones-controles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.promociones-controles button {
    width: 35px;
    height: 35px;
    border: 1px solid #eeeeee;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.promociones-controles button:hover {
    background: #f47721;
    border-color: #f47721;
    color: #ffffff;
}

.promociones-controles button:focus-visible {
    outline: 3px solid rgba(244, 119, 33, 0.3);
    outline-offset: 3px;
}

.lista-promociones {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #f4c19e transparent;
}

.lista-promociones::-webkit-scrollbar {
    height: 5px;
}

.lista-promociones::-webkit-scrollbar-track {
    background: transparent;
}

.lista-promociones::-webkit-scrollbar-thumb {
    background: #f4c19e;
    border-radius: 10px;
}

.tarjeta-promocion {
    display: flex;
    align-items: center;
    flex: 0 0 270px;
    min-width: 0;
    height: 132px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-promocion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.promo-imagen {
    width: 105px;
    height: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fff0df, #ffe0c2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 32px;
}

.promo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-contenido {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-negocio {
    color: #e86d16;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.promo-contenido h3 {
    color: #252525;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-descripcion {
    color: #777777;
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-precios {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.promo-precio-anterior {
    color: #999999;
    font-size: 10px;
    text-decoration: line-through;
}

.promo-precio-actual {
    color: #e86d16;
    font-size: 15px;
    font-weight: 900;
}

.promociones-vacias {
    color: #888888;
    font-size: 13px;
    padding: 10px 0;
}

/* =========================================
   ENCABEZADO Y NAVEGACIÓN
========================================= */

.header,
.encabezado {
    min-height: 72px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header.encabezado {
    padding: 0;
    display: block;
}

.encabezado-contenido {
    max-width: 1500px;
    min-height: 72px;
    margin: 0 auto;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 25px;
    font-weight: 900;
    color: #252525;
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-footer {
    justify-content: center;
    margin-bottom: 6px;
}

.logo-icono {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f47721;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 21px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(244, 119, 33, 0.18);
}

.logo-texto {
    color: #252525;
}

.logo-texto > span {
    color: #f47721;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-shrink: 0;
}

nav a {
    color: #555555;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 0;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #f47721;
}

/* BUSCADOR DEL ENCABEZADO */

.buscador-encabezado {
    flex: 1;
    max-width: 430px;
    min-width: 180px;
    margin: 0 auto;
    padding: 4px 5px;
    border-radius: 10px;
    box-shadow: none;
    gap: 5px;
}

.buscador-encabezado:focus-within {
    box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.09);
}

.buscador-encabezado .buscador-icono {
    font-size: 21px;
    padding-left: 8px;
}

.buscador-encabezado input {
    font-size: 13px;
    padding: 8px 4px;
}

.buscador-encabezado .btn-limpiar {
    width: 25px;
    height: 25px;
}

.buscador-encabezado .btn-buscar {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
}

/* Ajustes para celulares */
@media (max-width: 600px) {

    .header {
        padding: 10px 5%;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-icono {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .buscador-encabezado {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .buscador-encabezado input {
        font-size: 13px;
        padding: 9px 2px;
    }

    .buscador-encabezado .btn-buscar {
        padding: 10px 13px;
        font-size: 12px;
    }

    .buscador-encabezado .buscador-icono {
        font-size: 19px;
        padding-left: 6px;
    }

    .header nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding: 3px 0 1px;
    }

    .header nav a {
        font-size: 12px;
    }

    .hero {
        padding: 38px 16px 30px;
    }

    .hero h1 {
        font-size: clamp(29px, 8vw, 37px);
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 13px;
        margin-bottom: 0;
    }

    .hero small {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* =========================================
   SECCIONES GENERALES
========================================= */

.seccion {
    padding: 75px 8%;
    max-width: 1500px;
    margin: 0 auto;
}

.titulo-seccion {
    margin-bottom: 35px;
}

.titulo-seccion h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 850;
    color: #252525;
    margin: 12px 0;
    letter-spacing: -1px;
}

.titulo-seccion p {
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   CATEGORÍAS
========================================= */

.categorias {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.categoria {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e9e5de;
    background: #ffffff;
    color: #444444;
    padding: 13px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.025);
}

.categoria span {
    font-size: 20px;
    line-height: 1;
}

.categoria:hover {
    background: #fff7f0;
    border-color: #f47721;
    color: #e96b16;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(244, 119, 33, 0.10);
}

/* CONTRASTE DE ICONOS EN CATEGORÍAS */

.categoria .icono-categoria {
    color: #f47721;
    transition: color 0.2s ease;
}

.categoria.activa .icono-categoria {
    color: #f47721;
}

.categoria.activa .icono-categoria svg {
    stroke: currentColor;
}

.categoria.activa:hover {
    background: #e96b16;
    color: #ffffff;
}

/* =========================================
   CUADRÍCULA DE NEGOCIOS
========================================= */

.negocios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

.estado-carga {
    grid-column: 1 / -1;
    color: #777777;
    font-size: 15px;
    padding: 25px 0;
}

/* =========================================
   TARJETAS DE NEGOCIOS
========================================= */

.tarjeta {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.035);
}

.negocios .tarjeta {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.negocios .tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
    border-color: #f5d4bd;
}

/* IMAGEN DEL NEGOCIO */

.foto-negocio {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 62px;
    background: linear-gradient(135deg, #fff3e6, #fffaf5);
    overflow: hidden;
    flex-shrink: 0;
}

.foto-negocio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.foto-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 62px;
    user-select: none;
}

.negocios .tarjeta:hover .foto-negocio img {
    transform: scale(1.05);
}

/* NEGOCIO DESTACADO */

.etiqueta-destacado {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f47721;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* INFORMACIÓN DEL NEGOCIO */

.info-negocio {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tipo {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    color: #e96b16;
    background: #fff3e8;
    padding: 5px 11px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.info-negocio h3 {
    font-size: 19px;
    font-weight: 800;
    color: #252525;
    margin: 0 0 8px;
    line-height: 1.35;
}

.info-negocio p {
    font-size: 14px;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tarjeta-cta {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #f47721;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.negocios .tarjeta:hover .tarjeta-cta {
    gap: 9px;
    color: #df6415;
}

/* =========================================
   SIN RESULTADOS
========================================= */

.sin-resultados {
    padding: 40px 24px;
    color: #666666;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    background: #ffffff;
    border: 1px dashed #e5ded6;
    border-radius: 16px;
    margin-top: 25px;
}

.sin-resultados h2 {
    color: #252525;
    margin-bottom: 8px;
    font-size: 22px;
}

/* =========================================
   LLAMADA FINAL Y PIE DE PÁGINA
========================================= */

.llamada {
    margin: 20px 8% 70px;
    padding: 55px 25px;
    text-align: center;
    background: #252525;
    color: #ffffff;
    border-radius: 18px;
}

.llamada h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.llamada p {
    color: #cccccc;
}

footer,
.footer {
    background: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #eeeeee;
}

footer p,
.footer p {
    margin: 10px 0;
    color: #777777;
    font-size: 14px;
}

footer small,
.footer small {
    color: #999999;
    font-size: 13px;
}

/* =========================================
   FORMULARIOS ADMINISTRATIVOS
========================================= */

.formulario-negocio {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-seccion {
    width: 100%;
    padding-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
}

.form-seccion h3 {
    margin: 0 0 8px;
    color: #252525;
    font-size: 19px;
}

.form-seccion > p {
    margin: 0 0 20px;
    color: #777777;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.campo-completo {
    grid-column: 1 / -1;
}

.campo label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #f47721;
    box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.12);
}

.campo textarea {
    resize: vertical;
}

.campo input[type="file"] {
    padding: 10px;
    font-size: 13px;
}

.texto-opcional {
    color: #888888;
    font-weight: 400;
    font-size: 12px;
}

.boton-guardar-negocio {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
}

#mensaje-negocio,
#mensaje-categoria,
#mensaje-galeria,
#mensaje-promocion {
    font-size: 14px;
    font-weight: 600;
    color: #e86d16;
}

/* =========================================
   PERFIL DEL NEGOCIO
========================================= */

.perfil-contenedor {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 35px 60px;
}

#perfil-negocio {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.perfil-ficha {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid #eeeeee;
}

.perfil-portada {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #fff3e6, #fde4c8);
    overflow: hidden;
}

.perfil-portada img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.perfil-contenido {
    padding: 35px;
}

.perfil-encabezado {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.perfil-logo {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff3e8;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    user-select: none;
}

.perfil-identidad {
    flex: 1;
    min-width: 200px;
}

.perfil-etiquetas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.perfil-categoria {
    display: inline-block;
    color: #f47721;
    background: #fff1e6;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.perfil-destacado {
    display: inline-block;
    color: #a45b00;
    background: #fff4d6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.perfil-identidad h1 {
    color: #252525;
    font-size: clamp(26px, 3.5vw, 34px);
    margin: 4px 0 0;
    line-height: 1.2;
}

.perfil-separador {
    height: 1px;
    background: #eeeeee;
    margin: 28px 0;
}

.perfil-descripcion h2,
.perfil-contacto h2 {
    color: #252525;
    font-size: 22px;
    margin-bottom: 10px;
}

.perfil-descripcion p,
.perfil-dato p,
.perfil-contacto p {
    color: #666666;
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.perfil-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.perfil-dato {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 20px;
    border-radius: 14px;
}

.perfil-icono {
    font-size: 25px;
    line-height: 1;
    flex-shrink: 0;
}

.perfil-dato h3 {
    color: #333333;
    font-size: 16px;
    margin: 0 0 6px;
}

/* =========================================
   MAPA DEL NEGOCIO
========================================= */

.perfil-mapa {
    margin-top: 30px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 15px;
}

.perfil-mapa h2 {
    color: #252525;
    font-size: 22px;
    margin: 0 0 6px;
}

.perfil-mapa p {
    color: #777777;
    font-size: 14px;
    margin-bottom: 18px;
}

.perfil-mapa iframe {
    display: block;
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: 0;
}

/* =========================================
   CONTACTO DEL NEGOCIO
========================================= */

.perfil-contacto {
    background: #fff8f2;
    border: 1px solid #ffe6cf;
    border-radius: 16px;
    padding: 26px;
    margin-top: 30px;
}

.perfil-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.perfil-botones a {
    text-decoration: none;
    text-align: center;
}

.perfil-sin-contacto {
    margin-top: 12px !important;
    font-style: italic;
}

/* =========================================
   GALERÍA PÚBLICA
========================================= */

#seccion-galeria-publica {
    margin-top: 45px;
    padding: 30px 0;
    border-top: 1px solid #eeeeee;
}

#seccion-galeria-publica h2 {
    font-size: 25px;
    color: #252525;
    margin-bottom: 8px;
}

#seccion-galeria-publica > p {
    color: #777777;
    margin-bottom: 24px;
}

.galeria-publica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.galeria-item {
    padding: 0;
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.galeria-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: #f5d4bd;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.04);
}

.galeria-mensaje {
    grid-column: 1 / -1;
    color: #777777;
    padding: 28px 20px;
    background: #ffffff;
    border: 1px dashed #e5ded6;
    border-radius: 14px;
    text-align: center;
    font-size: 15px;
}

/* =========================================
   VISOR DE FOTOGRAFÍAS
========================================= */

#visor-fotografias {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 15, 15, 0.94);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.visor-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 86%;
    max-height: 88vh;
    gap: 14px;
}

#foto-ampliada {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.contador-visor {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 14px;
    border-radius: 20px;
}

#cerrar-visor,
#foto-anterior,
#foto-siguiente {
    position: absolute;
    border: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

#cerrar-visor {
    top: 20px;
    right: 20px;
}

#foto-anterior {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

#foto-siguiente {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

#cerrar-visor:hover {
    background: #f47721;
    transform: scale(1.06);
}

#foto-anterior:hover,
#foto-siguiente:hover {
    background: #f47721;
    transform: translateY(-50%) scale(1.06);
}

/* =========================================
   TABLETAS
========================================= */

@media (max-width: 1050px) {
    .negocios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .negocios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* =========================================
   MÓVILES
========================================= */

@media (max-width: 650px) {

    .header {
        padding: 15px 5%;
        min-height: auto;
        flex-direction: column;
        gap: 12px;
    }

    .encabezado-contenido {
        padding: 14px 5%;
        min-height: auto;
    }

    .logo {
        font-size: 26px;
    }

    .logo-icono {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        font-size: 14px;
    }

    .promociones-seccion {
        padding: 22px 18px 8px;
    }

    .promociones-encabezado {
        margin-bottom: 12px;
    }

    .promociones-encabezado h2 {
        font-size: 20px;
    }

    .promociones-controles button {
        width: 32px;
        height: 32px;
    }

    .lista-promociones {
        gap: 10px;
    }

    .tarjeta-promocion {
        flex-basis: 245px;
        height: 120px;
    }

    .promo-imagen {
        width: 92px;
    }

    .promo-contenido {
        padding: 9px 10px;
    }

    .hero {
        padding: 65px 18px 55px;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 15px;
    }

    .buscador {
        gap: 6px;
        padding: 6px;
    }

    .buscador-icono {
        font-size: 22px;
        padding-left: 8px;
    }

    .buscador input {
        font-size: 14px;
        padding: 11px 2px;
    }

    .buscador .btn-buscar {
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero small {
        font-size: 12px;
        line-height: 1.6;
    }

    .seccion {
        padding: 50px 18px;
    }

    .titulo-seccion {
        margin-bottom: 24px;
    }

    .titulo-seccion h2 {
        font-size: 26px;
    }

    .categorias {
        gap: 8px;
    }

    .categoria {
        padding: 11px 15px;
        font-size: 13px;
        border-radius: 12px;
    }

    .categoria span {
        font-size: 18px;
    }

    .negocios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tarjeta {
        border-radius: 15px;
    }

    .foto-negocio {
        height: 155px;
        font-size: 48px;
    }

    .foto-fallback {
        font-size: 48px;
    }

    .etiqueta-destacado {
        top: 8px;
        left: 8px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .info-negocio {
        padding: 14px;
    }

    .info-negocio h3 {
        font-size: 16px;
    }

    .info-negocio p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .llamada {
        margin: 10px 18px 45px;
        padding: 40px 20px;
    }

    .llamada h2 {
        font-size: 26px;
    }

    .formulario-negocio {
        padding: 22px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .campo-completo {
        grid-column: auto;
    }

    .perfil-contenedor {
        padding: 24px 16px 40px;
    }

    .perfil-contenido {
        padding: 22px 18px;
    }

    .perfil-portada {
        height: 210px;
    }

    .perfil-encabezado {
        gap: 15px;
    }

    .perfil-logo {
        width: 86px;
        height: 86px;
    }

    .perfil-datos {
        grid-template-columns: 1fr;
    }

    .perfil-mapa {
        padding: 16px;
    }

    .perfil-mapa h2 {
        font-size: 20px;
    }

    .perfil-mapa iframe {
        height: 280px;
    }

    .perfil-contacto {
        padding: 20px 16px;
    }

    .perfil-botones {
        flex-direction: column;
    }

    .perfil-botones a {
        width: 100%;
        box-sizing: border-box;
    }

    #seccion-galeria-publica h2 {
        font-size: 21px;
    }

    .galeria-publica-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .visor-contenido {
        max-width: 96%;
    }

    #foto-ampliada {
        max-height: 74vh;
    }

    #foto-anterior {
        left: 10px;
        width: 42px;
        height: 42px;
    }

    #foto-siguiente {
        right: 10px;
        width: 42px;
        height: 42px;
    }
}

/* =========================================
   PANTALLAS MUY PEQUEÑAS
========================================= */

@media (max-width: 420px) {

    .negocios {
        grid-template-columns: 1fr;
    }

    .foto-negocio {
        height: 185px;
    }
}

@media (max-width: 380px) {

    .tarjeta-promocion {
        flex-basis: 225px;
    }

    .promo-imagen {
        width: 82px;
    }

    .promociones-encabezado h2 {
        font-size: 18px;
    }
}

/* =========================================
   REDUCIR MOVIMIENTO SI EL USUARIO LO PREFIERE
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   MEJORAS FINALES DE PROMOCIONES Y TARJETAS
========================================= */

.tarjeta-promocion:focus-visible {
    outline: 3px solid rgba(244, 119, 33, 0.45);
    outline-offset: 3px;
}

.promociones-controles button:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.promo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #fff0df, #ffe0c2);
}

.negocios .tarjeta {
    color: inherit;
    text-decoration: none;
}

.negocios .tarjeta:focus-visible {
    outline: 3px solid rgba(244, 119, 33, 0.45);
    outline-offset: 3px;
}

/* =========================================
   SUGERENCIAS DEL BUSCADOR
========================================= */

.buscador-encabezado,
.buscador {
    position: relative;
}

.sugerencias-busqueda {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    z-index: 500;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}

.sugerencias-busqueda.visible {
    display: block;
}

.sugerencia-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sugerencia-item:last-child {
    border-bottom: 0;
}

.sugerencia-item:hover,
.sugerencia-item:focus-visible {
    background: #fff5ec;
    outline: none;
}

.sugerencia-icono {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0df;
    border-radius: 10px;
    font-size: 20px;
}

.sugerencia-datos {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sugerencia-datos strong {
    color: #252525;
    font-size: 13px;
    font-weight: 700;
}

.sugerencia-datos small {
    color: #888888;
    font-size: 11px;
}

.sugerencia-flecha {
    margin-left: auto;
    color: #f47721;
    font-size: 18px;
}

.sugerencia-sin-resultados {
    padding: 16px;
    color: #777777;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 600px) {
    .sugerencias-busqueda {
        top: calc(100% + 6px);
        max-height: 300px;
    }

    .sugerencia-item {
        padding: 11px 12px;
    }
}

/* =========================================
   PEDIBOT - DISEÑO COMPACTO V1
========================================= */

/* PRESENTACIÓN */
.hero {
    padding: 30px 20px 24px !important;
}

.hero h1 {
    margin: 5px auto 8px !important;
}

.hero p {
    margin-top: 0;
}

/* PROMOCIONES */
.promociones-seccion {
    padding-top: 16px !important;
    padding-bottom: 5px !important;
}

.promociones-encabezado {
    margin-bottom: 10px !important;
}

.lista-promociones {
    padding-bottom: 8px !important;
}

/* SECCIONES GENERALES */
.seccion {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* ENCABEZADOS DE SECCIÓN */
.titulo-seccion {
    margin-bottom: 18px !important;
}

.titulo-seccion h2 {
    margin: 5px 0 7px !important;
}

.titulo-seccion p {
    font-size: 13px;
}

/* CATEGORÍAS */
.categorias {
    gap: 8px !important;
}

.categoria {
    padding: 10px 15px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    gap: 7px !important;
}

.categoria span {
    font-size: 17px !important;
}

/* NEGOCIOS */
.negocios {
    gap: 16px !important;
}

.foto-negocio {
    height: 170px !important;
}

.info-negocio {
    padding: 15px 17px !important;
}

.info-negocio h3 {
    font-size: 17px !important;
    margin-bottom: 5px !important;
}

.info-negocio p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

/* LLAMADA FINAL */
.llamada {
    margin-top: 10px !important;
    margin-bottom: 40px !important;
    padding: 38px 22px !important;
}

/* COMPACTACIÓN EN CELULARES */
@media (max-width: 650px) {

    .hero {
        padding: 24px 15px 20px !important;
    }

    .promociones-seccion {
        padding: 12px 15px 3px !important;
    }

    .promociones-encabezado {
        margin-bottom: 8px !important;
    }

    .tarjeta-promocion {
        height: 112px !important;
    }

    .seccion {
        padding: 27px 15px !important;
    }

    .titulo-seccion {
        margin-bottom: 16px !important;
    }

    .categorias {
        gap: 7px !important;
    }

    .categoria {
        padding: 9px 12px !important;
        font-size: 12px !important;
    }

    .negocios {
        gap: 11px !important;
    }

    .foto-negocio {
        height: 125px !important;
    }

    .info-negocio {
        padding: 11px !important;
    }

    .info-negocio h3 {
        font-size: 15px !important;
    }

    .info-negocio p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    .tipo {
        font-size: 10px !important;
        padding: 4px 8px !important;
        margin-bottom: 7px !important;
    }

    .tarjeta-cta {
        font-size: 12px !important;
    }

    .llamada {
        margin: 8px 15px 30px !important;
        padding: 30px 16px !important;
    }

    .llamada h2 {
        font-size: 23px !important;
    }
}

/* CELULARES MUY PEQUEÑOS */
@media (max-width: 420px) {

    .negocios {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .foto-negocio {
        height: 115px !important;
    }

    .info-negocio {
        padding: 10px !important;
    }
}

/* ICONOS LINEALES DE CATEGORÍAS */

.icono-categoria {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #f47721;
    flex-shrink: 0;
}

.icono-categoria svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}
.sugerencia-icono {
    color: #f47721;
}

.sugerencia-icono svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}
/* ESTADO PERMANENTE DE CATEGORÍA ACTIVA */

.categoria.activa {
    background-color: #f47721;
    color: #ffffff;
    border-color: #f47721;
}

.categoria.activa:hover {
    background-color: #f47721;
    color: #ffffff;
}

.categoria.activa .icono-categoria {
    color: #ffffff;
}

.categoria.activa .icono-categoria svg {
    stroke: currentColor;
}

/* =====================================
   SISTEMA DE CUENTAS PEDIBOT
===================================== */

.seccion-cuenta {
    max-width: 540px;
    margin: 65px auto;
    padding: 20px;
}

.titulo-cuenta {
    text-align: center;
    margin-bottom: 30px;
}

.titulo-cuenta h1 {
    color: #252525;
    font-size: 30px;
    margin-bottom: 10px;
}

.titulo-cuenta p {
    color: #777;
    line-height: 1.6;
}

.contenedor-formulario-cuenta {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.pestanas-cuenta {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.pestana-cuenta {
    flex: 1;
    padding: 13px 10px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
    color: #666666;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.pestana-cuenta.activa {
    background: #f47721;
    border-color: #f47721;
    color: #ffffff;
}

#formulario-cuenta form h2 {
    color: #252525;
    font-size: 22px;
    margin-bottom: 22px;
}

#formulario-cuenta .campo {
    margin-bottom: 18px;
}

#formulario-cuenta .campo label {
    display: block;
    margin-bottom: 8px;
    color: #444444;
    font-size: 14px;
    font-weight: 700;
}

#formulario-cuenta .campo input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#formulario-cuenta .campo input:focus {
    border-color: #f47721;
}

#formulario-cuenta .btn-principal {
    width: 100%;
    margin-top: 12px;
    border: none;
    cursor: pointer;
}

#formulario-cuenta .btn-principal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.texto-formulario {
    color: #777777;
    font-size: 14px;
    margin-bottom: 22px;
}

.enlace-recuperar {
    display: block;
    border: none;
    background: transparent;
    color: #e96b16;
    padding: 0;
    margin: 0 0 12px auto;
    font-size: 13px;
    cursor: pointer;
}

.mensaje-cuenta {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 15px;
}

.mensaje-cuenta.exito {
    color: #16834a;
}

.mensaje-cuenta.error {
    color: #d33b35;
}

#formulario-cuenta [hidden] {
    display: none !important;
}

@media (max-width: 600px) {

    .seccion-cuenta {
        margin: 35px auto;
        padding: 10px;
    }

    .contenedor-formulario-cuenta {
        padding: 22px 18px;
    }

    .titulo-cuenta h1 {
        font-size: 25px;
    }

}

/* =========================================
   BOTÓN DE FAVORITOS
========================================= */

.btn-favorito {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.btn-favorito:hover {
    transform: scale(1.12);
}

.foto-negocio {
    position: relative;
}

/* =========================================
   MIS FAVORITOS - CUENTA PEDIBOT
========================================= */

.seccion-mis-favoritos {
    margin: 35px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.seccion-mis-favoritos h2 {
    margin-bottom: 20px;
    color: #333;
}

.lista-mis-favoritos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tarjeta-favorito {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.tarjeta-favorito h3 {
    margin: 0 0 6px;
    color: #333;
}

.tarjeta-favorito p {
    margin: 0;
    color: #777;
}

.tarjeta-favorito .btn-principal {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-quitar-favorito {
    padding: 9px 14px;
    border: 1px solid #f47721;
    border-radius: 8px;
    background: white;
    color: #f47721;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-quitar-favorito:hover {
    background: #fff0df;
}

.btn-quitar-favorito:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   EDITAR DATOS DE MI CUENTA
========================================= */

.formulario-editar-cuenta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 450px;
    margin: 20px 0;
}

.formulario-editar-cuenta input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.formulario-editar-cuenta input:focus {
    border-color: #f47721;
}

.formulario-editar-cuenta button {
    align-self: flex-start;
}

.formulario-editar-cuenta .mensaje-cuenta {
    margin: 0;
    color: #238636;
}
