.container-fluid my-4{
    background-color: #02042a;
}

/* Contenedor principal */
#carrusel-dinamico-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Slider */
/* Slider */
#carruselDinamicoSlider {
    position: relative;
    height: 500px; /* antes estaba en 300px */
    border-radius: 1rem;
    overflow: hidden;
}

/* Imagenes con tamaño fijo y recorte */
.carrusel-dinamico-img {
    width: 100%;
    height: 500px; /* también aquí para que coincida con el contenedor */
    object-fit: cover;
    object-position: center 40%; /* ajusta según la mayoría de tus imágenes */
    display: block;
}

/* Inner carousel */
#carruselDinamicoInner {
    height: 100%;
}

/* Cada item ocupa toda la altura */
#carruselDinamicoInner .carousel-item {
    height: 100%;
}

/* Caption del carousel */
.carrusel-dinamico-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente negro para destacar texto */
    border-radius: 0.7rem;
    padding: 1rem 1.5rem;
    max-width: 85%;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.carrusel-dinamico-caption-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8f9fa; /* Muy claro para buen contraste */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carrusel-dinamico-caption-text {
    font-size: 1.1rem;
    color: #e1e5ea;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    line-height: 1.4;
    font-weight: 500;
}


/* Botones de navegación */
.carrusel-dinamico-control-prev,
.carrusel-dinamico-control-next {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    opacity: 1 !important;
    z-index: 1050;
    cursor: pointer;
    user-select: none;
}

.carrusel-dinamico-control-prev-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 8 8" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M5 0L1 4l4 4V0z"/></svg>');
}

.carrusel-dinamico-control-next-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 8 8" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M3 0v8l4-4-4-4z"/></svg>');
}

/* Iconos dentro de los botones */
.carrusel-dinamico-control-icon {
    background-color: #343a40;
    border-radius: 50%;
    padding: 0.3rem;
    width: 100%;
    height: 100%;
    display: inline-block;
    filter: brightness(1);
    transition: background-color 0.3s ease;
}

.carrusel-dinamico-control-icon:hover {
    background-color: #28a745;
    filter: brightness(1.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    #carruselDinamicoSlider {
        height: 200px;
    }
    .carrusel-dinamico-img {
        height: 200px;
    }
    .carrusel-dinamico-caption-title {
        font-size: 1.2rem;
    }
    .carrusel-dinamico-caption-text {
        font-size: 0.9rem;
    }
    .carrusel-dinamico-control-prev,
    .carrusel-dinamico-control-next {
        width: 2.5rem;
        height: 2.5rem;
        left: 8px;
        right: 8px;
    }
}









/* Títulos Generales */
section.bg-light h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 20px;
    margin-top: -50px;
    width: 100%;
}

/* === Tarjetas Generales === */
.card {
    border: none;
    border-radius: 15px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card p {
    font-size: 1.1rem;
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.card p::before {
    font-size: 1.3rem;
    margin-right: 6px;
}

/* === Estilos específicos para sección “¿Sabías que…?” === */




/* === Sección de Testimonios === */
section.container.my-5 {
    
    border-radius: 12px;
    width: 100%;
    margin-top: -20px;
}

/* Título centrado */
section.container.my-5 h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
    margin-top: -20px;
}

section.container.my-5 h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Tarjetas */
section.container.my-5 .card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #3498db;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
section.container.my-5 .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Citas */
section.container.my-5 blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #34495e;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

section.container.my-5 blockquote::before {
    content: "“";
    font-size: 2.5rem;
    color: #3498db;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
}

section.container.my-5 .blockquote-footer {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 0rem;
}

.custom-img {
    width: 100%; /* Ajusta el porcentaje según lo que necesites */
    max-width: 100%; /* Para evitar que se rompa el layout en pantallas pequeñas */
}



/* Estilos para la sección ¿Sabías que…? */
.sabias-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    border-left: 6px solid #28a745; /* Verde, color fresco */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); /* Sombra más difusa */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Para evitar desbordamiento de bordes */
}

.sabias-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 6px solid #17a2b8; /* Cambia el color al pasar el mouse */
}

.sabias-card p {
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.bg-light {
    background: #f8f9fa !important;
}

h3.text-center {
    font-weight: 700;
    color: #004085;
    margin-bottom: 2rem;
}




/* Estilos para la sección de Llamado a la Acción */
.cta-section {
    color: #333; /* Color oscuro para el texto */
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Sombra suave para darle un toque elegante */
}

.cta-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c3e50; /* Título en un color más oscuro para contraste */
}

.cta-section p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #7f8c8d; /* Un tono gris suave para el texto */
    line-height: 1.6;
    max-width: 700px; /* Limitar el ancho del párrafo para mejorar la legibilidad */
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background-color: #3498db; /* Azul atractivo para el botón */
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px; /* Bordes redondeados para un estilo más moderno */
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-section .btn-primary:hover {
    background-color: #2980b9; /* Azul más oscuro al hacer hover */
    transform: scale(1.05); /* Efecto de aumento al pasar el ratón */
}

.cta-section .btn-primary i {
    margin-right: 10px;
    font-size: 1.4rem; /* Aumentar el tamaño del ícono */
}





/* Fijar altura y ancho del carrusel y las imágenes */
.ultimas-noticias-carousel,
.ultimas-noticias-carousel-inner {
    height: 250px; /* la altura fija que quieres */
    max-height: 250px;
    overflow: hidden;
}

.ultimas-noticias-carousel-item img,
.ultimas-noticias-img,
.ultimas-noticias-img-default {
    width: 100%;
    height: 250px;
    object-fit: cover; /* recorta sin deformar */
    display: block;
}


@media (max-width: 768px) {
  .ultimas-noticias-carousel,
  .ultimas-noticias-carousel-inner,
  .ultimas-noticias-carousel-item img,
  .ultimas-noticias-img,
  .ultimas-noticias-img-default {
    height: 180px;
  }
}
