/* =====================
   RESET BÁSICO
===================== */
html,
body,
header,
main {
  margin: 0;
  padding: 0;
}

html,
body {
  height: auto;
  overflow-x: hidden;
}


/* =====================
   ENCABEZADO
===================== */
header {
  padding-bottom: 0;
}

.header-fondo {
  background-image: url('imagenes/imagen superior.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #4c7509e7;
  /* Cambia este color por el que combine con la imagen */
  width: 100%;
  height: 200px;
}

@media (max-width: 768px) {
  .header-fondo {
    background-image: url('imagenes/portada web fondos.png');
    height: 100px;
  }
}


/* =====================
   CONTENIDO PRINCIPAL
===================== */
main {
  margin-top: 0;
  position: relative;
}

.main-content {
  position: relative;
  background-image: url('imagenes/centro y verde.png');
  background-size: cover;
  background-position: center;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.overlay-text {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  max-width: 60%;
  z-index: 5;
}

h1,
p {
  color: white;
}

h1.display-5 {
  font-size: 2.5rem;
}

p.fs-5 {
  font-size: 1.25rem;
}


/* =====================
   NAVBAR
===================== */
.navbar-container {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 85px;
}


/* =====================
   BOTONES
===================== */
.btn-verde {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  font-size: 1.5rem;
  border-radius: 20px;
  border: none;
  min-width: 150px;
  text-align: justify;
  white-space: normal;
  background-color: rgba(50, 141, 8, 0.938);
  color: rgb(9, 14, 12);
}

.btn-verde:hover {
  background-color: #83b3639f;
}


/* Ajuste para pantallas muy pequeñas o con zoom alto */
@media (max-width: 400px) {
  .btn-verde {
    font-size: 0.85rem;
    /* Letra más pequeña */
    padding: 8px 12px;
    /* Botón más compacto */
  }
}

/* =====================
   RESPONSIVE GENERAL
===================== */
@media screen and (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
    gap: 10px;
    top: 10px;
    z-index: 500;
  }

  .main-content {
    background-repeat: no-repeat;
    background-position: top center;
    min-height: auto;
    padding: 60px 20px 40px 20px;
    display: block;
  }

  .overlay-text {
    max-width: 100%;
    padding: 20px;
    margin: 60px auto 0 auto;
  }

  h1.display-5 {
    font-size: 1.8rem;
  }

  p.fs-5 {
    font-size: 1rem;
  }
}

/* =====================
   FORMAS COMERCIALES
===================== */
body.servicios .overlay-text,
body.formas-comerciales .overlay-text {
  padding: 30px 20px;
  max-width: 70%;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}
/* =====================
   PÁGINA DE SERVICIOS
===================== */
body.servicios .main-content,
body.formascomerciales .main-content {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}
/* =====================
   CONTACTOS Y GRACIAS
===================== */
body.contactos .formulario-contenedor {
  margin-top: 120px;
  margin-bottom: 100px;
}

body.contactos .color-personalizado,
body.gracias .color-personalizado {
  color: #1c0e86;
}

body.contactos .texto-color,
body.gracias .lead {
  color: #0b0f11;
}

@media screen and (max-width: 768px) {
  body.contactos .formulario-contenedor {
    margin-top: 100px;
  }
}


/* =====================
   RESPONSIVE SECCIONES
===================== */
@media screen and (max-width: 768px) {
  body.index .main-content {
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 60px;
  }

  body.servicios .overlay-text {
    margin-top: 180px;
  }
}


/* =====================
   OTROS
===================== */
.text-justify {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


/* =====================
   IMAGEN ESCALADA EN MONITORES GRANDES
===================== */

.imagen-caja {
  max-width: 800px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .imagen-caja {
    max-width: 120%;
  }
}

@media (max-width: 768px) {
  body.contactos .main-content,
  body.nosotros .main-content {
    padding-top: 10px !important;
  }
}
@media (max-width: 768px) {
  body.index .main-content {
    padding-top: 50px !important;
  }
}
@media (max-width: 768px) {
  /* Equipo: bajar contenido más */
  body.equipo main.container.py-5 {
      padding-top: 80px !important; /* o el valor que quieras */
  }
}