/* General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #000000;
  font-size: 1rem;
  line-height: 1.6;
}

/* Barra de navegación */
.navbar {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 2rem;
  transition: all 0.3s ease-in-out;
  position: fixed;
  width: 100%;
  z-index: 999;
}

.navbar.shrink {
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 90px;
  transition: height 0.3s ease-in-out;
}

.navbar.shrink .navbar-brand img {
  height: 60px;
}

.navbar-nav .nav-link {
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0 0.5rem;
  padding: 1rem 1.5rem;
  text-align: center;
  position: relative;
}

.navbar.shrink .nav-link {
  padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: white;
  background-color: #6093BF;
}

.nav-icon {
  font-size: 0.75rem;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover .nav-icon {
  opacity: 1;
}

.navbar-nav .nav-link.active {
  color: white;
  background-color: #6093BF;
}

/* -------------------------------------------------- */





/* Slider */
.slider-item {
  position: relative;
  height: calc(100vh - 100px);
  background-size: cover;
  background-position: center;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
  z-index: 1;
}

.slider-item:hover .slider-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 5%;
  text-align: left;
  color: white;
  z-index: 2;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.carousel-caption p {
  margin-bottom: 1.5rem;
}

.carousel-caption .btn {
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  color: white;
  border: 1px solid white;
  background: transparent;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease-in-out;
}

.carousel-caption .btn:hover {
  color: white;
  background-color: #6093BF;
}

/* Separador */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #000000;
  margin-top: 5rem;
  margin-bottom: 1rem;
  padding: 0;
  width: 100%;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #F2F2F0;
  margin: 0;
}

.section-title span {
  padding: 0 1rem;
}

/* Cards */
.card-grid {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
}

.card {
  position: relative;
  overflow: hidden;
  background-color: #F2F2F0;
  border-radius: 0;
}

.card img {
  width: 100%;
  height: 332px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  position: relative;
}

.card-content .nav-icon {
  font-size: 1rem;
  color: #ffffff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card:hover .card-content {
  background-color: #6093BF;
  color: white;
}

.card:hover .card-content .nav-icon {
  opacity: 1;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  background-color: transparent;
}

.card-large {
  grid-column: span 2;
}

/* Responsividad */
@media (max-width: 992px) {
  .navbar-brand img {
    height: 70px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .navbar .big-menu {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption h2 {
    font-size: 1.75rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption .btn {
    padding: 0.4rem 1rem;
  }
}

/* Solo en pantallas grandes (mayores de 992px) */
@media (min-width: 992px) {
  .card-large {
    grid-column: span 2;
  }
}

/* En pantallas más pequeñas, asegura que las cards grandes se comporten como las normales */
@media (max-width: 991px) {
  .card-large {
    grid-column: span 1;
  }
}

/* Contact Grid*/
.contact-grid {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
}

.contact-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 310px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #F2F2F0; /* Simula separación visual */
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 3rem;
  color: #6093BF;
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 1rem;
  color: #000000;
  font-family: 'Roboto', sans-serif;
}

/* Responsividad */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.custom-input {
  width: 100%;
  padding: 10px 15px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #f7f7f7;
  border: 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-input:focus {
  border-color: #A7BDD9;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.4);
}

.custom-button {
  color: #A7BDD9;
  border: 1px solid #A7BDD9;
  background: transparent;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  font-family: 'Montserrat', sans-serif;
}

.custom-button:hover {
  background-color: #6093BF;
  border: 1px solid #6093BF;
  color: white;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .custom-input,
  .custom-button {
    font-size: 14px;
  }
}





/*--------------------------------------------------*/
/* Footer */
.footer {
  background-color: #A7BDD9;
  color: #ffffff;
}

.footer-main {
  padding: 3rem 0;
}

.footer-logo {
  width: 90px;
  margin-bottom: 1rem;
}

.footer-slogan {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer-address {
  font-size: 1rem;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.newsletter-form .form-control::placeholder {
  color: #ffffff;
  font-size: 0.9rem;
}

.newsletter-form .btn-subscribe {
  color: white;
  border: 1px solid white;
  background: transparent;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  font-family: 'Montserrat', sans-serif;
}

.newsletter-form .btn-subscribe:hover {
  background-color: #6093BF;
}

.footer-socials {
  margin-top: 1rem;
}

.footer-social-link {
  font-size: 1.5rem;
  color: #ffffff;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: #d3d3d3;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif; /
}

.footer-links a:hover {
  color: #d3d3d3;
}

/* Derechos Reservados */
.footer-bottom {
  background-color: #6093BF;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

/* Asegurar footer abajo */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > * {
  flex: 1;
}

.footer {
  margin-top: auto;
}

/* Responsividad */
@media (max-width: 768px) {
  .footer-main .row {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 2rem;
  }
}


/* Botón flotante */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #6093BF; /* Color principal */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease-in-out;
  z-index: 1000; /* Asegura que esté encima de otros elementos */
  text-decoration: none;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #4a76a3; /* Color más oscuro al pasar el mouse */
}



