@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/* === General Styles === */
body {
  font-family: "Segoe UI", sans-serif;
  color: #4A6572;
  background-color: #FFFFFF;
}

.section {
  padding: 100px 0;
}

/* === Navbar === */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: #222 !important;
  font-weight: bold;
  text-transform: none; /* logotipo sin mayúsculas forzadas */
}

.navbar-brand:hover {
  color: #0056b3 !important;
}

.navbar .nav-link,
.custom-nav-link {
  font-weight: 500;
  color: #003366 !important; /* Azul corporativo */
  transition: all 0.3s ease;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  text-transform: uppercase;
}

.navbar .nav-link i {
  font-size: 0.95rem;
  color: #003366; /* Azul corporativo para íconos */
  transition: color 0.3s ease;
}


.navbar .nav-link::after,
.custom-nav-link::after {
  content: "";
  display: block;
  height: 3px;
  background-color: transparent;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-link:hover::after,
.custom-nav-link:hover::after {
  width: 100%;
  background-color: #FEC927; /* Línea amarilla al hacer hover */
}

.navbar .nav-link.active,
.custom-nav-link.active {
  color: #FEC927 !important;
}

.navbar .nav-link.active::after,
.custom-nav-link.active::after {
  width: 100%;
  background-color: #FEC927;
}

.navbar .nav-link i {
  font-size: 0.95rem;
  color: #003366 !important; /* Azul por defecto */
  transition: color 0.3s ease;
}

.navbar .nav-link:hover i {
  color: #0055aa !important; /* Azul más claro en hover */
}

/* === Hero Section === */
#hero .carousel-caption {
  background-color: rgba(74, 101, 114, 0.7);
}

#hero h1,
#hero p {
  color: #FFFFFF;
}

/* === Buttons === */
.btn-primary {
  background-color: #003366;
  border-color: #003366;
  color: #ffffff;
  font-weight: normal;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #002244;
  border-color: #002244;
  color: #ffffff;
}

/* === Projects Section === */
#projects h2,
#testimonials h2,
#about h2,
#contact h2 {
  color: #000000;
}

.card {
  border: 1px solid #B2B2B2;
}

.card-img-top {
  transition: transform 0.3s ease;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.25rem;
}

.card-img-top:hover {
  transform: scale(1.03);
}

/* === Testimonials === */
blockquote {
  border-left: 5px solid #FEC927;
  padding-left: 1rem;
}

/* === Contact Section === */
form .form-control {
  border-radius: 0.3rem;
  border: 1px solid #ccc;
}

form .form-control:focus {
  border-color: #FEC927;
  box-shadow: 0 0 0 0.2rem rgba(255, 165, 0, 0.25);
}

/* === Footer === */
footer {
  background-color: #000000;
  color: #FFFFFF;
}

/* === Modal === */
.modal .carousel-item img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.modal-body {
  padding: 0;
}

.btn-close {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 50%;
}

.modal .btn-close {
  background-color: white;
  border-radius: 50%;
  z-index: 1051;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* === Utility: Adjust spacing for large buttons === */
.btn i {
  font-size: 0.9rem;
}

/* === Logo === */
.logo-img {
  height: 100px;
  width: auto;
  max-height: 100px;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .logo-img {
    height: 45px;
    max-height: 45px;
  }
}

/* === Custom Hamburger Toggler === */
.custom-toggler {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001; /* asegura que esté por encima */
  position: relative;
}

.custom-toggler:focus {
  outline: none;
  box-shadow: none;
}

.toggler-icon {
  width: 100%;
  height: 3px;
  background-color: #003366; /* color oscuro visible */
  border-radius: 2px;
  transition: all 0.3s ease;
}

#services .service-card {
  background-size: cover;
  background-position: center;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 0 1rem; /* espacio para no cortar texto */
  text-align: center;
}

#services .service-card:hover {
  transform: scale(1.03);
}

#services .service-card h3 {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

#services .service-card:hover h3 {
  background-color: rgba(255, 255, 255, 0.95);
}

.text-blue {
  color: #003366;
}

.text-yellow {
  color: #FEC927;
}

#services {
  padding-top: 0 !important;
  margin-top: 50 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;  
}

#projects {
  padding-top: 0 !important;
  margin-top: 50 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;  
}

#contact {
  padding-top: 0 !important;
  margin-top: 50 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;  
}

#about {
  margin-top: 20px !important;
  padding-top: 20px !important; /* para que el contenido no quede pegado */
}

#about {
  position: relative;
  color: #222;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/proyects/proyect1/1.jpeg') no-repeat center center/cover;
  opacity: 0.4; /* controlas transparencia */
  z-index: 0;
}

#about > * {
  position: relative;
  z-index: 1; /* para que el texto quede encima */
}

h2.section-title,
h3.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem; /* más grande */
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

section h2,
section h3 {
  font-family: 'Poppins', sans-serif;
}

#about p,
#about .description-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif; /* Moderna y juvenil */
  margin-bottom: 1rem;
  color: #004aad; /* Azul base */
}

.section {
  margin-top: 20px !important;
}

.testimonial-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.testimonial-section {
  background-color: rgba(0, 74, 173, 0.1); /* Azul claro con transparencia */
  padding: 40px 20px;
}

.arrow-btns {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
}

.arrow {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.service-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px; /* ajusta según necesites */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* 0.4 es la opacidad, ajusta si quieres más oscuro */
}

.service-card h3 {
  position: relative;
  z-index: 1;
}

/* === Service Detail Page === */
.service-detail {
  text-align: center;
  margin-top: 40px;
}

.service-detail h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #004aad;
  margin-bottom: 20px;
}

.service-detail p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 20px auto 40px auto;
  text-align: justify;
}

.service-detail img {
  max-width: 100%;
  max-height: 350px; /* controla la altura */
  object-fit: cover; /* recorta sin deformar */
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
