.perfil-publico {
    max-width: none;
}

.perfil-ficha {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    padding: 0 0 22px;
    background: #fffdf9;
    border: 1px solid rgba(212, 180, 131, 0.45);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(26, 18, 16, 0.08);
}

.perfil-editar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.perfil-editar .comida-icono {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.perfil-portada-publica {
    position: relative;
    height: 220px;
    background: #f6efe6;
}
.ficha-portada-vacia {
    display: grid;
    place-items: center;
}
.ficha-portada .comida-foto-icono {
    height: 100%;
    background: transparent;
    color: #c46a3a;
}
.ficha-portada .comida-foto-icono svg {
    width: 28px;
    height: 28px;
    padding: 18px;
}

.perfil-portada-publica img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-domicilio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 18px 0;
    color: #3d322b;
    font-weight: 700;
}
.perfil-domicilio .comida-moto {
    width: 22px;
    height: 22px;
    flex: none;
    fill: #F35C14;
    stroke: none;
}
.perfil-mapa {
    margin: 8px 18px 22px;
}
.perfil-mapa .comida-mapa-lienzo {
    height: 280px;
    overflow: hidden;
    border: 1px solid rgba(212, 180, 131, 0.55);
    border-radius: 16px;
}
.perfil-identidad {
    display: grid;
    justify-items: center;
    margin-top: -56px;
    text-align: center;
}

.perfil-publico .perfil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff4cc;
    color: #6a4b00;
    border: 4px solid #fff;
    font-size: 2.2rem;
    font-weight: 800;
}

.perfil-publico .perfil-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-identidad h1 {
    margin: 10px 16px 0;
}

.perfil-redes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 12px 16px 0;
}

.perfil-redes a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
}

.perfil-redes a[aria-label="WhatsApp"] { background: #25D366; }
.perfil-redes a[aria-label="Instagram"] { background: #E4405F; }
.perfil-redes a[aria-label="TikTok"] { background: #000; }
.perfil-redes a[aria-label="YouTube"] { background: #FF0000; }
.perfil-redes a[aria-label="X"] { background: #000; }
.perfil-redes a[aria-label="Ravicom"] { background: #fff4cc; color: #F35C14; }

.perfil-publico .perfil-red-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.perfil-publico .perfil-red-svg .red-icono {
    width: 22px;
    height: 22px;
    display: block;
}

.perfil-publicaciones {
    margin-top: 28px;
}
.perfil-publicaciones h2,
.perfil-sin-publicaciones {
    text-align: center;
}
.perfil-publicaciones h3 {
    margin: 0;
    font-size: 1rem;
}
.perfil-publicaciones h3 a {
    color: inherit;
    text-decoration: none;
}
.perfil-descripcion {
    margin: 10px auto 0;
    max-width: 640px;
    padding: 0 22px;
    white-space: pre-wrap;
    line-height: 1.55;
    font-size: 1.02rem;
    text-align: center;
}
.perfil-pestanas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.perfil-pestanas button {
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid rgba(243, 92, 20, 0.45);
    border-radius: 999px;
    background: #fff;
    color: #1b130d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.perfil-pestanas button.activo {
    background: #F35C14;
    border-color: #F35C14;
    color: #fff;
}
.perfil-publico [hidden] { display: none; }
.perfil-buscar {
    display: grid;
    gap: 6px;
    max-width: 420px;
    margin: 0 auto 16px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}
.perfil-buscar input {
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid rgba(27, 19, 13, 0.16);
    border-radius: 14px;
    font: inherit;
}
.perfil-sin-busqueda,
.perfil-sin-publicaciones { text-align: center; color: #8a7a6b; }
.perfil-publico .comida-cocina-dato {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.perfil-publico .comida-cocina-dato svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.ficha-negocio {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: 36px;
}
.ficha-cabecera {
    overflow: hidden;
    border: 1px solid #eadcd6;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9, #fff);
    box-shadow: 0 10px 28px rgba(80, 40, 30, 0.08);
}
.ficha-portada {
    position: relative;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 24%, rgba(243, 92, 20, 0.35), transparent 38%),
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.2), transparent 42%),
        #f6efe6;
}
.ficha-portada img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ficha-portada-vacia { max-height: 200px; }
.ficha-identidad {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 18px;
    min-height: 96px;
    padding: 18px 24px 18px 184px;
}
.ficha-avatar {
    position: absolute;
    top: -68px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #fff1e8;
    box-shadow: 0 10px 26px rgba(154, 52, 18, 0.2);
    color: #F35C14;
    font-size: 3.2rem;
    font-weight: 700;
}
.ficha-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ficha-titulos {
    flex: 1 1 280px;
    min-width: 0;
}
.ficha-cocina {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #9a3412;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ficha-cocina svg {
    width: 16px;
    height: 16px;
    flex: none;
}
.ficha-titulos h1 {
    margin: 0;
    color: #1c1c1c;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.ficha-lugar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: #8a7a6b;
    font-size: 0.95rem;
    font-weight: 600;
}
.ficha-lugar svg,
.ficha-datos svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #F35C14;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ficha-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ficha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #F35C14;
    border-radius: 14px;
    background: #F35C14;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.ficha-btn-suave {
    background: #fff;
    color: #9a3412;
}
.ficha-btn-bloque { width: 100%; }
.ficha-acciones .ficha-btn svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ficha-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 14px 24px 18px;
    border-top: 1px solid #f3e4de;
    list-style: none;
}
.ficha-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff1e8;
    color: #9a3412;
    font-size: 0.85rem;
    font-weight: 700;
}
.ficha-etiqueta .comida-moto,
.ficha-datos .comida-moto {
    width: 16px;
    height: 16px;
    flex: none;
    fill: #F35C14;
    stroke: none;
}
.ficha-abierto {
    background: #e2f3e9;
    color: #1d6a43;
}
.ficha-cerrado {
    background: #fde8e6;
    color: #b42318;
}
.ficha-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}
.ficha-cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}
.ficha-principal,
.ficha-lateral {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.ficha-bloque {
    padding: 20px 22px;
    border: 1px solid #eadcd6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(80, 40, 30, 0.05);
}
.ficha-bloque h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 1.12rem;
    font-weight: 700;
}
.ficha-descripcion {
    margin: 0;
    color: #3d322b;
    line-height: 1.6;
    white-space: pre-line;
}
.ficha-bloque-cabeza {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.ficha-bloque-cabeza h2 { margin: 0; }
.ficha-buscar {
    position: relative;
    display: block;
    flex: 0 1 260px;
    margin: 0;
    max-width: none;
    text-align: left;
}
.ficha-buscar svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #8a7a6b;
    stroke-width: 2;
    stroke-linecap: round;
    transform: translateY(-50%);
    pointer-events: none;
}
.ficha-buscar input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #e3d6d0;
    border-radius: 999px;
    background: #fbf7f5;
    color: #3d322b;
    font: inherit;
    font-size: 15px;
}
.ficha-buscar input:focus {
    outline: 0;
    border-color: #F35C14;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(243, 92, 20, 0.15);
}
.ficha-rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 14px;
}
.ficha-platillo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f1e3dd;
    border-radius: 16px;
    background: #fff;
    color: inherit;
}
.ficha-platillo-foto {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7ece7;
}
.ficha-platillo-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ficha-platillo-vacia svg {
    width: 38px;
    height: 38px;
}
.ficha-platillo-cuerpo {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
}
.ficha-platillo-nombre {
    color: #1c1c1c;
    font-size: 1rem;
    line-height: 1.25;
}
.ficha-platillo-descripcion {
    display: -webkit-box;
    overflow: hidden;
    color: #5d6b63;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ficha-platillo-pie { margin-top: auto; padding-top: 10px; }
.ficha-platillo-precio {
    color: #F35C14;
    font-size: 1rem;
    font-weight: 700;
}
.ficha-sin {
    margin: 0;
    padding: 22px 16px;
    border: 1px dashed #eadcd6;
    border-radius: 14px;
    color: #8a7a6b;
    text-align: center;
}
.ficha-sin p { margin: 0; }
p.ficha-sin { margin-top: 14px; }
.ficha-horario {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ficha-horario li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}
.ficha-horario li span:first-child { color: #9a3412; font-weight: 700; }
.ficha-horario li span:last-child { color: #8a7a6b; text-align: right; }
.ficha-hoy { background: #fff1e8; }
.ficha-hoy small {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #F35C14;
    color: #fff;
    font-size: 0.66rem;
    vertical-align: 1px;
}
.ficha-mapa {
    height: 220px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #eadcd6;
    border-radius: 14px;
    isolation: isolate;
}
.ficha-datos {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.ficha-datos li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.ficha-datos small { color: #8a7a6b; font-size: 0.85rem; }
.ficha-tel,
.ficha-tel:link,
.ficha-tel:visited {
    color: #9a3412;
    font-weight: 700;
    text-decoration: none;
}
.ficha-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ficha-redes a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
}
.ficha-negocio .rejilla { justify-content: flex-start; }
@media (max-width: 900px) {
    .ficha-cuerpo { grid-template-columns: 1fr; }
    .ficha-lateral {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: start;
    }
}
@media (max-width: 700px) {
    .ficha-negocio { padding-left: 10px; padding-right: 10px; }
    .ficha-cabecera { border-radius: 18px; }
    .ficha-portada-vacia { aspect-ratio: 16 / 7; }
    .ficha-identidad {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 60px 16px 16px;
        text-align: center;
    }
    .ficha-avatar {
        top: -56px;
        left: 50%;
        width: 108px;
        height: 108px;
        border-width: 4px;
        font-size: 2.5rem;
        transform: translateX(-50%);
    }
    .ficha-lugar { justify-content: center; }
    .ficha-acciones {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ficha-acciones .ficha-btn {
        min-width: 0;
        padding: 0 8px;
        font-size: 0.88rem;
    }
    .ficha-acciones .ficha-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ficha-etiquetas { justify-content: center; padding: 12px; }
    .ficha-bloque { padding: 16px; border-radius: 16px; }
    .ficha-bloque-cabeza { align-items: stretch; flex-direction: column; }
    .ficha-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
