/* Estilos base de la noticia */
.noticia {
    max-width: 900px;
    margin: 28px auto;
    padding: 0 16px 40px;
}

.noticia .titulo {
    font-size: 32px; /* Un poco más grande para destacar */
    line-height: 1.2;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 800;
}

.noticia .meta {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
}

/* CARRUSEL ESTRUCTURA */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de scroll pero mantener funcionalidad */
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    margin: 0;
}

.carousel-slide img {
    width: 100%;
    height: 500px; /* Altura fija para consistencia */
    object-fit: cover;
    display: block;
}

.carousel-slide figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 12px;
    font-size: 14px;
    text-align: center;
}

/* Controles (Flechas) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #3F3939;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 30%;
    margin: 0 10px;
    transition: background 0.3s;
}

.carousel-control:hover { background: #5e5555; }
.prev { left: 0; }
.next { right: 0; }

/* Indicadores (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 50px; /* Encima del caption */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: white; width: 25px; border-radius: 5px; }

/* Texto de la noticia */
.noticia .bajada {
    font-size: 20px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
}

.noticia .entrada {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.noticia .cuerpo {
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
}

.btn.volver{
	position: absolute;
	display:inline-flex;
	background-color:var(--primary,#3f3939);
	color:#fff;
	padding:8px 12px;
	border-radius:8px;
	text-decoration:none;
	font-weight:600;
	box-shadow:0 2px 6px rgba(44,123,229,0.18);
	border:1px solid rgba(0,0,0,0.06);
	margin-bottom:1%;
	margin-left: 15%;
	align-items: center;
}

.btn.volver:hover{ background-color:color-mix(in srgb, var(--primary,#2c7be5) 80%, black 20%); }
.btn.volver:focus{ outline:2px solid rgba(44,123,229,0.25); outline-offset:2px }


@media (max-width: 720px) {
    .carousel-slide img { height: 300px; }
    .noticia .titulo { font-size: 24px; }
}