/* =========================================================
   EVENTOS DINÁMICOS
========================================================= */

.event-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 18px;
    color: #756963;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.event-time {
    display: block;
    margin-top: 4px;
}

.event-map-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--rose, #B87874);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .event-map-link:hover {
        text-decoration: underline;
    }

.events-empty {
    padding: 60px 25px;
    border: 1px solid rgba(221, 169, 165, .35);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.events-empty-icon {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 22px;
    color: #B87874;
    background: #F0D9D5;
    font-size: 32px;
}

.events-empty h3 {
    margin: 18px 0 8px;
    color: var(--espresso, #332826);
    font-size: 22px;
}

.events-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: #756963;
    font-size: 14px;
    line-height: 1.7;
}

.event-actions .btn-registrar-evento {
    cursor: pointer;
}

.event-actions .btn-evento-desactivado {
    cursor: not-allowed;
    opacity: .55;
}

/* =========================================================
   MODAL
========================================================= */

.sentirte-modal,
.sentirte-modal * {
    box-sizing: border-box;
}

.sentirte-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .sentirte-modal.is-open {
        display: flex;
    }

.sentirte-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 25, 23, .72);
    backdrop-filter: blur(5px);
}

.sentirte-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 28px;
    background: #F8F3EB;
    box-shadow: 0 30px 90px rgba(28, 20, 18, .4);
    animation: sentirteModalEntrada .25s ease-out;
}

@keyframes sentirteModalEntrada {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sentirte-modal-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #EADBC8;
    background: rgba(248, 243, 235, .97);
    backdrop-filter: blur(10px);
}

.sentirte-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #B87874;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sentirte-modal-header h2 {
    margin: 0;
    color: #332826;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.2;
}

.sentirte-evento-seleccionado {
    margin: 8px 0 0;
    color: #B87874;
    font-size: 14px;
    font-weight: 700;
}

.sentirte-modal .sentirte-modal-close {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #765D58 !important;
    background: #F0D9D5 !important;
    box-shadow: none !important;
    font-size: 25px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transition: all .2s !important;
}

    .sentirte-modal .sentirte-modal-close:hover {
        color: #fff !important;
        background: #DDA9A5 !important;
        transform: rotate(8deg);
    }

.sentirte-modal-form {
    display: block;
    padding: 0 30px;
}

.sentirte-form-section {
    padding: 28px 0;
    border-bottom: 1px solid #EADBC8;
}

.sentirte-section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 21px;
}

    .sentirte-section-title > span {
        display: flex;
        width: 31px;
        height: 31px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: #A66763;
        background: #F0D9D5;
        font-size: 12px;
        font-weight: 800;
    }

    .sentirte-section-title h3 {
        margin: 1px 0 0;
        color: #3B302E;
        font-size: 16px;
        font-weight: 750;
    }

    .sentirte-section-title p {
        margin: 4px 0 0;
        color: #857873;
        font-size: 12px;
        line-height: 1.5;
    }

.sentirte-form-grid {
    display: grid;
    gap: 19px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sentirte-field-full {
    grid-column: 1 / -1;
}

.sentirte-modal .sentirte-field label,
.sentirte-modal .sentirte-fieldset legend {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #493D3A !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

    .sentirte-modal .sentirte-field label strong,
    .sentirte-modal .sentirte-fieldset legend strong {
        color: #C86F6A;
    }

.sentirte-modal .sentirte-field input,
.sentirte-modal .sentirte-field textarea,
.sentirte-modal .sentirte-field select {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #DED2CB !important;
    border-radius: 13px !important;
    outline: none !important;
    color: #382F2D !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    opacity: 1 !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.sentirte-modal .sentirte-field input,
.sentirte-modal .sentirte-field select {
    height: 49px !important;
    padding: 0 14px !important;
}

.sentirte-modal .sentirte-field textarea {
    min-height: 105px !important;
    padding: 13px 14px !important;
    line-height: 1.6 !important;
    resize: vertical;
}

    .sentirte-modal .sentirte-field input::placeholder,
    .sentirte-modal .sentirte-field textarea::placeholder {
        color: #AAA09B !important;
        opacity: 1 !important;
    }

    .sentirte-modal .sentirte-field input:focus,
    .sentirte-modal .sentirte-field textarea:focus,
    .sentirte-modal .sentirte-field select:focus {
        border-color: #DDA9A5 !important;
        box-shadow: 0 0 0 4px rgba(240, 217, 213, .8) !important;
    }

.sentirte-field-hint {
    display: block;
    margin-top: 5px;
    color: #968A85;
    font-size: 11px;
}

.sentirte-field-error {
    display: block;
    min-height: 15px;
    margin-top: 4px;
    color: #C62828;
    font-size: 11px;
}

.sentirte-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sentirte-fieldset-spacing {
    margin-top: 23px;
}

.sentirte-options-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sentirte-option-card {
    display: flex !important;
    min-height: 76px;
    align-items: flex-start;
    gap: 11px;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #E2D7D0;
    border-radius: 14px;
    color: #493D3A !important;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}

    .sentirte-option-card:hover {
        border-color: #DDA9A5;
        background: #FFFDFC;
    }

    .sentirte-option-card:has(input:checked) {
        border-color: #DDA9A5;
        background: #FDF4F2;
        box-shadow: 0 0 0 3px rgba(240, 217, 213, .7);
    }

.sentirte-modal .sentirte-option-card input {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    accent-color: #DDA9A5;
    opacity: 1 !important;
}

.sentirte-option-content {
    display: block;
}

    .sentirte-option-content strong {
        display: block;
        color: #493D3A;
        font-size: 13px;
    }

    .sentirte-option-content small {
        display: block;
        margin-top: 4px;
        color: #8E827D;
        font-size: 11px;
        line-height: 1.4;
    }

.sentirte-especie {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #EADBC8;
    border-radius: 15px;
    background: rgba(240, 217, 213, .25);
}

.sentirte-inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .sentirte-inline-options label {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        min-width: 90px;
        margin: 0 !important;
        padding: 10px 16px !important;
        border: 1px solid #E2D7D0;
        border-radius: 25px;
        color: #493D3A !important;
        background: #fff;
        cursor: pointer;
        transition: all .2s;
    }

        .sentirte-inline-options label:hover {
            border-color: #DDA9A5;
        }

        .sentirte-inline-options label:has(input:checked) {
            border-color: #DDA9A5;
            background: #FDF4F2;
        }

    .sentirte-inline-options input {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        accent-color: #DDA9A5;
        opacity: 1 !important;
    }

.sentirte-modal-actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin: 0 -30px;
    padding: 19px 30px;
    border-top: 1px solid #EADBC8;
    background: rgba(248, 243, 235, .97);
    backdrop-filter: blur(10px);
}

.sentirte-modal .sentirte-button-secondary,
.sentirte-modal .sentirte-button-primary {
    display: inline-flex !important;
    min-height: 45px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 21px !important;
    border-radius: 13px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: normal !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all .2s !important;
}

.sentirte-modal .sentirte-button-secondary {
    border: 1px solid #DCCFC7 !important;
    color: #665955 !important;
    background: #fff !important;
    box-shadow: none !important;
}

    .sentirte-modal .sentirte-button-secondary:hover {
        border-color: #DDA9A5 !important;
        color: #B87874 !important;
    }

.sentirte-modal .sentirte-button-primary {
    border: 0 !important;
    color: #fff !important;
    background: #DDA9A5 !important;
    box-shadow: 0 10px 25px rgba(221, 169, 165, .45) !important;
}

    .sentirte-modal .sentirte-button-primary:hover {
        background: #C98F8B !important;
        box-shadow: 0 14px 28px rgba(221, 169, 165, .55) !important;
        transform: translateY(-1px);
    }

    .sentirte-modal .sentirte-button-primary:disabled {
        cursor: not-allowed !important;
        opacity: .65 !important;
        transform: none;
    }

.sentirte-alert {
    margin-top: 22px;
    padding: 14px 17px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.6;
}

.sentirte-alert-error {
    border: 1px solid #F4BFC4;
    color: #A92A35;
    background: #FFF1F2;
}

.sentirte-alert ul {
    margin: 0;
    padding-left: 19px;
}

.sentirte-success {
    padding: 65px 35px;
    text-align: center;
}

.sentirte-success-icon {
    display: flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 21px;
    border-radius: 50%;
    color: #A66763;
    background: #F0D9D5;
    font-size: 35px;
    font-weight: 700;
}

.sentirte-success h2 {
    max-width: 560px;
    margin: 7px auto 0;
    color: #332826;
    font-size: 27px;
}

.sentirte-success p {
    max-width: 550px;
    margin: 14px auto 26px;
    color: #756963;
    font-size: 14px;
    line-height: 1.7;
}

body.sentirte-modal-open {
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .sentirte-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sentirte-modal-dialog {
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
    }

    .sentirte-modal-header {
        padding: 21px 20px;
    }

        .sentirte-modal-header h2 {
            font-size: 22px;
        }

    .sentirte-modal-form {
        padding: 0 20px;
    }

    .sentirte-form-grid,
    .sentirte-options-grid {
        grid-template-columns: 1fr;
    }

    .sentirte-form-section {
        padding: 24px 0;
    }

    .sentirte-modal-actions {
        margin: 0 -20px;
        padding: 15px 20px;
    }
}

@media (max-width: 430px) {
    .sentirte-inline-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .sentirte-inline-options label {
            width: 100%;
            min-width: 0;
            justify-content: center;
        }

    .sentirte-modal-actions {
        flex-direction: column-reverse;
    }

    .sentirte-button-secondary,
    .sentirte-button-primary {
        width: 100% !important;
    }
}
