html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  color: #333;
  background-color: #fff;
}
.navbar {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-brand img {
  object-fit: contain;
}
.navbar .nav-link {
  font-weight: 500;
}
.navbar .btn {
  border-radius: 20px;
}

/* MENU INGRESAR */
#navbarDropdownIngresar {
  cursor: pointer;
}
#menuIngresar {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 210px;
  margin-top: 8px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}

#menuIngresar.show-custom {
  display: block !important;
}
#menuIngresar .dropdown-item {
  padding: 10px 16px;
  color: #212529;
}

#menuIngresar .dropdown-item:hover {
  background-color: #f1f7ff;
}

/* =========================================================
CONOCENOS Y GALERIA RESPONSIVAS
========================================================= */

.about-section .row {
  align-items: center;
}

.about-section .about-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.about-section .about-content {
  width: 100%;
  padding: 10px 20px;
  overflow-wrap: break-word;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* HERO CAROUSEL DESKTOP */
.hero-carousel {
  width: 100%;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.hero-carousel .carousel-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slide-info {
  position: absolute;
  left: 6%;
  bottom: 55px;
  z-index: 2;
  width: min(600px, 88%);
  padding: 14px 20px;
  color: #fff;
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  border-left: 4px solid #0d6efd;
  border-radius: 6px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-slide-info h2 {
  margin: 0 0 5px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.hero-slide-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-slide-info .btn {
  margin-top: 12px;
}

.hero-carousel .carousel-indicators {
  z-index: 3;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 4;
  width: 7%;
}

/* MENU MOVIL */
@media (max-width: 991px) {
  #navbarMain.custom-show {
    display: block !important;
  }

  #navbarMain.custom-show .navbar-nav {
    width: 100%;
  }

  #navbarMain.custom-show .navbar-nav.ms-auto {
    margin-left: 0 !important;
  }

  #navbarMain .nav-item.dropdown {
    position: relative;
  }

  #menuIngresar.show-custom {
    display: block !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 210px;
    z-index: 2000;
  }

  .hero-carousel .carousel-item {
    height: 460px;
  }

  .hero-carousel .carousel-caption {
    left: 6%;
    right: 35%;
  }

  .about-section .about-content {
    padding: 20px 10px 10px;
  }

  .about-section .about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* =========================================================
MOVIL
========================================================= */

@media (max-width: 767px) {
  .hero-carousel .carousel-item {
    height: auto;
    overflow: hidden;
  }

  .hero-carousel .carousel-item picture {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-carousel .carousel-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: center center;
  }

  .about-section .row {
    display: flex;
    flex-direction: column;
  }

  .gallery-section .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .gallery-item {
    width: 100%;
    overflow: hidden;
  }

  .gallery-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .about-section .about-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .about-section .about-content {
    width: 100%;
    padding: 25px 10px 10px;
    text-align: center;
  }

  .about-section .about-content .section-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .about-section .about-content p {
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .hero-carousel .hero-slide-info {
    left: 5%;
    right: 5%;
    bottom: 7%;
    max-width: none;
    padding: 8px 11px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
  }

  .hero-carousel .hero-slide-info h2 {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .hero-carousel .hero-slide-info p {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .hero-carousel .hero-slide-info .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    margin-top: 6px;
  }
}

/* BOTON REGRESAR AL INICIO */

#btnInicio {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#btnInicio.show {
  display: flex;
}

@media (max-width: 767px) {
  #btnInicio {
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
  }
}

/* FOOTER */
.footer {
  background: #f3f8fc;
  border-top: 1px solid #dce8f0;
  padding: 45px 0 30px;
  color: #40515f;
}

.footer-logo {
  width: 150px;
  max-width: 100%;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0 auto;
  max-width: 280px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer h5 {
  color: #23445a;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer h6 {
  color: #23445a;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  color: #506979;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #0d6efd;
}

.footer-contact p {
  margin-bottom: 9px;
  line-height: 1.5;
}

.footer-contact strong {
  color: #23445a;
}

.copyright {
  background: #23445a;
  color: #fff;
  text-align: center;
  padding: 13px 15px;
  font-size: 0.88rem;
}

@media (max-width: 767px) {
  .footer {
    padding: 35px 0 25px;
    text-align: center;
  }

  .footer-brand p {
    margin-bottom: 25px;
  }

  .footer-links {
    margin-bottom: 25px;
  }

  .footer-contact {
    text-align: center;
  }
}

/* TARJETAS DE PRESENTACION */

.intro-section {
  padding: 55px 0;
}

.intro-section .row {
  align-items: stretch;
}

.intro-section .col-md-4 {
  display: flex;
}

.intro-box {
  width: 100%;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.intro-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  border-color: rgba(13, 110, 253, 0.18);
}

.intro-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  color: var(--bs-primary, #0d6efd);
  font-size: 24px;
}

.intro-box h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.intro-box p {
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .intro-section {
    padding: 40px 0;
  }

  .intro-box {
    padding: 25px 20px;
  }

  .intro-box:hover {
    transform: none;
  }
}

/* SECCIONES CONOCENOS Y SERVICIOS */

.about-section {
  padding: 85px 0;
  background: #fff;
}

.about-section .about-content {
  padding: 34px 38px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.about-section .about-content p {
  line-height: 1.75;
}

.about-section .about-image {
  border-radius: 14px;
}

.services-section {
  padding: 85px 0;
}

.services-section .text-center {
  margin-bottom: 42px !important;
}

.services-section .service-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.services-section .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.services-section .service-card .card-img-top {
  height: 190px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .about-section,
  .services-section {
    padding: 55px 0;
  }

  .about-section .about-content {
    padding: 26px 22px;
  }

  .services-section .text-center {
    margin-bottom: 30px !important;
  }

  .services-section .service-card:hover {
    transform: none;
  }
}

/* SECCIONES GALERIA Y CONTACTO */

.gallery-section {
  padding: 85px 0;
  background: #fff;
}

.gallery-section .text-center {
  margin-bottom: 42px !important;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.contact-section {
  padding: 85px 0;
  background: #f8fbfe;
}

.contact-section .text-center {
  margin-bottom: 42px !important;
}

.contact-section .contact-info {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.contact-section .contact-info h3 {
  margin-bottom: 14px !important;
}

.contact-section .contact-info p {
  line-height: 1.7;
}

.contact-section .contact-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.contact-section .contact-card .card-header {
  padding: 14px 18px;
}

.contact-section .contact-card .card-body {
  padding: 28px !important;
}

@media (max-width: 767.98px) {
  .gallery-section,
  .contact-section {
    padding: 55px 0;
  }
  .gallery-section .text-center,
  .contact-section .text-center {
    margin-bottom: 30px !important;
  }
  .gallery-item:hover img {
    transform: none;
  }
  .contact-section .contact-info {
    padding: 24px 20px;
  }

  .contact-section .contact-card .card-body {
    padding: 22px !important;
  }
}
