:root {
    --tl-card: #fff;
    --tl-line: #f0d7dd;
    --tl-shadow: 0 18px 40px rgba(60, 20, 35, .08);
    --tl-text: #2a1b22;
    --tl-muted: #7a5a66;
    --tl-pink: #f2b8c7;
    --tl-pink-2: #f7c6d3;
    --tl-gold: #d6b06a;
    --tl-gold-2: #f2e2bd;

    --tl-success: #2f8a57;
    --tl-success-bg: rgba(47, 138, 87, .08);
    --tl-success-br: rgba(47, 138, 87, .22);

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

/* PAGE */
.ac-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 22px) clamp(12px, 3vw, 18px) clamp(18px, 4vw, 30px);
}

/* CARD */
.ac-card {
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--tl-shadow);
    overflow: hidden;
}

/* BANNER */
.ac-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: clamp(14px, 3vw, 18px);
    background: linear-gradient(135deg, rgba(242, 184, 199, .32), rgba(214, 176, 106, .14));
    border-bottom: 1px solid var(--tl-line);
    position: relative;
    overflow: hidden;
}

/* decor */
.ac-banner::before {
    content: "";
    position: absolute;
    inset: -60px -90px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(242, 184, 199, .55), rgba(214, 176, 106, .16));
    transform: rotate(12deg);
    pointer-events: none;
}

.ac-ico {
    width: clamp(46px, 6vw, 54px);
    height: clamp(46px, 6vw, 54px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 3vw, 22px);
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(240, 215, 221, .9);
    box-shadow: 0 10px 18px rgba(60, 20, 35, .06);
    position: relative;
    z-index: 1;
}

/* title block */
.ac-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.ac-banner h1 {
    margin: 0;
    font-size: clamp(18px, 2.6vw, 22px);
    line-height: 1.15;
    color: var(--tl-text);
}

.ac-banner p {
    margin: 6px 0 0;
    color: var(--tl-muted);
    font-weight: 850;
    font-size: clamp(12px, 2vw, 13px);
}

/* badge */
.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 950;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .82);
    color: var(--tl-muted);
}

.ac-badge.success {
    border-color: var(--tl-success-br);
    background: var(--tl-success-bg);
    color: var(--tl-success);
}

/* tag (oculto en móvil para evitar duplicado visual) */
.ac-tag {
    display: none;
    justify-self: end;
    align-self: start;
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .82);
    color: var(--tl-muted);
    position: relative;
    z-index: 1;
}

/* FORM */
.ac-form {
    padding: clamp(14px, 3vw, 18px);
}

.field label {
    display: block;
    font-weight: 950;
    color: var(--tl-text);
    margin-bottom: 8px;
    font-size: 13px;
}

/* MONEY INPUT */
.money {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--tl-line);
    border-radius: var(--radius-sm);
    background: rgba(251, 246, 247, .72);
    overflow: hidden;
    min-height: 46px;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.money:focus-within {
    border-color: rgba(214, 176, 106, .55);
    box-shadow: 0 14px 24px rgba(214, 176, 106, .16);
    transform: translateY(-1px);
}

.money-prefix {
    padding: 12px 12px;
    font-weight: 950;
    color: var(--tl-muted);
    border-right: 1px solid rgba(240, 215, 221, .9);
    background: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.money input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 12px 12px;
    font-weight: 950;
    color: var(--tl-text);
    background: transparent;
    font-size: 14px;
}

/* HINT / ERR */
.hint {
    margin-top: 8px;
    color: var(--tl-muted);
    font-weight: 800;
    font-size: 12px;
}

.err {
    margin-top: 6px;
    color: #a6374a;
    font-weight: 850;
    font-size: 12px;
}

/* ACTIONS */
.ac-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 clamp(14px, 3vw, 18px) clamp(14px, 3vw, 18px);
}

/* buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--tl-line);
    background: rgba(255, 255, 255, .84);
    font-weight: 950;
    color: var(--tl-text);
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
    min-height: 46px;
    width: 100%;
}

.btn-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(60, 20, 35, .08);
}

.btn-pill.primary {
    border: 0;
    background: linear-gradient(180deg, var(--tl-pink), var(--tl-pink-2));
}

.btn-pill.ghost {
    background: transparent;
}

/* ALERTS */
.ac-alert {
    margin: 14px clamp(14px, 3vw, 18px) 0;
    border: 1px solid rgba(214, 176, 106, .35);
    background: rgba(242, 226, 189, .25);
    border-radius: var(--radius-md);
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.ac-alert.success {
    border-color: var(--tl-success-br);
    background: var(--tl-success-bg);
}

.ac-alert.danger {
    border-color: rgba(166, 55, 74, .35);
    background: rgba(166, 55, 74, .07);
}

.ac-alert-ico {
    font-size: 18px;
    line-height: 1;
}

.ac-alert-text {
    color: var(--tl-text);
    font-weight: 850;
}

.ac-alert-text .mini,
.ac-alert-text .mini2 {
    margin-top: 6px;
    color: var(--tl-muted);
    font-weight: 800;
    font-size: 12px;
}

/* ===== BREAKPOINTS ===== */
@media (min-width:600px) {
    .ac-banner {
        grid-template-columns: auto 1fr auto;
        /* icono | título | tag */
        align-items: center;
    }

    .ac-tag {
        display: inline-flex;
    }

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

@media (min-width:900px) {
    .ac-page {
        max-width: 920px;
    }

    .ac-form {
        padding: 18px;
    }

    .ac-actions {
        padding: 0 18px 18px;
        gap: 12px;
    }
}

@media (min-width:1200px) {
    .ac-page {
        max-width: 980px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .money,
    .btn-pill {
        transition: none;
    }

    .btn-pill:hover {
        transform: none;
        box-shadow: none;
    }
}
