/* styles.css */
.hero {
  height: 100vh;
  background: url('https://via.placeholder.com/1600x800') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.icon-box {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  color: #000;
  text-align: center;
  width: 150px;
}

.bg-orange {
  background-color: #ff6600 !important;
}

/* Estilo base del navbar */
.custom-navbar {
  background-color: rgb(253, 254, 255);
  margin: 20px auto;
  border-radius: 15px;
  padding: 10px 30px;
  width: 90%; /* Más ancho en móvil por defecto */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Links del navbar */
.custom-navbar .nav-link {
  color: #000 !important;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  color: #0056b3 !important;
  text-decoration: none;
}

.custom-navbar .nav-link.active {
  color: #ff6600 !important;
}

/* Estilos responsivos */
@media (min-width: 768px) {
  .custom-navbar {
    width: 80%; /* Más ancho en tablet */
  }
}

@media (min-width: 992px) {
  .custom-navbar {
    width: 70%; /* Ancho original en desktop */
  }
  
  /* Asegurar que el menú no colapse en desktop */
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

/* Estilos específicos para móvil */
@media (max-width: 991.98px) {
  .custom-navbar {
    margin: 10px auto;
    padding: 10px 15px;
  }
  
  .navbar-collapse {
    background-color: rgb(253, 254, 255);
    border-radius: 0 0 15px 15px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .custom-navbar .nav-link {
    margin-left: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .custom-navbar .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* Botón toggler personalizado */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* HERO con fondo e imagen */
.hero-section {
  height: 100vh;
  background: url('https://via.placeholder.com/1600x800') center/cover no-repeat;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-section {
  background: url('./src/fh.JPG') center/cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 83, 0.586); /* Azul translúcido */
  backdrop-filter: blur(2px); /* Difuminado sutil */
  z-index: 1;
}

.hero-section .container.z-2 {
  position: relative;
  z-index: 2;
}

/* Botón naranja mejorado y más grande */
.btn-orange {
  background-color: #e07b3c;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1.1rem; /* Más grande */
  padding: 0.75rem 1.5rem; /* Más grande */
  border-radius: 0.5rem; /* Bordes redondeados */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Transición suave */
}
.btn-orange:hover {
  background-color: #cf6d2f;
  transform: scale(1.05); /* Efecto de agrandamiento */
}

/* Color naranja mejorado para CADIL */
.text-orange {
  color: #e07b3c;
  font-weight: bold; /* Resaltar */
}

/* TARJETAS DE SERVICIO POSICIONADAS FUERA DEL HEADER */
.cards-servicios {
  position: relative;
  margin-top: -60px; /* sobresale del header */
  z-index: 10;
}

/* Estilos para el logo */
.logo-container {
  width: 180px; /* Ancho fijo para contenedor */
  height: auto;
  display: flex;
  align-items: center;
}

.logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Mantiene proporciones */
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* Responsividad mejorada */
@media (max-width: 1199.98px) {
  .logo-container {
    width: 150px;
  }
}

@media (max-width: 991.98px) {
  .logo-container {
    width: 130px;
    margin: 0 auto 1.5rem;
  }
  
  .row > div {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .row > div:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .logo-container {
    width: 120px;
  }
}
/* Fade-up inicial */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-footer {
  background-color: #2c2c2c !important;
}


/* Aplica animación a las tarjetas */
.cards-servicios .card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease-out forwards;
}

/* Retrasos para efecto en cascada */
.cards-servicios .col-md-3:nth-child(1) .card {
  animation-delay: 0.2s;
}
.cards-servicios .col-md-3:nth-child(2) .card {
  animation-delay: 0.4s;
}

/* Hover sutil */
.cards-servicios .card:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


/* Título decorado alineado a la izquierda */
.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 0.3rem;
}

/* Separador decorativo alineado a la izquierda */
.divider {
  width: 80px;
  height: 4px;
  background-color: #e07b3c;
  border-radius: 2px;
  margin-top: 5px;
}

/* Justificar texto */
.text-justify {
  text-align: justify;
}

/* Animación fade-up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease-out both;
}

.nosotros-img {
  max-width: 90%; /* Aumenta el ancho relativo */
  height: auto;
  transition: transform 0.3s ease;
}

/* Opcional: animación al hacer hover */
.nosotros-img:hover {
  transform: scale(2.03);
}


.bg-orange {
  background-color: #e07b3c; /* o el color de tu marca */
}

/* Opcional: animación suave al hacer hover */
.card:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: #1e1e1e;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: #e07b3c;
  border-radius: 2px;
  margin-top: 10px;
}

/* Tarjetas de producto */
.producto-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #1e1e1e;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.btn-warning {
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-warning:hover {
  background-color: #d76b25;
  transform: scale(1.05);
}

.preloader {
  position: fixed;
  inset: 0;
  background-color: #0d1b2a; /* Azul oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 1s ease;
}

.preloader.d-none {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 400px;
  z-index: 2;
  animation: scaleIn 1.5s ease forwards;
  opacity: 0;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Triángulos animados */
.triangle-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.triangle-bg::before,
.triangle-bg::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    60deg,
    #00aaff,
    #00aaff 20px,
    #0077cc 20px,
    #0077cc 40px
  );
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.2;
  animation: floatTriangles 20s linear infinite;
}

.triangle-bg::after {
  transform: rotate(180deg);
  animation-duration: 30s;
  opacity: 0.3;
}

@keyframes floatTriangles {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

#contacto {
  background: url('./src/contactoH.jpg') no-repeat center center / cover;
  position: relative;
  z-index: 1;
}

#contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(4, 26, 104, 0.6); /* Oscurece el fondo para mejor contraste */
  z-index: -1;
}

.card.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}
