@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'DM Sans', sans-serif;
    color: black;
}

/* ==========================================
   PERSONALIZACIÓN DE BREAKPOINT A 1650PX
   (Sin modificar el HTML original)
   ========================================== */

/* 1. PANTALLAS HASTA 1650PX (Actúa como móvil/tablet: muestra hamburguesa, oculta texto) */
@media (max-width: 1200px) {

 .hero-text-box {
    padding-left: 0rem !important;
  }

  .about_title{
    font-size: 0.8rem !important;
  }
  .about_text{
    font-size: 0.6rem !important;
  }
  .about-block-title{
    font-size: 1.1rem !important;
  }
  .about-block-text{
    font-size: 0.9rem !important;
  }
  .about-highlight-box{
    font-size: 0.9rem !important;
  }
  .form_margin{
    margin-top: 90px;
  }
}

@media (max-width: 1750px) {
  /* Forzar visibilidad del botón hamburguesa en la columna 1 */
  .navbar .row > div:nth-child(1) .navbar-toggler {
    display: block !important;
  }

  /* Ocultar el menú de texto de la columna 3 */
  .navbar .row > div:nth-child(3) {
    display: none !important;
  }

  /* Reasignar los anchos de columna móviles (col-2, col-8, col-2) para proteger el logo */
  .navbar .row > div:nth-child(1) {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
  }
  .navbar .row > div:nth-child(2) {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }
  .navbar .row > div:nth-child(3) {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
  }
}

/* 2. PANTALLAS MAYORES A 1650PX (Actúa como escritorio: oculta hamburguesa, muestra los 5 textos) */
@media (min-width: 1751px) {
  /* Ocultar el botón hamburguesa */
  .navbar .row > div:nth-child(1) .navbar-toggler {
    display: none !important;
  }

  /* Asegurar que el menú desplegable móvil permanezca cerrado/oculto en escritorio */
  .navbar .row > div:nth-child(1) .collapse {
    display: none !important;
  }

  /* Mostrar el menú horizontal de texto en la columna 3 */
  .navbar .row > div:nth-child(3) {
    display: flex !important;
  }

  /* Restaurar las 3 columnas iguales de escritorio (col-lg-4 / 33.33%) */
  .navbar .row > div:nth-child(1),
  .navbar .row > div:nth-child(2),
  .navbar .row > div:nth-child(3) {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

/* Estilo para el enlace de la página activa */
.navbar-nav .nav-link.active {
  font-weight: bold !important;
  color: black !important;
  position: relative;
}

.hero-section {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1)),
        url('Images/Banner_Process.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: black;
}

/* NAVBAR SUPERIOR */
.custom-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #f5f1ed;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: black;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: black;
    letter-spacing: 4px;
    font-family: 'DM Sans', sans-serif;
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Pseudo-elemento para la línea animada */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    /* Grosor fino y delicado */
    bottom: 0;
    left: 50%;
    background-color: #838b76;
    /* Verde oliva característico de la marca */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
    /* Crece expansivamente desde el centro */
    opacity: 0;
}

/* Estado Hover: La línea se expande y el texto cambia suavemente */
.navbar-nav .nav-link:hover {
    color: #838b76 !important;
    /* Cambia al tono verde oliva */
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    /* La línea cubre todo el ancho del texto */
    opacity: 1;
}

/* Estado Activo (para la página donde estás ubicado actualmente) */
.navbar-nav .nav-link.active {
    color: #838b76 !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 60%;
    /* Mantiene una pequeña línea fija en el link activo */
    opacity: 1;
}

.hero-text-box {
    padding-left: 10rem;
}



.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 6px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    color: #ddd6ce;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 4px;
    color: #ddd6ce;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-family: 'DM Sans', sans-serif;
}

/* BOTÓN NUESTROS SERVICIOS (VERDE OLIVA) */
.btn-custom-olive {
    background-color: #838b76;
    color: #ddd6ce !important;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 4px;
    transition: all 0.3s ease;
}

.btn-custom-olive:hover {
    background-color: #838b76;
    transform: translateX(4px);
}

.second-section {
    min-height: 100vh;
    width: 100%;
    background-color: #f5f1ed;
    box-sizing: border-box;
}

.section-main-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    letter-spacing: 6px;
    color: black;
}

.section-main-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-family: 'DM Sans', sans-serif;
}

.cards_home {
    background-color: #f1ede7;
}

.hero-section-2 {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1)),
        url('Images/Banner_About.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-title-2 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 6px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    color: #838b76;
}

/* SEGUNDA SECCIÓN DE ABOUT US*/
.about-second-section {
    min-height: calc(100vh-75px);
    width: 100%;
    padding: 2rem 0;
    background-color: #f5f1ed;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-second-section .container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.about-block-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 1.5px;
    color: black;
    line-height: 1.2;
}

.about_bg{
    background-color: #f1ede7;
}

.about-block-text {
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Caja de resaltado verde oliva */
.about-highlight-box {
    background-color: #838b7680;
    color: black;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
}

.about-text-2 {
    letter-spacing: 2.5px;
    font-family: 'DM Sans', sans-serif;
}

.about-text {
    letter-spacing: 2.5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
}

.about-title {
    letter-spacing: 2.5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
}

.hero-section-3 {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1)),
        url('Images/Banner_Home.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* SECCIÓN "THREE WAYS TO CREATE YOURS"*/
.our-way-section {
  height: 100vh;
  width: 100%;
  background-color: #f5f1ed;
  box-sizing: border-box;
}

.our-way-section .container-fluid {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Efecto sutil*/
.our-card-img-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.our-card-img-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* GALERÍA */
body {
  background-color: #f5f1ed;
  overflow-x: hidden;
}

/* La sección ocupa el alto restante debajo del navbar */
.gallery-section {
  height: calc(100vh - 75px);
  width: 100%;
  padding: 0 2rem 1.5rem 2rem;
  box-sizing: border-box;
}

/* Grid de 3 Filas x 4 Columnas distribuidas homogéneamente */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  height: 100%;
}

/* Tarjeta contenedora vertical de cada ítem de la galería */
.gallery-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Contenedor superior para la imagen */
.gallery-img-wrapper {
  flex: 1; 
  width: 100%;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Efecto zoom suave al pasar el cursor sobre la foto */
.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.04);
}

/* Franja de texto inferior con el color de fondo exacto */
.gallery-label {
  background-color: #f1ede7;
  color: #1a1a1a;
  text-align: center;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 100%;
}

/* BANNER SERVICES */
.hero-banner {
  height: 100vh;
  width: 100%;
  background-image: url('Images/Banner_Services.jpeg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

/* BOTÓN PERSONALIZADO ELEGANTE*/
.btn-hero-cta {
  background-color: #d6c4b6; 
  color: #838b76;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  border: none;
  transition: all 0.3s ease;
  min-width: 260px;
}

.btn-hero-cta:hover {
  background-color: #f5f1ed;
  color: #5d6354;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ESTILOS DEL FOOTER */
.site-footer {
  background-color: #f5f1ed; /* Fondo crema institucional */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-family: 'Montserrat', sans-serif;
}

/* Enlaces de contacto */
.footer-contact-link {
  color: black;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-contact-link i {
  font-size: 1.3rem;
  color: black;
  transition: color 0.3s ease;
}

.footer-contact-link:hover,
.footer-contact-link:hover i {
  color: #838b76;
}

/* Líneas divisoras verticales entre los canales de contacto */
@media (min-width: 768px) {
  .footer-contact-col {
    border-right: 1px solid #ddd6ce;
  }
  .footer-contact-col:last-child {
    border-right: none;
  }
}

/* Línea horizontal divisoria */
.footer-divider {
  border-top: 1px solid #ddd6ce;
  opacity: 0.7;
}

/* Textos de la fila inferior */
.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: black;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-message {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: black;
  font-weight: 400;
}

/* SECCIÓN DE CONTACTO */
.contact-section {
  min-height: calc(100vh - 75px);
  width: 100%;
  background-color: #f5f1ed;
  box-sizing: border-box;
}

.style-subtitle {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #1b3e32;
}

.contact-section .form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1b3e32;
}

.contact-section .form-check-label {
  font-size: 0.9rem;
  color: #1b3e32;
}

.contact-section .form-control-sm,
.contact-section .form-select-sm {
  border-radius: 4px;
  border: 1px solid #dcd7ce;
  background-color: #ffffff;
  font-size: 0.9rem;
}

.contact-section .form-control-sm:focus,
.contact-section .form-select-sm:focus {
  border-color: #838b76;
  box-shadow: 0 0 0 0.2rem rgba(131, 139, 118, 0.15);
}

/* ==========================================
   OUR WAY PAGE — MOBILE RESPONSIVE FIXES
   (max-width: 767px — below Bootstrap md)
   ========================================== */
@media (max-width: 767px) {

  /* Allow section to grow beyond 100vh so all stacked cards fit
     and the footer naturally follows at the bottom */
  .our-way-section {
    height: auto;
    min-height: 100vh;
    margin-bottom: 0 !important;
  }

  .our-way-section .container-fluid {
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Header text */
  .our-way-pretitle {
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
  }

  .our-way-main-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    letter-spacing: 1px !important;
  }

  .our-way-subtitle {
    font-size: 0.9rem !important;
    letter-spacing: 1.5px !important;
  }

  /* Card image height reduced for mobile */
  .our-card-img-wrapper {
    height: 55vw !important;
    min-height: 200px !important;
  }

  /* Pack badge */
  .our-way-section .badge {
    font-size: 1rem !important;
  }

  /* Card title (WE CREATE THE DESIGN, etc.) */
  .our-way-section h5.about-text {
    font-size: 1.1rem !important;
  }

  /* Card body text */
  .our-way-section p.about-text-2 {
    font-size: 0.9rem !important;
  }

}

/* ==========================================
   GALLERY PAGE — MOBILE RESPONSIVE FIXES
   (max-width: 767px — below Bootstrap md)
   ========================================== */
@media (max-width: 767px) {

  /* Let section grow naturally instead of capping at viewport height */
  .gallery-section {
    height: auto;
    padding: 1rem 1rem 2rem 1rem;
  }

  /* 2-column grid — 6 rows of 2 images each */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none; /* let rows auto-generate */
    height: auto;
    gap: 0.75rem;
  }

  /* Each item no longer needs a fixed height — the square wrapper drives it */
  .gallery-item {
    height: auto;
  }

  /* Square images: aspect-ratio replaces the flex-based height */
  .gallery-img-wrapper {
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .gallery-img-wrapper img {
    height: 100%;
  }

  /* Slightly smaller label text to fit 2-column layout */
  .gallery-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 6px 8px;
  }

}
