:root {
    --cardly-black: #08090b;
    --cardly-dark: #101216;
    --cardly-dark-2: #171a20;
    --cardly-card: rgba(18, 20, 25, 0.92);
    --cardly-card-soft: rgba(255, 255, 255, 0.045);
    --cardly-border: rgba(255, 255, 255, 0.095);
    --cardly-border-orange: rgba(255, 122, 0, 0.55);
    --cardly-text: #f5f0e8;
    --cardly-muted: rgba(245, 240, 232, 0.68);
    --cardly-muted-2: rgba(245, 240, 232, 0.45);
    --cardly-orange: #ff7a00;
    --cardly-orange-2: #e95400;
    --cardly-orange-3: #ffae58;
    --cardly-success: #24b36b;
    --cardly-danger: #e5484d;
    --cardly-warning: #f6a300;
    --cardly-radius-xl: 28px;
    --cardly-radius-lg: 22px;
    --cardly-radius-md: 16px;
    --cardly-radius-sm: 12px;
    --cardly-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --cardly-glow: 0 0 26px rgba(255, 122, 0, 0.35);
    --cardly-transition: 220ms ease;
    --font-main: "Inter", "Segoe UI", Arial, sans-serif;
    --font-brand: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--cardly-text);
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 122, 0, 0.22), transparent 26%),
        radial-gradient(circle at 88% 92%, rgba(255, 80, 0, 0.18), transparent 24%),
        linear-gradient(180deg, #111318 0%, #07080a 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    background:
        radial-gradient(circle at 50% 10%, rgba(255,255,255,0.05), transparent 25%),
        repeating-linear-gradient(120deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.section {
    padding: 64px 0;
}

.text-orange {
    color: var(--cardly-orange);
}

.text-muted {
    color: var(--cardly-muted);
}

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

.hidden {
    display: none !important;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 11, 0.84);
    border-bottom: 1px solid var(--cardly-border);
    backdrop-filter: blur(16px);
}

.page-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--cardly-glow);
}

.brand__name {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    letter-spacing: 0.18em;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--cardly-muted);
    transition: var(--cardly-transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--cardly-text);
    background: rgba(255, 122, 0, 0.12);
}

.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
        var(--cardly-card);
    border: 1px solid var(--cardly-border);
    border-radius: var(--cardly-radius-lg);
    box-shadow: var(--cardly-shadow);
}

.card--orange {
    border-color: var(--cardly-border-orange);
    box-shadow: var(--cardly-shadow), var(--cardly-glow);
}

.card__body {
    padding: 24px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: var(--cardly-transition);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    color: #130b05;
    background: linear-gradient(135deg, var(--cardly-orange), var(--cardly-orange-3));
    box-shadow: var(--cardly-glow);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(255, 122, 0, 0.46);
}

.btn--secondary {
    color: var(--cardly-text);
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--cardly-border);
}

.btn--danger {
    color: #fff;
    background: linear-gradient(135deg, #d52932, #8f161d);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cardly-muted);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--cardly-border);
    border-radius: var(--cardly-radius-md);
    outline: 0;
    color: var(--cardly-text);
    background: rgba(0,0,0,0.24);
    transition: var(--cardly-transition);
}

.form-control:focus {
    border-color: var(--cardly-border-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.form-control::placeholder {
    color: var(--cardly-muted-2);
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--cardly-radius-md);
    border: 1px solid transparent;
    transition: opacity 0.25s ease, transform 0.25s ease, margin 0.25s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.alert--success {
    color: #d9ffe8;
    background: rgba(36, 179, 107, 0.14);
    border-color: rgba(36, 179, 107, 0.34);
}

.alert--warning {
    color: #fff0cd;
    background: rgba(246, 163, 0, 0.14);
    border-color: rgba(246, 163, 0, 0.34);
}

.alert--danger,
.alert--error {
    color: #ffd7da;
    background: rgba(229, 72, 77, 0.14);
    border-color: rgba(229, 72, 77, 0.34);
}

.hero {
    padding: 72px 0 56px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 30px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    color: var(--cardly-orange-3);
    border: 1px solid rgba(255, 122, 0, 0.26);
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.08);
}

.hero__title {
    margin: 18px 0 16px;
    font-size: clamp(2.4rem, 5.4vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero__title span {
    color: var(--cardly-orange);
}

.hero__text {
    max-width: 670px;
    margin: 0 0 24px;
    color: var(--cardly-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__image {
    overflow: hidden;
    border-radius: var(--cardly-radius-xl);
    border: 1px solid var(--cardly-border);
    box-shadow: var(--cardly-shadow);
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

.metric {
    padding: 20px;
    border: 1px solid var(--cardly-border);
    border-radius: var(--cardly-radius-md);
    background: rgba(255,255,255,0.035);
}

.metric__label {
    margin-bottom: 10px;
    color: var(--cardly-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric__value {
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    font-weight: 900;
}

.status-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.status-pill--active {
    color: #d9ffe8;
    background: rgba(36, 179, 107, 0.14);
}

.status-pill--pending {
    color: #fff0cd;
    background: rgba(246, 163, 0, 0.14);
}

.status-pill--danger {
    color: #ffd7da;
    background: rgba(229, 72, 77, 0.14);
}

.footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--cardly-border);
    color: var(--cardly-muted);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 991px) {
    .hero__grid,
    .grid--3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .section,
    .hero {
        padding: 44px 0;
    }

    .page-header__inner,
    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .card__body {
        padding: 18px;
    }
}


/* CARDLY MVC v1.0.1 - utilidades de integración */
.page-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px;
}
.form {
    display: grid;
    gap: 14px;
    width: min(520px, 100%);
}
.form input,
.form textarea,
.form select,
textarea,
input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--cardly-text);
    border: 1px solid var(--cardly-border);
    border-radius: var(--cardly-radius-sm);
    background: rgba(255,255,255,0.06);
    outline: none;
}
.form textarea,
textarea {
    min-height: 120px;
    resize: vertical;
}
.form input:focus,
.form textarea:focus,
textarea:focus,
input:focus {
    border-color: var(--cardly-orange);
    box-shadow: var(--cardly-glow);
}
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--cardly-muted);
    line-height: 1.5;
}
.checkbox-line input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}
.small {
    color: var(--cardly-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}
.alert {
    padding: 14px 16px;
    border-radius: var(--cardly-radius-sm);
    line-height: 1.5;
}
.alert-success {
    color: #d9ffe8;
    border: 1px solid rgba(36, 179, 107, 0.35);
    background: rgba(36, 179, 107, 0.14);
}
.alert-error {
    color: #ffd7da;
    border: 1px solid rgba(229, 72, 77, 0.35);
    background: rgba(229, 72, 77, 0.14);
}
.text-danger {
    color: var(--cardly-danger);
}
.btn--secondary,
.button.secondary,
.cardly-btn-secondary {
    color: var(--cardly-text);
    border: 1px solid var(--cardly-border);
    background: rgba(255,255,255,0.06);
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.quick-action {
    display: grid;
    gap: 10px;
    padding: 22px;
    text-align: center;
    border: 1px solid var(--cardly-border);
    border-radius: var(--cardly-radius-lg);
    background: rgba(255,255,255,0.035);
}
.admin-main {
    padding: 26px;
}
@media (max-width: 767px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
