/* ==========================================================
   U-Diseño · Ajustes propios sobre la plantilla
   (se carga después de style.css y responsive.css)
   ========================================================== */

/* ---------- 1. Menú de escritorio ----------
   Hasta 991 px se mantiene el botón de tres líneas con el menú
   a pantalla completa original. Desde 992 px el menú queda visible. */
.ud-nav-escritorio {
  display: none;
}
@media (min-width: 992px) {
  .ud-nav-boton {
    display: none;
  }
  .ud-nav-escritorio {
    display: block;
  }
  .ud-nav-escritorio ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .ud-nav-escritorio li {
    display: inline-block;
    margin-left: 34px;
  }
  .ud-nav-escritorio li:first-child {
    margin-left: 0;
  }
  .ud-nav-escritorio a {
    color: #999999;
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 20px;
    margin: 40px 0 38px;
    padding-bottom: 2px;
    position: relative;
    text-transform: uppercase;
  }
  /* Filete inferior que crece al pasar el cursor; fijo en la página actual */
  .ud-nav-escritorio a::after {
    background-color: #3e3e3e;
    bottom: -4px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    -webkit-transition: width 0.3s ease 0s;
    transition: width 0.3s ease 0s;
    width: 0;
  }
  .ud-nav-escritorio a:hover,
  .ud-nav-escritorio a:focus,
  .ud-nav-escritorio li.active a {
    color: #3e3e3e;
  }
  .ud-nav-escritorio a:hover::after,
  .ud-nav-escritorio a:focus::after,
  .ud-nav-escritorio li.active a::after {
    width: 100%;
  }
  /* Por si quedara abierto el menú móvil al agrandar la ventana */
  .mp-menu-section.active {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- 2. Jerarquía de títulos ----------
   Se corrigió el orden de encabezados (un solo H1 por página)
   conservando exactamente el aspecto anterior. */

/* Portada: el lema ahora es H1, con el estilo que tenía como H4 */
.mp-hero-content h1.ud-hero-lema {
  color: #999999;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

/* Títulos de sección: ahora H2, con el estilo que tenían como H1 */
.mp-section-title h2 {
  display: inline-block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 28px;
  margin: 0;
  padding: 43px 25px;
  position: relative;
  text-transform: uppercase;
  vertical-align: top;
}
.mp-section-title h2::before,
.mp-section-title h2::after {
  background-color: #3e3e3e;
  content: "";
  height: 4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 80px;
}
.mp-section-title h2::before { right: 100%; }
.mp-section-title h2::after  { left: 100%; }


@media only screen and (max-width: 767px) {
  .mp-section-title h2 { font-size: 26px; padding: 30px 20px; }
  .mp-section-title h2::before,
  .mp-section-title h2::after { width: 40px; }
}

/* ---------- 3. Mapa de Contacto ---------- */
.ud-mapa {
  background-color: #f5f5f5;
  height: 400px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.ud-mapa iframe {
  border: 0;
  display: block;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);       /* mantiene el mapa en grises, como estaba diseñado */
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  -webkit-transition: filter 0.4s ease;
  transition: filter 0.4s ease;
  width: 100%;
}
.ud-mapa:hover iframe {
  -webkit-filter: grayscale(30%);
  filter: grayscale(30%);
}
@media only screen and (max-width: 767px) {
  .ud-mapa { height: 300px; }
}

/* ---------- 4. Formulario ---------- */
.mp-contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 15px center;
  border: 1px solid #ddd;
  border-radius: 0;
  color: #999;
  font-size: 14px;
  height: 40px;
  line-height: 24px;
  padding: 7px 35px 7px 15px;
  width: 100%;
}
.mp-contact-form input:focus,
.mp-contact-form textarea:focus,
.mp-contact-form select:focus {
  border-color: #3e3e3e;
  outline: none;
}
.mp-contact-form input[type="submit"][disabled] {
  cursor: wait;
  opacity: 0.6;
}
.form-messege.success { color: #3e3e3e; }
.form-messege.error   { color: #b03a2e; }
.form-messege { margin-top: 15px; }

/* Campo trampa anti-spam (oculto para personas) */
.ud-hp {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* ---------- 5. Pie de página ---------- */
.mp-footer-contact p a {
  color: inherit;
}
.mp-footer-contact p a:hover {
  color: #3e3e3e;
}
.mp-footer-social {
  margin-top: 10px;
}

/* ---------- 6. Ficha de proyecto: navegación y llamado a la acción ---------- */
.ud-proyecto-nav {
  border-top: 1px solid #e5e5e5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 30px;
  padding: 25px 0;
}
.ud-proyecto-nav a {
  color: #999999;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ud-proyecto-nav a:hover { color: #3e3e3e; }
.ud-proyecto-nav .ud-prev i { margin-right: 8px; }
.ud-proyecto-nav .ud-next i { margin-left: 8px; }
.ud-proyecto-cta {
  padding: 50px 0 40px;
}
.ud-proyecto-cta p {
  color: #3e3e3e;
  font-size: 18px;
  margin-bottom: 8px;
}
.ud-proyecto-cta a {
  color: #3e3e3e;
  font-weight: 600;
}
.ud-proyecto-cta a i { margin-left: 8px; }
@media only screen and (max-width: 767px) {
  .ud-proyecto-nav { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .ud-proyecto-nav .ud-todos { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; text-align: center; width: 100%; margin-bottom: 15px; }
}

/* Galería de un solo proyecto con una única imagen: altura natural */
.galeria-interactiva .col-md-12 .main-img {
  height: auto;
}
/* Miniaturas: fuera del celular, la columna apilada no se muestra */
@media (min-width: 769px) {
  .thumb-stack { display: none !important; }
}

/* ---------- 7. Botón flotante de WhatsApp (solo si se carga el número en config.php) ---------- */
.ud-whatsapp {
  background-color: #3e3e3e;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 26px;
  height: 52px;
  line-height: 52px;
  position: fixed;
  right: 24px;
  text-align: center;
  width: 52px;
  z-index: 998;
}
.ud-whatsapp:hover,
.ud-whatsapp:focus {
  background-color: #000;
  color: #fff;
}

/* ---------- 8. Accesibilidad: foco visible con teclado ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3e3e3e;
  outline-offset: 2px;
}

/* ---------- 9. Testimonios: puntos del carrusel ---------- */
.mp-testimonial-slider .slick-dots {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
  text-align: center;
}
.mp-testimonial-slider .slick-dots li {
  display: inline-block;
  margin: 0 5px;
}
.mp-testimonial-slider .slick-dots button {
  background-color: #d5d5d5;
  border: 0;
  border-radius: 50%;
  font-size: 0;
  height: 8px;
  padding: 0;
  width: 8px;
}
.mp-testimonial-slider .slick-dots .slick-active button {
  background-color: #3e3e3e;
}

/* ---------- 10. Páginas internas: franja gris angosta + título centrado ----------
   La franja solo indica la ubicación (inicio / sección); el título de la página
   va centrado debajo, con los filetes del sitio. */
.mp-breadcrumb-section.ud-banda {
  padding: 22px 0;
}
.ud-banda .mp-breadcrumb ul {
  float: none;
  margin: 0;
  padding: 0;
}
.ud-titulo-pagina {
  padding: 55px 0 30px;
}
@media only screen and (max-width: 767px) {
  .mp-breadcrumb-section.ud-banda { padding: 14px 0; }
  .ud-titulo-pagina { padding: 35px 0 15px; }
  .mp-section-title h1 { font-size: 24px; padding: 30px 18px; }
  .mp-section-title h1::before,
  .mp-section-title h1::after { width: 36px; }
}
