/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}

/*** PROPIOS ***/

/*___PARA CAROUSEL DE IMAGENES___*/
.bord_h .slider img {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.bord_h .slider img.active {
  opacity: 1;
  visibility: visible;
}
/*______________________________*/

.idt { text-indent: 20px; }

.mtL5 { margin-top:5rem; }
.mtL6 { margin-top:6rem; }

.mbL6 { margin-bottom:6rem; }
.mbL3 { margin-bottom:3rem; }
.mbL8 { margin-bottom:8rem; }

.mbLarg { margin-bottom:7rem; }

/*-------------BOTON FLOTANTE WHATSAPP*/
.btn-flotante {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
    background: transparent !important; /* Fondo 100% transparente */
    border: none !important; /* Elimina cualquier borde */
    padding: 2px 2px;
    position: fixed;
    bottom: 85px;
    right: 20px;
    transition: all 300ms ease 0ms;
    box-shadow: none !important; /* Elimina sombras */
    z-index: 99;
    outline: none !important; /* Elimina el contorno al hacer focus */
}

.btn-flotante:hover {
    background: transparent !important; /* Mantiene transparencia en hover */
    transform: translateY(-4px);
}

/*___BOTONES ELEGANTES (ROJO AMARILLO Y VERDE_____________________________*/
.btn-3d-green {
  padding: .6rem 1rem;
  border: 1px solid #0b6623;
  border-radius: 4px;
  background-color: #1a943f;
  color: #fff;
  height: 120px;
  font-size: 1.5rem;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.4), /* Increased blur to 6px, opacity to 0.4 */
              0 2px 4px rgba(0,0,0,.3); /* Increased vertical offset to 2px, blur to 4px, opacity to 0.3 */
  transition: background-color 1s ease, box-shadow 1s ease;
}

.btn-3d-green:hover,
.btn-3d-green:focus {
  background-color: #34d058;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.35), /* Slightly stronger shadow on hover */
              0 1px 3px rgba(0,0,0,.2);
}
.btn-3d-green:active {
  background-color: #218838;
  box-shadow: 0 2px 3px 0 rgba(0,0,0,.2) inset; /* Existing active shadow */
}

.btn-3d-yellow {
  padding: .6rem 1rem;
  border: 1px solid #b7950b;
  border-radius: 4px;
  background-color: #f4d03f;
  color: #000;
  height: 120px;
  font-size: 1.5rem;
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.4), /* Increased blur to 6px, opacity to 0.4 */
              0 2px 4px rgba(0,0,0,.3); /* Increased vertical offset to 2px, blur to 4px, opacity to 0.3 */
  transition: background-color 1s ease, box-shadow 1s ease;
}

.btn-3d-yellow:hover,
.btn-3d-yellow:focus {
  background-color: #fff176;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.35), /* Slightly stronger shadow on hover */
              0 1px 3px rgba(0,0,0,.2);
}
.btn-3d-yellow:active {
  background-color: #f39c12;
  box-shadow: 0 2px 3px 0 rgba(0,0,0,.2) inset; /* Existing active shadow */
}

.btn-3d-red {
  padding: .6rem 1rem;
  border: 1px solid #7b241c;
  border-radius: 4px;
  background-color: #c0392b;
  color: #fff;
  height: 120px;
  font-size: 1.5rem;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.4), /* Increased blur to 6px, opacity to 0.4 */
              0 2px 4px rgba(0,0,0,.3); /* Increased vertical offset to 2px, blur to 4px, opacity to 0.3 */
  transition: background-color 1s ease, box-shadow 1s ease;
}
.btn-3d-red:hover,
.btn-3d-red:focus {
  background-color: #ff6b6b;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 3px 6px rgba(0,0,0,.35), /* Slightly stronger shadow on hover */
              0 1px 3px rgba(0,0,0,.2);
}
.btn-3d-red:active {
  background-color: #922b21;
  box-shadow: 0 2px 3px 0 rgba(0,0,0,.2) inset; /* Existing active shadow */
}

@media (max-width: 576px) {
    .btn-3d-green,
    .btn-3d-red,
    .btn-3d-yellow {
    font-size: 1rem;   /* texto más pequeño en móvil */
    height: auto;      /* que se adapte */
    min-height: 100px; /* pero mantiene proporción */
  }
}

/*___________________________________________________________________________*/

/*____FUERZO RELACION 4:3 EN LOS DIV QUE ME INTERESA____*/

    .col-img {
        aspect-ratio: 4 / 3;     
        overflow: hidden;       
    }

    .col-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;    
    }

/*____ ESTILOS PARA SCROLL DE LA PAGINA SERVICES ____*/
.scroll-col {
  height: auto;
  overflow: visible;
}

@media (min-width: 768px) {
  .scroll-col {
    height: 100dvh;
    overflow: auto;
  }
}
/*___________________________________________________*/

.btn-rojo {
    width:150pt;
    background-color: red;
    color: white;
    border: 1px solid red;
}
.btn-rojo:hover {
    background-color: white;
    color: red;
    border: 1px solid red;
}

hr {
	border:0; 
	height:2px; 
	text-align:center;
	background-image:-webkit-gradient(linear, 100% 0%, 0% 0%, from(#FFFFFF), to(#FFFFFF), color-stop(.5,#FF8000)) 
}

/* CAMBIAMOS FONDO DEL DIV CUANDO SE SUMA IMPORTE DE LA OFERTA */
.input-container {
    padding: 10px;
    border: 1px solid black; /* Opcional: para ver los límites */
}
.highlight {
    background-color: #79ed92; 
    transition: background-color 0.3s; /* Suaviza el cambio */
}
.highliout {
    background-color: #e6d0f5; 
    transition: background-color 0.3s; /* Suaviza el cambio */
}

/*--------------------------------------------------------------*/

.und { text-decoration-line: underline; text-underline-offset:5px; height:40px; display:inline-block; }

.custom-input {
    width: 100% !important;
    box-sizing: border-box; /* Incluye padding y borde en el cálculo del ancho */
}

.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider::before {
    content: '';
    display: block;
    padding-top: 75%; /* Proporción 4:3 (600/800 * 100) */
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: none;
    border-radius: 10px; /* Redondeo ligero */
}

/* Resto del CSS (botones, etc.) permanece igual */
.slider-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-buttons button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.slider-buttons button.active {
    background-color: #333;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* Aumentado de 40px a 50px */
    height: 50px; /* Aumentado de 40px a 50px */    
    border: none;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.5);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(33, 136, 56, 0.6);
}

/*** FIN PROPIOS ***/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background: rgba(15, 66, 41, .6); */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    /*
    background-color: var(--primary);
    border: 10px solid var(--primary);
    */
    */
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF; /* FONDO DEL DIV NORMAL */
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: #F8F8FF; /* FONDO DEL DIV EN HOVER */
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #708090; /* COLOR H4 EN HOVER */
}

.service-item:hover .service-text p {
    color: #2F4F4F; /* COLOR DEL P EN HOVER */
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}

/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}