/* =========================================================
   HUB DIGITAL · CONVENCIÓN AMIS 2026
   Estilo base para landing, navegación, formularios y admin.
   Paleta UX/UI propuesta:
   - Naranja AMIS / acción primaria: #ff5a00
   - Azul institucional / profundidad: #101a3a
   - Azul interfaz / tarjetas: #1f3b74
   - Magenta acento: #f72585
   - Turquesa acento técnico: #00b8d9
   - Fondo claro: #f6f8fc
   ========================================================= */

:root {
    --amis-orange: #ff5a00;
    --amis-orange-dark: #d94b00;
    --amis-navy: #101a3a;
    --amis-blue: #1f3b74;
    --amis-blue-soft: #e9eefb;
    --amis-magenta: #f72585;
    --amis-cyan: #00b8d9;
    --amis-green: #38c172;
    --ink: #202431;
    --muted: #667085;
    --line: #dbe2ef;
    --paper: #ffffff;
    --soft-bg: #f6f8fc;
    --danger: #d92d20;
    --success: #079455;
    --warning: #f79009;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 10px 25px rgba(16, 26, 58, .08);
    --shadow-md: 0 22px 60px rgba(16, 26, 58, .14);
    --shadow-glow: 0 22px 80px rgba(255, 90, 0, .20);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 22%, rgba(247, 37, 133, .10), transparent 22%),
        radial-gradient(circle at 92% 10%, rgba(255, 90, 0, .11), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(0, 184, 217, .10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, var(--soft-bg) 52%, #ffffff 100%);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, transparent 0 37%, rgba(255, 90, 0, .10) 37.15%, transparent 37.7% 100%),
        linear-gradient(25deg, transparent 0 73%, rgba(247, 37, 133, .08) 73.15%, transparent 73.8% 100%),
        linear-gradient(155deg, transparent 0 78%, rgba(0, 184, 217, .08) 78.15%, transparent 78.8% 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--amis-orange);
}

img, svg, video, iframe {
    max-width: 100%;
}

.site-main {
    min-height: calc(100vh - 190px);
}

.hub-container,
.site-nav__inner,
.site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* ===================== NAV ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 226, 239, .86);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amis-orange), #ff7a2a);
    box-shadow: 0 14px 30px rgba(255, 90, 0, .22);
    transform: rotate(45deg);
}

.site-brand__mark span {
    display: block;
    border-radius: 4px;
    background: #fff;
    opacity: .95;
}

.site-brand__copy {
    display: grid;
    line-height: 1.05;
}

.site-brand__copy strong {
    color: var(--amis-navy);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.site-brand__copy small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.site-nav__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #344054;
    font-size: .94rem;
    font-weight: 800;
    transition: .18s ease;
}

.site-nav__links a:hover {
    color: var(--amis-orange);
    background: rgba(255, 90, 0, .08);
}

.site-nav__links .nav-cta,
.site-nav__links .nav-admin {
    color: #fff;
    background: linear-gradient(135deg, var(--amis-orange), #ff7a2a);
    box-shadow: 0 12px 28px rgba(255, 90, 0, .22);
}

.site-nav__links .nav-cta:hover,
.site-nav__links .nav-admin:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--amis-orange-dark), var(--amis-orange));
}

.site-nav__links .nav-danger {
    color: var(--danger);
}

.site-nav__toggle,
.site-nav__button {
    display: none;
}

/* ===================== LANDING ===================== */
.hub-home {
    overflow: hidden;
}

.hub-hero {
    position: relative;
    padding: clamp(70px, 8vw, 122px) 0 clamp(54px, 7vw, 96px);
    background:
        radial-gradient(circle at 14% 12%, rgba(247, 37, 133, .16), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(0, 184, 217, .16), transparent 28%),
        linear-gradient(135deg, #101a3a 0%, #142458 46%, #1c3e82 100%);
    color: #fff;
}

.hub-hero::before,
.hub-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.hub-hero::before {
    width: 470px;
    height: 470px;
    left: -220px;
    bottom: -250px;
    background: rgba(247, 37, 133, .36);
    filter: blur(2px);
}

.hub-hero::after {
    width: 680px;
    height: 230px;
    right: -210px;
    bottom: -90px;
    background: linear-gradient(115deg, transparent 0 22%, rgba(247, 37, 133, .75) 22% 46%, rgba(0, 184, 217, .58) 46% 68%, transparent 68%);
    transform: rotate(-13deg);
    opacity: .88;
}

.hub-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
}

.hub-hero__content h1 {
    max-width: 790px;
    margin: 14px 0 18px;
    font-size: clamp(2.35rem, 5vw, 5.1rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -.065em;
}

.hub-hero__content p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.72;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amis-orange);
    box-shadow: 0 0 0 7px rgba(255, 90, 0, .16);
}

.eyebrow--light {
    color: var(--amis-orange-dark);
}

.hub-hero__actions,
.hub-cta__inner .btn {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn + .btn {
    margin-left: 12px;
}

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

.btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--amis-orange), #ff7a2a) !important;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--amis-orange-dark), var(--amis-orange)) !important;
}

.btn-secondary {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .20);
}

.hub-hero__visual {
    position: relative;
}

.dashboard-mockup {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.dashboard-mockup::before {
    content: "";
    position: absolute;
    inset: auto -12% -18% 26%;
    height: 210px;
    background: linear-gradient(135deg, rgba(247, 37, 133, .80), rgba(0, 184, 217, .72));
    transform: rotate(-12deg);
    border-radius: 50px;
}

.dashboard-mockup__bar {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.dashboard-mockup__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
}

.dashboard-mockup__body {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.mockup-card,
.mockup-list span {
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
}

.mockup-card--wide {
    height: 128px;
    background:
        linear-gradient(90deg, rgba(255, 90, 0, .95), rgba(247, 37, 133, .80)),
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.4));
}

.mockup-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.mockup-row .mockup-card {
    height: 116px;
}

.mockup-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mockup-list span {
    height: 18px;
    width: 100%;
    opacity: .88;
}

.mockup-list span:nth-child(2) { width: 82%; }
.mockup-list span:nth-child(3) { width: 64%; }

.hub-section {
    position: relative;
    padding: clamp(58px, 8vw, 96px) 0;
}

.hub-section--white {
    background: rgba(255, 255, 255, .58);
}

.hub-section--soft {
    background:
        linear-gradient(180deg, rgba(246, 248, 252, .96), rgba(255, 255, 255, .92)),
        radial-gradient(circle at 8% 24%, rgba(247, 37, 133, .12), transparent 24%);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading h2 {
    margin: 10px 0 10px;
    color: var(--amis-navy);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.055em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-grid,
.process-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

.feature-card,
.process-card,
.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 226, 239, .94);
    background: rgba(255, 255, 255, .88);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover,
.process-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 90, 0, .28);
}

.feature-card {
    padding: 30px;
    min-height: 240px;
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -56px;
    bottom: -56px;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: rgba(255, 90, 0, .08);
}

.feature-card__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--amis-orange), var(--amis-magenta));
    border-radius: 18px;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(247, 37, 133, .18);
}

.feature-card h3,
.process-card h3,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--amis-navy);
    font-size: 1.18rem;
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: -.025em;
}

.feature-card p,
.process-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    counter-reset: steps;
}

.process-card {
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82)),
        radial-gradient(circle at 88% 0%, rgba(0, 184, 217, .18), transparent 34%);
}

.process-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 36px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--amis-orange-dark);
    background: rgba(255, 90, 0, .11);
    font-weight: 900;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    background: #fff;
}

.category-card__image {
    position: relative;
    min-height: 160px;
    background:
        linear-gradient(135deg, rgba(16, 26, 58, .78), rgba(31, 59, 116, .40)),
        radial-gradient(circle at 22% 24%, rgba(255, 255, 255, .95) 0 2px, transparent 3px),
        radial-gradient(circle at 58% 38%, rgba(255, 255, 255, .72) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 64%, rgba(255, 255, 255, .60) 0 2px, transparent 3px),
        linear-gradient(135deg, #1f3b74, #101a3a);
}

.category-card__image::after {
    content: "";
    position: absolute;
    inset: auto -28px -44px 36px;
    height: 96px;
    border-radius: 28px;
    transform: rotate(-14deg);
    background: linear-gradient(135deg, var(--amis-magenta), var(--amis-cyan));
}

.category-card--2 .category-card__image::after { background: linear-gradient(135deg, var(--amis-orange), var(--amis-magenta)); }
.category-card--3 .category-card__image::after { background: linear-gradient(135deg, var(--amis-cyan), var(--amis-green)); }
.category-card--4 .category-card__image::after { background: linear-gradient(135deg, var(--amis-blue), var(--amis-orange)); }

.category-card__body {
    padding: 20px;
}

.hub-cta {
    padding: clamp(58px, 8vw, 92px) 0;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 26, 58, .96), rgba(31, 59, 116, .94)),
        radial-gradient(circle at 85% 20%, rgba(255, 90, 0, .34), transparent 30%);
}

.hub-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.hub-cta h2 {
    max-width: 780px;
    margin: 10px 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.055em;
}

.hub-cta p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.72;
}

/* ===================== FORMS / AUTH / ADMIN ===================== */
main .bg-white,
main .shadow,
main .rounded,
main .rounded-lg,
main .rounded-xl {
    border-color: rgba(219, 226, 239, .95) !important;
}

main .bg-white {
    background-color: rgba(255, 255, 255, .92) !important;
}

main .shadow,
main .shadow-md,
main .shadow-lg {
    box-shadow: var(--shadow-sm) !important;
}

main .rounded-lg,
main .rounded-xl {
    border-radius: var(--radius-md) !important;
}

main h1,
main h2,
main h3 {
    color: var(--amis-navy);
    letter-spacing: -.025em;
}

main p,
main label,
main td,
main li {
    color: #344054;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    color: var(--ink) !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 0 rgba(16, 26, 58, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
    padding: 11px 14px !important;
}

input[type="file"] {
    padding: 9px 12px !important;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: rgba(255, 90, 0, .78) !important;
    box-shadow: 0 0 0 4px rgba(255, 90, 0, .12) !important;
}

label {
    font-weight: 800;
    color: var(--amis-navy) !important;
}

button[type="submit"],
input[type="submit"],
.bg-blue-600,
.bg-blue-700 {
    color: #fff !important;
    background: linear-gradient(135deg, var(--amis-orange), #ff7a2a) !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    box-shadow: 0 14px 30px rgba(255, 90, 0, .18) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.bg-blue-600:hover,
.bg-blue-700:hover {
    background: linear-gradient(135deg, var(--amis-orange-dark), var(--amis-orange)) !important;
    transform: translateY(-1px);
}

.text-blue-600,
.text-blue-500,
.text-blue-800 {
    color: var(--amis-blue) !important;
}

a.text-blue-600:hover,
a.text-blue-500:hover,
a.text-blue-800:hover {
    color: var(--amis-orange) !important;
}

.bg-blue-100,
.bg-gray-100,
.bg-gray-200 {
    background-color: var(--amis-blue-soft) !important;
}

.bg-green-100 {
    color: var(--success) !important;
    background-color: rgba(7, 148, 85, .10) !important;
    border: 1px solid rgba(7, 148, 85, .18);
}

.bg-red-100 {
    color: var(--danger) !important;
    background-color: rgba(217, 45, 32, .10) !important;
    border: 1px solid rgba(217, 45, 32, .18);
}

/* Admin cards/tables */
main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: .94rem;
}

main thead {
    background: linear-gradient(135deg, var(--amis-navy), var(--amis-blue)) !important;
}

main th {
    color: #fff;
    padding: 14px 16px !important;
    text-align: left;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

main td {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(219, 226, 239, .88);
    vertical-align: middle;
}

main tr:hover td {
    background: rgba(255, 90, 0, .035);
}

.overflow-x-auto {
    border-radius: var(--radius-md);
    border: 1px solid rgba(219, 226, 239, .92);
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

.aspect-w-16 iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-md);
}

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

/* ===================== FOOTER ===================== */
.site-footer {
    position: relative;
    padding: 34px 0;
    color: rgba(255, 255, 255, .78);
    background: var(--amis-navy);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 360px;
    height: 190px;
    background: linear-gradient(135deg, var(--amis-orange), var(--amis-magenta));
    transform: rotate(-12deg);
    opacity: .8;
    border-radius: 42px;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.site-footer__legal {
    text-align: right;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .hub-hero__grid,
    .hub-cta__inner {
        grid-template-columns: 1fr;
    }

    .hub-hero__visual {
        max-width: 640px;
    }

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

@media (max-width: 860px) {
    .site-nav__button {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border-radius: 14px;
        border: 1px solid rgba(219, 226, 239, .92);
        background: #fff;
        cursor: pointer;
    }

    .site-nav__button span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: var(--amis-navy);
    }

    .site-nav__links {
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(255, 255, 255, .97);
        border: 1px solid rgba(219, 226, 239, .94);
        border-radius: 22px;
        box-shadow: var(--shadow-md);
    }

    .site-nav__links a {
        justify-content: center;
    }

    .site-nav__toggle:checked ~ .site-nav__links {
        display: flex;
    }

    .feature-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hub-container,
    .site-nav__inner,
    .site-footer__inner {
        width: min(100% - 28px, 1180px);
    }

    .site-brand__copy small {
        font-size: .68rem;
    }

    .hub-hero {
        padding-top: 56px;
    }

    .hub-hero__content h1 {
        font-size: clamp(2.15rem, 12vw, 3.4rem);
    }

    .btn {
        width: 100%;
    }

    .btn + .btn {
        margin: 12px 0 0;
    }

    .hub-hero__actions {
        display: grid;
    }

    .dashboard-mockup__body {
        padding: 16px;
    }

    .mockup-row {
        grid-template-columns: 1fr;
    }

    .mockup-row .mockup-card {
        height: 72px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card__image {
        min-height: 140px;
    }

    .site-footer__inner {
        display: grid;
    }

    .site-footer__legal {
        text-align: left;
    }

    main table {
        font-size: .86rem;
    }

    main th,
    main td {
        padding: 12px !important;
    }
}


/* ===================== UX/UI PATCH · FRONT + FORMS ===================== */
.amis-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    transform: rotate(15deg);
}

.amis-symbol i {
    display: block;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--amis-orange), #ff7a2a);
    box-shadow: 0 6px 14px rgba(255, 90, 0, .16);
}

.amis-symbol--small {
    width: 34px;
    height: 34px;
}

.site-nav {
    position: relative;
}

.site-nav__links.is-open {
    display: flex !important;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer__links a {
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

.site-footer__links a:hover {
    color: #fff;
}

.eyebrow--light {
    color: var(--amis-orange-dark);
}

.eyebrow--light::before {
    box-shadow: 0 0 0 7px rgba(255, 90, 0, .11);
}

/* Landing page to match provided reference */
.landing-page {
    padding: 34px 0 70px;
}

.landing-sheet {
    overflow: hidden;
    border: 1px solid rgba(219, 226, 239, .9);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.97)),
        radial-gradient(circle at left bottom, rgba(247, 37, 133, .08), transparent 35%),
        radial-gradient(circle at right bottom, rgba(0, 184, 217, .08), transparent 30%);
    box-shadow: 0 28px 80px rgba(16, 26, 58, .10);
}

.landing-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 14% 76%, rgba(247, 37, 133, .95), transparent 20%),
        radial-gradient(circle at 88% 28%, rgba(247, 37, 133, .92), transparent 16%),
        linear-gradient(140deg, rgba(255,255,255,.10) 0 17%, transparent 17% 24%, rgba(0, 184, 217, .42) 24% 28%, transparent 28% 34%, rgba(247, 37, 133, .55) 34% 43%, transparent 43% 100%),
        linear-gradient(135deg, #0d2e78 0%, #144293 52%, #1d7fcb 100%);
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .9fr);
    align-items: center;
    gap: 32px;
    min-height: 470px;
    padding: 56px 56px 46px;
    color: #fff;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 22px 24px auto 24px;
    height: 1px;
    background: rgba(255,255,255,.32);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -95px auto;
    width: 420px;
    height: 160px;
    transform: rotate(-20deg);
    background: linear-gradient(90deg, transparent 0 18%, rgba(0, 184, 217, .45) 18% 30%, rgba(247, 37, 133, .72) 30% 52%, transparent 52%);
    opacity: .95;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.94);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    opacity: .92;
}

.landing-kicker--dark {
    color: var(--amis-orange-dark);
}

.landing-kicker--dark::before {
    background: var(--amis-orange);
}

.landing-hero__copy h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.15rem, 4.2vw, 4rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -.04em;
}

.landing-hero__copy p {
    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1rem, 1.5vw, 1.28rem);
    line-height: 1.7;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-outline,
.btn-secondary--light {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    backdrop-filter: blur(12px);
}

.btn-outline:hover,
.btn-secondary--light:hover {
    color: #fff !important;
    background: rgba(255,255,255,.18) !important;
}

.landing-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.device-mockup {
    position: relative;
    width: min(100%, 440px);
}

.device-mockup__screen {
    position: relative;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(145deg, #0e1020, #2c2f47);
    box-shadow: 0 20px 55px rgba(0,0,0,.38);
    transform: perspective(1200px) rotateY(-11deg) rotateX(5deg);
}

.device-mockup__topbar {
    display: flex;
    gap: 6px;
    padding: 2px 0 12px;
}

.device-mockup__topbar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
}

.device-mockup__content {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #f6f8fc, #edf2fa);
}

.device-row--hero {
    height: 88px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #244f9f, #0f295e);
    position: relative;
    overflow: hidden;
}

.device-row--hero::before,
.device-row--hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.device-row--hero::before {
    width: 120px;
    height: 120px;
    left: -30px;
    bottom: -56px;
    background: rgba(247, 37, 133, .88);
}

.device-row--hero::after {
    width: 150px;
    height: 42px;
    right: -26px;
    bottom: -4px;
    transform: rotate(-16deg);
    background: linear-gradient(90deg, rgba(247,37,133,.8), rgba(0,184,217,.82));
}

.device-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.device-card {
    min-height: 124px;
    padding: 14px 12px;
    border: 1px solid #dfe6f2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(16, 26, 58, .05);
}

.device-card i {
    display: block;
    width: 100%;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(36,79,159,.95), rgba(29,127,203,.75));
}

.device-card b,
.device-card small {
    display: block;
    color: var(--amis-navy);
    line-height: 1.35;
}

.device-card small {
    color: var(--muted);
}

.device-base {
    width: 84%;
    height: 14px;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, #edf2f8, #b7c1cf);
    box-shadow: 0 12px 18px rgba(16,26,58,.18);
}

.landing-panel {
    position: relative;
    padding: 40px 48px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.96)),
        radial-gradient(circle at 0% 100%, rgba(247, 37, 133, .09), transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(0,184,217,.10), transparent 24%);
    border-top: 1px solid rgba(219, 226, 239, .92);
}

.landing-panel--soft {
    background: linear-gradient(180deg, #fbfcff, #f7f9fd);
}

.landing-panel--cta {
    padding-bottom: 48px;
}

.landing-heading {
    margin-bottom: 28px;
}

.landing-heading--center {
    text-align: center;
}

.landing-heading h2 {
    margin: 0 0 12px;
    color: #182149;
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -.03em;
}

.landing-heading p {
    max-width: 880px;
    margin: 0 auto;
    color: #5f6882;
    font-size: 1.03rem;
    line-height: 1.7;
}

.landing-feature-grid,
.landing-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.landing-feature-card,
.landing-category-card {
    height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(219, 226, 239, .94);
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 35px rgba(16, 26, 58, .06);
}

.landing-feature-card {
    padding: 26px 24px;
    text-align: center;
}

.landing-feature-card__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    color: #142458;
    background: linear-gradient(180deg, #fff, #f3f5fb);
    border: 1px solid rgba(219, 226, 239, .94);
    font-size: 1.7rem;
    font-weight: 900;
}

.landing-feature-card h3,
.landing-category-card h3,
.landing-step h3,
.landing-cta h2,
.auth-card h1,
.block-heading h2,
.admin-card h2,
.content-card h3 {
    margin: 0 0 10px;
    color: #1a2148;
    font-weight: 900;
    letter-spacing: -.03em;
}

.landing-feature-card p,
.landing-category-card p,
.landing-step p,
.landing-cta p,
.auth-card p,
.block-heading p,
.content-card p,
.empty-state {
    margin: 0;
    color: #5f6882;
    line-height: 1.65;
}

.landing-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.landing-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #f0dfe9 0 12px, transparent 12px 18px);
}

.landing-step {
    position: relative;
    padding-top: 38px;
    text-align: center;
}

.landing-step__check {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.landing-step--pink .landing-step__check {
    background: linear-gradient(135deg, #ff5dac, var(--amis-magenta));
}

.landing-step--green .landing-step__check {
    background: linear-gradient(135deg, #49d89f, var(--amis-green));
}

.landing-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-category-card {
    overflow: hidden;
}

.landing-category-card__media {
    min-height: 120px;
    background:
        linear-gradient(135deg, rgba(9,26,73,.88), rgba(37,83,160,.42)),
        radial-gradient(circle at 68% 34%, rgba(255,255,255,.60) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,.42) 0 2px, transparent 3px),
        linear-gradient(135deg, #1b4d8f, #0e2449);
    position: relative;
}

.landing-category-card__media::after {
    content: "";
    position: absolute;
    inset: auto -34px -22px 30px;
    height: 52px;
    border-radius: 18px;
    transform: rotate(-14deg);
    background: linear-gradient(135deg, var(--amis-magenta), var(--amis-cyan));
}

.landing-category-card--2 .landing-category-card__media::after { background: linear-gradient(135deg, var(--amis-orange), var(--amis-magenta)); }
.landing-category-card--3 .landing-category-card__media::after { background: linear-gradient(135deg, var(--amis-cyan), #77d4ff); }
.landing-category-card--4 .landing-category-card__media::after { background: linear-gradient(135deg, #7cb7ff, var(--amis-cyan)); }

.landing-category-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
}

.landing-category-card__body a,
.landing-category-card__arrow {
    margin-top: auto;
    align-self: flex-end;
    color: var(--amis-navy);
    font-size: 1.4rem;
    font-weight: 900;
}

.landing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16,26,58,.98), rgba(31,59,116,.97));
    box-shadow: 0 22px 55px rgba(16, 26, 58, .16);
}

.landing-cta h2,
.landing-cta p {
    color: #fff;
}

.landing-cta p {
    color: rgba(255,255,255,.82);
}

.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-outline {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    background: rgba(255,255,255,.08) !important;
}

/* Auth and forms */
.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 52px 20px 70px;
}

.auth-card,
.content-block {
    width: min(100%, 860px);
    padding: 34px;
    border-radius: 28px;
    border: 1px solid rgba(219, 226, 239, .92);
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 60px rgba(16, 26, 58, .08);
}

.auth-card {
    width: min(100%, 560px);
}

.auth-card--wide {
    width: min(100%, 760px);
}

.auth-card h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.stack-form,
.form-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

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

.form-full {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    display: block;
    color: #1a2148 !important;
    font-size: .96rem;
    font-weight: 800;
}

.field small {
    color: #7b849d;
}

.field__hint {
    margin-top: -2px;
}

.field__error {
    min-height: 16px;
    color: var(--danger);
    font-size: .83rem;
    line-height: 1.35;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: rgba(217, 45, 32, .75) !important;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .10) !important;
}

.form-actions {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.full {
    width: 100%;
}

.auth-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.auth-links a {
    color: var(--amis-blue);
    font-weight: 800;
}

.alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.5;
}

.alert-success {
    color: #086d46;
    background: rgba(7, 148, 85, .10);
    border-color: rgba(7, 148, 85, .18);
}

.alert-danger {
    color: #a32018;
    background: rgba(217, 45, 32, .10);
    border-color: rgba(217, 45, 32, .18);
}

/* Private area */
.private-shell {
    padding: 34px 0 70px;
}

.hero-private {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    padding: 30px 32px;
    margin-bottom: 28px;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #10204c, #234d96),
        radial-gradient(circle at right top, rgba(247,37,133,.28), transparent 25%);
    color: #fff;
    box-shadow: 0 24px 70px rgba(16,26,58,.16);
}

.hero-private h1,
.hero-private p,
.hero-private strong,
.hero-private span {
    color: inherit;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.stats-row article {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}

.stats-row strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.45rem;
    font-weight: 900;
}

.stats-row span {
    color: rgba(255,255,255,.78);
}

.mini-dashboard {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}

.mini-dashboard span,
.mini-dashboard i {
    display: block;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
}

.mini-dashboard span {
    height: 138px;
}

.mini-dashboard i {
    height: 20px;
}

.with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-sm {
    min-height: 42px;
    padding: 11px 18px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(219, 226, 239, .95);
    background: #fff;
    color: #22315f;
    font-weight: 800;
}

.chip small {
    color: #7a86a3;
}

.content-grid {
    display: grid;
    gap: 18px;
}

.content-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(219, 226, 239, .94);
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 26, 58, .05);
}

.content-card__media {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16,26,58,.88), rgba(31,59,116,.64));
    color: #fff;
    font-size: 1.9rem;
    font-weight: 900;
}

.content-card__media img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 14px;
}

.content-card__body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge--video { color: #0e5fbc; background: rgba(14,95,188,.10); }
.badge--pdf { color: #a32018; background: rgba(217,45,32,.10); }
.badge--ppt { color: #8c4f02; background: rgba(247,144,9,.14); }
.badge--link,
.badge--doc,
.badge--otro { color: #086d46; background: rgba(7,148,85,.10); }

.empty-state {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px dashed rgba(219, 226, 239, .95);
}

.empty-state.full {
    grid-column: 1 / -1;
}

/* Admin */
.admin-hero {
    padding: 46px 0 24px;
}

.admin-content {
    padding-bottom: 70px;
}

.admin-stats,
.admin-grid {
    display: grid;
    gap: 18px;
}

.admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.admin-stats article,
.admin-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(219, 226, 239, .94);
    box-shadow: 0 16px 38px rgba(16, 26, 58, .06);
}

.admin-stats span {
    display: block;
    color: #667085;
    font-weight: 800;
}

.admin-stats strong {
    display: block;
    margin-top: 8px;
    color: #182149;
    font-size: 2rem;
    font-weight: 900;
}

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

.admin-card span {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,90,0,.12), rgba(247,37,133,.12));
    font-size: 1.4rem;
}

/* Responsive patch */
@media (max-width: 1100px) {
    .landing-category-grid,
    .content-grid--four,
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .landing-hero,
    .landing-cta,
    .hero-private,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero__visual {
        max-width: 520px;
        margin-inline: auto;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .landing-panel,
    .auth-card,
    .content-block,
    .hero-private {
        padding: 26px 22px;
    }

    .landing-hero {
        min-height: auto;
        padding: 46px 22px 30px;
    }

    .landing-feature-grid,
    .landing-category-grid,
    .landing-steps,
    .form-grid,
    .content-grid--four,
    .admin-stats,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .landing-steps::before {
        display: none;
    }

    .landing-step {
        padding: 46px 0 0;
    }

    .landing-cta__actions,
    .landing-hero__actions,
    .auth-links {
        display: grid;
        gap: 12px;
    }

    .btn,
    .landing-cta__actions .btn,
    .landing-hero__actions .btn {
        width: 100%;
    }

    .with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__links {
        justify-content: flex-start;
    }
}

/* Final overrides */
.btn-secondary {
    color: var(--amis-blue) !important;
    background: #eef3fb !important;
    border: 1px solid rgba(31, 59, 116, .12) !important;
}

.btn-secondary:hover {
    color: var(--amis-orange) !important;
    background: #e8eef9 !important;
}

.content-block {
    width: 100%;
}

.content-block + .content-block {
    margin-top: 24px;
}

.block-heading {
    margin-bottom: 22px;
}

#perfil-form .form-grid {
    max-width: 760px;
    margin-inline: auto;
}

/* ===================== SECOND VERSION · INDEX + PROFILE + ADMIN ===================== */
.public-page .site-main {
    background:
        linear-gradient(180deg, #fbfcff 0%, #ffffff 48%, #f6f8fc 100%);
}

.public-page .landing-page {
    padding-top: 18px;
}

.public-page .landing-sheet {
    max-width: 1120px;
    margin-inline: auto;
    border-radius: 0;
    border: 0;
    box-shadow: 0 18px 70px rgba(16,26,58,.12);
}

.public-page .landing-hero-panel {
    min-height: 520px;
}

.public-page .landing-hero {
    min-height: 520px;
    padding: 72px 70px 58px;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
}

.public-page .landing-hero__copy h1 {
    max-width: 640px;
    font-size: clamp(2.2rem, 4.8vw, 4.45rem);
}

.public-page .landing-panel {
    padding-inline: 66px;
}

.public-page .landing-feature-card {
    min-height: 210px;
    display: grid;
    align-content: center;
}

.public-page .landing-steps {
    max-width: 960px;
    margin-inline: auto;
}

.public-page .landing-category-card__media {
    min-height: 132px;
}

.public-page .landing-panel--cta {
    padding-top: 28px;
}

/* Profile visual inspired by supplied dashboard reference */
.profile-dashboard-page .site-main {
    background: #fbfcff;
}

.profile-dashboard {
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 42%, rgba(247,37,133,.13), transparent 18%),
        radial-gradient(circle at 100% 62%, rgba(0,184,217,.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f4f6fc 46%, #ffffff 100%);
}

.profile-dashboard__hero {
    position: relative;
    min-height: 660px;
    padding: 0 0 40px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 64%, rgba(247,37,133,.95), transparent 18%),
        radial-gradient(circle at 86% 24%, rgba(247,37,133,.88), transparent 19%),
        linear-gradient(135deg, rgba(0,184,217,.72) 0 8%, transparent 8% 18%, rgba(247,37,133,.58) 18% 31%, transparent 31% 100%),
        linear-gradient(135deg, #0c2d73 0%, #164794 47%, #1d7dc4 100%);
}

.profile-dashboard__hero::before {
    content: "";
    position: absolute;
    inset: 76px 0 auto 0;
    height: 1px;
    background: rgba(255,255,255,.32);
}

.profile-dashboard__hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -110px;
    width: 640px;
    height: 210px;
    transform: rotate(-18deg);
    border-radius: 34px;
    background: linear-gradient(90deg, transparent 0 12%, rgba(0,184,217,.52) 12% 28%, rgba(247,37,133,.74) 28% 54%, transparent 54% 100%);
    opacity: .92;
}

.profile-topbar,
.profile-hero-grid {
    position: relative;
    z-index: 1;
}

.profile-topbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.profile-topbar__brand {
    color: rgba(255,255,255,.55);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-topbar__nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-topbar__nav a {
    padding: 10px 15px;
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    font-weight: 800;
}

.profile-topbar__nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.profile-avatar-small,
.profile-photo {
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.profile-avatar-small {
    width: 46px;
    height: 46px;
    background: #fff;
    color: var(--amis-blue);
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding-top: 34px;
}

.profile-welcome {
    margin-bottom: 24px;
}

.profile-welcome h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.profile-welcome p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(1.05rem, 2vw, 1.8rem);
}

.profile-user-panel {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.94);
    color: #1a2148;
    box-shadow: 0 28px 70px rgba(16,26,58,.22);
    backdrop-filter: blur(14px);
}

.profile-identity {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px 22px;
    border-bottom: 1px solid rgba(219,226,239,.94);
}

.profile-photo {
    position: relative;
    width: 76px;
    height: 76px;
    color: #fff;
    background: linear-gradient(135deg, var(--amis-blue), #5b7ac8);
    font-size: 1.35rem;
    box-shadow: 0 15px 32px rgba(31,59,116,.22);
}

.profile-photo span {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--amis-green);
}

.profile-identity h2 {
    margin: 0 0 4px;
    color: #1a2148;
    font-size: 1.45rem;
    line-height: 1.15;
}

.profile-identity p {
    margin: 0 0 8px;
    color: #667085;
    font-weight: 700;
    word-break: break-word;
}

.profile-identity strong {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amis-green), #17b37f);
    font-size: .82rem;
}

.profile-activity {
    padding: 22px;
    border-bottom: 1px solid rgba(219,226,239,.94);
}

.profile-activity h3 {
    margin: 0 0 16px;
    color: #4b5270;
    font-size: 1.05rem;
}

.profile-activity__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: start;
    gap: 12px;
    padding: 13px 0;
    color: #1a2148;
    border-bottom: 1px solid rgba(219,226,239,.70);
}

.profile-activity__item:last-of-type {
    border-bottom: 0;
}

.profile-activity__item > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--amis-magenta);
    font-size: .74rem;
    font-weight: 900;
}

.profile-activity__item strong,
.profile-activity__item small {
    display: block;
}

.profile-activity__item small {
    margin-top: 4px;
    color: #8a92aa;
}

.profile-activity__item i {
    color: #ffbd3a;
    font-style: normal;
}

.profile-empty {
    color: #667085;
}

.profile-link {
    display: inline-flex;
    margin-top: 14px;
    color: #5e6380;
    font-weight: 800;
}

.profile-side-menu {
    display: grid;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(219,226,239,.94);
}

.profile-side-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #2b3155;
    font-size: 1.08rem;
    font-weight: 900;
}

.profile-side-menu a + a {
    border-top: 1px solid rgba(219,226,239,.70);
}

.profile-mini-banner {
    height: 78px;
    margin: 22px 22px 0;
    border-radius: 6px;
    background:
        radial-gradient(circle at 88% 48%, rgba(247,37,133,.88), transparent 24%),
        linear-gradient(135deg, #081f5a, #164794 58%, #0fb8d9);
}

.profile-user-panel > .profile-link {
    padding: 0 22px 22px;
}

.profile-right-column {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-laptop {
    width: min(100%, 610px);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}

.profile-laptop__screen {
    overflow: hidden;
    border-radius: 24px;
    border: 12px solid #13172a;
    background: #eef3fb;
    box-shadow: 0 28px 70px rgba(0,0,0,.32);
}

.profile-laptop__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding-inline: 18px;
    background: #101a3a;
}

.profile-laptop__bar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
}

.profile-laptop__filters {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr .9fr;
    gap: 12px;
    padding: 18px;
}

.profile-laptop__filters i {
    height: 34px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(16,26,58,.06);
}

.profile-laptop__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 18px 20px;
}

.profile-laptop__cards b {
    height: 138px;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 0 56%, #fff 56% 100%),
        radial-gradient(circle at 22% 30%, rgba(247,37,133,.50), transparent 22%),
        linear-gradient(135deg, #204e9a, #0e2d73);
}

.profile-laptop__base {
    width: 82%;
    height: 18px;
    margin: 0 auto;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, #f2f5fb, #aab4c4);
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.profile-content-wrap {
    position: relative;
    margin-top: -170px;
    padding-bottom: 80px;
    z-index: 3;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.profile-sidebar-spacer {
    min-height: 1px;
}

.profile-main-panel {
    min-width: 0;
}

.library-console {
    padding: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 26px 70px rgba(16,26,58,.14);
    border: 1px solid rgba(219,226,239,.94);
}

.library-console__header,
.library-section-head,
.library-section-head--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.library-console h2,
.library-section-head h2,
.library-section-head h3 {
    margin: 0;
    color: #1a2148;
    font-weight: 900;
    letter-spacing: -.03em;
}

.library-console__header p {
    margin: 5px 0 0;
    color: #667085;
}

.library-search {
    display: grid;
    grid-template-columns: minmax(210px, 320px) 46px;
    gap: 8px;
    align-items: center;
}

.library-search input {
    border-radius: 10px !important;
    min-height: 48px;
}

.library-search button {
    width: 46px;
    min-height: 46px;
    border-radius: 12px !important;
    color: #fff !important;
    background: var(--amis-blue) !important;
    box-shadow: none !important;
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 20px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: #168bd2;
    font-size: .86rem;
    font-weight: 900;
}

.profile-chip:nth-child(1) { background: var(--amis-magenta); }
.profile-chip:nth-child(2) { background: #1588d2; }
.profile-chip:nth-child(3) { background: #4db56f; }
.profile-chip:nth-child(4) { background: #2169bf; }
.profile-chip--favorite { background: #ec76b8 !important; }

.library-section-head {
    margin: 22px 0 18px;
}

.library-section-head a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 12px;
    color: #fff;
    background: #1069c8;
    font-weight: 900;
}

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

.profile-card-row--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-content-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(219,226,239,.94);
    box-shadow: 0 16px 30px rgba(16,26,58,.07);
}

.profile-content-card__media {
    position: relative;
    display: block;
    min-height: 118px;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 36%, rgba(255,255,255,.70) 0 3px, transparent 4px),
        linear-gradient(135deg, rgba(16,26,58,.86), rgba(31,86,170,.54)),
        linear-gradient(135deg, #112e74, #1c78ba);
}

.profile-content-card__media img {
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.profile-content-card__media span {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 78%;
    padding: 8px 13px;
    border-radius: 0 0 12px 0;
    color: #fff;
    background: var(--amis-magenta);
    font-size: .78rem;
    font-weight: 900;
}

.profile-content-card__media i {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #dfe8f8;
    font-style: normal;
    font-size: 1.2rem;
}

.profile-content-card__body {
    padding: 15px 16px 16px;
}

.profile-content-card__body h4 {
    margin: 0 0 8px;
    color: #1a2148;
    font-size: 1.02rem;
    line-height: 1.22;
    font-weight: 900;
}

.profile-content-card__body p,
.profile-content-card__body small {
    display: block;
    color: #667085;
}

.profile-content-card__body p {
    margin: 0 0 12px;
    font-size: .88rem;
}

.profile-content-card__body small {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .82rem;
}

.profile-content-card__body b {
    color: #1a2148;
    font-size: 1.1rem;
}

.profile-wide-section {
    margin-top: 34px;
    padding: 26px 28px 32px;
    background: rgba(255,255,255,.72);
    border-top: 1px solid rgba(219,226,239,.7);
}

.slider-arrows {
    display: inline-flex;
    gap: 8px;
}

.slider-arrows span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #98a2b3;
    border: 1px solid rgba(219,226,239,.94);
    font-weight: 900;
}

.profile-form-section {
    margin-top: 36px;
}

.profile-form-section .content-block {
    max-width: 900px;
    margin-inline: auto;
}

/* Admin second version */
.admin-page .site-main {
    background:
        radial-gradient(circle at 0 18%, rgba(247,37,133,.08), transparent 20%),
        radial-gradient(circle at 100% 6%, rgba(255,90,0,.10), transparent 22%),
        linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
}

.admin-page .admin-hero {
    padding: 56px 0 34px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16,26,58,.98), rgba(31,59,116,.96)),
        radial-gradient(circle at 90% 10%, rgba(247,37,133,.35), transparent 30%);
}

.admin-page .admin-hero .hub-container {
    position: relative;
}

.admin-page .admin-hero h1 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.admin-page .admin-hero p {
    max-width: 780px;
    color: rgba(255,255,255,.76);
    font-size: 1.08rem;
}

.admin-page .admin-content {
    margin-top: -22px;
}

.admin-page .admin-stats article,
.admin-page .admin-card,
.admin-page main .bg-white {
    border-radius: 24px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 18px 48px rgba(16,26,58,.08) !important;
}

.admin-page .admin-card {
    position: relative;
    overflow: hidden;
}

.admin-page .admin-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -50px;
    width: 140px;
    height: 90px;
    border-radius: 24px;
    transform: rotate(-16deg);
    background: linear-gradient(135deg, rgba(255,90,0,.18), rgba(247,37,133,.18));
}

.admin-page .admin-card h2,
.admin-page .admin-card p,
.admin-page .admin-card span {
    position: relative;
    z-index: 1;
}

@media (max-width: 1180px) {
    .profile-content-grid,
    .profile-hero-grid {
        grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    }

    .profile-card-row--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .public-page .landing-hero {
        grid-template-columns: 1fr;
        padding: 54px 32px 42px;
    }

    .public-page .landing-panel {
        padding-inline: 30px;
    }

    .profile-dashboard__hero {
        min-height: 0;
        padding-bottom: 220px;
    }

    .profile-topbar,
    .profile-hero-grid,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-topbar__nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-user-panel {
        max-width: 540px;
    }

    .profile-right-column {
        min-height: 280px;
    }

    .profile-content-wrap {
        margin-top: -190px;
    }

    .profile-sidebar-spacer {
        display: none;
    }

    .profile-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .public-page .landing-page {
        padding: 0 0 42px;
    }

    .public-page .hub-container {
        width: 100%;
    }

    .public-page .landing-hero {
        padding: 42px 20px 32px;
    }

    .public-page .landing-panel {
        padding: 32px 18px;
    }

    .profile-dashboard__hero {
        padding-bottom: 150px;
    }

    .profile-topbar {
        width: min(100% - 28px, 1180px);
        gap: 12px;
    }

    .profile-topbar__brand {
        font-size: .78rem;
    }

    .profile-topbar__nav a {
        padding: 8px 10px;
        font-size: .86rem;
    }

    .profile-hero-grid,
    .profile-content-grid,
    .profile-wide-section,
    .profile-form-section {
        width: min(100% - 28px, 1180px);
    }

    .profile-content-wrap {
        margin-top: -135px;
    }

    .profile-identity {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .profile-photo {
        width: 62px;
        height: 62px;
    }

    .library-console,
    .profile-wide-section {
        padding: 22px 16px;
    }

    .library-console__header,
    .library-section-head,
    .library-section-head--wide {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-search {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .profile-card-row,
    .profile-card-row--four {
        grid-template-columns: 1fr;
    }

    .profile-laptop {
        transform: none;
    }
}

/* =========================================================
   PATCH EVENTO AMIS · Logo oficial + formularios estilo convención
   ========================================================= */
:root {
    --event-blue-900: #003f6f;
    --event-blue-800: #005487;
    --event-blue-700: #0067a6;
    --event-blue-600: #0677b8;
    --event-cyan: #19bfe8;
    --event-lime: #a6ce39;
    --event-lime-dark: #86ad20;
    --event-form-bg: #f4f6f8;
    --event-form-line: #d9dee6;
    --event-text: #222a36;
}

body {
    background:
        radial-gradient(circle at 17% 22%, rgba(25, 191, 232, .18), transparent 26%),
        radial-gradient(circle at 92% 12%, rgba(166, 206, 57, .12), transparent 24%),
        linear-gradient(135deg, #003f6f 0%, #005b91 48%, #0074ad 100%);
}

body.public-page,
body.private-page,
body.admin-page {
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8fb 54%, #ffffff 100%);
}

body.convention-form-page {
    background:
        radial-gradient(circle at 17% 18%, rgba(20, 161, 210, .28), transparent 26%),
        linear-gradient(135deg, #003d69 0%, #005487 50%, #006aa3 100%);
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 4px solid var(--event-lime);
    box-shadow: 0 10px 32px rgba(0, 63, 111, .12);
}

.site-nav__inner {
    min-height: 82px;
}

.site-brand--official {
    gap: 16px;
}

.site-brand__logo {
    width: clamp(112px, 13vw, 168px);
    max-height: 58px;
    object-fit: contain;
    display: block;
}

.site-brand__copy strong {
    color: var(--event-blue-900);
    font-size: 1.05rem;
}

.site-brand__copy small {
    color: #5a6472;
}

.site-nav__links a {
    color: var(--event-blue-900);
}

.site-nav__links .nav-cta,
.site-nav__links .nav-admin,
.btn-primary,
button[type="submit"],
input[type="submit"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--event-lime), var(--event-lime-dark)) !important;
    box-shadow: 0 12px 28px rgba(166, 206, 57, .28) !important;
}

.site-nav__links .nav-cta:hover,
.site-nav__links .nav-admin:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--event-lime-dark), #739718) !important;
}

.site-footer {
    background: #003f6f;
    border-top: 4px solid var(--event-lime);
}

.site-footer__logo {
    width: 128px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
}

/* Landing más cercana al sitio de evento */
.public-page .landing-page {
    padding: 34px 0 76px;
    background:
        radial-gradient(circle at 12% 20%, rgba(25, 191, 232, .10), transparent 24%),
        linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}

.public-page .landing-sheet {
    border-radius: 30px;
    border: 1px solid rgba(0, 84, 135, .16);
    box-shadow: 0 30px 90px rgba(0, 63, 111, .13);
}

.public-page .landing-hero-panel {
    background:
        radial-gradient(circle at 16% 78%, rgba(233, 32, 137, .95), transparent 20%),
        radial-gradient(circle at 90% 16%, rgba(233, 32, 137, .92), transparent 16%),
        linear-gradient(140deg, rgba(255,255,255,.10) 0 17%, transparent 17% 24%, rgba(25, 191, 232, .48) 24% 29%, transparent 29% 34%, rgba(233, 32, 137, .58) 34% 43%, transparent 43% 100%),
        linear-gradient(135deg, #003f6f 0%, #005487 52%, #0082bd 100%);
}

.public-page .landing-hero {
    min-height: 500px;
}

.public-page .landing-feature-card__icon {
    color: var(--event-blue-900);
    border-color: rgba(0, 84, 135, .12);
}

.public-page .landing-panel {
    border-top: 1px solid rgba(0, 84, 135, .12);
}

.public-page .landing-cta {
    background: linear-gradient(135deg, var(--event-blue-900), var(--event-blue-700));
    border-bottom: 5px solid var(--event-lime);
}

/* Formularios oficiales tipo sitio convención */
.conv-form-shell {
    width: min(100% - 32px, 1360px);
    margin-inline: auto;
    padding: clamp(30px, 5vw, 58px) 0 clamp(48px, 7vw, 88px);
}

.conv-form-shell--login {
    width: min(100% - 32px, 980px);
}

.conv-form-card {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.26);
    background: var(--event-form-bg);
    box-shadow: 0 28px 70px rgba(0, 42, 74, .30);
}

.conv-form-card--compact {
    max-width: 920px;
    margin-inline: auto;
}

.conv-form-card__header {
    padding: 20px 28px;
    background: var(--event-blue-700);
    border-bottom: 5px solid var(--event-lime);
}

.conv-form-card__header h1,
.conv-form-card__header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.025em;
}

.conv-form-card__body {
    padding: clamp(18px, 2.4vw, 28px);
}

.conv-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(22px, 3vw, 34px);
    align-items: start;
    margin: 0;
}

.conv-form-main {
    display: grid;
    gap: 22px;
}

.conv-intro {
    margin: 0;
    color: #4d5967;
    font-size: 1rem;
    line-height: 1.65;
}

.conv-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.conv-form-card .field {
    display: grid;
    gap: 7px;
}

.conv-form-card .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.conv-form-card input,
.conv-form-card select,
.conv-form-card textarea {
    min-height: 54px !important;
    padding: 13px 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--event-form-line) !important;
    background-color: #fff !important;
    color: var(--event-text) !important;
    font-size: clamp(.98rem, 1.5vw, 1.12rem) !important;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.conv-form-card input::placeholder,
.conv-form-card textarea::placeholder {
    color: #5c6470;
    opacity: 1;
    text-transform: uppercase;
}

.conv-form-card select {
    appearance: auto;
}

.conv-form-card input:focus,
.conv-form-card select:focus,
.conv-form-card textarea:focus {
    border-color: var(--event-cyan) !important;
    box-shadow: 0 0 0 4px rgba(25, 191, 232, .16) !important;
}

.conv-form-card input[readonly] {
    color: #5f6874 !important;
    background: #eef2f6 !important;
}

.conv-form-card .field__hint,
.conv-form-card .field__error {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

.conv-form-card .field__error {
    color: #c72828;
    font-size: .82rem;
    font-weight: 700;
}

.promo-box {
    padding: 18px 18px 20px;
    border-radius: 7px;
    border: 1px solid var(--event-cyan);
    background: #fff;
}

.promo-box label {
    display: block;
    margin-bottom: 12px;
    color: var(--event-cyan) !important;
    font-size: 1.03rem;
    font-weight: 900;
}

.promo-box__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
}

.promo-box__row input {
    border-radius: 8px 0 0 8px !important;
}

.promo-box__row button {
    min-height: 54px;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    background: var(--event-cyan);
    font-weight: 900;
    cursor: pointer;
}

.actuary-box {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--event-form-line);
    border-radius: 8px;
    background: #f8fafc;
}

.actuary-box legend {
    padding: 0;
    margin-bottom: 8px;
    color: #075bf2;
    font-weight: 900;
}

.actuary-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1f2630 !important;
    font-weight: 500;
}

.actuary-box input[type="radio"] {
    width: 18px !important;
    min-height: auto !important;
    height: 18px !important;
    margin-top: 2px;
    accent-color: #2878f0;
}

.conv-continue {
    width: auto;
    min-width: 190px;
    min-height: 54px;
    padding-inline: 32px;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.conv-form-aside {
    min-height: 100%;
    padding: 26px 28px;
    border: 1px solid var(--event-form-line);
    border-radius: 8px;
    background: #f6f7f8;
    color: #4e5965;
}

.conv-form-aside h2,
.conv-form-aside h3 {
    margin: 0 0 12px;
    color: #202631;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -.01em;
}

.conv-form-aside h3 {
    margin-top: 16px;
}

.conv-form-aside p {
    margin: 0 0 14px;
    color: #586371;
    line-height: 1.55;
    font-size: .96rem;
}

.conv-form-aside a,
.conv-blue-note {
    color: #075bf2 !important;
    font-weight: 700;
}

.conv-form-aside hr {
    border: 0;
    border-top: 1px solid #d5dbe4;
    margin: 20px 0;
}

.conv-form-card .auth-links {
    justify-content: flex-start;
}

.conv-form-card .auth-links a {
    color: var(--event-blue-800);
}

/* Perfil y administración con ajuste cromático al sitio */
.profile-dashboard-page .site-header,
.admin-page .site-header {
    border-bottom-color: var(--event-lime);
}

.profile-dashboard__hero {
    background:
        radial-gradient(circle at 9% 66%, rgba(233, 32, 137, .88), transparent 18%),
        radial-gradient(circle at 92% 10%, rgba(233, 32, 137, .86), transparent 18%),
        linear-gradient(145deg, rgba(255,255,255,.08) 0 14%, transparent 14% 22%, rgba(25,191,232,.42) 22% 28%, transparent 28% 34%, rgba(233,32,137,.50) 34% 43%, transparent 43% 100%),
        linear-gradient(135deg, #003f6f, #005487 52%, #0080bd) !important;
}

.profile-user-panel,
.library-console,
.profile-wide-section,
.profile-form-section .conv-form-card,
.admin-panel,
.admin-card,
.admin-stats article {
    border-color: rgba(0, 84, 135, .14) !important;
    box-shadow: 0 18px 46px rgba(0, 63, 111, .10) !important;
}

.profile-chip,
.library-section-head a,
.profile-link {
    color: var(--event-blue-800) !important;
}

.profile-chip:first-child,
.profile-chip--favorite,
.profile-content-card__media span {
    background: #e92089 !important;
}

.profile-chip:nth-child(2) { background: #1f9bd2 !important; color: #fff !important; }
.profile-chip:nth-child(3) { background: #5eba66 !important; color: #fff !important; }
.profile-chip:nth-child(4) { background: #206db7 !important; color: #fff !important; }

.admin-hero {
    background: linear-gradient(135deg, #003f6f, #006aa3);
    color: #fff;
    margin-bottom: 28px;
}

.admin-hero h1,
.admin-hero p,
.admin-hero .eyebrow {
    color: #fff;
}

.admin-panel {
    border-top: 5px solid var(--event-lime);
}

/* Admin formularios más ordenados */
.admin-panel .form-grid,
.admin-content .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.admin-panel label,
.admin-content label {
    display: grid;
    gap: 8px;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-content input,
.admin-content select,
.admin-content textarea {
    border-radius: 8px !important;
}

/* Responsivo */
@media (max-width: 1080px) {
    .conv-form-layout {
        grid-template-columns: 1fr;
    }

    .conv-form-aside {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .site-nav__inner {
        min-height: 76px;
    }

    .site-brand__logo {
        width: 112px;
    }

    .site-brand__copy small {
        max-width: 150px;
    }

    .conv-form-shell {
        width: min(100% - 20px, 1360px);
        padding-top: 22px;
    }

    .conv-form-card__header {
        padding: 18px 20px;
    }

    .conv-form-card__body {
        padding: 16px;
    }

    .conv-grid-2,
    .admin-panel .form-grid,
    .admin-content .form-grid {
        grid-template-columns: 1fr;
    }

    .promo-box__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promo-box__row input,
    .promo-box__row button {
        border-radius: 8px !important;
    }

    .conv-continue {
        width: 100%;
    }

    .conv-form-aside {
        padding: 20px;
    }
}


/* Ajustes posteriores: conservar lógica original del registro y mejorar imágenes de categorías */
.conv-form-card--simple-registro .conv-form-main {
    gap: 24px;
}

.conv-form-card--simple-registro .conv-grid-2 {
    align-items: start;
}

.conv-form-card--simple-registro .form-full {
    grid-column: 1 / -1;
}

.landing-category-card__media {
    min-height: 164px;
    overflow: hidden;
}

.landing-category-card__media img {
    width: 100%;
    height: 164px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.landing-category-card:hover .landing-category-card__media img {
    transform: scale(1.05);
    transition: transform .35s ease;
}


/* ===== Versión uniforme 2: visual unificado AMIS ===== */
body.private-page,
body.admin-page,
body.public-page {
    background:
        radial-gradient(circle at 8% 18%, rgba(25,191,232,.08), transparent 22%),
        radial-gradient(circle at 92% 8%, rgba(233,32,137,.09), transparent 18%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(12px);
    background: rgba(0, 84, 135, .95);
    box-shadow: 0 10px 28px rgba(0, 42, 74, .12);
}

.site-footer {
    background: linear-gradient(135deg, #003f6f, #005487 55%, #0d74aa);
    color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer strong {
    color: inherit;
}

.page-hero--library,
.admin-page .admin-hero,
.profile-wide-section,
.library-console,
.content-card,
.admin-page .admin-card,
.admin-page .admin-stats article,
.profile-content-card,
.filter-bar {
    border-radius: 18px !important;
}

.page-hero--library,
.admin-page .admin-hero {
    position: relative;
    overflow: hidden;
    margin: 22px auto 26px;
    border-bottom: 4px solid var(--event-lime);
    background:
        radial-gradient(circle at 88% 20%, rgba(233,32,137,.60), transparent 16%),
        radial-gradient(circle at 14% 82%, rgba(25,191,232,.32), transparent 18%),
        linear-gradient(135deg, #003f6f, #005487 52%, #0d74aa);
    box-shadow: 0 24px 60px rgba(0, 63, 111, .18);
}

.page-hero--library .hub-container,
.admin-page .admin-hero .hub-container {
    padding: 42px 38px;
}

.page-hero--library h1,
.page-hero--library p,
.page-hero--library .eyebrow,
.admin-page .admin-hero h1,
.admin-page .admin-hero p,
.admin-page .admin-hero .eyebrow {
    color: #fff !important;
}

.filter-bar {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(0, 84, 135, .10);
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 38px rgba(0, 42, 74, .06);
}

.filter-bar label {
    font-weight: 800;
    color: #16325f;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border-radius: 12px !important;
}

.content-card,
.profile-content-card,
.admin-page .admin-card,
.admin-page .admin-stats article,
.library-console,
.profile-wide-section {
    border: 1px solid rgba(0,84,135,.10) !important;
    box-shadow: 0 18px 42px rgba(0, 42, 74, .08) !important;
}

.content-card__media {
    min-height: 160px;
    padding: 0;
    background: linear-gradient(135deg, #0b3e75, #1b7dbc);
}

.content-card__media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.content-card__body h3,
.content-card__body h3 a,
.profile-content-card__body h4,
.profile-content-card__body h4 a,
.admin-page .admin-card h2 {
    color: #16325f;
}

.profile-content-card__media {
    min-height: 152px;
    background: linear-gradient(135deg, #0b3e75, #1b7dbc);
}

.profile-content-card__media img {
    width: 100%;
    height: 152px;
    object-fit: cover;
}

.profile-content-card__body {
    padding: 16px 18px 18px;
}

.profile-chip,
.badge,
.library-section-head a,
.btn-primary,
.nav-cta,
.nav-admin {
    box-shadow: 0 10px 20px rgba(0, 84, 135, .12);
}

.profile-dashboard__hero {
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.25), 0 24px 60px rgba(0, 63, 111, .18);
}

.profile-user-panel,
.library-console,
.profile-wide-section,
.profile-form-section .conv-form-card {
    background: rgba(255,255,255,.96);
}

.profile-topbar__nav a:hover,
.site-nav__links a:hover {
    color: #c8f14a;
}

.admin-page .admin-card span {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(25,191,232,.12), rgba(163,206,57,.18));
}

.landing-category-card__media {
    min-height: 182px;
}

.landing-category-card__media img {
    width: 100%;
    height: 182px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .page-hero--library .hub-container,
    .admin-page .admin-hero .hub-container {
        padding: 32px 22px;
    }

    .content-card__media img,
    .profile-content-card__media img,
    .landing-category-card__media img {
        height: 148px;
    }
}

/* ===== Premium final: home, perfil y administración entregable ===== */
.hero-premium-shot {
    position: relative;
    z-index: 2;
    margin: 0;
    width: min(100%, 560px);
    padding: 12px;
    border-radius: 28px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 30px 85px rgba(0, 35, 72, .36);
    backdrop-filter: blur(10px);
    transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
}

.hero-premium-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.dashboard-preview-card__screen {
    background-image: url('../img/perfil-dashboard-preview.png') !important;
    background-size: cover !important;
    background-position: center !important;
}

.dashboard-preview-card__screen span {
    display: none !important;
}

.admin-content--premium {
    margin-top: -10px;
}

.admin-grid--premium {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-grid--premium .admin-card {
    min-height: 230px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-grid--premium .admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0, 42, 74, .14) !important;
}

.admin-card--system {
    background: linear-gradient(180deg, #ffffff, #f4fbff) !important;
    border-bottom: 4px solid var(--event-lime) !important;
}

.admin-panel--premium,
.admin-page .admin-panel {
    border-radius: 20px !important;
    border: 1px solid rgba(0,84,135,.10) !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 18px 42px rgba(0,42,74,.08) !important;
}

.admin-page .block-heading {
    padding: 22px 26px;
    margin: 22px 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,251,255,.96));
    border: 1px solid rgba(0,84,135,.10);
    box-shadow: 0 16px 36px rgba(0,42,74,.06);
}

.admin-page .data-table th {
    background: transparent !important;
}

.admin-page .data-table thead {
    background: linear-gradient(135deg, #003f6f, #005487) !important;
}

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

.actions a,
.actions button,
.search-form button,
.inline-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: #005487;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.actions .danger,
.actions button.danger {
    background: #c62828 !important;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.status.ok {
    color: #24680c;
    background: rgba(163,206,57,.20);
}

.status.off {
    color: #a32018;
    background: rgba(217,45,32,.10);
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.check-row label,
.check-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,84,135,.12);
    background: #f8fbff;
    color: #16325f !important;
}

.production-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.8;
}

.production-list code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #edf6ff;
    color: #005487;
}

@media (max-width: 1180px) {
    .admin-grid--premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .hero-premium-shot { transform: none; }
    .admin-grid--premium { grid-template-columns: 1fr; }
    .admin-page .block-heading { padding: 18px; }
    .actions { align-items: stretch; flex-direction: column; }
    .actions a, .actions button { width: 100%; }
}


/* ===== Ajuste final solicitado: header blanco, filtros dimensionados y menú de perfil unificado ===== */
.site-header,
body.private-page .site-header,
body.admin-page .site-header,
body.public-page .site-header,
body.convention-form-page .site-header,
.profile-dashboard-page .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff !important;
    border-bottom: 4px solid var(--event-lime) !important;
    box-shadow: 0 10px 28px rgba(0, 63, 111, .10) !important;
    backdrop-filter: none !important;
}

.site-nav__inner {
    min-height: 82px;
}

.site-brand__logo {
    filter: none !important;
}

.site-brand__copy strong {
    color: var(--event-blue-900) !important;
}

.site-brand__copy small {
    color: #5d6675 !important;
}

.site-nav__links {
    gap: 10px;
}

.site-nav__links a {
    color: #0b3862 !important;
    font-weight: 900;
    min-height: 42px;
    padding: 10px 16px;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
    color: var(--event-blue-900) !important;
    background: rgba(166, 206, 57, .18) !important;
}

.site-nav__links .nav-cta,
.site-nav__links .nav-admin {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--event-blue-700), var(--event-blue-900)) !important;
    box-shadow: 0 12px 24px rgba(0, 84, 135, .18) !important;
}

.site-nav__links .nav-danger {
    color: #d92d20 !important;
    background: transparent !important;
}

.site-nav__links .nav-danger:hover {
    color: #ffffff !important;
    background: #d92d20 !important;
}

.nav-avatar {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--event-blue-900);
    background: #f4f8fb;
    border: 2px solid rgba(166, 206, 57, .80);
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .03em;
}

/* Biblioteca: formulario de filtros bien proporcionado */
.page-content {
    padding-bottom: 72px;
}

.filter-bar.filter-bar--library {
    width: min(100%, 1120px);
    display: grid !important;
    grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(180px, .75fr) auto;
    align-items: end;
    gap: 18px;
    margin: 0 auto 28px;
    padding: 26px 28px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(0, 84, 135, .12) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 18px 44px rgba(0, 42, 74, .08) !important;
}

.filter-field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.filter-field label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    display: block !important;
    margin: 0;
    color: #16325f !important;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.2;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 50px !important;
    padding: 12px 14px !important;
    border-radius: 13px !important;
    border: 1px solid #d5dde9 !important;
    background: #fff !important;
    color: #202631 !important;
    font-size: .96rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--event-blue-700) !important;
    box-shadow: 0 0 0 4px rgba(0, 84, 135, .12) !important;
}

.filter-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.filter-actions .btn {
    min-width: 112px;
    min-height: 50px;
    padding: 13px 20px;
}

.btn-light {
    color: var(--event-blue-900) !important;
    background: #eef3f8 !important;
    border: 1px solid rgba(0, 84, 135, .12) !important;
    box-shadow: none !important;
}

.btn-light:hover {
    color: #fff !important;
    background: var(--event-blue-700) !important;
}

/* Perfil: eliminar duplicidad visual del menú inferior */
.profile-dashboard__hero--single-nav {
    padding-top: clamp(42px, 5vw, 72px) !important;
}

.profile-topbar {
    display: none !important;
}

.profile-hero-grid {
    padding-top: 0 !important;
}

.profile-avatar-small {
    display: none !important;
}

@media (max-width: 1024px) {
    .filter-bar.filter-bar--library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .site-nav__links {
        background: #fff !important;
    }

    .nav-avatar {
        align-self: center;
        margin: 4px auto;
    }
}

@media (max-width: 680px) {
    .filter-bar.filter-bar--library {
        grid-template-columns: 1fr;
        padding: 22px !important;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions .btn {
        width: 100%;
    }
}


/* ===== Admin final client delivery fixes ===== */
body.admin-page .site-header,
body.admin-page .site-nav,
body.admin-page .site-nav__inner,
body.admin-page .site-header * {
    color: var(--event-blue-900);
}

body.admin-page .site-nav__links {
    gap: 10px;
}

body.admin-page .site-nav__links a {
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 999px;
    font-weight: 900;
}

body.admin-page .site-nav__links a.is-active {
    color: var(--event-blue-900) !important;
    background: #eef7d8 !important;
    box-shadow: 0 8px 20px rgba(151, 194, 36, .18);
}

body.admin-page .site-nav__links .nav-danger {
    color: #e1251b !important;
}

body.admin-page .admin-content {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
    padding: 28px 0 90px;
}

body.admin-page .block-heading.with-action,
body.admin-page .admin-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 28px 30px;
    border: 1px solid rgba(0, 84, 135, .10);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,251,255,.96));
    box-shadow: 0 18px 50px rgba(0, 42, 74, .08);
}

body.admin-page .block-heading h1 {
    margin: 8px 0 8px;
    color: #101936;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    font-weight: 900;
}

body.admin-page .block-heading p {
    margin: 0;
    color: #68728a;
    font-size: 1rem;
}

body.admin-page .admin-panel {
    margin-bottom: 24px;
    padding: clamp(22px, 3vw, 34px);
    overflow: visible;
    border: 1px solid rgba(0, 84, 135, .10) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 22px 58px rgba(0, 42, 74, .07) !important;
}

body.admin-page .admin-panel h2 {
    margin: 0 0 22px;
    color: #101936;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.1;
    font-weight: 900;
}

body.admin-page .admin-panel .form-grid,
body.admin-page .admin-content .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    align-items: start;
    margin: 0;
}

body.admin-page .admin-panel label,
body.admin-page .admin-content .form-grid label,
body.admin-page .admin-panel .label-title {
    display: grid !important;
    gap: 8px;
    color: #101936 !important;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.25;
}

body.admin-page .admin-panel input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.admin-page .admin-panel select,
body.admin-page .admin-panel textarea,
body.admin-page .admin-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.admin-page .admin-content select,
body.admin-page .admin-content textarea {
    width: 100%;
    min-height: 52px !important;
    padding: 13px 15px !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 14px !important;
    outline: none !important;
    background: #fff !important;
    color: #1f2a44 !important;
    font-size: .98rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 0 rgba(0, 42, 74, .03) !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.admin-page .admin-panel textarea,
body.admin-page .admin-content textarea {
    min-height: 132px !important;
    resize: vertical;
}

body.admin-page .admin-panel input:focus,
body.admin-page .admin-panel select:focus,
body.admin-page .admin-panel textarea:focus,
body.admin-page .admin-content input:focus,
body.admin-page .admin-content select:focus,
body.admin-page .admin-content textarea:focus {
    border-color: var(--event-blue-700) !important;
    box-shadow: 0 0 0 4px rgba(0, 84, 135, .12) !important;
}

body.admin-page .admin-panel input[type="file"] {
    display: block;
    padding: 12px !important;
    color: #536078 !important;
    background: #f8fbff !important;
}

body.admin-page .form-full {
    grid-column: 1 / -1;
}

body.admin-page .check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

body.admin-page .check-row label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #dce6f1;
    border-radius: 14px;
    background: #f8fbff;
    color: #102047 !important;
    font-weight: 800;
}

body.admin-page .check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--event-lime);
}

body.admin-page .form-actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

body.admin-page .inline-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

body.admin-page .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.admin-page .search-form input[type="search"] {
    min-width: 260px;
    min-height: 42px !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
}

body.admin-page .search-form button,
body.admin-page .actions button,
body.admin-page .actions a,
body.admin-page .admin-panel .btn,
body.admin-page .admin-content button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: var(--event-blue-700) !important;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: none !important;
    cursor: pointer;
}

body.admin-page .admin-content button[type="submit"].btn-primary,
body.admin-page .admin-panel .btn-primary {
    min-width: 190px;
    min-height: 52px;
    background: var(--event-lime) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(151, 194, 36, .24) !important;
}

body.admin-page .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.admin-page .actions form {
    display: inline-flex;
    margin: 0;
}

body.admin-page .actions .danger,
body.admin-page .actions button.danger,
body.admin-page button.danger {
    background: #d92d20 !important;
}

body.admin-page .table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #fff;
}

body.admin-page .data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    overflow: hidden;
}

body.admin-page .data-table thead,
body.admin-page main thead {
    background: var(--event-blue-700) !important;
}

body.admin-page .data-table th {
    padding: 15px 18px !important;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.admin-page .data-table td {
    padding: 16px 18px !important;
    border-top: 1px solid #e3ebf4;
    color: #35415b;
    vertical-align: middle;
}

body.admin-page .data-table tbody tr:hover td {
    background: #f8fbff !important;
}

body.admin-page .table-empty {
    padding: 26px !important;
    text-align: center;
    color: #68728a !important;
    background: #fbfdff !important;
}

body.admin-page .status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

body.admin-page .status.ok {
    color: #155d1e;
    background: #e9f8d3;
}

body.admin-page .status.off {
    color: #8d1b16;
    background: #fde4e1;
}

body.admin-page .admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin-bottom: 24px;
}

body.admin-page .admin-stats article {
    padding: 24px;
    border-radius: 22px !important;
    background: #fff !important;
}

body.admin-page .report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

body.admin-page .production-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: #46536d;
    line-height: 1.65;
}

@media (max-width: 900px) {
    body.admin-page .admin-panel .form-grid,
    body.admin-page .admin-content .form-grid,
    body.admin-page .admin-stats {
        grid-template-columns: 1fr;
    }

    body.admin-page .block-heading.with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-page .inline-form,
    body.admin-page .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    body.admin-page .search-form input[type="search"] {
        min-width: 100%;
    }
}

/* ===== Ajuste registro con selección de plan y biblioteca limpia en perfil ===== */
.conv-form-card--simple-registro select,
.conv-form-main select {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #d5dde9;
    background: #fff;
    color: #202631;
    font-size: 1rem;
    font-weight: 700;
    outline: 0;
}

.conv-form-card--simple-registro select:focus,
.conv-form-main select:focus {
    border-color: var(--event-blue-700);
    box-shadow: 0 0 0 4px rgba(0, 84, 135, .12);
}

.profile-main-panel--clean-library {
    display: block;
    min-width: 0;
}

.library-console--clean {
    width: 100%;
    padding: 34px;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 84, 135, .10);
    box-shadow: 0 24px 60px rgba(0, 42, 74, .16) !important;
}

.library-console-clean__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.library-console-clean__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(166, 206, 57, .18);
    color: #497215;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.library-console-clean__header h2 {
    margin: 10px 0 8px;
    color: var(--event-blue-900);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.library-console-clean__header p {
    max-width: 620px;
    margin: 0;
    color: #617085;
    font-size: 1rem;
    line-height: 1.65;
}

.library-search--clean {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.library-search--clean input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 84, 135, .16);
    background: #fff;
    color: #202631;
    font-weight: 700;
}

.library-search--clean input:focus {
    border-color: var(--event-blue-700);
    box-shadow: 0 0 0 4px rgba(0, 84, 135, .12);
}

.library-search--clean button {
    min-width: 118px;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--event-lime), #86b51d);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(141,181,24,.22);
}

.library-categories-clean {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fcfdff, #f7fbff);
    border: 1px solid rgba(0, 84, 135, .08);
}

.library-categories-clean__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.library-categories-clean__head h3 {
    margin: 0 0 8px;
    color: var(--event-blue-900);
    font-size: 1.55rem;
    line-height: 1.15;
}

.library-categories-clean__head p {
    margin: 0;
    color: #617085;
    line-height: 1.6;
}

.library-categories-clean__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.library-categories-clean__actions .btn {
    min-height: 46px;
    white-space: nowrap;
}

.library-category-grid-clean {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.library-category-card-clean {
    display: block;
    min-height: 190px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(0, 84, 135, .10);
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: 0 14px 30px rgba(0, 42, 74, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.library-category-card-clean:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 84, 135, .18);
    box-shadow: 0 20px 42px rgba(0, 42, 74, .14);
}

.library-category-card-clean__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.library-category-card-clean__icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--event-blue-700), var(--event-cyan));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.library-category-card-clean__top small {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(166, 206, 57, .14);
    color: #55721d;
    font-size: .76rem;
    font-weight: 900;
}

.library-category-card-clean h4 {
    margin: 0 0 8px;
    color: var(--event-blue-900);
    font-size: 1.18rem;
    line-height: 1.2;
}

.library-category-card-clean p {
    margin: 0;
    color: #617085;
    line-height: 1.55;
}

.library-category-card-clean__link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--event-blue-700);
    font-size: .9rem;
    font-weight: 900;
}

body.private-page .site-nav__links a.is-active {
    background: #eef7d8;
    box-shadow: 0 8px 18px rgba(151, 194, 36, .18);
}

@media (max-width: 1180px) {
    .library-console-clean__header,
    .library-categories-clean__head {
        grid-template-columns: 1fr;
    }

    .library-categories-clean__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .library-console--clean,
    .library-categories-clean {
        padding: 20px;
        border-radius: 22px !important;
    }

    .library-search--clean,
    .library-category-grid-clean {
        grid-template-columns: 1fr;
    }

    .library-search--clean button,
    .library-categories-clean__actions .btn {
        width: 100%;
    }

    .library-categories-clean__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Reportes: tiempo de consulta */
.report-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
    gap: 16px;
    align-items: end;
    margin: 0 0 24px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,84,135,.10);
    box-shadow: 0 18px 42px rgba(0,42,74,.08);
}
.report-filter-bar .field { margin: 0; }
.report-filter-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-stats--time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-stats--time article:nth-child(5) { grid-column: span 2; }
.report-grid--time { display: grid; grid-template-columns: 1fr; gap: 24px; }
.report-grid--time .admin-panel { overflow: hidden; }
.report-grid--time .table-wrap { overflow-x: auto; }
.time-tracking-note {
    display: inline-flex;
    width: fit-content;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    color: #315c0d;
    background: rgba(166,206,57,.16);
    font-size: .88rem;
    font-weight: 700;
}
@media (max-width: 900px) {
    .report-filter-bar { grid-template-columns: 1fr; }
    .admin-stats--time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-stats--time article:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 560px) {
    .admin-stats--time { grid-template-columns: 1fr; }
    .report-filter-bar__actions { flex-direction: column; align-items: stretch; }
    .report-filter-bar__actions .btn { width: 100%; }
}

/* ===== Envío de credenciales desde administrador ===== */
.credential-panel .muted {
    color: #64748b;
    line-height: 1.6;
}

body.admin-page .data-table td .status {
    min-width: unset;
    min-height: 30px !important;
    padding: 6px 10px !important;
    font-size: .76rem;
}

.actions.actions--stacked {
    align-items: flex-start;
    gap: 7px;
}

.actions.actions--stacked a,
.actions.actions--stacked button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: .75rem;
    white-space: nowrap;
}

.actions.actions--stacked form {
    margin: 0;
}

body.admin-page .credential-panel .form-grid {
    align-items: end;
}

body.admin-page .credential-panel .check-toggle {
    align-items: flex-start;
    line-height: 1.45;
}

body.admin-page code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #edf6ff;
    color: #005487;
}

@media (max-width: 900px) {
    body.admin-page .credential-panel .form-grid {
        grid-template-columns: 1fr;
    }
    .actions.actions--stacked a,
    .actions.actions--stacked button {
        width: 100%;
    }
}
