/********** Template CSS **********/
:root {
    --primary: #03658c;
    --secondary: #ff4848;
    --light: #03658c;
    --dark: #023859;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    color: #ffffff; /* Color del texto */
    background-color: #66caf2; /* Color de fondo, reemplaza con el color que desees */
    padding: 10px 15px; /* Añade padding para hacer el botón más grande */
    border-radius: 5px; /* Bordes redondeados, opcional */
    text-align: center; /* Centrar el texto dentro del botón */
    text-decoration: none; /* Elimina el subrayado de los enlaces */
}



/*** 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;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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;
    border-radius: 50px;
}


/*** Navbar ***/
.nav-bar {
    position: relative;
    margin-top: 45px;
    padding: 0 3rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #ff4848;
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header {
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
    height: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.); /* Fondo semi-transparente */
}

.overlay-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Cambia el color del texto según tu diseño */
    text-align: left;
    padding: 20px;
    width: 80%; /* Ajusta el ancho según lo necesites */
}

.overlay-content h1 {
    font-size: 4rem; /* Ajusta este valor según sea necesario */
}

.overlay-content p {
    font-size: 1.3rem; /* Ajusta este valor según sea necesario */
}

.overlay-content .btn-primary {
    background-color: #03658C;
    border-color: #023859;
    color: #FFFFFF;
    font-size: 1.2rem; /* Ajusta el tamaño de la fuente del botón */
}

@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

.header-carousel .owl-nav {
    position: relative;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #66CAF2;
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
    border: 1px dashed #66CAF2 !important;
}

/*** Animacion ***/
.animation-container {
    text-align: center;
  }
  
  .animate-text {
    font-size: 2rem;
    font-weight: bold;
    color: #03658c;
    opacity: 0;
    animation: fadeIn 1s forwards, slideUp 1s ease-in-out 1s forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(20px);
    }
    to {
      transform: translateY(0);
    }
  }

/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: #03658C;
    transform: skew(20deg);
    z-index: 1;
}

.btn-primary {
    background-color: #03658C;
    border: 1px solid #023859; /* Borde negro */
    color: #ffffff; /* Texto blanco */
    transition: all 0.3s ease; /* Transición suave */
    font-size: 1rem; /* Tamaño de fuente aumentado */
    padding: 12px 20px; /* Ajuste el padding para el tamaño del botón */
}

.btn-primary:hover {
    background-color: #ffffff; /* Cambia a fondo blanco al pasar el mouse */
    color: #03658C; /* Cambia a texto azul al pasar el mouse */
}

.col-lg-6 p {
    font-size: 1.2rem; /* Tamaño de fuente aumentado a 1.2 rem */
}

/*** Animacion ***/
.ribbon-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .ribbon {
    display: inline-block;
    position: relative;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    color: #ff4848;
    font-size: 6rem;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
  }
  
  .ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #03658C;
    transform: skewX(-30deg);
    transition: left 1s ease;
  }
  
  .ribbon:hover::before {
    left: 100%;
  }
  
  .ribbon .text {
    position: relative;
    z-index: 1;
    transition: color 1s ease;
  }
  
  .ribbon:hover .text {
    color: #03658C;
  }


/*** Category ***/
.container-xxl {
    width: 100%; /* Hace que la contenedor ocupe el ancho completo de la pantalla */
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.cat-item {
    display: inline-block;
    overflow: hidden;
    background-color: transparent; /* Cambia el fondo a transparente */
    text-align: center; /* Centra el contenido dentro de .cat-item */
    padding: 10px; /* Reducido el padding para reducir el espacio interno */
}

.cat-item img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin: 0 auto; /* Centra la imagen horizontalmente */
}

.cat-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.cat-item img {
    transition: .5s;
}

.cat-item:hover img {
    filter: brightness(100%);
}

/* Estilo para eliminar el borde punteado azul */
.cat-item .rounded {
    border: none !important; /* Elimina cualquier borde que se aplique a .rounded */
}

/* Reducción del espacio entre columnas */
.row.g-4 > .col-lg-3,
.row.g-4 > .col-sm-6 {
    padding: 1px; /* Ajusta el padding de las columnas para reducir el espacio */
}

/* Ajuste del tamaño de texto para Residential Fencing */
.cat-item h6 {
    font-size: 1.2rem; /* Tamaño de letra 1.2rem para el título */
    color: #03658C;
}

/* Color del texto para el h1 */
h1 {
    color: #023859; /* Color del texto especificado */
    font-size: 2.5rem; /* Tamaño de letra para el h1 */
    line-height: 1.2; /* Altura de línea del texto */
    font-weight: bold; /* Peso de la fuente */
    margin-bottom: 1rem; /* Margen inferior */
}

/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed #03658C !important;
}

.property-item .border-end {
    border-right: 1px dashed #03658C !important;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: #03658C;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: #66CAF2;
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed #03658C !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #03658C;
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* border: 1px solid #66caf2; */
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: #66CAF2;
    border-color: ffffff;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #ffffff;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid #ffffff;
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid #ffffff;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

