/* Página Novedades - Grúas BYC */

.novedades-section {
    background-color: #000000;
    background-image: repeating-linear-gradient(45deg, rgba(227, 140, 11, 0.15) 0px, rgba(227, 140, 11, 0.15) 1px, transparent 0px, transparent 50%);
    background-size: 20px 20px;
    min-height: 100vh;
    padding: 100px 0 80px;
    position: relative;
}

.novedades-section .container {
    position: relative;
    z-index: 1;
}

.novedades-header {
    margin-bottom: 2rem;
}

.novedades-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.novedades-title .text-orange {
    color: #E38C0B;
}

.novedades-title .text-white {
    color: #ffffff;
}

.novedades-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Cards de novedades */
.novedad-card {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.novedad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 140, 11, 0.3);
}

.novedad-card-clickable {
    cursor: pointer;
}

.novedad-card-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.novedad-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novedad-card-body {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.novedad-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.novedad-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #E38C0B;
    border-radius: 2px;
}

.novedad-card-fecha {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.novedad-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    flex: 1;
    white-space: pre-line;
}

/* Navbar novedades */
.navbar-novedades {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.navbar-novedades.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

/* Modal noticia completa */
.modal-novedad-content {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
}

.modal-novedad-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-novedad-header .modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-novedad-fecha {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.modal-novedad-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.modal-novedad-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.modal-novedad-img-wrap.d-none {
    display: none !important;
}

.modal-novedad-img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-novedad-cuerpo {
    white-space: pre-line;
}

@media (max-width: 768px) {
    .novedades-title {
        font-size: 2.25rem;
    }
    .novedades-subtitle {
        font-size: 1.1rem;
    }
}
