@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --bg: #f4f6fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --card: #ffffff;
    --text: #172033;
    --muted: #667085;
    --ink: #152033;
    --ink-muted: #667085;
    --accent: #7357ff;
    --accent-dark: #5438df;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 24px 70px rgba(54, 65, 105, 0.14);
    --radius-lg: 24px;
    --radius-md: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    padding: 28px 16px 48px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(115, 87, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 95% 16%, rgba(45, 198, 255, 0.17), transparent 30rem),
        linear-gradient(160deg, #fafbff 0%, var(--bg) 58%, #eef1f9 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: linear-gradient(rgba(72,85,120,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(72,85,120,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
    position: relative;
    z-index: auto;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 32px;
    background: rgba(255,255,255,.68);
    box-shadow: var(--shadow);
}

.top-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.corner-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e4e7ef;
    border-radius: 999px;
    color: #384152;
    background: rgba(255,255,255,.92);
    box-shadow: 0 7px 20px rgba(45,55,85,.08);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.corner-button:hover {
    transform: translateY(-2px);
    border-color: rgba(115,87,255,.35);
    background: white;
    box-shadow: 0 10px 24px rgba(45,55,85,.12);
}

.corner-button i { color: var(--accent); }

.profile {
    position: relative;
    overflow: hidden;
    padding: 38px 24px 34px;
    border-radius: 26px;
    background: linear-gradient(135deg, #7357ff 0%, #5c72f2 48%, #26b9e8 100%);
    text-align: center;
}

.profile::before, .profile::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
}
.profile::before { width: 220px; height: 220px; top: -125px; right: -55px; }
.profile::after { width: 150px; height: 150px; bottom: -95px; left: -55px; }
.profile > * { position: relative; z-index: 1; }

.profile-img {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
    border: 4px solid rgba(255,255,255,.94);
    border-radius: 50%;
    background: white;
    object-fit: cover;
    box-shadow: 0 0 0 7px rgba(255,255,255,.18), 0 18px 45px rgba(37,40,100,.24);
}

.profile h1, .gallery-title, .locations-title, .modal-content h2 {
    font-family: 'Manrope', sans-serif;
}

.profile h1 {
    margin-bottom: 10px;
    color: white;
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.profile > p, .profile .bio {
    max-width: 540px;
    margin: 0 auto 20px;
    color: rgba(255,255,255,.86);
    font-size: 1rem;
    line-height: 1.65;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.social-icon {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    color: white;
    background: rgba(255,255,255,.15);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--accent-dark);
    border-color: white;
    background: white;
}

.links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.link-card {
    position: relative;
    width: 100%;
    min-height: 78px;
    padding: 16px 58px 16px 20px;
    border: 1px solid #e8eaf1;
    border-radius: var(--radius-md);
    color: var(--ink);
    background: white;
    box-shadow: 0 8px 24px rgba(47,55,85,.07);
    cursor: pointer;
    text-align: left;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.links .link-card:nth-child(odd) {
    border-color: #dcd5ff;
    background: linear-gradient(135deg, #f0edff 0%, #e6e0ff 100%);
}

.links .link-card:nth-child(even) {
    border-color: #cce9fb;
    background: linear-gradient(135deg, #eaf7ff 0%, #d9f0ff 100%);
}

.link-card::after {
    content: '\2197';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 10px;
    color: var(--accent-dark);
    background: #f0edff;
    font-size: 1rem;
    font-weight: 700;
    transition: transform .22s ease, background .22s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(115,87,255,.35);
    box-shadow: 0 16px 34px rgba(63,57,112,.13);
}

.link-card:hover::after { transform: translateY(-50%) translate(2px,-2px); color: white; background: var(--accent); }
.link-card:active { transform: translateY(-1px); }
.link-card:focus-visible, .corner-button:focus-visible, .social-icon:focus-visible, .submit-btn:focus-visible { outline: 3px solid rgba(94,234,212,.55); outline-offset: 3px; }

.link-text { display: block; width: 100%; }
.link-title { margin: 0 0 4px; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.25; text-align: left; }
.link-subtitle { display: block; color: var(--ink-muted); font-size: .87rem; font-weight: 400; line-height: 1.45; text-align: left; }

.gallery-section, .locations-section {
    position: relative;
    margin-top: 46px;
}

.gallery-section {
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e4e7f0;
    border-radius: 26px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 38px rgba(47,55,85,.09);
}

.locations-section {
    padding: 20px;
    border: 1px solid #e4e7f0;
    border-radius: 26px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 38px rgba(47,55,85,.09);
}

.gallery-title, .locations-title { margin-bottom: 6px; color: var(--ink); font-size: 1.45rem; letter-spacing: -.025em; text-align: left; }
.gallery-subtitle, .locations-subtitle { margin-bottom: 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; text-align: left; }

.news-heading {
    margin-bottom: 18px;
    padding: 0 2px 17px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eceef4;
}

.news-heading-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--accent), #369ce7);
    box-shadow: 0 9px 22px rgba(84,56,223,.22);
    font-size: 1.15rem;
}

.news-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.news-heading .gallery-title { margin-bottom: 2px; }
.news-heading .gallery-subtitle { margin-bottom: 0; }

.locations-heading {
    margin-bottom: 18px;
    padding: 0 2px 17px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eceef4;
}

.locations-heading-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, #ff7a59, #ef476f);
    box-shadow: 0 9px 22px rgba(239,71,111,.2);
    font-size: 1.12rem;
}

.locations-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #d63f66;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.locations-heading .locations-title { margin-bottom: 2px; }
.locations-heading .locations-subtitle { margin-bottom: 0; }

.gallery-container {
    display: flex;
    gap: 14px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gallery-container::-webkit-scrollbar { display: none; }

.gallery-card {
    flex: 0 0 calc(50% - 7px);
    min-width: min(320px, 86vw);
    overflow: hidden;
    border: 1px solid #e7e9f1;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(47,55,85,.1);
    scroll-snap-align: start;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gallery-card:hover { transform: translateY(-4px); border-color: rgba(115,87,255,.25); box-shadow: 0 20px 44px rgba(63,57,112,.15); }

.gallery-content { height: 100%; display: flex; flex-direction: column; }
.gallery-card__details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gallery-image { position: relative; height: 210px; overflow: hidden; background: #e8edf3; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-image::after { content: ''; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(to top, rgba(15,23,42,.42), transparent); }
.gallery-card:hover .gallery-image img { transform: scale(1.045); }
.gallery-text { flex: 1; padding: 20px 20px 10px; }
.gallery-text h3 { margin-bottom: 9px; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 1.08rem; line-height: 1.35; letter-spacing: -.018em; }
.gallery-description { display: -webkit-box; overflow: hidden; color: var(--ink-muted); font-size: .88rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ver-mas-btn { margin: 12px 20px 20px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ver-mas-btn i { font-size: .75rem; transition: transform .2s ease; }
.ver-mas-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(84,56,223,.24); }
.ver-mas-btn:hover i { transform: translateX(3px); }

@media (min-width: 721px) {
    .gallery-card:only-child { flex-basis: 100%; min-width: 100%; }
    .gallery-card:only-child .gallery-content { min-height: 285px; display: grid; grid-template-columns: minmax(280px, 44%) 1fr; }
    .gallery-card:only-child .gallery-image { height: 100%; }
    .gallery-card:only-child .gallery-text { padding: 30px 30px 12px; }
    .gallery-card:only-child .gallery-text h3 { font-size: 1.32rem; }
    .gallery-card:only-child .ver-mas-btn { margin: 12px 30px 28px; }
}

.gallery-nav-btn {
    position: absolute;
    top: 54%;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    cursor: pointer;
}
.gallery-nav-btn.prev { left: 8px; display: none; }
.gallery-nav-btn.next { right: 8px; }

.locations-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; }
.location-card { position: relative; overflow: hidden; border: 1px solid #e7e9f1; border-radius: 22px; background: white; box-shadow: 0 12px 34px rgba(47,55,85,.09); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.location-card:hover { transform: translateY(-4px); border-color: rgba(115,87,255,.25); box-shadow: 0 20px 46px rgba(63,57,112,.14); }
.location-image { position: relative; height: 190px; overflow: hidden; background: #e8edf3; }
.location-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.location-card:hover .location-image img { transform: scale(1.035); }
.location-image::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgba(15,23,42,.42), transparent); }
.location-badge { position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; background: rgba(15,23,42,.58); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 700; }
.location-content { position: relative; height: calc(100% - 190px); min-height: 290px; padding: 25px 22px 20px; display: flex; flex-direction: column; text-align: left; }
.location-icon { display: none !important; }
.location-card:not(:has(.location-image)) .location-content { height: 100%; padding-top: 25px; }
.location-info { flex: 1; margin-bottom: 19px; }
.location-info h3 { margin-bottom: 16px; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 1.12rem; letter-spacing: -.02em; }
.location-info p { margin: 0; color: var(--ink-muted); font-size: .86rem; line-height: 1.45; }
.location-detail { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; margin-top: 11px; }
.location-detail > i { margin-top: 3px; color: var(--accent); font-size: .84rem; text-align: center; }
.location-address p + p { margin-top: 2px; color: #7b8798; }
.location-detail.location-reference { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; }
.location-detail.location-reference > i { flex: 0 0 20px; margin: 0; text-align: center; }
.location-reference-copy { display: flex; align-items: center; gap: 4px; min-width: 0; color: #7b8798; font-size: .86rem; line-height: 1.45; white-space: nowrap; }
.location-reference-label { flex: 0 0 auto; color: var(--ink-muted); font-weight: 700; }
.location-reference-value { min-width: 0; }
.location-reference-value p { display: inline; margin: 0; }
.location-reference-value { display: inline; }
.location-reference-value p { display: inline; margin: 0; }
.location-phone { width: fit-content; color: var(--ink-muted); font-size: .86rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
.location-phone:hover { color: var(--accent-dark); text-decoration: underline; }
.location-detail.location-hours { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; }
.location-detail.location-hours > i { flex: 0 0 20px; margin: 0; text-align: center; }
.location-hours p { flex: 0 1 auto; width: auto; min-width: 0; margin: 0 !important; padding: 0 !important; color: #7d8797; font-size: .82rem; line-height: 1.45; white-space: nowrap; }
.location-hours strong { color: var(--ink-muted); font-weight: 700; }
.location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f5; }
.map-btn, .whatsapp-btn-card, .location-btn { flex: 1; min-height: 42px; padding: 9px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; cursor: pointer; font-size: .84rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.map-btn { color: var(--accent-dark); background: #f0edff; }
.whatsapp-btn-card, .whatsapp-btn { color: white; background: #16a865; }
.map-btn:hover, .whatsapp-btn-card:hover, .location-btn:hover { transform: translateY(-2px); filter: brightness(.97); }

footer { margin: 44px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
footer p { color: #8492a7; font-size: .79rem; line-height: 1.5; }
.footer-credit { margin-top: 7px; }
.footer-credit a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-heart { display: inline-block; margin: 0 2px; font-size: .9rem; animation: heartBeat 2.2s ease-in-out infinite; }

@keyframes heartBeat {
    0%, 45%, 100% { transform: scale(1); }
    15% { transform: scale(1.16); }
    28% { transform: scale(1.04); }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    isolation: isolate;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: modalIn .22s ease-out;
}

@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-content > p:first-of-type { color: var(--ink) !important; font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.025em; }
.modal-content p { color: var(--ink-muted); line-height: 1.5; text-align: center; }
.close-modal { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; color: #526073; background: #f0f3f7; cursor: pointer; font-size: 1.35rem; line-height: 1; transition: transform .2s ease, color .2s ease; }
.close-modal:hover { color: var(--ink); transform: rotate(90deg); }
.form-group { margin-bottom: 12px; }
.form-group input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d7dee8; border-radius: 11px; color: var(--ink); background: #fafbfd; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-group input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.submit-btn { min-height: 48px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; color: #062f2b; background: var(--accent); cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.submit-btn:hover { transform: translateY(-2px); filter: brightness(.96); }

.share-modal { text-align: center; }
.qr-container { margin: 20px 0; padding: 16px; border: 1px solid #e4e9ef; border-radius: 16px; background: #f7f9fb; }
#qrcode { display: flex; justify-content: center; margin-bottom: 12px; }
#qrcode img { max-width: 100%; height: auto; border-radius: 10px; }
.qr-text { margin: 0; font-size: .84rem; }
.share-buttons-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.copy-link-btn { color: var(--ink); background: #edf1f5; }

.location-modal { width: min(100%, 650px); }
.location-modal h2 { margin: 0 36px 18px 0; font-size: 1.35rem; }
.location-map { width: 100%; height: min(380px, 50vh); margin-bottom: 16px; overflow: hidden; border-radius: 14px; background: #eef1f4; }
.location-modal h2 { margin: 0 42px 6px 0; font-size: 1.35rem; text-align: left; }
.location-modal h2 i { margin-right: 7px; color: var(--accent-dark); }
.location-modal-address { margin: 0 0 16px !important; color: var(--ink-muted) !important; font-size: .87rem; text-align: left !important; }
.location-modal-address i { margin-right: 6px; color: var(--accent); }
.location-map { height: 310px; overflow: hidden; border: 1px solid #e4e9ef; border-radius: 14px; background: #edf1f5; }
.location-map iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.location-modal .location-actions { display: flex; flex-wrap: wrap; }
.location-btn { flex: 1 1 140px; color: var(--ink); background: #edf1f5; }
.location-btn.whatsapp-btn { color: white; background: #16a865; }

.notification { position: fixed; bottom: 24px; left: 50%; z-index: 1200; display: none; transform: translateX(-50%); padding: 12px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: white; background: #111c2c; box-shadow: 0 12px 35px rgba(0,0,0,.32); font-size: .88rem; }

.desktop-qr {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 178px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 45px rgba(55,64,98,.18);
    backdrop-filter: blur(16px);
}

.desktop-qr img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    padding: 4px;
    border-radius: 10px;
    background: white;
    object-fit: contain;
}

.desktop-qr-text { display: flex; flex-direction: column; gap: 3px; }
.desktop-qr-text strong { font-family: 'Manrope', sans-serif; font-size: .78rem; line-height: 1.25; }
.desktop-qr-text span { color: var(--muted); font-size: .68rem; line-height: 1.3; }

@media (max-width: 1120px) {
    .desktop-qr { display: none; }
}

@media (max-width: 720px) {
    body { padding: 0; background-attachment: scroll; }
    .container { min-height: 100vh; padding: 14px 14px 30px; border: 0; border-radius: 0; background: rgba(255,255,255,.58); }
    .profile { padding: 32px 16px 30px; }
    .gallery-nav-btn { display: none !important; }
    .gallery-section { margin-left: 0; margin-right: 0; padding: 16px; border-radius: 22px; }
    .gallery-card { flex-basis: 88%; }
    .locations-section { margin-left: 0; margin-right: 0; padding: 16px; border-radius: 22px; }
    .locations-container { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .corner-button { min-height: 40px; padding: 0 13px; font-size: .8rem; }
    .profile-img { width: 112px; height: 112px; }
    .profile h1 { font-size: 1.55rem; }
    .social-icon { width: 40px; height: 40px; border-radius: 12px; }
    .link-card { min-height: 72px; padding: 14px 52px 14px 16px; }
    .modal-content { padding: 26px 20px 20px; }
    .share-buttons-container { grid-template-columns: 1fr; }
    .location-actions { flex-direction: column; }
    .map-btn, .whatsapp-btn-card, .location-btn { width: 100%; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Testimonios de la bio =====
   Usa las mismas clases que el sitio (.testimonials__grid / .testimonial-card /
   __rating / __text / __author / __avatar). Los colores salen de currentColor
   porque las plantillas de bio no cargan las variables del theme. */
.bio-testimonios {
    margin: 30px auto;
    width: 100%;
    max-width: 680px;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
}
.bio-testimonios-header {
    text-align: center;
    margin-bottom: 18px;
}
.bio-testimonios-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}
.bio-testimonios-header p {
    margin: 0;
    font-size: .88rem;
    opacity: .75;
}
.bio-testimonios .testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 700px) {
    .bio-testimonios .testimonials__grid { grid-template-columns: 1fr 1fr; }
}
.bio-testimonios .testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    background: rgba(127, 127, 127, .08);
    border: 1px solid rgba(127, 127, 127, .22);
    background: color-mix(in srgb, currentColor 7%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.bio-testimonios .testimonial-card__rating {
    color: #f4b740;
    font-size: .85rem;
    margin-bottom: 8px;
}
.bio-testimonios .testimonial-card__text {
    font-size: .92rem;
    line-height: 1.6;
    opacity: .9;
    margin-bottom: 14px;
}
.bio-testimonios .testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.bio-testimonios .testimonial-card__author img,
.bio-testimonios .testimonial-card__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}
.bio-testimonios .testimonial-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .55;
    background: rgba(127, 127, 127, .18);
    background: color-mix(in srgb, currentColor 14%, transparent);
}
.bio-testimonios .testimonial-card__author h3 {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
}
.bio-testimonios .testimonial-card__author p {
    margin: 0;
    font-size: .78rem;
    opacity: .7;
}

/* Carrusel persistente de testimonios */
.bio-testimonios-carrusel { position: relative; }
.bio-testimonios-viewport { overflow: hidden; border-radius: 24px; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.bio-testimonios-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.bio-testimonios .bio-testimonios-track .testimonial-card {
    min-width: 100%; width: 100%; margin: 0; box-sizing: border-box;
    padding: clamp(24px,6vw,38px); border-radius: 0; background: rgba(255,255,255,.96);
}
.bio-testimonios-controles { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:18px; }
.bio-testimonios-btn {
    width:40px; height:40px; display:grid; place-items:center; padding:0; cursor:pointer;
    color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); border-radius:50%;
    transition:transform .2s ease,background .2s ease;
}
.bio-testimonios-btn:hover,.bio-testimonios-btn:focus-visible { background:rgba(255,255,255,.28); transform:translateY(-2px); }
.bio-testimonios-pause[aria-pressed="true"] { color:#6c5ce7; background:#fff; }
.bio-testimonios-dots { display:flex; align-items:center; gap:7px; }
.bio-testimonios-dot { width:8px; height:8px; padding:0; border:0; border-radius:999px; cursor:pointer; background:rgba(255,255,255,.38); transition:width .25s ease,background .25s ease; }
.bio-testimonios-dot.is-active { width:25px; background:#fff; }

/* ===== Preguntas frecuentes de la bio =====
   Usa el acordeon compartido del sitio (.faq-accordion / .faq-item /
   .faq-question / .faq-answer). Los colores salen de currentColor porque
   las plantillas de bio no cargan las variables del theme. */
.bio-faq {
    margin: 30px auto;
    width: 100%;
    max-width: 680px;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
}
.bio-faq-header {
    text-align: center;
    margin-bottom: 22px;
}
.bio-faq-header-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: #6c5ce7;
    background: rgba(255,255,255,.92);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    font-size: 1.2rem;
}
.bio-faq-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}
.bio-faq-header p {
    margin: 0;
    font-size: .88rem;
    opacity: .75;
}
.bio-faq-header-descripcion {
    max-width: 560px;
    margin: 10px auto 0;
    font-size: .88rem;
    line-height: 1.6;
    opacity: .82;
}
.bio-faq .faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bio-faq .faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s ease;
    background: rgba(127, 127, 127, .08);
    border: 1px solid rgba(127, 127, 127, .22);
    background: color-mix(in srgb, currentColor 7%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.bio-faq .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
}
.bio-faq .faq-question h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
}
.bio-faq .faq-question i {
    font-size: .85rem;
    opacity: .6;
    transition: transform .3s ease;
}
.bio-faq .faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.bio-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    font-size: .9rem;
    line-height: 1.6;
    opacity: .85;
    transition: max-height .3s ease, padding .3s ease;
}
.bio-faq .faq-item.active .faq-answer {
    padding: 0 16px 14px;
    max-height: 400px;
}

/* ===== Sistema visual unificado ===== */
.gallery-section,
.locations-section,
.bio-testimonios,
.bio-videos,
.bio-faq {
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: 0 10px 30px rgba(47, 55, 85, .07);
}

.news-heading,
.locations-heading,
.bio-testimonios-header,
.bio-videos-header,
.bio-faq-header {
    margin: 0 0 22px;
    padding: 0;
}

.bio-testimonios-header,
.bio-faq-header {
    text-align: left;
}

.gallery-title,
.locations-title,
.bio-testimonios-header h2,
.bio-faq-header h2 {
    margin: 0 0 5px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.gallery-subtitle,
.locations-subtitle,
.bio-testimonios-header p,
.bio-faq-header p,
.bio-faq-header-descripcion {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    opacity: 1;
}

.bio-faq-header-descripcion {
    max-width: none;
    margin-top: 8px;
}

.news-heading-icon,
.locations-heading-icon,
.bio-testimonios-header-icon,
.bio-faq-header-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin: 0;
    color: var(--accent);
    background: #f0edff;
    border: 1px solid #ded7ff;
    border-radius: 14px;
    box-shadow: none;
}

.bio-testimonios-header,
.bio-faq-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.bio-testimonios-header h2,
.bio-testimonios-header p,
.bio-faq-header h2,
.bio-faq-header p,
.bio-faq-header-descripcion {
    grid-column: 2;
}

.bio-testimonios-header-icon,
.bio-faq-header-icon {
    grid-row: 1 / span 3;
}

.links {
    gap: 10px;
}

.links .link-card:nth-child(odd),
.links .link-card:nth-child(even),
.link-card {
    border-color: var(--line);
    background: var(--surface-solid);
    box-shadow: 0 8px 24px rgba(47, 55, 85, .07);
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(var(--accent), #26b9e8);
}

.gallery-card,
.location-card,
.bio-testimonios .bio-testimonios-track .testimonial-card,
.bio-faq .faq-item {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(47, 55, 85, .07);
}

.bio-testimonios-viewport {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(47, 55, 85, .09);
}

.bio-testimonios-btn {
    color: var(--accent);
    background: #f0edff;
    border-color: #ded7ff;
}

.bio-testimonios-btn:hover,
.bio-testimonios-btn:focus-visible,
.bio-testimonios-pause[aria-pressed="true"] {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.bio-testimonios-dot {
    background: #d6d9e4;
}

.bio-testimonios-dot.is-active {
    background: var(--accent);
}

.bio-faq .faq-item.active {
    border-color: rgba(115, 87, 255, .28);
    box-shadow: 0 10px 28px rgba(115, 87, 255, .1);
}

.bio-faq .faq-item.active .faq-question {
    color: var(--accent-dark);
    background: #f7f5ff;
}

footer {
    margin-top: 16px;
    padding: 24px 16px 8px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
    .gallery-section,
    .locations-section,
    .bio-testimonios,
    .bio-faq {
        padding: 18px;
        border-radius: 20px;
    }

    .bio-faq-header {
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 11px;
    }

    .news-heading-icon,
    .locations-heading-icon,
    .bio-testimonios-header-icon,
    .bio-faq-header-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* ===== Diseno por enlace de la bio =====
   El color llega en la variable --link-color que pone el HTML de cada boton,
   y el estilo como clase modificadora. Sin ninguno de los dos, el boton
   conserva el aspecto que le da esta plantilla. */
.link-card.bio-link--relleno,
.link-button.bio-link--relleno {
    background: var(--link-color, var(--accent)) !important;
    border-color: var(--link-color, var(--accent)) !important;
    color: #fff !important;
}
.link-card.bio-link--borde,
.link-button.bio-link--borde {
    background: transparent !important;
    border: 2px solid var(--link-color, var(--accent)) !important;
    color: var(--link-color, var(--accent)) !important;
}
.link-card.bio-link--suave,
.link-button.bio-link--suave {
    background: rgba(127, 127, 127, .12) !important;
    background: color-mix(in srgb, var(--link-color, var(--accent)) 15%, transparent) !important;
    border: 1px solid var(--link-color, var(--accent)) !important;
    color: var(--link-color, var(--accent)) !important;
}

/* El texto interno hereda: si no, los h2/h3 de la plantilla pisan el color */
.link-card[class*="bio-link--"] h2,
.link-card[class*="bio-link--"] h3,
.link-card[class*="bio-link--"] p,
.link-card[class*="bio-link--"] span,
.link-button[class*="bio-link--"] h2,
.link-button[class*="bio-link--"] h3,
.link-button[class*="bio-link--"] p,
.link-button[class*="bio-link--"] span {
    color: inherit !important;
}

.bio-link-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-link-heading .link-title {
    margin-top: 0;
}

.bio-link-icono {
    flex: 0 0 auto;
    margin: 0;
}

/* Alineacion del texto del boton, elegida enlace por enlace */
.link-card.bio-link-txt--izquierda,
.link-button.bio-link-txt--izquierda {
    text-align: left !important;
    justify-content: flex-start !important;
}
.bio-link-txt--izquierda .bio-link-heading { justify-content: flex-start; }
.bio-link-txt--izquierda .link-title,
.bio-link-txt--izquierda .link-subtitle { text-align: left !important; }

.link-card.bio-link-txt--centro,
.link-button.bio-link-txt--centro {
    text-align: center !important;
    justify-content: center !important;
}
.bio-link-txt--centro .bio-link-heading { justify-content: center; }
.bio-link-txt--centro .link-title,
.bio-link-txt--centro .link-subtitle { text-align: center !important; }

.link-card.bio-link-txt--derecha,
.link-button.bio-link-txt--derecha {
    text-align: right !important;
    justify-content: flex-end !important;
}
.bio-link-txt--derecha .bio-link-heading { justify-content: flex-end; }
.bio-link-txt--derecha .link-title,
.bio-link-txt--derecha .link-subtitle { text-align: right !important; }

/* ===== Contenidos de la bio =====
   Usa las mismas clases que el bloque de blog del sitio (.blog__grid /
   .blog-card / __image / __content / __title / __excerpt / __link). Los
   colores salen de currentColor porque las plantillas de bio no cargan
   las variables del theme. */
.bio-contenidos {
    margin: 30px auto;
    width: 100%;
    max-width: 680px;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
}
.bio-contenidos-header {
    text-align: center;
    margin-bottom: 18px;
}
.bio-contenidos-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}
.bio-contenidos-header p {
    margin: 0;
    font-size: .88rem;
    opacity: .75;
}
.bio-contenidos .blog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 700px) {
    .bio-contenidos .blog__grid { grid-template-columns: 1fr 1fr; }
}
.bio-contenidos .blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(127, 127, 127, .08);
    border: 1px solid rgba(127, 127, 127, .22);
    background: color-mix(in srgb, currentColor 7%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.bio-contenidos .blog-card__image img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.bio-contenidos .blog-card__content {
    padding: 14px 16px 16px;
}
.bio-contenidos .blog-card__title {
    margin: 0 0 6px;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
}
.bio-contenidos .blog-card__subtitle {
    margin: 0 0 8px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.45;
    opacity: .9;
}
.bio-contenidos .blog-card__excerpt {
    margin: 0 0 10px;
    font-size: .86rem;
    line-height: 1.55;
    opacity: .8;
}
.bio-contenidos .blog-card__link {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    opacity: .85;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px;
}
.bio-contenidos .blog-card__link:hover {
    opacity: 1;
}

/* ===== Carrusel de contenidos =====
   Mismo comportamiento que el de testimonios, pero con sus propias clases para
   no pisarle el aspecto. Los colores salen de currentColor, como el resto. */
.bio-contenidos-carrusel {
    position: relative;
}
.bio-contenidos-viewport {
    overflow: hidden;
    border-radius: 14px;
}
.bio-contenidos-track {
    display: flex;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.bio-contenidos-track > .blog-card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}
.bio-contenidos-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}
.bio-contenidos-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: .85rem;
    color: inherit;
    background: rgba(127, 127, 127, .16);
    background: color-mix(in srgb, currentColor 14%, transparent);
    transition: transform .2s ease, background .2s ease;
}
.bio-contenidos-btn:hover,
.bio-contenidos-btn:focus-visible {
    background: color-mix(in srgb, currentColor 26%, transparent);
    transform: translateY(-2px);
}
.bio-contenidos-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.bio-contenidos-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(127, 127, 127, .35);
    background: color-mix(in srgb, currentColor 30%, transparent);
    transition: width .25s ease, background .25s ease;
}
.bio-contenidos-dot.is-active {
    width: 25px;
    background: currentColor;
}

/* ===== Productos de la bio =====
   Vitrina de catalogo con el mismo lenguaje visual del bloque de novedades:
   tarjeta blanca contenedora, encabezado con icono y riel horizontal con
   scroll-snap. El riel se maneja con los botones .productos-nav (script.js). */
.productos-section {
    position: relative;
    padding: 20px;
    border: 1px solid #e4e7f0;
    border-radius: 26px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 38px rgba(47,55,85,.09);
}

.productos-heading {
    margin-bottom: 18px;
    padding: 0 2px 17px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eceef4;
}

.productos-heading-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, #0ea47a, #12b7a4);
    box-shadow: 0 9px 22px rgba(14,164,122,.24);
    font-size: 1.12rem;
}

.productos-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #0b8f6b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.productos-title {
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 1.45rem;
    letter-spacing: -.025em;
    text-align: left;
}

.productos-subtitle {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
    text-align: left;
}

.productos-rail {
    display: flex;
    gap: 14px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.productos-rail::-webkit-scrollbar { display: none; }

/** Envuelve el riel para que las flechas se posicionen sobre las tarjetas */
.productos-rail-wrap { position: relative; }

.producto-card {
    position: relative;
    flex: 0 0 calc(50% - 7px);
    min-width: min(260px, 74vw);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7e9f1;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(47,55,85,.1);
    scroll-snap-align: start;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14,164,122,.28);
    box-shadow: 0 20px 44px rgba(47,55,85,.15);
}

.producto-card__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #eef1f7;
}

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

.producto-card:hover .producto-card__media img { transform: scale(1.045); }

/** Cuando el producto no tiene foto cargada, para que la tarjeta no quede coja */
.producto-card__media--vacia {
    display: grid;
    place-items: center;
    color: #b9c2d4;
    background: linear-gradient(140deg, #f3f5fa, #e8ecf5);
    font-size: 2rem;
}

.producto-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    color: white;
    background: rgba(224,49,86,.86);
    backdrop-filter: blur(8px);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.producto-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 10px;
}

.producto-card__title {
    margin-bottom: 6px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.018em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.producto-card__bajada {
    margin-bottom: 12px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: .86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.producto-card__precios {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.producto-card__precio {
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

/** El precio anterior y el descuento viajan juntos: si no caben, bajan en bloque */
.producto-card__oferta {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.producto-card__antes {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
    text-decoration: line-through;
}

.producto-card__dcto {
    padding: 3px 8px;
    border-radius: 999px;
    color: #0b8f6b;
    background: rgba(14,164,122,.12);
    font-size: .72rem;
    font-weight: 800;
}

.producto-card__cta {
    margin: 14px 20px 20px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #0ea47a, #0b8f6b);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.producto-card__cta i { font-size: .75rem; transition: transform .2s ease; }
.producto-card__cta:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(14,164,122,.26); }
.producto-card__cta:hover i { transform: translateX(3px); }

/** Un solo producto: la tarjeta se abre a lo ancho, como en novedades */
@media (min-width: 721px) {
    .producto-card:only-child { flex-basis: 100%; min-width: 100%; display: grid; grid-template-columns: minmax(240px, 42%) 1fr; grid-template-rows: 1fr auto; }
    .producto-card:only-child .producto-card__media { grid-column: 1; grid-row: 1 / -1; height: 100%; min-height: 240px; }
    .producto-card:only-child .producto-card__content { grid-column: 2; grid-row: 1; padding: 28px 28px 10px; }
    .producto-card:only-child .producto-card__title { font-size: 1.3rem; -webkit-line-clamp: 3; }
    .producto-card:only-child .producto-card__bajada { -webkit-line-clamp: 3; }
    .producto-card:only-child .producto-card__cta { grid-column: 2; grid-row: 2; margin: 14px 28px 28px; }
}

.productos-nav {
    position: absolute;
    top: 97px; /* centrado sobre la foto de la tarjeta (190px de alto) */
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: white;
    box-shadow: 0 10px 24px rgba(47,55,85,.18);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.productos-nav:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 14px 30px rgba(47,55,85,.24); }
.productos-nav.prev { left: 6px; }
.productos-nav.next { right: 6px; }

@media (max-width: 720px) {
    .producto-card { flex: 0 0 78%; min-width: 78%; }
    .producto-card__media { height: 168px; }
    .productos-nav { display: none !important; }
}

/* ===== Productos: se suma al sistema visual unificado =====
   El bloque de arriba define la estructura; aca se iguala a las demas
   secciones (tarjeta blanca, chip lila del encabezado y acento morado). */
.productos-section {
    padding: clamp(20px, 4vw, 28px);
    border-color: var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: 0 10px 30px rgba(47, 55, 85, .07);
}

.productos-heading {
    margin: 0 0 22px;
    padding: 0;
}

.productos-heading-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: var(--accent);
    background: #f0edff;
    border: 1px solid #ded7ff;
    border-radius: 14px;
    box-shadow: none;
}

.productos-eyebrow { color: var(--accent-dark); }

.productos-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
}

.productos-subtitle { font-size: .9rem; }

.producto-card {
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(47, 55, 85, .07);
}

.producto-card:hover {
    border-color: rgba(115, 87, 255, .25);
    box-shadow: 0 20px 44px rgba(63, 57, 112, .15);
}

/** El descuento se lee como precio rebajado, no como un dato mas */
.producto-card__dcto {
    color: #d63f66;
    background: rgba(224, 49, 86, .12);
}

.producto-card__cta { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.producto-card__cta:hover { box-shadow: 0 9px 22px rgba(84, 56, 223, .24); }

@media (max-width: 560px) {
    .productos-section { padding: 18px; border-radius: 20px; }
    .productos-heading-icon { width: 40px; height: 40px; flex-basis: 40px; }
}

/* ===== Testimonios: version de la plantilla 001 =====
   El bloque es alto por naturaleza (el carrusel mide lo que mide el testimonio
   mas largo), asi que todo lo que rodea al texto va compacto: el resumen de
   puntaje viaja dentro del encabezado como pastilla y no como franja aparte. */
.bio-testimonios-eyebrow {
    grid-column: 2;
    display: block;
    margin-bottom: 3px;
    color: var(--accent-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.bio-testimonios-header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    margin-bottom: 16px;
}

/** Pastilla con el promedio, a la derecha del titulo */
.bio-testimonios-resumen {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    margin-left: 14px;
    padding: 7px 14px 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7f5ff;
}

.bio-testimonios-resumen__nota {
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.bio-testimonios-resumen__detalle { min-width: 0; }

.bio-testimonios-resumen__estrellas {
    margin-bottom: 1px;
    color: #f4b740;
    font-size: .72rem;
    letter-spacing: 1px;
}

.bio-testimonios-resumen__detalle span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    white-space: nowrap;
}

.bio-testimonios .bio-testimonios-track .testimonial-card {
    position: relative;
    padding: clamp(20px, 4vw, 26px);
    background: #fff;
}

.testimonial-card__comilla {
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--accent);
    opacity: .13;
    font-size: 2.1rem;
    line-height: 1;
    pointer-events: none;
}

.bio-testimonios .testimonial-card__rating {
    margin-bottom: 10px;
    color: #f4b740;
    font-size: .82rem;
    letter-spacing: 2px;
}

.bio-testimonios .testimonial-card__text {
    position: relative;
    margin-bottom: 16px;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.62;
    opacity: 1;
}

.bio-testimonios .testimonial-card__author {
    padding-top: 14px;
    gap: 11px;
    border-top: 1px solid var(--line);
}

.bio-testimonios .testimonial-card__author img,
.bio-testimonios .testimonial-card__avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(47, 55, 85, .15);
}

.bio-testimonios .testimonial-card__avatar {
    color: var(--accent);
    background: #f0edff;
    opacity: 1;
}

.bio-testimonios .testimonial-card__avatar--inicial {
    color: var(--accent-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
}

.testimonial-card__author-datos { min-width: 0; }

.bio-testimonios .testimonial-card__author h3 {
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: .94rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.bio-testimonios .testimonial-card__author p {
    margin-top: 2px;
    color: var(--muted);
    font-size: .78rem;
    opacity: 1;
}

.bio-testimonios-controles { margin-top: 12px; }

.bio-testimonios-btn {
    width: 34px;
    height: 34px;
    font-size: .82rem;
}

/** Bajo 620px la pastilla no cabe al lado del titulo y pasa a ocupar su fila */
@media (max-width: 620px) {
    .bio-testimonios-header { grid-template-columns: 46px minmax(0, 1fr); }

    .bio-testimonios-resumen {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-content: flex-start;
        margin: 12px 0 0;
        border-radius: var(--radius-md);
    }

    .testimonial-card__comilla { font-size: 1.9rem; top: 12px; right: 14px; }
}

@media (max-width: 560px) {
    .bio-testimonios-header { grid-template-columns: 40px minmax(0, 1fr); }
}


/* ===== Novedades: version de la plantilla 001 =====
   La fecha se muestra sobre la foto (dato real) en lugar del sello "Nuevo",
   que se pintaba igual en todos los articulos. Leer es una accion secundaria:
   el boton va en lila suave y se rellena al pasar el mouse, para que el CTA
   solido siga siendo el de productos. */
.gallery-rail-wrap { position: relative; }

.gallery-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/** Articulo sin imagen cargada, para que la tarjeta no arranque en el texto */
.gallery-image--vacia {
    display: grid;
    place-items: center;
    color: #b9c2d4;
    background: linear-gradient(140deg, #f3f5fa, #e8ecf5);
    font-size: 2.2rem;
}
.gallery-image--vacia::after { display: none; }

.gallery-image-fecha {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
    font-size: .72rem;
    font-weight: 700;
}

.gallery-image--vacia .gallery-image-fecha {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-color: var(--line);
}

.gallery-text h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-text h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.gallery-card:hover .gallery-text h3 a { color: var(--accent-dark); }

.ver-mas-btn {
    color: var(--accent-dark);
    background: #f0edff;
    border: 1px solid #ded7ff;
}

.ver-mas-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent-dark);
}

/** Ahora que el riel tiene su propio contenedor relativo, las flechas se
    centran sobre la foto (210px) y no a media altura de toda la pagina */
.gallery-nav-btn { top: 107px; }

@media (max-width: 720px) {
    .gallery-nav-btn { display: none !important; }
}

/* ===== Descripcion del encabezado de un bloque =====
   Comentarios y preguntas frecuentes traen titulo, bajada y descripcion desde
   el admin. La descripcion sale del editor, asi que puede venir con parrafos,
   listas y enlaces: va fuera del encabezado y alineada a la izquierda, que es
   como se lee un texto largo. */
.bio-bloque-descripcion {
    max-width: none;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: #f7f5ff;
    color: var(--ink-muted);
    font-size: .88rem;
    line-height: 1.65;
    text-align: left;
    opacity: 1;
}
.bio-bloque-descripcion > *:last-child { margin-bottom: 0; }
.bio-bloque-descripcion p { margin: 0 0 8px; }
.bio-bloque-descripcion ul,
.bio-bloque-descripcion ol { margin: 0 0 8px; padding-left: 18px; }
.bio-bloque-descripcion li { margin-bottom: 4px; }
.bio-bloque-descripcion strong { color: var(--ink); font-weight: 700; }
.bio-bloque-descripcion a { color: var(--accent-dark); text-decoration: underline; }

/* Jerarquia del encabezado: los tres niveles tienen que leerse distintos.
   Titulo grande y solido, bajada intermedia, descripcion en cuerpo de texto. */
.gallery-subtitle,
.locations-subtitle,
.productos-subtitle,
.bio-testimonios-header p,
.bio-faq-header p {
    color: #4b5666;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}
.bio-bloque-descripcion {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 400;
}

/** Fuentes de emoji declaradas para la biografia: en esta plantilla el texto
    ya tiene medida de lectura, solo faltaba que los emoji se vean igual en
    los sistemas que no las eligen solos. */
.profile > p, .profile .bio {
    font-family: 'DM Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/** Sucursal sin foto cargada: el mismo hueco que usan novedades y productos.
    Con esto todas las tarjetas de la grilla miden igual y ya no hace falta la
    regla con :has(), que ademas no corre en navegadores viejos. */
.location-image--vacia {
    display: grid;
    place-items: center;
    color: #b9c2d4;
    background: linear-gradient(140deg, #f3f5fa, #e8ecf5);
    font-size: 2.2rem;
}
.location-image--vacia::after { display: none; }
.location-image--vacia .location-badge {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-color: var(--line);
}

/* ---- Bloque de videos ----
   Hereda la paleta de la plantilla: los colores salen de currentColor y de
   transparencias, no de valores fijos. El ancho de la tarjeta lo fija el riel. */
.bio-videos { margin-top: 26px; }

.bio-videos-header-descripcion {
    margin: 8px 0 12px;
    line-height: 1.6;
    opacity: .78;
}

.video-card {
    flex: 0 0 auto;
    width: 260px;
    max-width: 82vw;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(128, 128, 128, .22);
}

.video-card__media {
    position: relative;
    width: 100%;
    /* 16:9, que es como se graban casi todos */
    padding-top: 56.25%;
    background: rgba(0, 0, 0, .35);
}

.video-card__media video,
.video-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__body { padding: 12px 14px 14px; }

.video-card__title {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.35;
}

.video-card__bajada {
    margin: 0 0 6px;
    font-size: .84rem;
    opacity: .75;
}

.video-card__text {
    margin: 0;
    font-size: .86rem;
    line-height: 1.55;
    opacity: .85;
}

.video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: currentColor;
    text-decoration: none;
    opacity: .9;
}

.video-card__link:hover { opacity: 1; }
.video-card__link i { font-size: .78rem; }

@media (max-width: 480px) {
    .video-card { width: 232px; }
}

/* ===== Bloque de videos: mismo trato que los demas (001) ===== */
.bio-videos-header h2 {
    margin: 0 0 5px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}
.bio-videos-header p {
    margin: 0;
    color: #4b5666;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 1;
}
.bio-videos-header-descripcion {
    max-width: none;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: #f7f5ff;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.65;
    opacity: 1;
}
.bio-videos .video-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(47, 55, 85, .1);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bio-videos .video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(115, 87, 255, .25);
    box-shadow: 0 20px 44px rgba(63, 57, 112, .15);
}
.bio-videos .video-card__title { color: var(--ink); font-family: 'Manrope', sans-serif; font-weight: 700; }
.bio-videos .video-card__bajada,
.bio-videos .video-card__text { color: var(--ink-muted); opacity: 1; }

/** El bloque de videos traia su descripcion al 78%: con la caja compartida
    del resto de los bloques ya no hace falta atenuarla */
.bio-videos-header-descripcion { opacity: 1; }

/* ===== Videos en el riel (001) =====
   La tarjeta venia con un ancho fijo de 260px, asi que con un solo video
   quedaba chica y con medio bloque vacio al lado. Ahora usa el mismo riel que
   novedades: dos por vista, y cuando hay una sola toma todo el ancho. */
.bio-videos .video-card {
    flex: 0 0 calc(50% - 7px);
    width: auto;
    max-width: none;
    min-width: min(320px, 86vw);
    scroll-snap-align: start;
}

/** Un solo video: ocupa el bloque completo y el reproductor se ve grande */
.bio-videos .video-card:only-child {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.bio-videos .video-card__body { padding: 18px 20px 20px; }
.bio-videos .video-card:only-child .video-card__body { padding: 22px 26px 24px; }

@media (max-width: 720px) {
    .bio-videos .video-card { flex: 0 0 86%; min-width: 86%; }
    .bio-videos .video-card:only-child { flex-basis: 100%; min-width: 100%; }
}

/* ===== Video: portada con play y popup (001) ===== */
.video-card__media--play {
    display: block;
    width: 100%;
    /* el 56.25% arma la caja 16:9: si se resetea el padding, la tarjeta colapsa */
    padding: 56.25% 0 0;
    border: 0;
    background: #e8edf3;
    cursor: pointer;
    font: inherit;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
    font-size: 1.1rem;
    padding-left: 4px;
    transition: transform .22s ease, background .22s ease;
}
.video-card__media--play:hover .video-card__play {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
}

/** El popup: el video entra completo, sin recorte */
.video-modal-content {
    width: min(920px, 100%);
    max-width: 920px;
    padding: 18px;
}

.video-modal-title {
    margin: 0 34px 12px 0;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
}

.video-modal-player {
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.video-modal-player video {
    display: block;
    width: 100%;
    max-height: min(72vh, 620px);
    /* contain: el video se ve entero aunque sea vertical */
    object-fit: contain;
    background: #000;
}

/* ===== Texto de la tarjeta de video (001) =====
   Los tres niveles se veian casi iguales: bajada y descripcion compartian
   color y tamano. Ahora el titulo pesa, la bajada es el nivel intermedio y
   la descripcion es cuerpo de texto, igual que en el resto de los bloques. */
.bio-videos .video-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 6px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.018em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bio-videos .video-card__bajada {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: #4b5666;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bio-videos .video-card__text {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/** El boton del video, con el mismo aspecto secundario que "Leer articulo" */
.bio-videos .video-card__link {
    margin-top: 14px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #ded7ff;
    border-radius: 12px;
    background: #f0edff;
    color: var(--accent-dark);
    font-size: .86rem;
    font-weight: 700;
    opacity: 1;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bio-videos .video-card__link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}
.bio-videos .video-card__link i { transition: transform .2s ease; }
.bio-videos .video-card__link:hover i { transform: translateX(3px); }

/** Con un solo video la tarjeta es ancha: el texto no necesita recortarse */
.bio-videos .video-card:only-child .video-card__title { -webkit-line-clamp: 3; font-size: 1.2rem; }
.bio-videos .video-card:only-child .video-card__bajada { -webkit-line-clamp: 3; }
.bio-videos .video-card:only-child .video-card__text { -webkit-line-clamp: 5; }

/** En el popup, bajo el titulo, con la misma jerarquia */
.video-modal-bajada {
    margin: -6px 34px 12px 0;
    color: #4b5666;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

/* ===== Popup del video: solo el video =====
   Sin titulo ni bajada: la tarjeta ya los muestra y en el popup solo estorban.
   La tarjeta blanca desaparece y queda el video sobre el fondo oscuro, con la
   X flotando en la esquina de la pantalla. */
.video-modal-title,
.video-modal-bajada { display: none; }

.video-modal-content {
    width: min(1000px, 100%);
    max-width: 1000px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.video-modal .close-modal {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.video-modal .close-modal:hover {
    color: #fff;
    background: #7357ff;
    transform: rotate(90deg);
}

.video-modal-player {
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.video-modal-player video {
    display: block;
    width: 100%;
    max-height: min(80vh, 720px);
    object-fit: contain;
    background: #000;
}

/** El QR se mostraba a 64px cuando el archivo mide 370px: a esa escala los
    modulos se juntan y la camara no lo lee. Sube a 132px, con mas zona
    silenciosa alrededor, y el panel pasa a vertical para no ensancharse. */
.desktop-qr {
    width: auto;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
    text-align: center;
}
.desktop-qr img {
    width: 132px;
    height: 132px;
    flex: 0 0 auto;
    padding: 8px;
}
.desktop-qr-text { align-items: center; gap: 2px; }
