@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300&display=swap');

/* Box sizing global para evitar sorpresas */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0.5em 0;
}

.custom-container {
  position: relative;
  text-align: center;
  color: #99cc33;
  font-size: clamp(2rem, 6vw, 6em);
  padding: 1rem;
  overflow: hidden;
}

.font-color-dark {
  color: #729034;
}

.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

.bg-1 {
  background: #f2f2f2;
}

.bg-2 {
  background: rgb(153, 204, 51);
}

.font-2 {
  color: rgb(153, 204, 51);
}

/* Contenedores de tarjetas */
.bg-card1, .bg-card2, .bg-card3, .bg-card4 {
  height: 40vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  position: relative; /* Importante para controlar z-index en hover */
  z-index: 0;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

/* Fondos de tarjetas */
.bg-card1 { background: #99cc33; }
.bg-card2 { background: #729034; }
.bg-card3 { background: #647434; }
.bg-card4 { background: #4e5a28; }

/* Hover que escala sin superponer */
.bg-card1:hover, .bg-card2:hover, .bg-card3:hover, .bg-card4:hover {
  transform: scale(1.05);
  z-index: 10; /* Lleva el hovered arriba */
}

/* Gradientes */
.gradient1 {
  background: linear-gradient(to bottom, #647434, #99cc33);
}

.gradient2 {
  background: linear-gradient(to bottom, #99cc33, #647434);
}

.hidden {
  opacity: 0 !important;
  transition: opacity 0.6s ease;
}

.section {
  clear: both;
  display: block;
  opacity: 1;
  transition: opacity 2s ease;
}

.ls-none {
  list-style: none;
}

nav.navbar {
  transition: all 0.4s ease;
}

nav.navbar-inverse {
  background-color: #222;
  border-color: #080808;
}

nav.navbar.transparent {
  background-color: rgba(0, 0, 0, 0);
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

.font-light {
  color: #a4ce50;
}

div p i.fas {
  font-size: 0.9rem;
}

.whatsapp-logo {
  height: 100px;
  z-index: 999;
  background: #fff;
  border-radius: 50px;
}

.rounded-custom {
  border-radius: 15px;
}

.mail {
  text-decoration: none;
}
