/*******************************/
/********* Font Import *********/
/*******************************/
@font-face {
  font-family: 'MaxTF';
  src: url('../fonts/MaxTF.ttf') format('truetype'),
       url('../fonts/MaxTF.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/*******************************/
/********* General CSS *********/
/*******************************/

* {
  scroll-behavior: smooth;
}

body {
  color: #666666;
  background: #dddddd;
  font-family: "MaxTF", "Poppins", sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000;
  font-family: "MaxTF", "Poppins", sans-serif;
}

a {
  color: #666666;
  transition: 0.3s;
}

a:hover,
a:active,
a:focus {
  color: #FF000C;
  outline: none;
  text-decoration: none;
}

.btn:focus {
  box-shadow: none;
}

.wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.back-to-top {
  position: fixed;
  display: none;
  background: #FF000C;
  color: #f2f2f2;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 22px;
  right: 28px;
  bottom: 15px;
  transition: 0.5s;
  z-index: 9;
}

.back-to-top:hover {
  background: #e2854b;
  box-shadow: 0px 5px 15px rgba(0, 0, 0);
  color: #eeeeee;
  transition: 0.5s;
}

.back-to-top i {
  padding-top: 10px;
}

.btn {
  transition: 0.3s;
}

/**********************************/
/********** Top Bar CSS ***********/
/**********************************/
.top-bar {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.top-bar .logo {
  text-align: left;
}

.top-bar .logo img {
  max-height: 65px;
  width: auto;
}

.top-bar .top-bar-item {
  display: flex;
  align-items: center;
}

.top-bar .top-bar-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.top-bar .top-bar-icon i {
  color: #FF000C;
  font-size: 18px;
}

.top-bar .top-bar-text h3 {
  margin: 0;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-bar .top-bar-text p, 
.top-bar .top-bar-text p a {
  margin: 0;
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

@media (min-width: 992px) {
  .top-bar {
    padding: 10px 60px;
  }
}

@media (max-width: 991.98px) {
  .top-bar .logo {
    text-align: center;
    margin: 0 auto;
  }
}

/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/
.nav-bar {
  position: relative;
  background: #fff;
  transition: 0.3s;
}

.nav-bar .container-fluid {
  padding: 0;
}

.nav-bar.nav-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.nav-bar .navbar {
  height: 100%;
  background: #000 !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  padding: 10px 10px 8px 10px;
  color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #FF000C;
  transition: none;
}

@media (min-width: 992px) {
  .nav-bar {
    padding: 0px;
  }

  .nav-bar.nav-sticky {
    padding: 0;
  }

  .nav-bar .navbar {
    padding: 15px 20px;
  }

  .nav-bar .navbar-brand {
    display: none;
  }

  .nav-bar a.nav-link {
    padding: 8px 15px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
  }
}

@media (max-width: 991.98px) {
  .nav-bar .navbar {
    padding: 15px;
  }

  .nav-bar a.nav-link {
    padding: 5px;
  }
}

/*******************************/
/******** Carousel CSS *********/
/*******************************/
.carousel {
  position: relative;
  width: 100%;
  height: calc(95vh - 100px);
  min-height: 500px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.carousel .carousel-inner,
.carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.carousel .carousel-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.carousel .carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel .carousel-caption p {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.carousel .carousel-caption h1 {
  color: #ffffff;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 35px;
}

.carousel .carousel-caption .btn {
  padding: 15px 35px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 0;
  transition: 0.3s;
}

.carousel .carousel-caption .btn:hover {
  color: #000;
  background: #FF000C;
  border-color: #FF000C;
}

@media (max-width: 767.98px) {
  .carousel .carousel-caption h1 {
    font-size: 40px;
    font-weight: 700;
  }

  .carousel .carousel-caption p {
    font-size: 20px;
  }

  .carousel .carousel-caption .btn {
    padding: 12px 30px;
    font-size: 18px;
  }
}

@media (max-width: 575.98px) {
  .carousel .carousel-caption h1 {
    font-size: 30px;
  }

  .carousel .carousel-caption p {
    font-size: 16px;
  }

  .carousel .carousel-caption .btn {
    padding: 10px 25px;
    font-size: 16px;
  }
}

.carousel .animated {
  -webkit-animation-duration: 1.5s;
  animation-duration: 1.5s;
}

/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
  position: relative;
  width: 100%;
  margin-bottom: 45px;
}

.section-header p {
  color: #FF000C;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.section-header h2 {
  margin: 0;
  position: relative;
  font-size: 50px;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .section-header h2 {
    font-size: 30px;
  }
}

/*******************************/
/********* Feature CSS *********/
/*******************************/
.feature {
  position: relative;
  margin: 0;
}

.feature .col-md-12 {
  background: #000;
}

.feature .col-md-12:nth-child(2n) {
  color: #fff;
  background: #FF000C;
}

.feature .feature-item {
  min-height: 350px;
  padding: 30px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.feature .feature-text ul {
  padding-left: 20px;
}

.feature .feature-text h3 {
  margin: 0 0 10px 0;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 600;
}

.feature .feature-text p {
  margin: 0;
  color: #f2f2f2;
  font-size: 16px;
  font-weight: 400;
}

/*******************************/
/********** About CSS **********/
/*******************************/
.about {
  position: relative;
  width: 100%;
  padding: 45px 0;
}

.about .section-header {
  margin-bottom: 30px;
}

.about .about-img {
  position: relative;
  height: 100%;
}

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

.about .about-text p {
  font-size: 16px;
}

/*******************************/
/********** Fact CSS ***********/
/*******************************/
.fact {
  position: relative;
  width: 100%;
  padding: 45px 0;
}

.fact .col-md-4 {
  position: relative;
  overflow: hidden;
}

.fact .col-md-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: background 0.4s ease;
}

.fact .col-md-4:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.fact .fact-icon,
.fact .fact-text {
  position: relative;
  z-index: 2;
}

.fact .fact-icon {
  position: relative;
  margin: 7px 15px 0 15px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact .fact-icon [class^="flaticon-"]::before {
  margin: 0;
  font-size: 60px;
  line-height: 60px;
  background-image: linear-gradient(#ffffff, #FF000C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fact .fact-left {
  padding-top: 60px;
  padding-bottom: 60px;
  color: #f2f2f2;
  background: #000;
}

.fact .fact-text h2 {
  font-size: 35px;
  font-weight: 700;
  color: #f2f2f2;
}

/*******************************/
/********* Service CSS *********/
/*******************************/
.service {
  position: relative;
  width: 100%;
  padding: 45px 0 15px 0;
}

.service .service-item {
  position: relative;
  width: 100%;
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service .service-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
  height: 200px;
}

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

.service .service-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.service .service-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.service .service-item a.btn {
  line-height: 35px;
  color: #fff;
  background: #FF000C;
  border-radius: 5px;
  transition: 0.3s;
  font-weight: 600;
}

.service .service-item:hover a.btn {
  color: #ffffff;
  background: #000;
}

/*******************************/
/******** Galería CSS **********/
/*******************************/
.portfolio .portfolio-warp {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.portfolio .portfolio-warp:hover {
  transform: translateY(-5px);
}

.portfolio .portfolio-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.3s;
}

/*******************************/
/********* Contact CSS *********/
/*******************************/
.contact-section {
  position: relative;
  background: #f4f4f4;
}

.contact-form {
  position: relative;
  padding: 0;
}

.contact-form input.form-control {
  color: #333;
  height: 50px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

.contact-form textarea.form-control {
  color: #333;
  height: 150px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

.contact-form input.form-control:focus,
.contact-form textarea.form-control:focus {
  box-shadow: none;
  border-color: #FF000C;
}

/* Estilo mejorado para el botón Enviar */
.contact-form button.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: #FF000C;
  border: 2px solid #FF000C;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 0, 12, 0.25);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* Efecto hover: cambio de color de fondo, borde y sombra */
.contact-form button.btn:hover {
  color: #ffffff;
  background-color: #000000;
  border-color: #000000;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.contact-form button.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
  position: relative;
  padding-top: 60px;
  background: #000;
  color: #ffffff;
}

.footer .footer-contact p i {
  width: 25px;
  color: #FF000C;
}

.footer .footer-contact p a {
  color: #fff;
}

.footer .footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  padding: 8px 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: 0.3s;
}

.footer .footer-social a i {
  font-size: 18px;
  color: #ffffff;
}

.footer .footer-social a:hover {
  background: #FF000C;
  border-color: #FF000C;
}

.footer .copyright {
  padding: 20px 15px;
  border-top: 1px solid #222;
}

.footer .copyright p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.footer .copyright p a {
  color: #FF000C;
}

/* Whatsapp Floating Icon (Ajustado por encima de la flecha back-to-top) */
.whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 75px; /* Se sube para dejar espacio al botón back-to-top (que está en bottom: 15px) */
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.whatsapp-icon {
  margin-top: 15px;
}

.whatsapp:hover {
  color: #fff;
  transform: scale(1.1);
}