@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
}

.gradiente {
  background: linear-gradient(to bottom,  rgba(var(--bs-light-rgb),1) 0%,rgba(var(--bs-light-rgb),0) 100%) !important;
}

.titulo {
  font-size: 7vw;
  line-height: 0.8em;
}

.titulo.largo {
  font-size: 6vw;
}

.bgTitulo {
  background-position: center; 
  background-size: cover;
  min-height: 50vh;
}

.sobreTitulo {
  position: relative;
  height: 50vh;
  margin-top: -50vh;
  z-index: 1010 !important;
  background: -webkit-linear-gradient(-20deg, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
  background: -o-linear-gradient(-20deg, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
  background: linear-gradient(-20deg, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
}

.sidebar-enabled:before, .bg {
    background-image: url(/img/bg-nosotros.jpg);
	background-position: right; 
	background-size: cover;
}

.lista-logos img {
	max-width: 200px;
	max-height: 100px;
	margin: 40px;
}

.lista-logos img:hover {
-moz-transform: scale(1.5);
-webkit-transform: scale(1.5);
-o-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
}

@media screen and (max-width: 720px) {
  .titulo {
    font-size: 12vw;
  }
  
  .titulo.largo {
    font-size: 8vw;
  }

  .bgTitulo {
    min-height: 90vh;
  }

  .sobre {
    height: 90vh;
    margin-top: -90vh;
  }
  
  .lista-logos img {
      max-width: 150px;
      max-height: 75px;
      margin: 30px;
  }
  
}

@media screen and (max-width: 560px) {
  
  .titulo {
    font-size: 15vw;
  }
  
  .titulo.largo {
    font-size: 15vw;
  }

  .bgTitulo {
    min-height: 75vh;
  }

  .sobre {
    height: 75vh;
    margin-top: -75vh;
  }
  
  .lista-logos img {
      max-width: 150px;
      max-height: 75px;
      margin: 30px;
  }
  
}


.header .navbar .nav-link:before {
  color: #FFDA4A !important;
  content: '›';
  width: 0;
  position: relative;
  left: -1em;
  opacity: 0;
}

.header .navbar .nav-link:hover{
-moz-transform: translateX(5px);
-webkit-transform: translateX(5px);
-o-transform: translateX(5px);
-ms-transform: translateX(5px);
transform: translateX(5px);
}

.header .navbar .nav-link:hover:before {
  content: '›';
  width: 0;
  position: relative;
  left: -0.5em;
  opacity: 1;
  animation-name: menuin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

.bg-dark-grad {
  background: #222 linear-gradient(175deg, #000000 0%,#444444 100%) !important;
}

.bg-light-grad {
  background: #fff linear-gradient(175deg, #cccccc 0%,#ffffff 100%) !important;
}

.bg-primary-grad {
  background: #198b55 linear-gradient(175deg, #002114 0%,#198b55 50%,#85D1A3 100%) !important;
}

.ico-hover {
  opacity: 0.8;
}
.ico-hover:hover {
  opacity: 1;
}
.ico-hover img {
  opacity: 0;
}
img.ico {
  background: none;
}

.tapiz {
  background-image: url(/img/tapiz.png);
  background-position: center;
  background-size: 300px;
  line-height: 2em;
}

footer a, footer .widget-link {
  color: #ffffff;
  opacity: 0.8 !important;
}

footer a:hover, footer .widget-link:hover {
  color: #ffffff;
  opacity: 1 !important;
  text-decoration: none;
}

.just {
  text-align: justify;
}



@media screen and (max-width: 768px) {
}

	.bg-black1 {
		background-color: rgba(0,0,0,0.01) ;
	}

	.bg-black2 {
		background-color: rgba(0,0,0,0.02) ;
	}

	.bg-black3 {
		background-color: rgba(0,0,0,0.03) ;
	}

	.bg-black4 {
		background-color: rgba(0,0,0,0.04) ;
	}

	.bg-black5 {
		background-color: rgba(0,0,0,0.05) ;
	}

	.bg-black6 {
		background-color: rgba(0,0,0,0.06) ;
	}

	.bg-black7 {
		background-color: rgba(0,0,0,0.07) ;
	}

	.bg-black8 {
		background-color: rgba(0,0,0,0.08) ;
	}

	.bg-black9 {
		background-color: rgba(0,0,0,0.09) ;
	}

	.bg-black10 {
		background-color: rgba(0,0,0,0.1) ;
	}

	.bg-black15 {
		background-color: rgba(0,0,0,0.15) ;
	}
	
	.bg-black20 {
		background-color: rgba(0,0,0,0.2) ;
	}

	.bg-black25 {
		background-color: rgba(0,0,0,0.25) ;
	}
	
	.bg-black30 {
		background-color: rgba(0,0,0,0.3) ;
	}
	
	.bg-black40 {
		background-color: rgba(0,0,0,0.4) ;
	}
	
	.bg-black50 {
		background-color: rgba(0,0,0,0.5) ;
	}
	
	.bg-black60 {
		background-color: rgba(0,0,0,0.6) ;
	}
	
	.bg-black70 {
		background-color: rgba(0,0,0,0.7) ;
	}
	
	.bg-black80 {
		background-color: rgba(0,0,0,0.8) ;
	}
	
	.bg-black90 {
		background-color: rgba(0,0,0,0.9) ;
	}

    .bg-shadow {
        -webkit-box-shadow:inset 0 0 1000px 1000px rgba(0,0,0,0.1);
        box-shadow:inset 0 0 1000px 1000px rgba(0,0,0,0.1);
    }

/*GALLERY*/

#gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

img.text-primary { filter: invert(39%) sepia(23%) saturate(3720%) hue-rotate(160deg) brightness(107%) contrast(101%); }

img.text-secondary { filter: invert(91%) sepia(8%) saturate(302%) hue-rotate(201deg) brightness(106%) contrast(97%); }

img.text-success { filter: invert(62%) sepia(15%) saturate(5528%) hue-rotate(119deg) brightness(101%) contrast(83%); }

img.text-danger { filter: invert(38%) sepia(88%) saturate(1244%) hue-rotate(318deg) brightness(102%) contrast(94%); }

img.text-warning { filter: invert(81%) sepia(81%) saturate(1327%) hue-rotate(312deg) brightness(100%) contrast(100%); }

img.text-info { filter: invert(78%) sepia(43%) saturate(5848%) hue-rotate(192deg) brightness(96%) contrast(99%); }

img.text-light { filter: invert(100%) sepia(16%) saturate(7485%) hue-rotate(180deg) brightness(105%) contrast(114%); }

img.text-dark { filter: invert(21%) sepia(7%) saturate(2037%) hue-rotate(199deg) brightness(95%) contrast(92%); }

.imgGray { filter:grayscale(1); }
.imgGray:hover { filter:grayscale(0); }

.tra, .tra:hover {
-webkit-transition: all .3s linear;
-moz-transition: all .3s linear;
-ms-transition: all .3s linear;
-o-transition: all .3s linear;
transition: all .3s linear;
}

.fadein { animation-name: fadein; animation-duration: 1s; }

@keyframes fadein {
  from {
    opacity: 0;
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }

  to {
    opacity: 1;
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}

.slidein { animation-name: slidein; animation-duration: 1s; }

@keyframes slidein {
  from {
    opacity: 0;
    -moz-transform: translateX(100px);
    -webkit-transform: translateX(100px);
    -o-transform: translateX(100px);
    -ms-transform: translateX(100px);
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -o-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }
}

.img {
		background-size: cover;
		background-position: center;
	}
	
	.contenido {
		min-height: 85vh;
	}
	
	@media screen and (max-width: 768px) {
		.contenido {
			min-height: 50vh;
		}
	}

/* Contenedor principal de la tarjeta para definir la perspectiva 3D */
    .flip-card {
      background-color: transparent;
      perspective: 1000px; /* Crea el efecto de profundidad 3D */
      cursor: pointer;
    }

    /* Contenedor interno que se mueve */
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%; /* Las tarjetas se adaptan a la altura de la fila g-4 */
      min-height: 400px; /* Altura mínima para asegurar un buen espacio de giro */
      transition: transform 0.6s;
      transform-style: preserve-3d; /* Permite que los hijos compartan el espacio 3D */
    }

    /* El efecto al poner el mouse encima: gira 180 grados */
    .flip-card:hover .flip-card-inner {
      transform: rotateY(180deg);
    }

    /* Estilos compartidos para los lados frontal y trasero */
    .flip-card-front, .flip-card-back {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      -webkit-backface-visibility: hidden; /* Oculta la parte trasera cuando no está girada */
      backface-visibility: hidden;
      border-radius: 12px; /* Redondeado de Bootstrap 'rounded-3' aprox */
      overflow: hidden; /* Mantiene el contenido dentro de los bordes redondeados */
      display: flex;
      flex-direction: column;
    }

    /* --- ESTILO DEL LADO FRONTAL (CARATULA CON IMAGEN Y TÍTULO) --- */
    .flip-card-front {
      background-color: #f1f0e8; /* Un beige muy claro de fondo */
      color: white;
      justify-content: flex-end; /* Alinea el título al final de la tarjeta */
      border: 2px solid #5a5f4f; /* Borde oscuro decorativo */
      box-shadow: 0 0 10px rgba(90, 95, 79, 0.2); /* Sutil resplandor */
    }

    /* Contenedor del título para oscurecer y asegurar contraste */
    .front-title-container {
      background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
      padding: 20px;
      margin: 15px;
      border-radius: 8px;
    }

    /* Estilo del título */
    .flip-card-front h3 {
      font-weight: bold;
      text-transform: uppercase;
      margin: 0;
      line-height: 1.2;
    }

    /* --- ESTILO DEL LADO TRASERO (CON EL TEXTO EN NEGRO SOBRE BLANCO) --- */
    .flip-card-back {
      background-color: white;
      color: black;
      transform: rotateY(180deg); /* El lado trasero está pre-girado */
      padding: 25px;
      text-align: left;
      border: 1px solid rgba(0,0,0,.125); /* Borde estándar de tarjeta Bootstrap */
    }

    /* Títulos traseros pequeños */
    .flip-card-back h4 {
      font-weight: bold;
      text-transform: uppercase;
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    /* Subtítulos traseros */
    .flip-card-back p.text-success {
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    /* Texto principal trasero */
    .flip-card-back p.text-black {
      font-size: 0.95rem;
      color: #333;
      margin: 0;
    }

    /* Decoraciones de borde internas (esquinas) para el frontal */
    .flip-card-front .border-decor {
      position: absolute;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.4);
      pointer-events: none;
    }
    .flip-card-front .border-decor.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
    .flip-card-front .border-decor.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
    .flip-card-front .border-decor.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
    .flip-card-front .border-decor.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }