.card-body {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

.card-body:hover {
    background-color: f#f8f9fa;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #9F2A22;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: #DB0014;
}

.card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.card-text:hover {
    color: #DB0014;
}

.ui-datepicker {
    z-index: 1600 !important;
    font-size: 14px;
    width: 300px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.ui-datepicker:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ui-datepicker-header {
    background-color: #9F2A22;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 10px;
}

.ui-datepicker-title {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.ui-datepicker-calendar {
    width: 100%;
    margin: 0;
}

.ui-datepicker-calendar th {
    font-weight: bold;
    color: #9F2A22;
}

.ui-datepicker-calendar td {
    padding: 5px;
    text-align: center;
}

.ui-datepicker-calendar td a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ui-datepicker-calendar td a:hover {
    background-color: #DB0014;
    color: white;
}

.modal {
    z-index: 1500;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #9F2A22;
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.modal-header:hover {
    background-color: #DB0014;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 15px 15px;
}

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

.form-group label {
    font-weight: bold;
    color: #9F2A22;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.form-group label:hover {
    color: #DB0014;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #9F2A22;
    box-shadow: 0 0 8px rgba(109, 0, 25, 0.3);
    outline: none;
}

/* Estilos específicos para el campo de archivo */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #e0e0e0;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #9F2A22;
    background-color: #fff5f5;
}

.form-group input[type="file"]:focus {
    border-color: #9F2A22;
    background-color: #fff5f5;
    box-shadow: 0 0 8px rgba(109, 0, 25, 0.3);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.btn-close {
    filter: invert(1);
    transition: transform 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

.spinner-border {
    margin-right: 5px;
    color: #9F2A22;
    transition: color 0.3s ease;
}

.spinner-border:hover {
    color: #DB0014;
}

/* Tablets y pantallas medianas (max-width: 992px) */
@media (max-width: 992px) {
    .card {
        margin-bottom: 20px;
    }

    .card-img-top {
        height: 250px;
        object-fit: cover;
    }

    .modal-dialog {
        max-width: 90%;
        margin: 1rem auto;
    }
}

/* Tablets pequeñas y móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }

    .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .card-body {
        padding: 15px;
    }

    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    .modal-content {
        border-radius: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    .ui-datepicker {
        width: 280px;
        font-size: 12px;
    }

    .btn-primary {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .card {
        margin-bottom: 15px;
    }

    .card-img-top {
        height: 180px;
        object-fit: cover;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .card-text {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .card-body {
        padding: 12px;
    }

    .modal-dialog {
        max-width: 100%;
        margin: 0;
        padding: 10px;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding: 12px;
    }

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

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.85rem;
    }

    .form-text {
        font-size: 0.75rem;
    }

    .ui-datepicker {
        width: 260px;
        font-size: 11px;
        padding: 8px;
    }

    .ui-datepicker-header {
        padding: 8px;
    }

    .ui-datepicker-title {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
    }
}

#ui-datepicker-div {
    position: absolute !important;
    z-index: 999999 !important;
    transform: translate3d(0, 0, 0);
}

.modal {
    overflow: visible !important;
}

body.modal-open {
    overflow: visible !important;
}

/* Estilos responsive adicionales para alquileres */
@media (max-width: 768px) {
    .section-content {
        padding: 0;
    }

    .section-content .row {
        margin: 0;
    }

    .section-content .col-md-4 {
        padding: 10px;
    }

    main.container {
        padding: 15px 10px;
    }

    .certificado-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-content .col-md-4 {
        padding: 8px;
    }

    main.container {
        padding: 10px 5px;
    }

    .certificado-container {
        margin-bottom: 15px;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
