.medio {
  background-image: url('../Estilos/Imagenes/d.jpg');
  background-size: cover;
  background-position: center;
  height: 90vh;
  position: relative;
  color: white;
}

#carouselExampleIndicators {
  position: relative;
  padding-top: 70px;
  background-position: center;
  background-size: cover;
}

.medio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.medio-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}

.medio-text h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  white-space: normal;
}

.medio-text p {
  font-size: 1.5rem;
  color: #fff;
}
@media (max-width: 576px) {
  .custom-card p {
    font-size: 0.75rem; 
  }
}
@media (max-width: 768px) {
  .medio-text h1 {
    font-size: 2rem;
  }

  .medio-text p {
    font-size: 1rem;
  }

  .medio-text {
    top: 55%;
  }
}

@media (max-width: 576px) {
  .medio-text h1 {
    font-size: 1.5rem;
  }

  .medio-text p {
    font-size: 0.9rem;
  }

  .medio-text {
    top: 60%;
  }
}

.animado {
  opacity: 0;
  transition: all 0.5s;
}

.mostrarArriba {
  animation: mostrarArriba 1s;
}

@keyframes mostrarArriba {
  0% {
    transform: translateY(60px);
  }

  100% {
    transform: translateY(0);
  }
}


.custom-card {
  height: 220px;
  background-size: cover;
  background-position: center;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: end;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.custom-card:hover {
  transform: scale(1.02);
}

.card-body {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 0 0 10px 10px;
}


@media (max-width: 768px) {
  .custom-card {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .custom-card {
    height: 160px;
  }
}

.cuadro-principal {
  background-color: #f8f9fa;
  border: 3px solid #dee2e6;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cuadro-texto {
  background-color: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.cuadro-texto i {
  display: block;
}

.cuadro-texto p {
  color: #343a40;
  font-size: 1rem;
  text-align: justify;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  transition: background-image 1s ease-in-out;
  background-image: url('../Estilos/Imagenes/chancadora.png');/
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -1;
}

.cuadro-principal {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ftr {
  background-color: black;

  background-size: cover;
  background-position: center;
  height: 50vh;
  position: relative;
  color: white;
}

.ftr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.ftr-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ftr-text h1 {
  font-size: 4rem;
  font-weight: bold;
}


.footer {
  background-color: #222;
  padding: 30px 0;
  text-align: center;
}

.iconos {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.iconos .icon {
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #444;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.iconos .icon:hover {
  transform: scale(1.1);
  color: white;
}

.iconos .facebook:hover {
  background-color: #3b5998;
}

.iconos .youtube:hover {
  background-color: #ff0000;
}

.brand-text {
  font-size: 1.1rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 576px) {
  .brand-text {
    white-space: normal;
    font-size: 0.9rem;
  }
}

.cpyr p {
  padding: 10px;
  transition: color 0.3s ease;
}

.cpyr p:hover {
  color: #21a759;
  cursor: pointer;
  scale: 1.0;
}

section {
  scroll-margin-top: 75px;
}

.custom-navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: transparent;
}

.custom-navbar.scrolled {
  background-color: rgba(30, 136, 53, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}