/* Perfil: a social-profile / delivery-app look. Rounded cards on a light background, big tap targets,
   the list of items with prices, and a fixed WhatsApp bar on phones. */
.t-perfil { --r: 20px; --line: color-mix(in srgb, var(--text) 10%, transparent); }
.t-perfil h1, .t-perfil h2, .t-perfil h3 { letter-spacing: var(--head-tracking); }
.t-perfil .section { padding-block: clamp(36px, 5vw, 72px); }
.t-perfil .kicker { letter-spacing: .08em; }

/* Slim top bar */
.t-perfil .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.t-perfil .header-row { height: 60px; }
.t-perfil .brand { font-size: 1.1rem; font-weight: 800; }
.t-perfil .brand img { height: calc(var(--logo-h, 56px) * .7); max-height: calc(var(--logo-h, 56px) * .7); }
.t-perfil .nav { gap: 22px; }
.t-perfil .nav .btn { border-radius: 12px; }

/* Profile block */
.t-perfil .profile { padding-bottom: 8px; }
.t-perfil .profile-cover { width: min(1240px, 100%); margin: 0 auto; height: clamp(170px, 30vw, 330px); border-radius: 0 0 28px 28px; overflow: hidden; background: var(--accent); }
.t-perfil .profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.t-perfil .profile-cover.is-plain { height: clamp(110px, 16vw, 170px); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--bg))); }
.t-perfil .profile-head { display: flex; align-items: flex-end; gap: 22px; margin-top: -56px; position: relative; }
.t-perfil .profile-avatar { flex: none; width: 116px; height: 116px; border-radius: 50%; border: 5px solid var(--bg); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; overflow: hidden; }
.t-perfil .profile-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12%; }
.t-perfil .profile-avatar span { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; }
.t-perfil .profile-who { padding-top: 64px; min-width: 0; }
.t-perfil .profile-who h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; line-height: 1.1; }
.t-perfil .profile-tagline { color: var(--muted); margin: 4px 0 0; }
.t-perfil .profile-sub { margin: 6px 0 0; max-width: 46em; }
.t-perfil .profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.t-perfil .profile-actions a { flex: 1 1 120px; }
.t-perfil .profile-actions a.pa-main { flex: 2 1 240px; }
.t-perfil .profile-actions a { text-align: center; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.t-perfil .profile-actions a.pa-main { background: #1F9D48; border-color: #1F9D48; color: #fff; }

/* "Stories" of the highlighted items */
.t-perfil .stories { display: flex; gap: 18px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; }
.t-perfil .stories::-webkit-scrollbar { display: none; }
.t-perfil .story { flex: none; width: 82px; text-align: center; text-decoration: none; font-size: .8rem; font-weight: 600; }
.t-perfil .story-ring { display: block; width: 78px; height: 78px; border-radius: 50%; padding: 3px; margin: 0 auto 6px; background: conic-gradient(var(--accent), color-mix(in srgb, var(--accent) 45%, #F59F00), var(--accent)); }
.t-perfil .story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--surface); }
.t-perfil .story-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category chips and the list */
.t-perfil .menu { padding: 8px 0 clamp(36px, 5vw, 72px); }
.t-perfil .chips { position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 12px 0; }
.t-perfil .chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.t-perfil .chips-row::-webkit-scrollbar { display: none; }
.t-perfil .chips a { flex: none; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.t-perfil .chips a:first-child { background: var(--text); color: var(--bg); border-color: var(--text); }
.t-perfil .menu-group { scroll-margin-top: 130px; }
.t-perfil .menu-group h2 { font-size: 1.4rem; margin: 22px 0 12px; }
.t-perfil .menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-perfil .row-card { display: grid; grid-template-columns: 1fr 120px; gap: 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; transition: transform .2s; }
.t-perfil .row-card:hover { transform: translateY(-2px); }
.t-perfil .row-card.is-closed { opacity: .65; }
.t-perfil .row-text { min-width: 0; display: flex; flex-direction: column; }
.t-perfil .row-text h3 { font-size: 1.02rem; margin: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.t-perfil .row-sum { color: var(--muted); font-size: .86rem; line-height: 1.45; margin: 6px 0 10px; }
.t-perfil .row-price { margin: auto 0 0; font-weight: 800; }
.t-perfil .row-price s { opacity: .55; font-weight: 400; margin-right: 4px; }
.t-perfil .row-tag { align-self: flex-start; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-text); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.t-perfil .row-media { position: relative; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--text) 6%, var(--bg)); }
.t-perfil .row-media img { width: 100%; height: 100%; object-fit: cover; }
.t-perfil .row-media .add-btn { position: absolute; right: 6px; bottom: 6px; }
.t-perfil .menu-more { margin: 22px 0 0; }

/* Shared sections, restyled as cards */
.t-perfil .about-grid { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 14px; gap: 14px; }
.t-perfil .about-media { border-radius: 16px; aspect-ratio: 1; }
.t-perfil .about-text { padding: clamp(10px, 3vw, 40px); }
.t-perfil .about-text h2, .t-perfil .faq h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.t-perfil .stats { border: 0; }
.t-perfil .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.t-perfil .stat strong { color: var(--accent-text); }
.t-perfil .quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.t-perfil .quote blockquote { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; }
.t-perfil .qa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 8px; }

/* Info cards */
.t-perfil .info { padding-top: 0; }
.t-perfil .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.t-perfil .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; line-height: 1.6; }
.t-perfil .info-card b { display: block; margin-bottom: 4px; }
.t-perfil .info-card p { margin: 0 0 .3em; white-space: pre-line; }
.t-perfil .info-card a { color: var(--accent-text); font-weight: 700; }

/* Item and list pages keep the same rounded, card-like feeling */
.t-perfil .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.t-perfil .card-media { border-radius: 14px; margin: 8px; }
.t-perfil .card-body { padding: 6px 18px 18px; }
.t-perfil .card-title { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
.t-perfil .price { font-weight: 800; }
.t-perfil .btn { border-radius: 14px; }
.t-perfil .aside-card, .t-perfil .room, .t-perfil .g-cell { border-radius: 16px; }

/* Phones: one column, three small buttons under the big one, WhatsApp as a full-width bar */
@media (max-width: 760px) {
    .t-perfil .profile-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -48px; }
    .t-perfil .profile-avatar { width: 96px; height: 96px; }
    .t-perfil .profile-who { padding-top: 0; }
    .t-perfil .profile-actions a { flex: 1 1 28%; padding: 12px 6px; font-size: .88rem; }
    .t-perfil .profile-actions a.pa-main { flex: 1 1 100%; }
    .t-perfil .menu-grid { grid-template-columns: 1fr; }
    .t-perfil .row-card { grid-template-columns: 1fr 96px; }
    .t-perfil .row-media { width: 96px; height: 96px; }
    .t-perfil .about-grid { grid-template-columns: 1fr; }
    body.t-perfil:not(.is-mini) { padding-bottom: 84px; }
    .t-perfil .wa-float { left: 12px; right: 12px; bottom: 12px; justify-content: center; border-radius: 18px; padding: 16px; background: #1F9D48; }
    .t-perfil .wa-float span { display: inline; font-size: 1rem; }
    .t-perfil .cart-fab { bottom: 84px; }
}
