.portix-panel-page {
    min-height: 100vh;
    padding: 18px 12px 110px;
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 147, 103, 0.22), transparent 34%),
        linear-gradient(135deg, #F7FBFF 0%, #FFF6EE 100%);
    color: #171B25;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portix-panel-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.portix-panel-hero,
.portix-panel-card {
    border: 1px solid rgba(22, 28, 38, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(18, 24, 38, 0.10);
}

.portix-panel-hero {
    padding: 24px;
}

.portix-panel-card {
    padding: 18px;
}

.portix-kicker {
    margin: 0 0 6px;
    color: #E8644C;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portix-panel-hero h1,
.portix-panel-card h1,
.portix-panel-card h2 {
    margin: 0;
    color: #171B25;
    line-height: 1.05;
}

.portix-panel-hero h1 {
    font-size: clamp(32px, 9vw, 54px);
}

.portix-panel-hero p,
.portix-panel-card p {
    color: #6B7280;
    line-height: 1.55;
}

.portix-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.portix-panel-actions a,
.portix-panel-actions button,
.portix-primary-btn,
.portix-secondary-btn {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.portix-panel-actions a,
.portix-panel-actions button,
.portix-secondary-btn {
    background: #F3F5F8;
    color: #171B25;
}

.portix-primary-btn {
    background: #171B25;
    color: #FFFFFF;
    box-shadow: 0 16px 34px rgba(18, 24, 38, 0.20);
}

.portix-panel-notice {
    border-radius: 18px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 800;
}

.portix-panel-notice-success {
    background: #EAF8EF;
    color: #117A38;
}

.portix-panel-notice-error {
    background: #FFF0EC;
    color: #B93822;
}

.portix-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.portix-section-head span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #171B25;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
}

.portix-section-head h2 {
    font-size: 20px;
}

.portix-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.portix-grid label,
.portix-panel-card > label {
    display: grid;
    gap: 7px;
    color: #4B5563;
    font-size: 13px;
    font-weight: 800;
}

.portix-grid input,
.portix-grid textarea,
.portix-grid select,
.portix-panel-card select,
.portix-preview-card input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(22, 28, 38, 0.12);
    border-radius: 16px;
    background: #FFFFFF;
    color: #171B25;
    padding: 10px 13px;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.portix-grid textarea {
    min-height: 112px;
    resize: vertical;
}

.portix-upload-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.portix-upload-box {
    min-height: 130px;
    border: 1px dashed rgba(22, 28, 38, 0.22);
    border-radius: 20px;
    padding: 14px;
    display: grid;
    align-content: center;
    gap: 10px;
    background: #FAFBFC;
    color: #4B5563;
    font-size: 13px;
    font-weight: 850;
}

.portix-upload-box img,
.portix-gallery-item img,
.portix-service-thumb {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(18, 24, 38, 0.12);
}

.portix-services {
    display: grid;
    gap: 12px;
}

.portix-service-row {
    position: relative;
    border: 1px solid rgba(22, 28, 38, 0.10);
    border-radius: 22px;
    padding: 14px;
    background: #FFFFFF;
}

.portix-remove-service {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 999px;
    background: #FFF0EC;
    color: #B93822;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.portix-service-thumb {
    margin-top: 10px;
}

.portix-gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.portix-gallery-item {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(22, 28, 38, 0.08);
    border-radius: 18px;
    padding: 10px;
    background: #FAFBFC;
    font-size: 12px;
    font-weight: 800;
}

.portix-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

.portix-empty {
    margin: 0 0 12px;
    border: 1px dashed rgba(22, 28, 38, 0.16);
    border-radius: 18px;
    padding: 14px;
    background: #FAFBFC;
}

.portix-preview-card {
    display: grid;
    gap: 14px;
}

.portix-save-bar {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 9999;
    width: min(calc(100% - 24px), 760px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(18, 24, 38, 0.18);
    backdrop-filter: blur(18px);
}

.portix-save-bar div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.portix-save-bar strong {
    font-size: 13px;
    color: #171B25;
}

.portix-save-bar span {
    max-width: 42vw;
    overflow: hidden;
    color: #6B7280;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 680px) {
    .portix-panel-page {
        padding-top: 32px;
    }

    .portix-panel-hero,
    .portix-panel-card {
        border-radius: 32px;
    }

    .portix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portix-wide {
        grid-column: 1 / -1;
    }

    .portix-upload-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .portix-gallery-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Portix 1.9.7 - acceso frontal de propietarios */
.portix-panel-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 6px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 800;
}

.portix-panel-account a {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #171B25;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(22,28,38,0.10);
    text-decoration: none;
}

.portix-panel-login {
    width: min(100%, 520px);
    margin: min(10vh, 72px) auto 0;
    padding: 24px;
}

.portix-login-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    background: #171B25;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(18,24,38,0.20);
}

.portix-login-form {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.portix-login-form > label:not(.portix-login-remember) {
    display: grid;
    gap: 7px;
    color: #4B5563;
    font-size: 13px;
    font-weight: 800;
}

.portix-login-form input[type="text"],
.portix-login-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(22,28,38,0.14);
    border-radius: 16px;
    padding: 10px 13px;
    background: #FFFFFF;
    color: #171B25;
    font: inherit;
    box-sizing: border-box;
}

.portix-login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.portix-login-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.portix-login-form .portix-primary-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
}

.portix-login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 16px;
}

.portix-login-links a {
    color: #4B5563;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.portix-login-links a:hover,
.portix-login-links a:focus-visible {
    color: #E8644C;
    outline: none;
}
/* Portix 1.10.0 - acceso movil independiente */
body.portix-standalone {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #F5F7FA;
}

body.portix-standalone .portix-standalone-main {
    min-height: 100vh;
}

body.portix-standalone .portix-panel-page {
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
    display: grid;
    align-items: center;
    background:
        linear-gradient(145deg, rgba(232, 100, 76, 0.10), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(51, 122, 255, 0.12), transparent 36%),
        #F6F8FB;
    box-sizing: border-box;
}

body.portix-standalone .portix-panel-shell {
    width: min(100%, 760px);
}

body.portix-standalone .portix-panel-login {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 22px;
    border-radius: 28px;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(18, 24, 38, 0.16);
}

.portix-login-topline,
.portix-login-brand,
.portix-login-secure {
    display: flex;
    align-items: center;
}

.portix-login-topline {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 40px;
}

.portix-login-brand {
    gap: 10px;
    color: #171B25;
    text-decoration: none;
}

.portix-login-mark {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 15px;
    font-size: 21px;
}

.portix-login-brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.portix-login-brand-copy strong {
    font-size: 17px;
    font-weight: 900;
}

.portix-login-brand-copy small {
    color: #7A8495;
    font-size: 10px;
    font-weight: 750;
}

.portix-login-secure {
    gap: 6px;
    color: #627083;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.portix-login-secure i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #19B968;
    box-shadow: 0 0 0 5px rgba(25, 185, 104, 0.12);
}

.portix-login-copy {
    margin-bottom: 24px;
}

.portix-panel-login .portix-login-copy h1 {
    max-width: 330px;
    margin: 0 0 12px;
    color: #171B25;
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: 0;
}

.portix-panel-login .portix-login-copy > p:last-child {
    max-width: 340px;
    margin: 0;
    color: #657083;
    font-size: 14px;
    line-height: 1.55;
}

.portix-panel-login .portix-login-form {
    gap: 15px;
    margin-top: 18px;
}

.portix-panel-login .portix-login-form input[type="text"],
.portix-panel-login .portix-login-form input[type="password"] {
    min-height: 54px;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.portix-panel-login .portix-login-form input:focus {
    border-color: #E8644C;
    box-shadow: 0 0 0 4px rgba(232, 100, 76, 0.12);
}

.portix-password-field {
    position: relative;
    display: block;
}

.portix-password-field input {
    padding-right: 82px !important;
}

.portix-password-field button {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 66px;
    min-height: 40px;
    border: 0;
    border-radius: 11px;
    transform: translateY(-50%);
    color: #4D5869;
    background: #F0F3F7;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.portix-panel-login .portix-primary-btn {
    min-height: 54px;
    border-radius: 15px;
    background: #171B25;
    font-size: 15px;
}

.portix-panel-login .portix-login-links {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(22, 28, 38, 0.08);
}

.portix-login-privacy {
    margin: 24px 0 0;
    color: #929AA8 !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    text-align: center;
}

@media (max-width: 430px) {
    body.portix-standalone .portix-panel-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.portix-standalone .portix-panel-login {
        padding: 20px;
        border-radius: 24px;
    }

    .portix-login-topline {
        margin-bottom: 32px;
    }

    .portix-panel-login .portix-login-copy h1 {
        font-size: 34px;
    }
}

/* Portix 1.11.2 - panel Mi Portix pulido */
body.portix-standalone .portix-panel-page {
    align-items: start;
    padding: max(18px, env(safe-area-inset-top)) 12px max(104px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% -8%, rgba(232, 100, 76, 0.15), transparent 34%),
        linear-gradient(145deg, #FFF7F0 0%, #F7FBFF 100%);
}

body.portix-standalone .portix-panel-shell,
.portix-panel-shell {
    width: min(100%, 920px);
    gap: 16px;
}

.portix-panel-form {
    display: grid;
    gap: 14px;
}

.portix-dashboard {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 100, 76, 0.28), transparent 32%),
        linear-gradient(135deg, #171B25 0%, #272B38 100%);
    box-shadow: 0 28px 80px rgba(18, 24, 38, 0.22);
    color: #FFFFFF;
}

.portix-dashboard::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -86px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.portix-dashboard-copy,
.portix-dashboard-actions {
    position: relative;
    z-index: 1;
}

.portix-dashboard .portix-kicker {
    color: #F7B39F;
}

.portix-dashboard h1 {
    max-width: 560px;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(30px, 7vw, 54px);
    line-height: 1.02;
}

.portix-dashboard p {
    max-width: 520px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.5;
}

.portix-dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.portix-dashboard-meta span,
.portix-status-pill {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.portix-status-pill i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16C784;
    box-shadow: 0 0 0 5px rgba(22, 199, 132, 0.16);
}

.portix-status-pill-pendiente i {
    background: #F5B742;
    box-shadow: 0 0 0 5px rgba(245, 183, 66, 0.16);
}

.portix-status-pill-suspendida i {
    background: #9AA3B2;
    box-shadow: 0 0 0 5px rgba(154, 163, 178, 0.16);
}

.portix-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.portix-dashboard-actions a,
.portix-dashboard-actions button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.portix-dashboard-actions a:first-child {
    background: #FFFFFF;
    color: #171B25;
}

.portix-panel-card {
    border-color: rgba(22, 28, 38, 0.07);
    border-radius: 24px;
    padding: clamp(15px, 3vw, 22px);
    box-shadow: 0 18px 52px rgba(18, 24, 38, 0.08);
}

.portix-switch-card {
    padding: 14px;
}

.portix-section-head {
    margin-bottom: 12px;
}

.portix-section-head span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #F1F4F8;
    color: #171B25;
}

.portix-section-head h2 {
    font-size: 21px;
}

.portix-grid {
    gap: 10px 12px;
}

.portix-grid label,
.portix-panel-card > label {
    gap: 6px;
    font-size: 12px;
}

.portix-grid input,
.portix-grid textarea,
.portix-grid select,
.portix-panel-card select,
.portix-preview-card input {
    min-height: 44px;
    border-color: rgba(22, 28, 38, 0.10);
    border-radius: 14px;
    background: #FBFCFE;
    font-size: 14px;
}

.portix-grid textarea {
    min-height: 92px;
}

.portix-upload-row {
    margin-top: 12px;
}

.portix-upload-box {
    min-height: 112px;
    border-radius: 18px;
    background: linear-gradient(145deg, #FFFFFF, #F7F9FC);
}

.portix-upload-box img {
    width: 96px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: #FFFFFF;
}

.portix-service-row {
    border-radius: 20px;
    padding: 13px;
}

.portix-gallery-list {
    grid-template-columns: repeat(3, 1fr);
}

.portix-preview-card {
    grid-template-columns: 1fr;
}

.portix-preview-card h2 {
    font-size: clamp(24px, 6vw, 38px);
}

.portix-save-bar {
    width: min(calc(100% - 22px), 920px);
    border-radius: 22px;
}

.portix-panel-message {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.portix-panel-message p {
    margin: 0;
}

body.portix-standalone .portix-panel-login {
    margin: min(8vh, 72px) auto 0;
}

.portix-panel-login .portix-login-copy h1 {
    font-size: clamp(34px, 9vw, 46px);
}

.portix-panel-login .portix-primary-btn {
    background: #171B25;
}

@media (min-width: 780px) {
    .portix-dashboard {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .portix-dashboard-actions {
        justify-content: flex-end;
        max-width: 320px;
    }
}

@media (max-width: 560px) {
    body.portix-standalone .portix-panel-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .portix-dashboard {
        border-radius: 24px;
    }

    .portix-dashboard-actions a,
    .portix-dashboard-actions button {
        flex: 1 1 calc(50% - 6px);
    }

    .portix-gallery-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .portix-save-bar {
        align-items: stretch;
    }

    .portix-save-bar .portix-primary-btn {
        min-width: 142px;
    }
}
/* Portix 1.11.3 - horarios flexibles */
.portix-week-schedule {
    display: grid;
    gap: 10px;
}

.portix-schedule-day {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(22, 28, 38, 0.09);
    border-radius: 18px;
    background: #FBFCFE;
    display: grid;
    grid-template-columns: minmax(130px, .9fr) repeat(2, minmax(110px, .75fr)) minmax(170px, 1.25fr);
    gap: 10px;
}

.portix-schedule-day legend {
    padding: 0 7px;
    color: #171B25;
    font-size: 13px;
    font-weight: 900;
}

.portix-schedule-day label {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.portix-schedule-day label span {
    color: #5D6675;
    font-size: 11px;
    font-weight: 800;
}

.portix-schedule-day input,
.portix-schedule-day select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(22, 28, 38, 0.10);
    border-radius: 13px;
    padding: 0 11px;
    background: #FFFFFF;
    color: #171B25;
    font: inherit;
    font-size: 13px;
}

.portix-legacy-schedule {
    margin-top: 14px;
    border-top: 1px solid rgba(22, 28, 38, 0.08);
    padding-top: 12px;
}

.portix-legacy-schedule summary {
    color: #5D6675;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.portix-legacy-schedule .portix-grid {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .portix-schedule-day {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portix-schedule-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .portix-schedule-day {
        grid-template-columns: 1fr;
    }

    .portix-schedule-note {
        grid-column: auto;
    }
}
