:root {
    --blue: #3f66b5;
    --cyan: #08aeea;
    --teal: #00a8b5;
    --pink: #fb7ca4;
    --navy: #16395e;
    --ink: #1d2c3b;
    --muted: #63778a;
    --soft: #eefaff;
    --rose-soft: #fff1f6;
    --line: rgba(63, 102, 181, .16);
    --white: #fff;
    --shadow: 0 24px 70px rgba(22, 57, 94, .16);
    --admin-primary: #6f61f6;
    --admin-sidebar-bg: #252b45;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(251, 124, 164, .20), transparent 28%),
        radial-gradient(circle at 85% 4%, rgba(8, 174, 234, .22), transparent 26%),
        linear-gradient(135deg, #fbfdff, #f5fbff 46%, #fff7fa);
    font: 16px/1.6 "Inter", "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.top-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 9px clamp(18px, 4vw, 56px);
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    font-weight: 800;
}

.top-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.top-actions a,
.icon-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.wa-mini {
    display: inline-grid !important;
    width: 19px;
    height: 19px;
    place-items: center;
    flex: 0 0 auto;
    color: #25d366;
    background: transparent;
    font-size: .78rem;
    font-weight: 950;
}

.wa-mini svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.nav-shell {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand img {
    display: block;
    width: min(400px, 52vw);
    height: auto;
    max-height: 96px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--navy);
    font-weight: 900;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.dashboard-link,
.restricted-link {
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.restricted-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.restricted-link:hover svg {
    transform: translateY(-1px) scale(1.08);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 1.45rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(8, 174, 234, .20);
    transition: transform .22s ease, box-shadow .22s ease;
}

.menu-toggle:hover,
.menu-toggle.is-active {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(8, 174, 234, .28);
}
main { overflow: hidden; }

.hero,
.section,
.page-hero,
.article-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
    align-items: center;
    min-height: calc(100vh - 132px);
    padding: 54px 0 46px;
}

.hero-copy h1,
.page-hero h1,
.article-page h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.8rem, 6.6vw, 5.9rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.article-page header p {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--pink);
    font-weight: 950;
    text-transform: uppercase;
    font-size: .82rem;
}

.eyebrow::after {
    content: "";
    width: 46px;
    height: 3px;
    border-radius: 99px;
    background: var(--cyan);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 55%;
    transform: rotate(18deg);
    background: rgba(255,255,255,.34);
    transition: left .42s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover::after {
    left: 120%;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    box-shadow: 0 16px 34px rgba(8, 174, 234, .22);
}

.btn-ghost {
    color: var(--navy);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.trust-row span,
.service-strip article,
.post-card,
.contact-info,
.contact-form,
.profile-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.trust-row span {
    padding: 14px;
    color: var(--muted);
}

.trust-row strong {
    display: block;
    color: var(--blue);
}

.hero-media {
    position: relative;
}

.hero-media img,
.about-image img,
.gallery-grid img,
.article-cover {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.hero-media img {
    aspect-ratio: 4 / 5;
}

.floating-card {
    position: absolute;
    right: -12px;
    bottom: 32px;
    max-width: 250px;
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    font-weight: 950;
    box-shadow: var(--shadow);
}

.section {
    padding: 72px 0;
}

.section-title {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-title h2,
.about h2,
.contact-info h2,
.admin-welcome h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-strip article {
    padding: 22px;
}

.area-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(8, 174, 234, .16), rgba(251, 124, 164, .18));
    font-size: 1.8rem;
}

.service-strip h2,
.post-card h3,
.post-card h2 {
    margin: 0 0 8px;
    color: var(--navy);
}

.banner {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 290px;
    border-radius: 8px;
    padding: clamp(28px, 5vw, 56px);
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 57, 94, .90), rgba(8, 174, 234, .58));
}

.banner > * { position: relative; z-index: 1; }
.banner h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.banner p { max-width: 760px; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.banner .eyebrow { color: var(--white); }
.banner-care { background-image: url("../img/consultorio-2.jpg"); }
.banner-path { background-image: url("../img/consultorio-1.jpg"); }
.banner-family { background-image: url("../img/sala-terapia.jpg"); }

.about {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 36px;
    align-items: center;
}

.about-image img {
    aspect-ratio: 4 / 3;
    object-position: center 22%;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.credential-grid span {
    border-radius: 8px;
    padding: 14px;
    background: var(--soft);
    font-weight: 900;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-grid img {
    aspect-ratio: 1 / 1;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card div {
    padding: 22px;
}

.post-card span {
    color: var(--pink);
    font-weight: 900;
}

.post-card a {
    color: var(--blue);
    font-weight: 950;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.media-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow);
}

.media-card span {
    color: var(--pink);
    font-weight: 950;
}

.media-card h3 {
    margin: 8px 0;
    color: var(--navy);
}

.page-hero {
    padding: 76px 0 42px;
    text-align: center;
}

.page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.article-page {
    padding: 60px 0;
}

.article-page header {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.article-cover {
    max-height: 520px;
    margin-bottom: 34px;
}

.article-content {
    max-width: 850px;
    margin: 0 auto 30px;
    color: var(--ink);
    font-size: 1.1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 24px;
}

.contact-info,
.contact-form {
    padding: 28px;
}

.contact-info a,
.site-footer a,
.site-footer span {
    display: block;
    margin: 8px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.social-link {
    display: inline-grid !important;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 26px rgba(8, 174, 234, .22);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-link:hover {
    transform: translateY(-4px) rotate(-4deg);
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    box-shadow: 0 16px 34px rgba(251, 124, 164, .26);
}

.contact-social {
    margin-top: 24px;
}

.contact-social strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
}

.site-footer .social-link {
    color: var(--navy);
    background: var(--white);
}

label {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    color: var(--navy);
    font-weight: 900;
}

input, textarea, select {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--cyan);
    outline: none;
}

.privacy-check {
    grid-template-columns: 22px 1fr;
    align-items: center;
}
.privacy-check input,
.checkbox-line input { width: auto; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.alert {
    border-radius: 8px;
    padding: 13px 15px;
    margin: 12px 0;
    font-weight: 900;
}
.alert-ok { color: #075d46; background: #d9f8ed; }
.alert-error { color: #8a1d1d; background: #ffe3e3; }

.site-footer {
    margin-top: 60px;
    padding: 54px clamp(18px, 4vw, 56px) 24px;
    color: rgba(255, 255, 255, .88);
    background: linear-gradient(135deg, var(--navy), #052238);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .7fr .9fr;
    gap: 26px;
}

.footer-logo {
    max-width: 280px;
    padding: 10px;
    border-radius: 8px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    margin-top: 34px;
    padding-top: 18px;
}

.thid-credit {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-right: 136px;
    white-space: nowrap;
}

.site-footer .thid-credit span {
    display: inline !important;
    margin: 0 !important;
}

.thid-credit img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 40px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    width: auto;
    min-height: auto;
    padding: 10px;
    color: var(--white);
    background: #1fb655;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
    font-weight: 950;
    overflow: hidden;
    transition: gap .22s ease, padding .22s ease, transform .22s ease, box-shadow .22s ease;
}

.whatsapp-float .wa-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, .18);
}

.whatsapp-float .wa-mini svg {
    width: 22px;
    height: 22px;
}

.whatsapp-float strong {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .24s ease, opacity .18s ease;
}

.whatsapp-float:hover {
    gap: 9px;
    padding-right: 16px;
    transform: translateY(-2px);
}

.whatsapp-float:hover strong {
    max-width: 110px;
    opacity: 1;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
}

.notice-modal.is-hidden { display: none; }
.notice-modal__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 26, 42, .58);
    backdrop-filter: blur(8px);
}

.notice-modal__content {
    position: relative;
    width: min(560px, 100%);
    border-radius: 8px;
    padding: clamp(26px, 5vw, 42px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.notice-modal--image .notice-modal__content {
    width: auto;
    max-width: min(680px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.notice-modal__image {
    display: block;
    max-width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 52px);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: var(--shadow);
}

.notice-modal__content h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.notice-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-login-page,
.admin-page {
    background: #f5f7fb;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.login-art {
    display: grid;
    place-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #effbff, #fff2f7);
}

.login-art img {
    max-width: 520px;
}

.admin-login-form {
    display: grid;
    align-content: center;
    padding: clamp(28px, 5vw, 70px);
    background: var(--white);
}

.admin-login-form h1 {
    color: var(--navy);
    font-size: 2.4rem;
}

.admin-hint {
    color: var(--muted);
    font-size: .9rem;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 92px;
    overflow: hidden;
    padding: 20px 12px;
    background: var(--admin-sidebar-bg);
    transition: width .25s ease;
}

.admin-sidebar:hover,
.admin-sidebar-expanded .admin-sidebar {
    width: 284px;
}

.admin-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-sidebar:hover .admin-brand-row,
.admin-sidebar-expanded .admin-brand-row {
    justify-content: space-between;
}

.admin-brand {
    display: grid !important;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--white);
    padding: 0 !important;
}

.admin-brand img {
    width: 52px;
    max-width: none;
    height: 52px;
    object-fit: contain;
}

.admin-sidebar nav {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 8px;
    padding: 12px;
    color: #d6d9ea;
    font-weight: 900;
    white-space: nowrap;
}

.admin-sidebar b {
    transition: opacity .18s ease;
}

.admin-sidebar:not(:hover) b {
    opacity: 0;
}

.admin-sidebar-expanded .admin-sidebar b,
.admin-sidebar:hover b {
    opacity: 1;
}

.sidebar-pin {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    color: #d6d9ea;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.sidebar-pin:hover {
    transform: scale(1.06);
    color: var(--white);
    background: var(--admin-primary);
}

.admin-sidebar:not(:hover) .sidebar-pin {
    display: none;
}

.admin-sidebar-expanded .admin-sidebar:not(:hover) .sidebar-pin {
    display: block;
}

.admin-sidebar-expanded .sidebar-pin {
    color: var(--white);
    background: var(--admin-primary);
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
    color: var(--white);
    background: var(--admin-primary);
}

.admin-sidebar span {
    width: 36px;
    text-align: center;
    font-size: 1.4rem;
}

.admin-main {
    margin-left: 92px;
    padding: 22px;
    transition: margin-left .25s ease;
}

.admin-sidebar-expanded .admin-main {
    margin-left: 284px;
}

.admin-topbar,
.admin-welcome,
.admin-panel,
.admin-form,
.admin-cards article {
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(32, 38, 64, .08);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.admin-topbar > div:first-child {
    display: grid;
    gap: 2px;
}

.admin-topbar span,
.admin-topbar small {
    color: var(--muted);
    font-weight: 800;
}

.admin-topbar strong {
    color: var(--navy);
    font-size: 1.08rem;
}

.theme-switcher {
    display: inline-flex;
    gap: 6px;
    border-radius: 999px;
    padding: 6px;
    background: #eef1ff;
    box-shadow: inset 0 0 0 1px rgba(111, 97, 246, .10);
}

.theme-switcher button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    width: 42px;
    min-height: 40px;
    justify-content: center;
    padding: 9px;
    color: var(--admin-primary);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}

.theme-switcher button::after {
    content: "";
    position: absolute;
    inset: -50% auto -50% -80%;
    width: 48%;
    transform: rotate(18deg);
    background: rgba(255,255,255,.35);
    transition: left .38s ease;
}

.theme-switcher button svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s ease;
}

.theme-switcher button[data-theme-choice="dark"] svg path {
    fill: currentColor;
    stroke: none;
}

.theme-switcher button:hover {
    transform: translateY(-2px);
    color: var(--admin-primary);
    background: rgba(255,255,255,.70);
}

.theme-switcher button:hover::after {
    left: 130%;
}

.theme-switcher button:hover svg {
    transform: rotate(-12deg) scale(1.08);
}

.theme-switcher button.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--admin-primary), var(--cyan));
    box-shadow: 0 12px 26px rgba(111, 97, 246, .24);
}

.theme-switcher button.is-active svg {
    animation: themePulse .9s ease both;
}

@keyframes themePulse {
    0% { transform: scale(.86) rotate(-10deg); }
    55% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.admin-welcome {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 22px 0;
    padding: 28px;
}

.admin-welcome span {
    color: var(--pink);
    font-weight: 950;
    text-transform: uppercase;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-cards article,
.admin-panel,
.admin-form {
    padding: 22px;
}

.admin-cards strong {
    display: block;
    color: var(--admin-primary);
    font-size: 2.4rem;
}

.admin-panel {
    margin-top: 20px;
    overflow-x: auto;
}

.admin-panel__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e5e7f2;
    padding: 12px;
    text-align: left;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-actions button,
.table-actions a {
    border: 0;
    color: var(--admin-primary);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .82rem;
    font-weight: 950;
}

.role-pill--admin {
    color: #173d8f;
    background: #e6ecff;
}

.role-pill--cliente {
    color: #075d46;
    background: #d9f8ed;
}

.admin-form {
    display: grid;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.theme-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.identity-preview {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.identity-preview span,
.color-field span {
    color: var(--navy);
    font-weight: 950;
}

.identity-preview img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--white);
}

.identity-preview small {
    color: var(--muted);
    font-weight: 750;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.color-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 14px;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255,255,255,.62);
}

.color-field span {
    grid-column: 1 / -1;
}

.color-field input[type="color"] {
    width: 62px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.color-field strong {
    color: var(--muted);
    font-size: .96rem;
    text-transform: uppercase;
}

.admin-fieldset {
    border: 1px solid #e5e7f2;
    border-radius: 8px;
    padding: 18px;
    margin: 0 0 16px;
}

.admin-fieldset legend {
    padding: 0 8px;
    color: var(--admin-primary);
    font-weight: 950;
}

.form-thumb {
    display: block;
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
}

.form-thumb--wide {
    width: 280px;
    height: 130px;
}

.form-thumb--popup {
    width: min(320px, 100%);
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background: #f7f9ff;
}

.field-help {
    margin: 0 0 12px;
    color: var(--muted);
}

.editor-shell {
    border: 2px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #f7f9ff;
}

.editor-toolbar button {
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--navy);
    background: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.wysiwyg-editor {
    min-height: 280px;
    padding: 16px;
    outline: none;
}

.is-hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.admin-flash-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
}

.admin-flash-modal.is-hidden { display: none; }

.admin-flash-modal__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(20, 24, 40, .42);
    backdrop-filter: blur(6px);
}

.admin-flash-modal__content {
    position: relative;
    width: min(420px, 100%);
    border-radius: 8px;
    padding: 26px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(32, 38, 64, .20);
}

.admin-flash-modal__content strong {
    display: block;
    color: var(--navy);
    font-size: 1.5rem;
}

.admin-dark {
    color: #d6d9ea;
    background: #20243a;
}

.admin-dark .admin-main {
    background: #20243a;
}

.admin-dark .admin-topbar,
.admin-dark .admin-welcome,
.admin-dark .admin-panel,
.admin-dark .admin-form,
.admin-dark .admin-cards article,
.admin-dark .admin-flash-modal__content {
    color: #d6d9ea;
    background: #30364f;
    box-shadow: none;
}

.admin-dark input,
.admin-dark textarea,
.admin-dark select,
.admin-dark .editor-shell,
.admin-dark .editor-toolbar,
.admin-dark .wysiwyg-editor {
    color: #f8fbff;
    background: #252b45;
    border-color: rgba(255,255,255,.12);
}

.admin-dark .admin-table th,
.admin-dark .admin-table td,
.admin-dark .admin-fieldset {
    border-color: rgba(255,255,255,.12);
}

.admin-dark .section-title h2,
.admin-dark .admin-welcome h1,
.admin-dark .admin-topbar strong,
.admin-dark .identity-preview span,
.admin-dark .color-field span,
.admin-dark label,
.admin-dark .admin-flash-modal__content strong {
    color: #f8fbff;
}

.admin-dark .color-field {
    background: rgba(255,255,255,.04);
}

.admin-dark .identity-preview img {
    background: #f8fbff;
}

@media (max-width: 980px) {
    .hero,
    .about,
    .contact-layout,
    .admin-login,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .service-strip,
    .post-grid,
    .post-grid--wide,
    .gallery-grid,
    .media-grid,
    .admin-cards,
    .theme-admin-grid,
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero { min-height: auto; }
}

@media (max-width: 720px) {
    .top-strip,
    .nav-shell,
    .footer-bottom,
    .banner,
    .admin-welcome {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-shell {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .brand {
        min-width: 0;
    }
    .menu-toggle { display: grid; }
    .main-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, .94);
        box-shadow: var(--shadow);
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav a {
        text-align: center;
    }
    .brand img { width: min(320px, 90vw); }
    .trust-row,
    .service-strip,
    .post-grid,
    .post-grid--wide,
    .gallery-grid,
    .credential-grid,
    .admin-cards,
    .theme-admin-grid,
    .color-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1,
    .page-hero h1,
    .article-page h1 {
        font-size: 2.7rem;
    }
    .admin-sidebar {
        position: static;
        width: auto;
    }
    .admin-sidebar:hover { width: auto; }
    .admin-sidebar-expanded .admin-sidebar { width: auto; }
    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-sidebar-expanded .admin-main { margin-left: 0; }
    .thid-credit {
        margin-right: 90px;
    }
}
