/* Pragma - ajustes de interfaz comunes a todas las paginas */

/* Texto de copyright del pie */
.footer .footer-copy {
  color: #361d14;
}

/* Boton "volver arriba" */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1030;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #361d14;
  color: #fff;
  font-size: 1.25rem;
  line-height: 3rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

#backToTop:hover,
#backToTop:focus {
  background-color: #57301f;
  color: #fff;
  outline: none;
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 575.98px) {
  #backToTop {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #backToTop {
    transition: none;
  }
}

/* ---------- Botones de icono del navbar (login, Instagram) ----------
   Mismo color que los enlaces del menu; resaltado en ambar como la pagina activa. */
#mainNav .nav-acciones {
  display: flex;
  align-items: center;
  margin-left: auto;          /* mobile: quedan pegados al boton del menu */
  margin-right: .5rem;
}
#mainNav .nav-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  color: rgba(255, 255, 255, .7);
  transition: color .2s ease, background-color .2s ease;
}
#mainNav .nav-icono + .nav-icono {
  margin-left: .25rem;
}
#mainNav .nav-icono svg {
  width: 1.6rem;
  height: 1.6rem;
}
#mainNav .nav-icono .trazo {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mainNav .nav-icono .relleno {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linejoin: round;
}
#mainNav .nav-icono:hover,
#mainNav .nav-icono:focus {
  color: #e6a756;
  background-color: rgba(255, 255, 255, .08);
  text-decoration: none;
  outline: none;
}
#mainNav .nav-icono:focus-visible {
  box-shadow: 0 0 0 2px #e6a756;
}

/* Escritorio: a la derecha, sin correr el menu del centro */
@media (min-width: 992px) {
  #mainNav .container {
    position: relative;
  }
  #mainNav .nav-acciones {
    position: absolute;
    top: 50%;
    right: 15px;
    margin: 0;
    transform: translateY(-50%);
  }
}

/* ---------- Modal de contacto (Soluciones agro tecnologicas) ---------- */
/* Paleta Pragma: dorado #e6a756 / #df902a, marrones #361d14 / #57301f */

/* Fondo oscuro con tono marrón y desenfoque */
.modal-backdrop.show {
  background-color: #361d14;
  opacity: .8;
}
@supports (backdrop-filter: blur(3px)) {
  .modal-pragma-wrap.show {
    backdrop-filter: blur(3px);
  }
}

/* Entrada con zoom suave */
.modal-pragma-wrap.fade .modal-dialog {
  transform: scale(.92) translateY(20px);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1.2);
}
.modal-pragma-wrap.show .modal-dialog {
  transform: none;
}

.modal-pragma {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fbf6f0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

/* Encabezado */
.modal-pragma .modal-header {
  position: relative;
  align-items: center;
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: none;
  background: linear-gradient(135deg, #361d14 0%, #57301f 100%);
  color: #fff;
}
.modal-pragma .modal-header::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: 0;
  width: 90px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #e6a756, #df902a);
}
.modal-pragma-upper {
  display: block;
  margin-bottom: .25rem;
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e6a756;
}
.modal-pragma .modal-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}
.modal-pragma .close {
  margin: -1rem -1rem -1rem auto;
  padding: 1rem;
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  opacity: .8;
  text-shadow: none;
  transition: opacity .2s, transform .2s, color .2s;
}
.modal-pragma .close:hover,
.modal-pragma .close:focus {
  opacity: 1;
  color: #e6a756;
  transform: rotate(90deg);
}

/* Cuerpo */
.modal-pragma .modal-body {
  padding: 1.75rem 2rem;
}
.modal-pragma-intro {
  margin-bottom: 1.5rem;
  font-family: 'Lora', serif;
  font-style: italic;
  text-align: center;
  color: #57301f;
}

/* Tarjetas por área */
.contacto-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  background-color: #fff;
  border-top: 4px solid #e6a756;
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(54, 29, 20, .1);
  transition: transform .25s, box-shadow .25s;
}
.contacto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(54, 29, 20, .18);
}
.contacto-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #e6a756, #df902a);
  box-shadow: 0 6px 14px rgba(223, 144, 42, .4);
}
.contacto-area {
  margin-bottom: 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #361d14;
}
.contacto-datos {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.contacto-datos li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .95rem;
}
.contacto-datos svg {
  flex-shrink: 0;
  color: #df902a;
}
.contacto-datos a {
  color: #57301f;
  word-break: break-word;
  transition: color .2s;
}
.contacto-datos a:hover,
.contacto-datos a:focus {
  color: #df902a;
  text-decoration: none;
}

/* Botón WhatsApp (verde oficial, para que se reconozca al instante) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: auto;
  padding: .7rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #fff;
  background-color: #25d366;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: #fff;
  background-color: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, .45);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* Pie */
.modal-pragma .modal-footer {
  justify-content: center;
  padding: .9rem 2rem;
  border-top: 1px solid rgba(230, 167, 86, .3);
}
.modal-pragma .modal-footer p {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #df902a;
}

/* Celulares */
@media (max-width: 575.98px) {
  .modal-pragma .modal-header,
  .modal-pragma .modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .modal-pragma .modal-header::after {
    left: 1.25rem;
  }
  .modal-pragma .modal-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-pragma-wrap.fade .modal-dialog,
  .contacto-card,
  .btn-whatsapp,
  .modal-pragma .close {
    transition: none;
  }
}
