/* ─────────────────────────────
Colores
───────────────────────────── */
:root {
    --primary: #941f54;
    --primary-dark: #651840;
    --primary-light: #f6e9ef;

    --text-dark: #2a0d1e;
    --text-muted: #9a6070;

    --border-soft: rgba(148, 31, 84, 0.2);
    --bg-soft: rgba(148, 31, 84, 0.05);
}

/* Base */
body {
    font-family: 'DM Sans', sans-serif;
}

h1 {
    font-family: 'Playfair Display', serif;
}

/*  Inputs*/
.field-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-soft);
    background: #fff;
    font-size: .9rem;
    color: var(--text-dark);
    outline: none;
    transition: all .2s ease;


}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(148, 31, 84, .15);
}

/*  File Inputs
───────────────────────────── */
.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px dashed var(--border-soft);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--bg-soft);
    transition: all .2s ease;
}

.file-row:hover {
    border-color: var(--primary);
    background: rgba(148, 31, 84, 0.08);
}

.file-btn {
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Fotro  */
.upload-zone {
    position: relative;
    border: 2px dashed var(--border-soft);
    border-radius: 16px;
    background: var(--bg-soft);
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(148, 31, 84, 0.08);
    transform: translateY(-1px);
}

.upload-zone.has-file {
    border-color: var(--primary);
}

/* efecto ripple */
.upload-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(148, 31, 84, .2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}

.upload-zone:active::after {
    opacity: 1;
}

/* ── Avatar */
.avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(148, 31, 84, 0.1);
    object-fit: cover;
    display: block;
    animation: popIn .3s ease;
}

@keyframes popIn {
    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Botones─ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 20px rgba(148, 31, 84, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(148, 31, 84, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    opacity: .9;
}

.btn-ghost {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-ghost:hover {
    background: #edd6df;
}

/* MODAL */
#cropModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(26, 7, 21, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    animation: fadeIn .25s ease;
}

#cropModal.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 32px 64px rgba(26, 7, 21, .35);
}

.modal-card img {
    max-height: 340px;
    width: 100%;
    display: block;
}

/* STATUS */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43a047;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: .6;
    }
}

/*  Croper  */
.cropper-view-box,
.cropper-face {
    border: 2px solid var(--primary);
}

.cropper-point {
    background-color: var(--primary);
}

.cropper-line {
    background-color: var(--primary);
}

/* color edad */
.field-input[readonly] {
    background-color: #f9fafb;
    border: 1.5px dashed #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.95;
}


.field-input[readonly]:not(:placeholder-shown) {
    background-color: #eef2f7;
    border: 1.5px dashed #cbd5e1;
    color: #374151;
}

.field-input[readonly]:placeholder-shown {
    background-color: #ffffff;
    border: 1.5px solid var(--border-soft);
    color: var(--text-muted);
}

/* ── Selects nativos ── */
select.field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23941f54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(148, 31, 84, .15);
}

select.field-input:invalid,
select.field-input option[value=""] {
    color: var(--text-muted);
}

select.field-input option {
    color: var(--text-dark);
}


input[type="date"].field-input {
    appearance: none;
    -webkit-appearance: none;
    color: #2a0d1e;
    cursor: pointer;
}


input[type="date"].field-input::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
    filter: invert(13%) sepia(60%) saturate(2000%) hue-rotate(300deg) brightness(80%);
}

input[type="date"].field-input,
input[type="number"].field-input {
    height: 48px;
    /* misma altura fija */
    box-sizing: border-box;
    line-height: normal;
}