/* ======================================================
   RESET + BASE
====================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 130px; /* header fijo */
    font-family: "Poppins", sans-serif;
    background-color: #222;
    color: #fff;
    overflow-x: hidden;
}

.carousel-wrapper {
    width: 100%;
    margin: 0;
}

#fadeCarousel .carousel-inner {
    width: 100%;
    height: clamp(300px, 40vw, 450px); /* altura ajustable */
    overflow: hidden;
    background-color: #000; /* relleno negro para que no se vea vacío */
}

#fadeCarousel .carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#fadeCarousel .carousel-item img {
    height: 100%;            /* ocupa toda la altura */
    width: auto;             /* mantiene proporción */
    max-width: none;
    object-fit: cover;       /* recorta lo que sobra */
    object-position: center; /* centrado exacto */
    display: block;
    filter: brightness(0.55); /* oscurece un poco */
}

#fadeCarousel .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
}

#fadeCarousel .carousel-caption h5 {
    color: #f0c040;
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

/* ======================================================
   SECCIONES GENERALES
====================================================== */
.info-section {
    padding: 60px 20px;
    background-color: rgba(17,17,17,0.95);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.title-primary {
    color: #f0c040;
    font-size: 1.6rem;
    text-transform: uppercase;
    border-bottom: 2px solid #f0c040;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.title-secondary {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

p {
    line-height: 1.7;
    color: #eee;
}

/* ======================================================
   BOTONES
====================================================== */
.btn-more-info,
.btn-call-to-action {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more-info {
    color: #f0c040;
    border: 1px solid #f0c040;
}

.btn-more-info:hover {
    background: #f0c040;
    color: #111;
}

.btn-call-to-action {
    background: #f0c040;
    color: #111;
}

.btn-call-to-action:hover {
    opacity: 0.85;
}

/* ======================================================
   ÁREAS PRINCIPALES
====================================================== */
#areas-principales {
    background: #333;
}

.areas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.area-card {
    background: #222;
    padding: 20px;
    text-align: center;
    height: 100%;
}

.area-card h4 {
    color: #f0c040;
}

/* ======================================================
   SERVICIOS DESTACADOS
====================================================== */
.destacados-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.service-card {
    background: #333;
    padding: 30px;
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(240,192,64,.3);
}

.service-card i {
    font-size: 3rem;
    color: #f0c040;
    margin-bottom: 15px;
}

/* ======================================================
   NOTICIAS
====================================================== */
#noticias {
    background: #eee;
    color: #111;
}

.noticias-grid {
    display: grid;
    gap: 20px;
}

.noticia-item {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #f0c040;
    transition: 0.3s;
}

.noticia-item:hover {
    transform: translateY(-3px);
}

/* ======================================================
   FOOTER
====================================================== */
.main-footer {
    background: #111;
    padding: 40px 20px;
    text-align: center;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
}

.social-links a {
    font-size: 1.6rem;
    color: #f0c040;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (min-width: 768px) {
    .areas-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .destacados-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .noticias-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
