/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Encabezado */
header {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-family: Arial, sans-serif;
  padding-bottom: 0%;
}

.logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}


/* ==== Carrusel ==== */
.carousel-item {
  position: relative;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: 400px; /* ajusta según el alto que desees */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === Caption estilo franja oscura === */
.carousel-caption {
  position: absolute;
  bottom: 0; /* se coloca pegado al borde inferior */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* fondo oscuro semitransparente */
  color: #fff;
  text-align: center;
  padding: 10px 0;
  border-radius: 0 0 20px 20px; /* bordes inferiores redondeados */
  font-weight: bold;
  font-size: 1rem;
}


/* Botones de control del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #752a2e !important; /* Color de fondo del círculo */
  border-radius: 50% !important;        /* Forma circular */
  width: 40px !important;
  height: 40px !important;
  background-size: 60% 60% !important;  /* Tamaño del ícono */
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Aseguramos que el ícono SVG tenga el color deseado */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.354a.5.5 0 0 1 0 .707L5.707 7.707a.5.5 0 0 0 0 .707l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.354a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}



/* Info de áreas */
.info-section { padding:20px; margin-top:10px; border-radius:15px; box-shadow:0 4px 12px rgba(0,0,0,0.1); overflow:hidden; color:white !important; }
.advantages { background:rgba(255,255,255,0.3) !important; align-items: baseline !important; padding:10px !important; margin:10px 0 !important; border-left:5px solid #fff !important; border-radius:5px !important; }
.services-container { display:flex; flex-wrap:wrap; gap:15px; margin-top:15p !important; }
.service-card { flex:1 1 200px; display:flex; flex-direction:column; align-items:center; text-align:center; padding:15px; border-radius:10px; background:rgba(255,255,255,0.1); transition:transform 0.3s, box-shadow 0.3s; backdrop-filter:blur(5px) !important; }
.service-card:hover { transform:translateY(-5px) !important; box-shadow:0 8px 20px rgba(0,0,0,0.4) !important; }
.service-card img {
  width: 280px !important;
  height: 180px !important;
  object-fit: cover !important;
  margin-bottom: 10px !important;
  border-radius: 5px !important;
  padding: 5px !important;
  background: white !important;
  box-sizing: border-box !important;
  display: block !important;
}
.service-card strong { display:block; margin-bottom:5px; font-size:1.1em !important; }
.service-card small { color:#f0f0f0 !important; }




body h2 {
  color: #752a2e;
  text-align: center;
  margin: 30px 0;
  animation: deslizarFade 2s ease-in-out forwards;
  opacity: 0;
}

@keyframes deslizarFade {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Pie de página */
 footer {
      background-color: #ffffff;
      color: rgb(0, 0, 0);
      text-align: center;
      padding: 20px;
       font-family: 'Lato', sans-serif;
      margin-top: 40px;
    }

    footer a {
      color: #000000;
      text-decoration: underline;
      margin-left: 10px;
    }

    /* Simulación de movimiento 360° (efecto 3D al pasar el mouse) */
.service-card img {
  transition: transform 0.8s ease, box-shadow 0.5s ease;
  transform-origin: center;
  transform-style: preserve-3d;
}

.service-card:hover img {
  transform: rotateY(25deg) scale(1.05); /* ligera rotación 3D */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Movimiento más realista: vuelve lentamente a su posición */
.service-card img:active {
  transform: rotateY(0deg) scale(1);
}

     /* === Configuraciones del menú Bootstrap === */
/* Tamaño del encabezado */
header {
  background-color: #ffffff;
  padding: 20px 0; /* Aumenta el espacio vertical */
}

.navbar {
  min-height: 100px; /* altura mínima del header */
}

.navbar-brand img {
  height: 80px; /* Ajusta el tamaño del logo */
  width: auto;
}



/* Color de los enlaces del menú */
.navbar-dark .navbar-nav .nav-link {
  background-color: #6f752c; /* 💚 color de tus botones */
  color: #fff !important;
  margin: 0 5px;
  border-radius: 4px;
  padding: 8px 16px;
  transition: background-color 0.3s ease;
}

/* Hover (al pasar el mouse) */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  background-color: #34495e !important; /* gris-azulado de hover */
  color: #fff !important;
}



.dropdown-menu .dropdown-item {
  color: #fff;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #bdc3c7;
  color: #000;
}

/* 🔧 Submenús siempre dentro de la pantalla */
.dropdown-menu {
  background-color: #6f752c;
  border-radius: 4px;
  color: #fff;
  border: none;
  min-width: 180px;
  white-space: nowrap;
  overflow: hidden;
}

/* Asegura que los submenús a la derecha no se salgan */
.nav-item.dropdown:last-child .dropdown-menu,
.navbar-nav > li:last-child .dropdown-menu {
  left: auto !important;
  right: 0 !important; /* se abre hacia la izquierda */
  transform: none !important;
}

/* Hover */
.dropdown-item {
  color: #fff;
}

.dropdown-item:hover {
  background-color: #bdc3c7;
  color: #000;
}

/* Estilo para el enlace activo del menú */
.nav-link.active {
  background-color: #636363 !important; /* mismo fondo que tenías */
  color: white !important;
  font-weight: bold;
  border-radius: 4px;
}
/*  Estilo para el enlace de activo del submenu */
.dropdown-item.active {
 background-color: #636363 !important; /* mismo fondo que tenías */
  color: white !important;
  font-weight: bold;
  border-radius: 4px;

}
/* ================================
   ⭐ MENÚ RESPONSIVO (MÓVIL)
   Color verde #6f752c
   ================================ */

/* Fondo del menú cuando se despliega */
.navbar-collapse {
  background-color: #ffffff !important; /* fondo blanco */
  padding: 15px 0;
}

/* Enlaces dentro del menú */
.navbar-nav .nav-link {
  background-color: #6f752c !important;
  color: #ffffff !important;
  margin: 5px 10px;
  border-radius: 4px;
  padding: 10px 15px;
  text-align: center;
}

/* Hover de enlaces */
.navbar-nav .nav-link:hover {
  background-color: #505525 !important;
  color: #ffffff !important;
}

/* Botón hamburguesa (fondo) */
.navbar-dark .navbar-toggler {
  background-color: #ffffff !important; /* fondo blanco */
  border: 2px solid #6f752c !important;
  border-radius: 6px;
  padding: 6px 10px;
}

/* Ícono de las 3 rayitas (verde) */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%236f752c' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(111,117,44,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Fondo del dropdown en móvil */
.dropdown-menu {
  background-color: #6f752c !important;
  border-radius: 4px;
  border: none;
  padding: 0;
}

/* Items del dropdown */
.dropdown-item {
  color: #ffffff !important;
  padding: 10px 15px;
  text-align: left;
}

/* Hover del dropdown */
.dropdown-item:hover {
  background-color: #505525 !important;
  color: #ffffff !important;
}

/* Item activo */
.dropdown-item.active{
  background-color: #636363 !important; /* mismo fondo que tenías */
  color: #ffffff !important;
}

/* Link activo principal */
.nav-link.active {
  background-color: #636363 !important; /* mismo fondo que tenías */

  color: #ffffff !important;
}


/* checa todo aquiiiii */

/* La caja azul, normal */

/* Todas las filas de tarjetas tendrán columnas de la misma altura */
.row.align-items-center {
  align-items: stretch !important;
}

/* Todas las cajas tendrán exactamente la misma altura */
.service-box {
  height: 100%;
  min-height: 250px; /* altura amplia y elegante */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra todo dentro */
  background: #ffffff;
  padding: 25px;
  border-radius: 4px;
  border: 1px solid #7F7E7C;
  color: #000000;
  position: relative;
  z-index: 1;
}



/* Imagen inclinada (TAL COMO LA TENÍAS) */
.img-tilted {
  transform: rotate(8deg);
  box-shadow: 10px 10px 0 #6f752c;
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

/* ⭐ Efecto 3D REAL — SIN cambiar tamaño ⭐ */
.img-overlap {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%) rotate(8deg);
  z-index: 20 !important;
  width: 109%;   /* La hace sobresalir hacia la derecha, tamaño de la imagen */
}
.col-md-4 {
  position: relative;
  z-index: 10 !important;   /* La imagen SIEMPRE arriba */
}


/* Imagen interna */
.img-tilted img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
}

/* Título */
.titulo-valor {
  background-color: #6f752c;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
}


.card {
  margin-bottom: 60px; /* abajo */
  margin-right: 40px; /* entre columnas */
}
.service-box .titulo-valor {
  align-self: flex-start;  /* ← REPARA que respete su tamaño */
}
.hexagon {
  width: 280px;   /* ← Ajusta este número */
  height: 320px;  /* ← Ajusta este también */
  overflow: hidden;
}

.hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen se ve perfecta dentro del hexágono */
}
.texto-bajado {
  margin-top: 60px;   /* AJUSTA este número: 40, 60, 80, 100... */
}

/* Imagen que se mete al texto */
.texto-bajado {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

/* Imagen que se mete encima */
.img-overlap {
  margin-right: -40px; /* la mete al texto */
  position: relative;
  z-index: 3;
}

/* En celulares quitar la superposición */
@media (max-width: 768px) {
  .img-overlap {
    margin-right: 0 !important; /* no se mete */
    margin-bottom: 20px;
  }
  
  .texto-bajado {
    margin-top: 0;
    text-align: center; /* opcional */
  }
}
