 body {
    padding-top: 80px;
}

.error-message-box {
    background: #fee;
    border-left: 4px solid #dc3545;
    color: #dc3545;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.error-message-box i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-text {
    color: #dc3545;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    margin-top: -5px;
    margin-bottom: 20px;
    padding-left: 5px;
}

.error-text i {
    font-size: 0.85rem;
}

.error-message-box {
    background: #fee;
    border-left: 4px solid #dc3545;
    color: #dc3545;
    padding: 12px 14px;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    animation: slideDown 0.3s ease;
}

.error-message-box i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.input-box.error {
    border-bottom-color: #dc3545 !important;
}

.wrapper .btn {
    margin-top: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(26, 35, 126, 0.15) !important;
}

.wrapper .input-box {
    margin-bottom: 10px;
}

.wrapper .input-box input {
    color: #1a237e !important;
}

.wrapper .input-box label {
    color: #1a237e !important;
}

.wrapper .input-box input:focus ~ label,
.wrapper .input-box input:valid ~ label {
    color: #1a237e !important;
}
body {
        padding-top: 80px;
    }

.accesibilidad-btn {
    position: fixed !important;
    left: 0px !important;
    top: 30% !important;
    transform: translateY(-50%) !important;
    width: 55px !important;
    height: auto !important;
    cursor: pointer !important;
    z-index: 11001 !important;
    filter: brightness(1) drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.4)) !important;
    transition: transform 0.3s ease, filter 0.3s ease, width 0.3s ease !important;
}

.accesibilidad-btn:hover {
transform: translateY(-50%) scale(1.25) !important;
filter: brightness(1.3) drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.9)) !important;
}
.carousel-wrapper-noticias {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-container-noticias {
    flex-grow: 1;
    max-width: 900px;
    overflow: hidden;
    position: relative;
}

.carousel-slide-noticias {
    display: none;
    animation: fadeInNoticias 0.5s;
}

.carousel-slide-noticias.active {
    display: block;
}

@keyframes fadeInNoticias {
    from {opacity: 0; transform: translateX(20px);}
    to {opacity: 1; transform: translateX(0);}
}

.noticia-card-grande {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.noticia-card-grande:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.noticia-imagen {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card-grande:hover .noticia-imagen img {
    transform: scale(1.05);
}

.noticia-fecha {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a237e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.noticia-contenido {
    padding: 25px;
}

.noticia-contenido h3 {
    color: #1a237e;
    font-size: 1.65rem;
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 66px;
}

.noticia-contenido p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 75px;
}

.noticia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-leer-mas {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-leer-mas:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(26,35,126,0.3)
}

.btn-leer-mas i {
    transition: transform 0.3s ease;
}

.btn-leer-mas:hover i {
    transform: translateX(5px);
}

.carousel-arrow-noticias {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: #1a237e;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.carousel-arrow-noticias:hover {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    color: white;
    transform: scale(1.15);
    border-color: #1a237e;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.dots-container-noticias {
    padding: 35px 0 0;
    text-align: center;
}

.dot-noticias {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 7px;
    background-color: #d0d0d0;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot-noticias.active {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    width: 35px;
    border-radius: 10px;
}

.dot-noticias:hover {
    background-color: #303f9f;
    transform: scale(1.3);
}

/* Modal para noticia completa */
.modal-noticia {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-contenido {
    
    background-color: #ffffff;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.4s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(26, 35, 126, 0.9);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px 50px;
}

.modal-body h2 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-fecha {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .contenido-completo {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-imagen {
        height: 250px;
    }
    
    .noticia-contenido {
        padding: 25px 20px;
    }
    
    .noticia-contenido h3 {
        font-size: 1.4rem;
    }
    
    .noticia-contenido p {
        font-size: 0.95rem;
    }
    
    .carousel-arrow-noticias {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .modal-contenido {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 30px 25px;
    }

    .modal-header {
        height: 250px;
    }

    .mas-prestados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Secciop para equipos mas prestados */
.mas-prestados-section {
    padding: 80px 20px;
    background: transparent;
}

.mas-prestados-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mas-prestados-title {
    text-align: center;
    color: #1a237e;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
}

.mas-prestados-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.prestado-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 35, 126, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.prestado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.prestado-img {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.prestado-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.prestado-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    flex: 1;
}

.prestado-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.prestado-name {
    font-weight: 600;
    color: #0F1111;
    font-size: 0.95rem;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
    white-space: nowrap;
}

.badge.available { background: #067D62; }
.badge.limited { background: #FF9900; }
.badge.none { background: #C7511F; }

.prestado-description {
    font-size: 0.85rem;
    color: #565959;
    line-height: 1.4;
    max-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prestado-meta {
    font-size: 0.8rem;
    color: #565959;
    padding-top: 6px;
    border-top: 1px solid #e0e0e0;
}

.prestado-meta b {
    color: #1a237e;
}

.prestado-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #067D62;
    font-weight: 600;
    margin-top: 4px;
}

.pagination-prestados {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-prestados button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 2px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.95);
    color: #1a237e;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination-prestados button:hover:not(:disabled):not(.active) {
    background: #f0f0f0;
    border-color: #1a237e;
}

.pagination-prestados button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-prestados button.active {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    border-color: #1a237e;
    color: white;
}

@media (max-width: 1200px) {
    .mas-prestados-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .mas-prestados-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

footer {
    margin-top: 0;
}

