.mainDisplay{
	padding-top: 4.5rem;
	background: linear-gradient( to bottom,rgba(0, 0, 0, .4),rgba(0, 0, 0, .4)),url(/images/img7.png);
    background-size: cover;
    background-position: 40%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainDisplay p{
    color: #fcfcfc;
    font-size: clamp(1.75rem, 2.5vw + 1rem, 10rem);
    line-height: 1.2;
}

.seccion2 .titulo{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 36px;
    color: #176CA2;
}

.seccion2 .texto{
    font-size: 24px;
}

/*-----------------------Slider Empleados-------------------------*/

/* Contenedor principal: 620px mínimo en celular, 800px en tablet/escritorio */
.team-section {
    background-color: #1B5427;
    min-height: 620px;
}

@media (min-width: 768px) {
    .team-section {
        min-height: 800px;
    }
}

/* Tipografía fluida que se adapta sola entre celular y escritorio */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Ancho máximo de la tarjeta del empleado */
.team-card {
    max-width: 600px;
}

/* Fotografía circular: 130px en celular, 160px en escritorio */
.team-avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
    .team-avatar {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }
}

/* Puesto del empleado */
.team-role {
    color: #A8E6B5;
    letter-spacing: 1px;
}

/* Descripción con interlineado cómodo para lectura en móvil */
.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .team-bio {
        font-size: 1.05rem;
    }
}

/* Controles laterales: más compactos en móvil para no invadir el texto */
.carousel-control-prev,
.carousel-control-next {
    width: 44px; /* Área táctil mínima recomendada en móviles */
    transition: opacity 0.4s ease;
}

@media (min-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

.custom-arrow {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 768px) {
    .custom-arrow {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Desvanece el botón izquierdo al estar en el primer miembro */
#teamCarousel:has(.carousel-item:first-child.active) .carousel-control-prev {
    opacity: 0;
    pointer-events: none;
}

/* Desvanece el botón derecho al estar en el último miembro */
#teamCarousel:has(.carousel-item:last-child.active) .carousel-control-next {
    opacity: 0;
    pointer-events: none;
}
/*-----------------------Mensaje-------------------------*/

.seccion4 .titulo{
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    font-size: 36px;
    color: #176CA2;
}

.seccion4 .texto{
    font-size: 24px;
}

.seccion4 .subSeccion1{
    text-align: justify;
}

.seccion4 .subSeccion2{
    text-align: center;
    padding: 0 230px;
}

.seccion4 .subSeccion2 b{
    color: #176CA2;
}

.seccion4 .subSeccion3{
    text-align: justify;
}

.seccion4 .firma{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 24px;
    color: #176CA2;s
}

@media (max-width: 767px){
    .seccion4 .subSeccion2{
        text-align: center;
        padding: 0;
    }
}