/* ------------------ GENERAL ------------------ */
html {
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
    font-family: 'Roboto', sans-serif;
}

.page-wrapper {
  margin: 0 auto;
  max-width: 85vw; /* más ancho que 1400px en pantallas grandes */
  padding: 0 10px;  /* un pequeño espacio a los lados */
  background-color: #fff;
}
 
/* ------------------ HEADER ------------------ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 10px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

header img {
  height: 320px;
}

/* Menú general (escritorio) */
nav#navMenu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav#navMenu a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
   margin: 0 11px;
  padding: 8px 0; /* más espacio vertical */
  display: inline-block;
  text-decoration: none;
}



nav#navMenu a:hover {
  color: #eb7602;
}

 
/* ------------------ MENÚ HAMBURGUESA Y RESPONSIVE ------------------ */
@media (max-width: 768px) {
 button.hamburger {
    display: block;
    position: fixed;
    top: 80px;
    left: 15px;
	right:auto;
    z-index: 1001;
    font-size: 18px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    width: auto;
 
  }
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1002;
  }

  .menu-overlay.show {
    display: block;
  }
  nav#navMenu {
    display: none;
    flex-direction: column;
    background-color: #0056b3;
    padding: 10px;
    width: 80%;
    max-width: 300px;
    margin-top: 20px;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    position: fixed;
	top: 120px; /* más abajo que el botón */
    left: 0;
    z-index: 1002;
 
  }
  /* Mostrar menú cuando tenga la clase .show (toggle JS) */
   nav#navMenu.show {
    display: flex;
  }

  nav#navMenu a {
    color: white;
    padding: 8px 12px;
    font-size: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  header {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }
  nav#navMenu a:hover {
    background-color: #555;
    color: #FF8C00;
  }
  
  
  

  /* Ajustes generales texto en móvil */
  body {
    font-size: 14px;
    padding: 10px;
  }
  
  header nav a {
    font-size: 0.9rem;
  }
  
  header h1 {
    font-size: 24px;
  }

  main {
    padding: 15px;
  }
  
  footer {
    font-size: 12px;
    text-align: center;
  }
  header img.logo {
  height: 100px;
  max-width: 100%;
  margin: auto;
}
 

}



/* ------------------ CARRUSEL ------------------ */
.carousel-caption-custom {
  position: absolute;
  top: 49%;
  left: 40%;
  transform: translate(-50%, -50%);
  text-align: left;
  z-index: 10;
  border-radius: 8px;  
}

.titulo-principal {
  font-size: 6.8rem;
  color: #eb7602;
  font-weight: bold;
  margin: 0;
  line-height: 0.9;
}    

.titulo {
  font-size: 2.6rem;
  color: #eb7602;
  font-weight: bold;
  margin: 0;
}

.subtitulo {
  font-size: 3.5rem;
  color: yellow;
  font-weight: bold;
  margin-top: 0.5rem;
}

.texto-izquierda-custom {
  position: absolute;
  top: 50%;
  left: 73%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  max-width: 350px;
  font-size: 2.7rem;
  font-weight: bold;
  line-height: 1.4;
  z-index: 10;
  padding: 1rem;
}

.texto-izquierda-custom2 {
  position: absolute;
  top: 38%;
  left: 73%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  max-width: 380px;
  font-size: 2.7rem;
  font-weight: bold;
  line-height: 1.4;
  z-index: 10;
  padding: 1rem;
}

.texto-cita {
  margin: 0;
 
}

.texto-cita .autor {
  display: block;
  margin-top: 1rem;
  font-size: 2.9rem;
  text-align: left;
  color: white;
}

.carousel-caption h5,
.carousel-caption p {
  font-size: 4vw; /* se adapta al ancho de pantalla */
  line-height: 1.2;
}

.carousel-caption h5 {
  font-size: 2vw;
}

/* ------------------ SERVICIOS ------------------ */
.service-overlay {
  position: relative;
  overflow: hidden;
  background: white;
  flex: 1;
}

.service-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 1.2s ease-in-out;
  position: relative;
  z-index: 1;
}

.service-desc {
  position: absolute;
  inset: 0;
  background: rgba(235, 118, 2, 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* ✅ ahora comienza arriba */
  padding: 2rem 1rem 1rem 1rem; /* ✅ más espacio arriba */
  gap: 0.5rem;
  font-size: 1.7rem;
  text-align: left;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 2;
}

.service-desc h4 {
  font-weight: bold;
  margin: 0 0 0.1rem;
  color: white;
  font-size: 1.56rem;
  text-align: left;
}

.service-overlay:hover .service-img {
  opacity: 0;
}

.service-overlay:hover .service-desc {
  opacity: 1;
}

/* ------------------ POR QUÉ ELEGIR ------------------ */
.why-section {
  background-color: white;
  padding: 30px;
}

.why-section p:nth-child(odd) {
  color:#092799;
  font-size: 1.7rem;
  font-weight: bold;
}.why-section p:nth-child(even) {
  color:#092799;
  font-size: 1.7rem;
 
}

.why-section p:nth-child(even) {
  color: #333;
}

.why-img {
  width: 100%;
  border-radius: 10px;
}

/* ------------------ CONTACTANOS ------------------ */
.modern-input {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 12px 15px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.modern-input:focus {
  border-color: #FF8C00;
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
}

.modern-btn {
  background-color: #FF8C00;
  color: white;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.modern-btn:hover {
  background-color: #e67e00;
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #f8f9fa;
  padding: 30px 20px;
  font-size: 1.2rem;
}

footer h4 {
  font-size: 1.5rem;
}

/* Nota: "footer parrafo" no es selector válido, debe ser footer p si es párrafo */
footer p {
  font-size: 1.5rem;
}

/* ------------------ BOTON WHATSAPP ------------------ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------ EFECTO FADE OUT ------------------ */
body.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}



@media (max-width: 768px) {

  nav#navMenu {
    display: none;
    flex-direction: column;
    background-color: #0056b3;
    padding: 10px;
    width: 80%;
    max-width: 300px;
    margin-top: 10px;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 998;
  }

  nav#navMenu.show {
    display: flex;
  }

  nav#navMenu a {
    color: white;
    padding: 8px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav#navMenu a:hover {
    background-color: #003d80;
    color: #FFDC00;
  }
 
  header img.logo {
    height: 120px;
    width: auto;
    margin-bottom: 10px;
  }

  .titulo-principal {
    font-size: 2.2rem;
  }

  .titulo {
    font-size: 1.8rem;
  }

  .subtitulo {
  font-size: 1.2rem;
  white-space: normal; /* ← permite saltos de línea */
  word-break: break-word;
  text-align: center;
  }

 
  .texto-izquierda-custom,
  .texto-izquierda-custom2 {
   position: absolute;
    top:  5%;
    left: 70%;
    transform: none;              /* <- evita el centrado */
    width: 30%;                   /* ocupa solo la parte derecha */
    max-width:30%;
    font-size: 0.8rem;
    padding: 0.6rem;
    text-align: left;
 
  }

  .carousel-caption-custom,
  .carousel-caption-custom p {
    font-size: 1.4rem !important;
  }

  .texto-cita .autor {
    font-size: 0.7rem !important;
  }

  .service-img {
    height: 250px;
  }

  .service-desc {
    font-size: 0.6rem;
    padding: 0.8rem;
  }

  .service-desc h4 {
    font-size: 0.7rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  footer h4 {
    font-size: 1.2rem;
  }
}

/* Animación del botón hamburguesa (cambia de ☰ a ✖) */
button.hamburger {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Cambio visual cuando se activa */
button.hamburger.open {
  background-color: #C76E00;
  transform: rotate(90deg); /* o scale(1.1), o algo más vistoso */
}

/* Animación de entrada del menú */
@media (max-width: 768px) {
  nav#navMenu {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  nav#navMenu.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}
/* ------------------ BOTÓN HAMBURGUESA Y MENÚ RESPONSIVE ------------------ */
@media (max-width: 768px) {

  header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  button.hamburger {
    display: block;
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 1001;
    font-size: 20px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    transition: transform 0.4s ease;
  }

  button.hamburger.open {
    background-color: black;
	color:white;
    transform: rotate(90deg);
  }

  nav#navMenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 75px;
    left: 0;
    width: 80%;
    max-width: 200px;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1002;

    /* Animación */
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  nav#navMenu.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav#navMenu a {
    color: black;
    padding: 10px;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav#navMenu a:hover {
    background-color: #003d80;
    color: #FFDC00;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .menu-overlay.show {
    display: block;
  }
}

/* Oculta el botón hamburguesa en pantallas grandes */
@media (min-width: 769px) {
  button.hamburger {
    display: none;
  }
}
@media (max-width: 768px) {
  header img.logo {
    height: 210px;
    max-width: 100%;
  }
}
/* ==== ESCRITORIO ==== */
  .texto-izquierda-custom, 
  .texto-izquierda-custom2{
  position: absolute;
  top: 50%;
  left: 73%;
  transform: translate(-60%, -50%);
  width: 500px;
  max-width: 90%;
  padding: 1.2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: white;
  z-index: 10;
  text-align: left;
}

.texto-cita {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
}

.texto-cita .autor {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: right;
  color: #f2f2f2;
  font-weight: normal;
}


/* ==== MÓVIL ==== */
@media (max-width: 768px) {
  .texto-izquierda-custom, 
  .texto-izquierda-custom2{
    left: 73%;
    top: 55%;
    transform: translate(-65%, -50%);
    width: 80%;
    max-width: 80%;
    font-size: 0.9rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .texto-cita {
    font-size: 0.9rem;
  }

  .texto-cita .autor {
    font-size: 1.1rem;
    text-align: right;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    position: relative;
    height: 400px; /* ← Forzamos altura visible para el slide */
  }

  .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* ← imagen ocupa todo */
    object-fit: cover;
    z-index: 1;
  }

  .carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    background: rgba(0,0,0,0.1);
    padding: 1rem;
    max-width: 90%;
    text-align: center;
    border-radius: 10px;
  }

  .titulo-principal {
    font-size: 1.7rem;
    margin: 0;
  }

  .subtitulo {
    font-size: 1.1rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: 0.6rem;
    line-height: 1.3;
  }
}
@media (max-width: 768px) {
  .d-flex.justify-content-center.flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service-overlay {
    width: 100%;
    max-width: 90%;
  }

  .service-img {
    height: auto;
    max-height: 300px;
  }

  .service-desc {
    font-size: 1rem;
    padding: 1.2rem;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: break-word;
  }

  .service-desc h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  nav#navMenu {
    background-color: rgba(0, 0, 0, 0.7); /* fondo negro semitransparente */
    color: white;
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(5px); /* efecto de desenfoque moderno */
  }

  nav#navMenu a {
    color: white;
    font-size: 1rem;
    padding: 10px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
  }

  nav#navMenu a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* leve resaltado */
    color: #FFDC00; /* amarillo moderno */
  }
}

