/* Reset básico */
* {
  box-sizing: border-box;
}

/* Estado inicial: oculto y desplazado */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

/* Estado visible: opacidad completa y posición normal */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: 'monserrat', sans-serif;
  background: #f0f4f8;
  color: #1f2d3a;
  line-height: 1.5;
}

header.navbar {
  list-style: none;
  display: flex;
  justify-content: center;
  /* centra horizontalmente */
  align-items: center;
  gap: 30px;
  /* espacio entre enlaces */
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  /* si la pantalla es pequeña se acomoda */
}

.logo-img {
  height: 85px;
  object-fit: contain;
  display: block;
}

.menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  font-family: 'monserrat', sans-serif;
  background: transparent;
  border: 1px solid transparent;
  padding: 2rem 2rem;
  cursor: pointer;
  border-radius: 0px;
  font-size: 1.2rem;
  color: black;
  transition: background .2s, transform .2s;
}

.nav-btn:hover,
.nav-btn.active {
  color: white;
  background: #4A8CC4;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 700px;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-caption h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.carousel-caption.active {
  opacity: 1;
  transform: translateY(0);
}

.btn-saber-mas {
  font-family: 'Monserrat', sans-serif;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #4A8CC4;
  color: #ffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-saber-mas:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  background-color: #22a66b;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.intro.card {
  max-width: 1000px;
  margin: 60px auto;
  border-radius: 15px;
  text-align: center;
  font-family: 'Monserrat', sans-serif;
}

.intro-titulo {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c6584;
  margin-bottom: 15px;
}

.intro-texto {
  font-size: 1.1rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.intro2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: #4A8CC4;
}

.intro-item {
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: #22a66b;
  ;
}

.intro-item i {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.intro-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: white;
}

.intro-item p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

.intro3 {
  padding: 2rem;
  max-width: 70%;
  margin: 2rem auto;
  font-family: 'Monserrat', sans-serif;
  line-height: 1.7;
  color: #555555;
}

.intro3 p {
  margin-bottom: 1.2rem;
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .75rem;
}

.filter-bar input,
.filter-bar select {
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

form .form-group {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: .25rem;
  resize: vertical;
}

.feedback {
  margin-top: .5rem;
  font-size: .9rem;
}

footer {
  text-align: center;
  padding: 2.3rem;
  font-size: .85rem;
  color: white;
  background: #202529;
  border-top: 1px solid #d9e2ec;
}

.footerConten {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: auto;
  padding: 0 2rem;
  gap: 3rem;
}

.footer-logo-section {
  flex: 1;
}

.footerLogo {
  max-width: 120px;
  height: auto;
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  line-height: 1.5;
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.footer-column a:hover {
  color: #ffffff;
  opacity: 1;
}

.icon {
  margin-right: 6px;
}

.igicono {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.igicono img {
  width: 50px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 1rem 0;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  background-color: #0d6efd;
  /* Azul elegante */
  color: white;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #0b5ed7;
  transform: scale(1.1);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}


/* Responsive */
@media (max-width: 900px) {
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: .5rem;
    gap: .5rem;
  }

  .hamburger {
    display: block;
  }

  header.navbar {
    align-items: flex-start;
  }
}

.hidden {
  display: none !important;
}