/* assets/css/mantenimiento.css — Rincón de Kari */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    background-color: #f5ede0;
    color: #3d2b1f;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── FONDO TEXTURADO ── */
.mant-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(210,170,120,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(180,130,90,0.20) 0%, transparent 55%),
        #f5ede0;
    z-index: 0;
}

/* Patrón sutil tipo lino */
.mant-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(160,120,80,0.04) 0px,
            rgba(160,120,80,0.04) 1px,
            transparent 1px,
            transparent 6px
        );
}

/* ── WRAPPER ── */
.mant-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ── CARD ── */
.mant-card {
    background: #fffbf6;
    border: 1px solid rgba(160,120,80,0.25);
    border-radius: 4px;
    padding: 50px 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 2px 4px rgba(100,70,40,0.06),
        0 8px 32px rgba(100,70,40,0.08);
    position: relative;
    overflow: hidden;
}

/* Borde superior decorativo tierra */
.mant-deco-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c49a6c 0%, #8b5a2b 40%, #c49a6c 70%, #d4a96a 100%);
}

/* ── LOGO ── */
.mant-logo-wrap {
    margin-bottom: 24px;
}
.mant-logo {
    max-width: 250px;
    max-height: 80px;
    object-fit: contain;
}
.mant-logo-fallback {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #8b5a2b;
    letter-spacing: 1px;
}

/* ── SEPARADOR ── */
.mant-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    color: #c49a6c;
}
.mant-divider::before,
.mant-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(160,120,80,0.3);
}
.mant-divider-ornament {
    font-size: 18px;
    line-height: 1;
    color: #c49a6c;
}

/* ── TÍTULO ── */
.mant-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.35;
    color: #3d2b1f;
    margin-bottom: 18px;
}
.mant-title em {
    font-style: italic;
    color: #8b5a2b;
}

/* ── SUBTÍTULO ── */
.mant-subtitle {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: #7a5c45;
    margin-bottom: 32px;
}

/* ── ORNAMENTO FINAL ── */
.mant-footer-ornament {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #d4a96a;
    font-size: 8px;
    letter-spacing: 6px;
}

/* ── ZONA SECRETA ── */
.mant-secret-zone {
    border-top: 1px solid rgba(160,120,80,0.15);
    padding-top: 20px;
}

.mant-lock-btn {
    background: transparent;
    border: none;
    color: #c9b49a;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    opacity: 0.5;
}
.mant-lock-btn:hover {
    opacity: 1;
    color: #8b5a2b;
    background: rgba(139,90,43,0.08);
}

/* ── FORMULARIO ── */
.mant-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.mant-form.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.mant-form input {
    padding: 11px 14px;
    border: 1px solid rgba(160,120,80,0.35);
    border-radius: 4px;
    background: #fdf7f0;
    color: #3d2b1f;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.mant-form input::placeholder { color: #c9b49a; }
.mant-form input:focus {
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.12);
    background: #fff;
}

.mant-form button {
    padding: 11px 20px;
    background: #8b5a2b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.mant-form button:hover   { background: #7a4f26; }
.mant-form button:active  { transform: translateY(1px); }
.mant-form button:disabled { opacity: 0.6; cursor: default; }

.mant-error {
    color: #922b21;
    font-size: 13px;
    font-weight: 600;
    display: none;
    padding: 8px 12px;
    background: #fadbd8;
    border-radius: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .mant-card {
        padding: 40px 24px 32px;
    }
    .mant-title {
        font-size: 24px;
    }
    .mant-subtitle {
        font-size: 14px;
    }
}