* { margin: 0; padding: 0; box-sizing: border-box; }

    body {
        background: var(--bg-value);
        color: var(--text-color);
        font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem 2.5rem;
        min-height: 100vh;
    }
    .bio-card {
        max-width: var(--card-max-width);
        width: 100%;
        background: var(--card-color);
        color: var(--card-text-color);
        border-radius: 36px;
        box-shadow: 0 16px 40px -8px rgba(0, 20, 10, 0.12);
        overflow: hidden;
        padding: 0;
        position: relative;
    }
    .bio-card-body {
        padding: 1.8rem 1.5rem 1.2rem;
    }

    .profile-header { position: relative; width: 100%; }
    .cover-photo {
    	width: 100%;
    	height: var(--cover-height);
    	background: var(--bg-color);
    	overflow: hidden;
	}
	.cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

	@media (max-width: 640px) {
    	.cover-photo.ratio-known {
        	height: auto;
        	aspect-ratio: var(--cover-ratio);
        	min-height: 140px;
        	max-height: 280px;
    	}
	}

	@media (max-width: 640px) {
    	:root {
        	--logo-size: clamp(72px, var(--logo-size-desktop), 140px);
        	--logo-height: calc(var(--logo-size) * var(--logo-h-factor));
    	}
	}
    .profile-logo-wrap {
        position: relative;
        padding: 0 1.5rem;
        margin-top: calc(-1 * var(--logo-size) / 2);
        display: flex;
        justify-content: flex-start;
        pointer-events: none;
    }
    .profile-logo {
        width: var(--logo-size);
        height: var(--logo-height);
        border-radius: var(--logo-radius);
        border: var(--logo-border-w) solid var(--logo-border-c);
        background: white;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        position: relative;
        flex-shrink: 0;
        pointer-events: auto;
    }
    .profile-logo img {
        width: 100%; height: 100%; object-fit: cover; display: block;
        transform: scale(var(--logo-zoom));
        transform-origin: center;
    }
    .profile-logo-empty {
        display: flex; align-items: center; justify-content: center;
        color: #94a3b8; font-size: 2rem;
    }
    .section { margin-bottom: 2.2rem; }
    .section:last-child { margin-bottom: 0.2rem; }

    .share-btn {
        position: absolute; top: 10px; right: 10px;
        z-index: 20;
        background: rgba(255,255,255,0.9); border: none;
        border-radius: 50%; width: 40px; height: 40px;
        font-size: 18px; color: #1e2b2b; cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: 0.2s;
    }
    .share-btn:hover { transform: scale(1.05); background: white; }

    .brand { text-align: center; margin-bottom: 1.2rem; position: relative; }
    .brand-logo {
        font-size: 2.8rem; font-weight: 600; letter-spacing: -0.02em;
        display: flex; align-items: center; justify-content: center;
        gap: 0.5rem; flex-wrap: wrap;
        color: var(--card-text-color);
    }
    .brand-logo i { font-size: 2.6rem; }
    .brand-logo img { max-height: 150px; width: auto; }
    .brand-name {
        font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em;
        line-height: 1.2; text-align: center;
        color: var(--card-text-color); margin-top: 0.4rem;
    }
    .brand-location {
        display: flex; align-items: center; justify-content: center;
        gap: 0.4rem; font-size: 0.95rem; padding: 0.3rem 1.2rem;
        border-radius: 100px; width: fit-content; margin: 0.5rem auto 0.6rem;
        font-weight: 450; background: var(--fill-color); color: var(--text-color);
    }
    .brand-address { font-size: 0.85rem; color: var(--text-color); margin: 0.2rem 0 0.4rem; }
    .brand-desc {
        font-size: 0.95rem; max-width: 90%;
        margin: 0.4rem auto 0.7rem; line-height: 1.4; font-weight: 400;
        color: var(--card-text-color); text-align: center;
        padding: 0; border: none; background: transparent;
    }
    .section-title {
        font-weight: 600; font-size: 1.05rem; margin-bottom: 0.7rem;
        display: flex; align-items: center; gap: 0.5rem;
        color: var(--card-text-color);
    }
    .section-title i { font-size: 1rem; }

    /* GALERÍA 3x3 */
    .gallery-carousel {
        position: relative; overflow: hidden; border-radius: 16px;
        touch-action: pan-y; cursor: grab;
        user-select: none; -webkit-user-select: none;
    }
    .gallery-carousel:active { cursor: grabbing; }
    .gallery-track {
        display: flex; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }
    .gallery-slide { flex: 0 0 100%; min-width: 0; padding: 0 1px; }
    .gallery-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .gallery-cell {
        aspect-ratio: 1/1; overflow: hidden; border-radius: 8px;
        background: #d9e4df; cursor: zoom-in; transition: transform 0.15s;
    }
    .gallery-cell:hover { transform: scale(1.02); }
    .gallery-cell img, .gallery-cell video {
        width: 100%; height: 100%; object-fit: cover;
        display: block; pointer-events: none;
    }
    .gallery-dots {
        display: flex; justify-content: center; gap: 6px;
        margin-top: 10px; flex-wrap: wrap;
    }
    .gallery-dot {
        width: 8px; height: 8px; border-radius: 50%;
        background: #cbd5e1; cursor: pointer;
        transition: 0.2s; border: none; padding: 0;
    }
    .gallery-dot.active { background: #2563eb; width: 20px; border-radius: 4px; }
    .gallery-hint {
        text-align: center; font-size: 0.7rem; color: #9ca3af;
        margin-top: 6px; opacity: 0.7;
    }

    /* LIGHTBOX */
    .lb {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.94); z-index: 9999;
        align-items: center; justify-content: center;
        padding: 60px 70px 80px; touch-action: none;
    }
    .lb.open { display: flex; }
    .lb-content {
        position: relative; width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        overflow: hidden;
    }
    .lb-slide {
        position: absolute; top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%; max-height: 100%;
        display: flex; flex-direction: column; align-items: center;
        justify-content: center; gap: 12px;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
        will-change: transform, opacity;
    }
    .lb-slide img, .lb-slide video {
        max-width: 100%; max-height: 78vh; object-fit: contain;
        border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        user-select: none; -webkit-user-drag: none;
    }
    .lb-slide.from-right { transform: translate(calc(-50% + 120vw), -50%); opacity: 0; }
    .lb-slide.from-left  { transform: translate(calc(-50% - 120vw), -50%); opacity: 0; }
    .lb-slide.to-left    { transform: translate(calc(-50% - 120vw), -50%); opacity: 0; }
    .lb-slide.to-right   { transform: translate(calc(-50% + 120vw), -50%); opacity: 0; }

    .lb-caption {
        color: rgba(255, 255, 255, 0.85); font-size: 0.9rem;
        text-align: center; max-width: 90%; padding: 0 12px; line-height: 1.4;
    }
    .lb-btn {
        position: absolute; background: rgba(255, 255, 255, 0.12);
        color: white; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: 0.15s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
    .lb-btn:active { transform: scale(0.94); }
    .lb-close {
        top: 16px; right: 16px; width: 42px; height: 42px;
        border-radius: 50%; font-size: 22px; line-height: 1;
    }
    .lb-prev, .lb-next {
        top: 50%; transform: translateY(-50%);
        width: 48px; height: 48px; border-radius: 50%; font-size: 18px;
    }
    .lb-prev { left: 16px; }
    .lb-next { right: 16px; }
    .lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.94); }
    .lb-play {
        top: 16px; right: 68px; width: 42px; height: 42px;
        border-radius: 50%; font-size: 15px;
    }
    .lb-play.active { background: #2563eb; color: white; }
    .lb-play.active:hover { background: #1d4ed8; }
    .lb-counter {
        position: absolute; top: 22px; left: 20px;
        color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; font-weight: 500;
        background: rgba(255, 255, 255, 0.1); padding: 4px 12px; border-radius: 20px;
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }

    /* SERVICIOS */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    .service-card {
        background: var(--fill-color);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #d7e6df;
        transition: 0.2s;
        color: var(--text-color);
        cursor: pointer;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-color: #3f8266;
    }
    .service-card .service-photo {
        width: 100%; aspect-ratio: 4/3; object-fit: cover;
        display: block; background: #d9e4df;
    }
    .service-card .service-body {
        padding: 0.6rem 0.5rem 0.7rem;
        display: flex; flex-direction: column; align-items: center; gap: 3px;
    }
    .service-card .service-icon { font-size: 1.8rem; margin-bottom: 2px; }
    .service-card .service-name { font-size: 0.85rem; font-weight: 500; line-height: 1.25; }
    .service-card .service-price-mini { font-size: 0.75rem; color: #16a34a; font-weight: 600; }

    /* MODAL SERVICIO */
    .sv-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.65); z-index: 9998;
        align-items: center; justify-content: center; padding: 20px;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .sv-modal.open { display: flex; }
    .sv-modal-box {
        background: var(--card-color); color: var(--card-text-color);
        border-radius: 24px; overflow: hidden;
        width: 100%; max-width: 420px; max-height: 88vh;
        display: flex; flex-direction: column;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
        animation: svIn 0.25s ease;
        position: relative;
    }
    @keyframes svIn {
        from { opacity: 0; transform: scale(0.96) translateY(8px); }
        to   { opacity: 1; transform: scale(1) translateY(0); }
    }
    .sv-close {
        position: absolute; top: 12px; right: 12px;
        width: 36px; height: 36px; border-radius: 50%;
        background: rgba(0, 0, 0, 0.45); color: white; border: none;
        cursor: pointer; font-size: 20px; line-height: 1;
        display: flex; align-items: center; justify-content: center;
        z-index: 2; transition: 0.15s;
    }
    .sv-close:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.05); }
    .sv-hero {
        width: 100%; aspect-ratio: 16/10;
        background: linear-gradient(135deg, #cfe4d8, #9bb9ab);
        display: flex; align-items: center; justify-content: center;
        overflow: hidden; flex-shrink: 0;
    }
    .sv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .sv-hero-icon {
        font-size: 4.5rem; color: white;
        text-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .sv-body { padding: 1.2rem 1.4rem 1.4rem; overflow-y: auto; }
    .sv-title {
        font-size: 1.35rem; font-weight: 600;
        color: var(--card-text-color); line-height: 1.25;
        margin-bottom: 0.5rem;
    }
    .sv-price {
        display: inline-block; font-size: 1rem; font-weight: 600;
        color: #16a34a; background: rgba(22, 163, 74, 0.1);
        padding: 0.3rem 0.9rem; border-radius: 20px;
        margin-bottom: 0.8rem;
    }
    .sv-desc {
        font-size: 0.95rem; line-height: 1.5;
        color: var(--card-text-color); opacity: 0.85;
    }

    /* FORM */
    .form-card {
        background: var(--fill-color);
        border-radius: 28px; padding: 1.2rem 1.2rem 1rem;
        border: 1px solid #dae9e1;
    }
    .form-row { display: flex; flex-direction: column; gap: 0.6rem; }
    .form-row input, .form-row select, .form-row textarea {
        padding: 0.7rem 1rem; border: 1px solid #cdded4; border-radius: 40px;
        font-size: 0.95rem; background: white; transition: 0.15s;
        font-family: inherit; color: #1e2b2b;
    }
    .form-row textarea { border-radius: 24px; resize: vertical; min-height: 70px; }
    .form-row input:focus, .form-row select:focus, .form-row textarea:focus {
        outline: 2px solid #3f8266; border-color: transparent;
    }
    .btn-submit {
        background: #1c4b3c; color: white; border: none; padding: 0.8rem;
        border-radius: 60px; font-weight: 600; font-size: 1rem;
        display: flex; align-items: center; justify-content: center;
        gap: 0.6rem; cursor: pointer; transition: 0.1s;
        letter-spacing: 0.3px; border: 1px solid #1a4033;
    }
    .btn-submit:hover { background: #143d30; }

    /* BIOLINKS */
    .biolinks { display: flex; flex-direction: column; gap: 0.6rem; }
    .biolink-item {
        background: var(--fill-color); border-radius: 60px;
        padding: 0.75rem 1.2rem; display: flex; align-items: center;
        gap: 0.9rem; text-decoration: none; font-weight: 500;
        border: 1px solid #d6e7de; transition: all 0.1s;
        font-size: 0.98rem; color: var(--text-color);
    }
    .biolink-item i { width: 1.6rem; font-size: 1.2rem; color: currentColor; text-align: center; }
    .biolink-item span { flex: 1; }
    .biolink-item .arrow { font-size: 0.9rem; }
    .biolink-item:hover { transform: translateX(4px); }

    .closing-message {
        text-align: center; font-style: italic; padding: 0.4rem 0.2rem;
        border-radius: 60px; font-size: 0.95rem; border: 1px solid #d5e6dc;
        letter-spacing: -0.01em; background: var(--fill-color); color: var(--text-color);
    }

    .areas { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; justify-content: flex-start; }
    .areas span {
        background: var(--fill-color); padding: 0.2rem 1rem; border-radius: 30px;
        border: 1px solid #caddd3; font-size: 0.85rem; font-weight: 450;
        color: var(--text-color);
    }

    /* HORARIO */
    .schedule-block {
        background: var(--fill-color);
        border: 1px solid #cde0d5;
        border-radius: 16px;
        padding: 0.9rem 1.1rem;
        color: #ffffff;
    }
    .schedule-line {
        display: flex; gap: 0.75rem; font-size: 0.85rem;
        padding: 0.35rem 0; line-height: 1.4;
    }
    .schedule-line .sched-day-name {
        width: 80px; flex-shrink: 0; font-weight: 500;
    }
    .schedule-line .closed { font-weight: 500; }

    /* QR */
    .qr-block { display: flex; justify-content: flex-start; padding: 0.3rem 0; }
    .qr-block-inner {
        background: #ffffff; padding: 8px; border-radius: 10px;
        display: inline-flex; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    .qr-block img { width: 200px; height: 200px; max-width: 100%; display: block; }

    .schedule-qr-row {
        display: flex; gap: 1.25rem; align-items: flex-start;
        margin-bottom: 2.2rem;
    }
    .schedule-qr-row > .schedule-qr-col { flex: 1; min-width: 0; }
    .schedule-qr-row .section { margin-bottom: 0; }

    @media (max-width: 640px) {
        .schedule-qr-row { flex-direction: column; gap: 2rem; margin-bottom: 2rem; }
    }
        .credits {
        display: block;
        width: fit-content;
        margin: 1.2rem auto 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #475569;
        font-size: 0.88rem;
        font-weight: 500;
        letter-spacing: -0.01em;
        line-height: 1.4;
        padding: 0.65rem 1.25rem;
        border-radius: 40px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        text-align: center;
    }
    .credits-brand {
        font-weight: 700;
        color: #1e293b;
        font-size: 0.92rem;
    }
    .credits-by {
        color: #64748b;
        margin: 0 3px;
        font-weight: 400;
    }
    .credits-company {
        color: #2563eb;
        text-decoration: none;
        font-weight: 700;
        transition: color 0.15s;
    }
    .credits-company:hover {
        color: #1d4ed8;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    @media (max-width: 480px) {
        .bio-card-body { padding: 1.2rem 0.9rem 1rem; }
        .brand-logo { font-size: 2.2rem; }
        .brand-name { font-size: 1.5rem; }
        .lb { padding: 60px 8px 80px; }
        .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 15px; }
        .lb-prev { left: 6px; }
        .lb-next { right: 6px; }
        .lb-close { width: 38px; height: 38px; font-size: 20px; top: 10px; right: 10px; }
        .lb-play  { width: 38px; height: 38px; font-size: 13px; top: 10px; right: 56px; }
        .lb-counter { font-size: 0.75rem; top: 16px; left: 12px; padding: 3px 10px; }
        .lb-slide img, .lb-slide video { max-height: 70vh; }
        .sv-modal { padding: 12px; }
        .sv-modal-box { max-width: 100%; border-radius: 20px; }
        .sv-hero { aspect-ratio: 4/3; }
        .sv-title { font-size: 1.2rem; }
        .sv-body { padding: 1rem 1.1rem 1.2rem; }
        .qr-block img { width: 160px; height: 160px; }
    }

    /* CHIP MI CUENTA */
    .my-account-chip {
        margin: 0 0 1.2rem;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 18px;
        overflow: hidden;
        transition: all 0.25s ease;
    }
    .my-account-chip-header {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px; cursor: pointer; user-select: none;
        font-size: 0.9rem; font-weight: 600; color: #166534;
        transition: 0.15s;
    }
    .my-account-chip-header:hover { background: #dcfce7; }
    .my-account-avatar {
        width: 32px; height: 32px; border-radius: 50%;
        background: #16a34a; color: white;
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
    }
    .my-account-info {
        flex: 1; min-width: 0;
        display: flex; flex-direction: column; gap: 1px;
    }
    .my-account-info .ma-greeting {
        font-size: 0.85rem; color: #166534; font-weight: 600; line-height: 1.2;
    }
    .my-account-info .ma-sub {
        font-size: 0.72rem; color: #65a30d; font-weight: 400;
    }
    .my-account-chev {
        color: #65a30d; font-size: 0.75rem; transition: transform 0.25s;
    }
    .my-account-chip.open .my-account-chev { transform: rotate(180deg); }
    .my-account-chip-body {
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    }
    .my-account-chip.open .my-account-chip-body { max-height: 800px; }
    .my-account-section {
        padding: 10px 14px 14px;
        border-top: 1px solid #bbf7d0;
    }
    .my-account-section h4 {
        font-size: 0.75rem; text-transform: uppercase;
        letter-spacing: 0.04em; color: #166534; font-weight: 700;
        margin-bottom: 8px;
    }
    .my-account-apt {
        display: flex; align-items: center; gap: 8px;
        padding: 7px 10px; background: white; border-radius: 10px;
        margin-bottom: 5px; font-size: 0.82rem;
        border: 1px solid #e5e7eb;
    }
    .my-account-apt i { color: #16a34a; width: 16px; text-align: center; }
    .my-account-apt .apt-info { flex: 1; color: #334155; }
    .my-account-apt .apt-info strong { color: #1e293b; }
    .my-account-apt .apt-status {
        font-size: 0.65rem; padding: 2px 7px; border-radius: 10px;
        font-weight: 600; text-transform: uppercase;
    }
    .my-account-apt .apt-status.pending   { background: #fef3c7; color: #d97706; }
    .my-account-apt .apt-status.confirmed { background: #dbeafe; color: #2563eb; }
    .my-account-apt .apt-status.completed { background: #dcfce7; color: #16a34a; }
    .my-account-apt .apt-status.cancelled { background: #fee2e2; color: #dc2626; }
    .my-account-empty {
        font-size: 0.8rem; color: #94a3b8;
        text-align: center; padding: 14px; font-style: italic;
    }
    .my-account-actions {
        display: flex; gap: 6px; padding: 10px 14px;
        background: #f0fdf4; border-top: 1px solid #bbf7d0;
        flex-wrap: wrap;
    }
    .my-account-actions a,
    .my-account-actions button {
        flex: 1; min-width: 110px; padding: 8px 14px;
        border-radius: 10px; font-size: 0.78rem; font-weight: 600;
        cursor: pointer; border: none; text-decoration: none;
        text-align: center; display: inline-flex;
        align-items: center; justify-content: center; gap: 5px;
        font-family: inherit; transition: 0.15s;
    }
    .my-account-actions .ma-btn-primary { background: #16a34a; color: white; }
    .my-account-actions .ma-btn-primary:hover { background: #15803d; }
    .my-account-actions .ma-btn-secondary {
        background: white; color: #166534; border: 1px solid #bbf7d0;
    }
    .my-account-actions .ma-btn-secondary:hover { background: #dcfce7; }
    .my-account-actions .ma-btn-danger {
        background: white; color: #dc2626; border: 1px solid #fecaca;
    }
    .my-account-actions .ma-btn-danger:hover { background: #fee2e2; }

    /* AUTH MODAL */
    .auth-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.55); z-index: 10000;
        align-items: center; justify-content: center; padding: 20px;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .auth-modal.open { display: flex; }
    .auth-modal-box {
        background: white; border-radius: 20px;
        width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.35);
        animation: authSlideIn 0.25s ease;
        position: relative;
    }
    @keyframes authSlideIn {
        from { opacity: 0; transform: translateY(12px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .auth-modal-close {
        position: absolute; top: 12px; right: 12px;
        width: 34px; height: 34px; border-radius: 50%;
        background: rgba(0,0,0,0.05); border: none;
        color: #64748b; cursor: pointer; font-size: 20px; line-height: 1;
        display: flex; align-items: center; justify-content: center;
        transition: 0.15s; z-index: 2;
    }
    .auth-modal-close:hover { background: rgba(0,0,0,0.1); color: #1e293b; }
    .auth-modal-header { padding: 24px 24px 0; text-align: center; }
    .auth-modal-header img { max-height: 50px; margin-bottom: 8px; }
    .auth-modal-header h2 {
        font-size: 1.25rem; font-weight: 700;
        color: #1e293b; margin-bottom: 4px;
    }
    .auth-modal-header p {
        font-size: 0.82rem; color: #64748b; margin-bottom: 14px;
    }
    .auth-tabs {
        display: flex; padding: 0 24px; gap: 4px;
        border-bottom: 1px solid #e5e7eb;
    }
    .auth-tab {
        flex: 1; padding: 10px 6px; background: transparent; border: none;
        font-size: 0.85rem; font-weight: 600; color: #64748b;
        cursor: pointer; border-bottom: 2px solid transparent;
        transition: 0.15s; font-family: inherit;
    }
    .auth-tab:hover { color: #16a34a; }
    .auth-tab.active { color: #16a34a; border-bottom-color: #16a34a; }
    .auth-pane { display: none; padding: 20px 24px 24px; }
    .auth-pane.active { display: block; }
    .auth-field { margin-bottom: 12px; }
    .auth-field label {
        display: block; font-size: 0.75rem; font-weight: 600;
        color: #334155; margin-bottom: 4px;
    }
    .auth-field input {
        width: 100%; padding: 10px 14px;
        border: 1px solid #d1d5db; border-radius: 9px;
        font-size: 0.9rem; font-family: inherit; transition: 0.15s;
    }
    .auth-field input:focus {
        outline: none; border-color: #16a34a;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    }
    .auth-field .auth-help { font-size: 0.7rem; color: #94a3b8; margin-top: 3px; }
    .auth-row-between {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 14px; font-size: 0.78rem; flex-wrap: wrap; gap: 8px;
    }
    .auth-checkbox {
        display: inline-flex; align-items: center; gap: 6px;
        cursor: pointer; color: #475569;
    }
    .auth-checkbox input {
        width: 14px; height: 14px; accent-color: #16a34a; cursor: pointer;
    }
    .auth-submit {
        width: 100%; padding: 11px; background: #16a34a; color: white;
        border: none; border-radius: 10px;
        font-size: 0.9rem; font-weight: 600; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        gap: 7px; font-family: inherit; transition: 0.15s;
    }
    .auth-submit:hover { background: #15803d; }
    .auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .auth-msg {
        padding: 10px 14px; border-radius: 9px; margin-bottom: 14px;
        font-size: 0.82rem; display: flex; align-items: flex-start;
        gap: 8px; line-height: 1.4;
    }
    .auth-msg.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
    .auth-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

    /* BOOKING */
    .booking-widget {
        background: var(--fill-color);
        border-radius: 22px;
        padding: 16px 16px 18px;
        border: 1px solid #dae9e1;
        position: relative;
    }
    .booking-step { margin-bottom: 14px; }
    .booking-step:last-of-type { margin-bottom: 10px; }
    .booking-label {
        display: block; font-size: 0.78rem; font-weight: 700;
        color: var(--text-color); margin-bottom: 6px;
        letter-spacing: 0.01em;
    }
    .booking-select, .booking-input {
        width: 100%; padding: 10px 14px;
        border: 1px solid #cdded4; border-radius: 40px;
        font-size: 0.9rem; background: white;
        font-family: inherit; color: #1e2b2b; transition: 0.15s;
    }
    textarea.booking-input { border-radius: 18px; resize: vertical; }
    .booking-select:focus, .booking-input:focus {
        outline: 2px solid #3f8266; border-color: transparent;
    }
    .booking-calendar {
        background: white; border-radius: 14px;
        padding: 12px; border: 1px solid #e5e7eb;
    }
    .booking-cal-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 10px;
    }
    .booking-cal-title {
        font-weight: 600; font-size: 0.9rem;
        color: #1e293b; text-transform: capitalize;
    }
    .booking-cal-nav {
        width: 30px; height: 30px; border-radius: 50%;
        background: #f1f5f9; border: none; color: #475569;
        cursor: pointer; font-size: 0.75rem;
        display: flex; align-items: center; justify-content: center;
        transition: 0.15s;
    }
    .booking-cal-nav:hover:not(:disabled) { background: #16a34a; color: white; }
    .booking-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
    .booking-cal-weekdays {
        display: grid; grid-template-columns: repeat(7, 1fr);
        gap: 3px; margin-bottom: 6px;
        font-size: 0.7rem; color: #94a3b8;
        text-align: center; font-weight: 600;
    }
    .booking-cal-days {
        display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
    }
    .booking-cal-day {
        aspect-ratio: 1/1; border-radius: 8px; border: none;
        background: #f8fafc; color: #cbd5e1;
        font-size: 0.8rem; font-weight: 500;
        cursor: default; transition: 0.15s; font-family: inherit;
    }
    .booking-cal-day.available {
        background: #dcfce7; color: #166534;
        cursor: pointer; font-weight: 600;
    }
    .booking-cal-day.available:hover {
        background: #16a34a; color: white; transform: scale(1.05);
    }
    .booking-cal-day.selected { background: #16a34a !important; color: white !important; }
    .booking-cal-day.empty { visibility: hidden; }
    .booking-cal-loading {
        grid-column: 1/-1; text-align: center;
        padding: 20px; color: #94a3b8; font-size: 0.8rem;
    }
    .booking-slots {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 6px;
    }
    .booking-slot {
        padding: 9px 6px; border-radius: 10px;
        border: 1px solid #e5e7eb; background: white;
        color: #334155; font-size: 0.82rem; font-weight: 500;
        cursor: pointer; transition: 0.15s; font-family: inherit;
        text-align: center;
    }
    .booking-slot:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
    .booking-slot.selected {
        background: #16a34a; color: white;
        border-color: #16a34a; font-weight: 600;
    }
    .booking-slots-empty {
        grid-column: 1/-1; text-align: center;
        padding: 16px; color: #94a3b8; font-size: 0.8rem; font-style: italic;
    }
    .booking-client-fields {
        display: flex; flex-direction: column; gap: 8px;
    }
    .booking-login-hint {
        margin-top: 8px; font-size: 0.75rem;
        color: #64748b; text-align: center;
    }
    .booking-login-hint a { color: #16a34a; font-weight: 600; }
    .booking-submit {
        width: 100%; padding: 13px; background: #16a34a;
        color: white; border: none; border-radius: 40px;
        font-size: 1rem; font-weight: 700; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        gap: 8px; font-family: inherit; transition: 0.15s;
        letter-spacing: 0.01em;
    }
    .booking-submit:hover:not(:disabled) { background: #15803d; }
    .booking-submit:disabled { opacity: 0.55; cursor: not-allowed; }
    #bookingMessage {
        padding: 12px 16px; border-radius: 12px;
        margin-bottom: 14px; font-size: 0.85rem; line-height: 1.45;
    }
    #bookingMessage.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
    #bookingMessage.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

    /* BOTONES FLOTANTES */
    .card-actions {
        position: absolute; top: 10px; right: 10px;
        display: flex; align-items: center; gap: 6px; z-index: 20;
    }
    .card-actions .share-btn,
    .card-actions .login-btn {
        position: static; width: 40px; height: 40px;
        border-radius: 50%; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transition: 0.2s;
    }
    .card-actions .share-btn {
        background: rgba(255, 255, 255, 0.95); color: #1e2b2b;
    }
    .card-actions .share-btn:hover { background: white; transform: scale(1.05); }
    .card-actions .login-btn { background: #16a34a; color: white; }
    .card-actions .login-btn:hover { background: #15803d; transform: scale(1.05); }
    @media (max-width: 480px) {
        .card-actions .share-btn,
        .card-actions .login-btn { width: 36px; height: 36px; font-size: 14px; }
    }

    .ma-toggle-history {
        background: transparent; border: none; color: #2563eb;
        font-size: 0.7rem; cursor: pointer; padding: 2px 8px;
        border-radius: 8px; font-family: inherit; font-weight: 600;
        margin-left: auto;
    }
    .ma-toggle-history:hover { background: #dbeafe; }
    .my-account-apt .ma-apt-cancel {
        background: transparent; border: none; color: #dc2626;
        cursor: pointer; padding: 4px 6px; border-radius: 6px;
        font-size: 0.75rem; transition: 0.15s; font-family: inherit;
    }
    .my-account-apt .ma-apt-cancel:hover { background: #fee2e2; }

    /* PROFILE MODAL */
    .profile-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.55); z-index: 10001;
        align-items: center; justify-content: center; padding: 20px;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .profile-modal.open { display: flex; }
    .profile-modal-box {
        background: white; border-radius: 20px;
        width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.35);
        animation: authSlideIn 0.25s ease;
        position: relative;
    }
    .profile-modal-header {
        padding: 24px 24px 16px; text-align: center;
        border-bottom: 1px solid #e5e7eb;
    }
    .profile-modal-header h3 {
        font-size: 1.15rem; font-weight: 700;
        color: #1e293b; margin-bottom: 3px;
    }
    .profile-modal-header p { font-size: 0.78rem; color: #64748b; }
    .profile-tabs {
        display: flex; padding: 0 24px; gap: 4px;
        border-bottom: 1px solid #e5e7eb;
    }
    .profile-tab {
        flex: 1; padding: 10px 6px; background: transparent; border: none;
        font-size: 0.8rem; font-weight: 600; color: #64748b;
        cursor: pointer; border-bottom: 2px solid transparent;
        transition: 0.15s; font-family: inherit;
    }
    .profile-tab.active { color: #16a34a; border-bottom-color: #16a34a; }
    .profile-pane { display: none; padding: 20px 24px 24px; }
    .profile-pane.active { display: block; }

    /* RESET MODAL */
    .reset-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.55); z-index: 10002;
        align-items: center; justify-content: center; padding: 20px;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .reset-modal.open { display: flex; }
    .reset-modal-box {
        background: white; border-radius: 20px;
        width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.35);
        animation: authSlideIn 0.25s ease;
        position: relative;
    }
    .reset-modal-header {
        padding: 26px 24px 18px; text-align: center;
        border-bottom: 1px solid #e5e7eb;
    }
    .reset-modal-header .reset-icon {
        width: 60px; height: 60px; border-radius: 50%;
        background: #eff6ff; color: #2563eb;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 26px; margin-bottom: 12px;
    }
    .reset-modal-header h3 {
        font-size: 1.15rem; font-weight: 700;
        color: #1e293b; margin-bottom: 4px;
    }
    .reset-modal-header p {
        font-size: 0.82rem; color: #64748b; line-height: 1.5;
    }
    .reset-modal-body { padding: 22px 24px 26px; }
    .reset-pwd-wrap { position: relative; }

    /* FORGOT MODAL */
    .forgot-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.55); z-index: 10003;
        align-items: center; justify-content: center; padding: 20px;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .forgot-modal.open { display: flex; }
    .forgot-modal-box {
        background: white; border-radius: 20px;
        width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.35);
        animation: authSlideIn 0.25s ease;
        position: relative;
    }
    .forgot-modal-header {
        padding: 26px 24px 18px; text-align: center;
        border-bottom: 1px solid #e5e7eb;
    }
    .forgot-modal-header .forgot-icon {
        width: 60px; height: 60px; border-radius: 50%;
        background: #eff6ff; color: #2563eb;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 26px; margin-bottom: 12px;
    }
    .forgot-modal-header h3 {
        font-size: 1.15rem; font-weight: 700;
        color: #1e293b; margin-bottom: 4px;
    }
    .forgot-modal-header p {
        font-size: 0.82rem; color: #64748b; line-height: 1.5;
    }
    .forgot-modal-body { padding: 22px 24px 26px; }
    .forgot-success-box { text-align: center; padding: 20px 0; }
    .forgot-success-box .forgot-success-icon {
        width: 72px; height: 72px; border-radius: 50%;
        background: #dcfce7; color: #16a34a;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 34px; margin-bottom: 14px;
    }
    .forgot-success-box h4 {
        font-size: 1.05rem; font-weight: 700;
        color: #1e293b; margin-bottom: 6px;
    }
    .forgot-success-box p {
        font-size: 0.85rem; color: #64748b; line-height: 1.5;
    }

    .impersonation-banner {
        position: fixed; top: 0; left: 0; right: 0;
        background: #7c3aed; color: white; padding: 10px 16px;
        display: flex; align-items: center; justify-content: center;
        gap: 14px; font-size: 0.85rem; font-weight: 500;
        z-index: 99999; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        flex-wrap: wrap;
    }
    .impersonation-banner a {
        color: white; background: rgba(255,255,255,0.22);
        padding: 4px 12px; border-radius: 20px;
        text-decoration: none; font-weight: 600; transition: 0.15s;
    }
    .impersonation-banner a:hover { background: rgba(255,255,255,0.38); }
/* Fondo dinamico (clases puestas por PHP en <body>) ------------------ */
body.bg-extra {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
body.has-bg-blur::before {
    content: '';
    position: fixed;
    inset: -30px;
    z-index: -1;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(var(--bg-blur, 15px));
    pointer-events: none;
}

/* ── PWA toast: aviso de actualización / sin conexión ───────── */
.pwa-toast {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 10050; max-width: calc(100% - 24px);
    display: flex; align-items: center; gap: 10px;
    background: #0f172a; color: #fff; font-size: 13px; font-weight: 500;
    padding: 10px 14px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.pwa-toast button {
    background: #2563eb; color: #fff; border: none; cursor: pointer;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    font-family: inherit;
}
.pwa-toast.pwa-toast-out { opacity: 0; transform: translate(-50%, 8px); }

/* ── FASE 2: layout híbrido PWA ─────────────────────────────── */
.bio-app { width: 100%; }

@media (min-width: 641px) {
    body { padding: 0 1rem 2.5rem; }
    .bio-app { max-width: var(--card-max-width); margin: 0 auto; }
    .bio-card { max-width: 100%; border-radius: 0 0 28px 28px; }
}

@media (max-width: 640px) {
    body { padding: 0 0 calc(80px + env(safe-area-inset-bottom, 0px)); }
    .bio-app { max-width: 100%; margin: 0; }
    .bio-card { max-width: 100%; border-radius: 0; box-shadow: none; margin: 0; }
    .credits { margin: 0.9rem auto 0.4rem; }
}

.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #e5e7eb;
    z-index: 100;
    align-items: stretch;
    justify-content: space-around;
}
@media (max-width: 640px) { .bottom-nav { display: flex; } }
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none; color: #94a3b8; font-size: 10px; font-weight: 500;
    padding: 6px 4px; transition: color 0.15s; -webkit-tap-highlight-color: transparent;
}
.bottom-nav a i { font-size: 18px; }
.bottom-nav a.active { color: #2563eb; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.bio-card, .section, #reservar { scroll-margin-top: 12px; }

.auth-modal, .profile-modal, .reset-modal, .forgot-modal, .sv-modal {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.lb { padding-top: calc(60px + env(safe-area-inset-top, 0px)); }
.impersonation-banner { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }

/* -- FASE C: plantillas full-size -- */
.bio-app.layout-a, .bio-app.layout-b { max-width: var(--site-max-width, 1200px); margin: 0 auto; width: 100%; }
.bio-app.layout-a .bio-card, .bio-app.layout-b .bio-card { max-width: 100%; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.bio-app.layout-a .bio-card-body, .bio-app.layout-b .bio-card-body { display: grid; gap: 22px; padding: 22px clamp(16px, 3vw, 32px) 38px; grid-template-columns: 1fr; }
.layout-a .bio-card-body > .brand { grid-area: brand; }
.layout-a .bio-card-body > .my-account-chip { grid-area: chip; }
.layout-b .bio-card-body > .brand { grid-area: brand; }
.layout-b .bio-card-body > .my-account-chip { grid-area: chip; }
.block-services { grid-area: services; }
.block-citas { grid-area: citas; }
.block-areas { grid-area: areas; }
.block-gallery { grid-area: gallery; }
.block-biolinks { grid-area: links; }
.block-schedule { grid-area: schedule; }
.block-qr { grid-area: qr; }
@media (min-width: 1024px) {
    .layout-a .bio-card-body { grid-template-columns: repeat(15, minmax(0, 1fr)); grid-template-areas:
        'brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand'
        'chip chip chip chip chip chip chip chip chip chip chip chip chip chip chip'
        'services services services services services services services services services services services services services services services'
        'citas citas citas citas citas citas citas citas citas citas areas areas areas areas areas'
        'gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery'
        'links links links links links schedule schedule schedule schedule schedule qr qr qr qr qr'; }
    .layout-b .bio-card-body { grid-template-columns: repeat(15, minmax(0, 1fr)); grid-template-areas:
        'brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand'
        'chip chip chip chip chip chip chip chip chip chip chip chip chip chip chip'
        'services services services services services services services services services citas citas citas citas citas citas'
        'areas areas areas areas areas areas areas areas areas areas areas areas areas areas areas'
        'gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery gallery'
        'links links links links links schedule schedule schedule schedule schedule qr qr qr qr qr'; }
}
@media (max-width: 1023px) {
    .layout-a .bio-card-body, .layout-b .bio-card-body { display: block; }
    .layout-a .bio-card-body > *, .layout-b .bio-card-body > * { margin-bottom: 22px; }
}
.site-gallery { display: grid; grid-template-columns: repeat(var(--gallery-cols, 5), minmax(0, 1fr)); gap: 10px; }
.site-work { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #e5e7eb; cursor: zoom-in; }
.site-work img, .site-work video { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-work-caption { position: absolute; inset: auto 0 0 0; padding: 12px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.66)); color: #fff; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(6px); transition: 0.2s; }
.site-work:hover .site-work-caption, .site-work:focus-within .site-work-caption { opacity: 1; transform: none; }
.site-work-caption strong { font-size: 12.5px; font-weight: 600; }
.site-work-caption span { font-size: 11.5px; line-height: 1.3; opacity: 0.9; }
@media (max-width: 1024px) { .site-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .site-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-work-caption { opacity: 1; transform: none; } }

/* -- FASE C.1: el color de secciones pinta la superficie en A/B -- */
.bio-app.layout-a .bio-card,
.bio-app.layout-b .bio-card { background: var(--card-color); color: var(--card-text-color); }
.bio-app.layout-a, .bio-app.layout-b { background: transparent; }

/* -- Ajustes cabecera/servicios -- */
.bio-app.layout-a, .bio-app.layout-b { margin-top: var(--header-margin, 24px); }
.services-grid { grid-template-columns: repeat(var(--services-cols, 3), minmax(0, 1fr)); gap: 16px; }
.services-grid .service-card .service-name { font-size: 15px; }
.services-grid .service-card .service-price-mini { font-size: 13px; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* -- Pie a tercios (Enlaces / Horario / QR) -- */
.block-biolinks, .block-schedule, .block-qr { min-width: 0; }
.block-biolinks .biolinks,
.block-schedule .schedule-block,
.block-qr .qr-block,
.block-qr .qr-block-inner { width: 100%; }
.block-qr .qr-block img { width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* -- Estructura unica (v2.7.1): filas completas + pie a tercios -- */
.bio-app { max-width: var(--site-max-width, 1200px); margin: var(--header-margin, 24px) auto 0; width: 100%; }
.bio-app .bio-card { max-width: 100%; border-radius: 0; box-shadow: none; background: var(--card-color); color: var(--card-text-color); }
.bio-card-body { display: block; padding: 22px clamp(16px, 3vw, 32px) 38px; }
.bio-card-body > .site-block { margin-bottom: 22px; }
.site-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.site-footer-grid > * { min-width: 0; width: 100%; }
.site-footer-grid .qr-block,
.site-footer-grid .qr-block-inner,
.site-footer-grid .qr-block img { width: 100%; }
.site-footer-grid .qr-block img { max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
@media (max-width: 1023px) { .site-footer-grid { grid-template-columns: 1fr; } }

/* -- FOOTER ROBUSTO: tres columnas iguales -- */
.site-footer-grid { display: flex !important; gap: 22px; align-items: flex-start; }
.site-footer-grid > .site-block { flex: 1 1 0 !important; min-width: 0; width: 33.3333%; grid-area: auto !important; }
.site-footer-grid .qr-block,
.site-footer-grid .qr-block-inner { width: 100% !important; }
.site-footer-grid .qr-block img { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
.bio-card-body .site-block { grid-area: auto !important; }
.block-citas .booking-widget { max-width: 680px; }
@media (max-width: 1023px) { .site-footer-grid { flex-direction: column; } .site-footer-grid > .site-block { width: 100%; } }

/* -- Reserva: dos columnas + resumen -- */
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.booking-form { min-width: 0; }
.booking-summary { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px 18px; position: sticky; top: 16px; box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.15); }
.bs-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #0f172a; }
.bs-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; font-size: 13px; color: #94a3b8; }
.bs-row:last-of-type { border-bottom: none; }
.bs-label { font-weight: 500; }
.bs-value { text-align: right; font-weight: 500; max-width: 62%; overflow-wrap: anywhere; }
.bs-row.filled { color: #0f172a; }
.bs-row.filled .bs-label { color: var(--fill-color, #16a34a); font-weight: 700; }
.booking-summary .booking-submit { width: 100%; margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.booking-summary .booking-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.block-citas .booking-widget { max-width: none; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } .booking-summary { position: static; } }