/********** Template CSS **********/
:root {
    --primary: #3BB1B1;
    /* Turquesa: confianza, higiene, calma */
    --secondary: #F6F6F6;
    /* Gris muy claro para secciones suaves */
    --light: #FFFFFF;
    /* Blanco: limpieza, pureza */
    --dark: #152440;
    /* Azul oscuro: profesionalidad, contraste */
    --accent: #F3525A;
    /* Color cálido para CTA y énfasis */
}

/* Altura del carousel adaptable */
.carousel-item {
    height: 100vh;
    /* por defecto: ocupa toda la altura de la pantalla */
    min-height: 400px;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* En móviles, que no ocupe toda la pantalla */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        min-height: 300px;
    }
}

/* Encabezados en color primary para transmitir confianza */
h1,
h2,
h3,
h4,
.font-weight-bold,
.font-weight-semi-bold {
    color: var(--primary);
    font-weight: 700 !important;
}


h3,
.font-weight-bold,
.font-weight-semi-bold {
    color: var(--dark);
    font-weight: 700 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

/* Ajustes padding para secciones */
.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* Botones */

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

/* Botones primarios en color accent para maximizar CTA */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--light);
    cursor: pointer;
    border-radius: 4px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #d94148;
    /* tono más oscuro del rojo rosado */
    border-color: #d94148;
    color: var(--light);
}

/* Botones cuadrados mantengo sin cambio */
.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Back to top botón */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Navbar - links normales en color oscuro para legibilidad */
.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

/* Navbar sticky padding reducido */
.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

/* Links navbar hover en primary (turquesa) */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Carousel caption con fondo oscuro y texto claro */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .7);
    /* azul oscuro semitransparente */
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
        color: var(--light);
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
        color: var(--light);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Service item with subtle shadows and primary accent */
.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #EEEEEE;
    transition: .5s;
}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: .3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

/* Team item hover effects with primary color */
.team-item img {
    transform: scale(1.15);
    margin-left: -30px;
    transition: .5s;
}

.team-item:hover img {
    margin-left: 0;
}

.team-item .team-text {
    left: -100%;
    transition: .5s;
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    right: -60px;
    margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
    left: 0;
}

/* Testimonial carousel navigation buttons in primary */
.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: var(--primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

/* Blog images hover effect */
.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}