/* =========================================================
   P&C - Ajustes visuales (nov 2026)
   ========================================================= */

/* 14 + 23. Cabecera (hero) de paginas internas: menos alta */
body:not(.home) #ut-hero.hero {
  height: 46vh !important;
  min-height: 340px !important;
  max-height: 480px;
}
body:not(.home) #ut-hero .hero-holder,
body:not(.home) #ut-hero .grid-container,
body:not(.home) #ut-hero .parallax-overlay {
  height: 100% !important;
}
body:not(.home) #ut-hero .hero-holder {
  display: flex !important;
  align-items: center;
}
body:not(.home) #ut-hero .hero-title {
  font-size: clamp(34px, 5vw, 60px) !important;
  line-height: 1.15 !important;
}
@media (max-width: 767px) {
  body:not(.home) #ut-hero.hero {
    height: 34vh !important;
    min-height: 220px !important;
  }
  .home #ut-hero.hero {
    min-height: 260px !important;
  }
}

/* 16. Texto justificado -> alineado a la izquierda */
#main-content .textogrande,
#main-content .textogrande p,
#main-content p[style*="justify"],
#main-content div[style*="justify"],
#main-content .pyc-left {
  text-align: left !important;
  hyphens: none;
}

/* 17. Contraste: botones amarillos y titulos amarillos */
.bklyn-btn[style*="ffcd00"],
.bklyn-call-to-action-wrapper .bklyn-btn,
#main-content .bklyn-btn-holder a.bklyn-btn {
  color: #1a1a1a !important;
  font-weight: 600;
}
.bklyn-call-to-action-wrapper .bklyn-btn:hover {
  color: #ffffff !important;
}
.bklyn-call-to-action-title {
  color: #2b2b2b !important;
}

/* 7. Portafolios de demostracion: sin enlace al detalle (lorem ipsum) */
.ut-portfolio-item a[href*="/portfolio-item/"],
.ut-portfolio-wrap a[href*="/portfolio-item/"] {
  pointer-events: none !important;
  cursor: default !important;
}
/* Al pasar el mouse: titulo y categoria del proyecto */
.ut-portfolio-item { position: relative; overflow: hidden; }
.ut-portfolio-item .ut-hover-layer {
  display: flex !important;
  align-items: center; justify-content: center;
  background: rgba(10, 13, 27, .72) !important;
  opacity: 0 !important;
  transition: opacity .25s ease !important;
  text-align: center;
}
.ut-portfolio-item:hover .ut-hover-layer,
.ut-portfolio-item:focus-within .ut-hover-layer { opacity: 1 !important; }
.ut-portfolio-item .ut-portfolio-info-c { display: block !important; padding: 0 20px; }
.ut-portfolio-item .portfolio-title { color: #f0c30f !important; font-size: 22px !important; margin: 0 0 8px !important; }
.ut-portfolio-item .ut-portfolio-info-c span { color: #fff !important; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.ut-portfolio-item .ut-portfolio-info-c span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 90%; margin: 0 auto; line-height: 1.5; }
.ut-portfolio-item figure img { transition: transform .4s ease; }
.ut-portfolio-item:hover figure img { transform: scale(1.04); }
/* Pantallas tactiles (sin mouse): titulo siempre visible abajo */
@media (hover: none) {
  .ut-portfolio-item .ut-hover-layer {
    opacity: 1 !important;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(10,13,27,.85), rgba(10,13,27,0) 60%) !important;
    padding-bottom: 18px;
  }
  .ut-portfolio-item .portfolio-title { font-size: 18px !important; }
}

/* 20. Formulario de contacto */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  border: 1px solid #d6d6d6 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  background: #fafafa !important;
  transition: border-color .2s, background .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #f0c30f !important;
  background: #ffffff !important;
  outline: none;
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  background: #f0c30f !important;
  color: #1a1a1a !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 12px 34px !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover {
  background: #2b2b2b !important;
  color: #ffffff !important;
}

/* 21. Pie de pagina: titulos limpios y logo sin caja */
.ut-footer-area .widget-title,
.ut-footer-area .widget-title * {
  background: none !important;
  background-image: none !important;
}
.ut-footer-area .widget-title {
  text-align: left !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0 0 10px !important;
  margin-bottom: 16px !important;
  border-bottom: 2px solid #f0c30f;
  color: #ffffff !important;
  font-size: 14px !important;
  letter-spacing: 1px;
}
.ut-footer-area .widget-title span {
  padding: 0 !important;
  margin: 0 !important;
}
.ut-footer-area .widget-title::before,
.ut-footer-area .widget-title::after,
.ut-footer-area .widget-title span::before,
.ut-footer-area .widget-title span::after {
  display: none !important;
}
.ut-footer-area .widget_media_image img {
  border-radius: 8px;
  max-width: 260px;
  height: auto;
}

/* 22. Tipografia de titulos de seccion mas consistente */
#main-content .section-title,
#main-content .page-title {
  letter-spacing: .5px;
}

/* 14. Titulo de la cabecera visible debajo del menu fijo */
body:not(.home) #ut-hero.hero { min-height: 380px !important; }
body:not(.home) #ut-hero .hero-holder { padding-top: 100px !important; box-sizing: border-box; }
@media (max-width: 767px) {
  body:not(.home) #ut-hero.hero { min-height: 240px !important; }
  body:not(.home) #ut-hero .hero-holder { padding-top: 70px !important; }
}

/* 23. Celular: tarjetas Ingenieria / Ejecucion de la portada */
@media (max-width: 767px) {
  .bklyn-call-to-action-wrapper {
    padding: 18px 20px 26px !important;
    margin-bottom: 26px !important;
    background: #fff;
    border-radius: 0 0 8px 8px;
  }
  .wpb_content_element:has(> .bklyn-call-to-action-wrapper),
  .bklyn-call-to-action-wrapper.wpb_content_element { padding: 0 !important; }
  .bklyn-call-to-action-title { font-size: 22px !important; margin: 0 0 6px !important; }
  .bklyn-call-to-action-content p { margin-bottom: 14px !important; }
  .bklyn-call-to-action-button-holder .bklyn-btn-holder { text-align: left !important; margin: 0 !important; }
  .bklyn-call-to-action-button-holder .bklyn-btn { padding: 12px 28px !important; border-radius: 6px; }
  .ut-fancy-image-wrap { border-radius: 8px 8px 0 0; overflow: hidden; }
  .ut-fancy-image-wrap::before, .ut-fancy-image-wrap::after,
  .ut-fancy-image-wrap .ut-fancy-image-overlay { display: none !important; }
}

/* Portada: tarjetas Ingenieria / Ejecucion (escritorio) */
.ut-fancy-image-wrap { overflow: hidden; }
.ut-fancy-image-wrap figure::before, .ut-fancy-image-wrap figure::after,
.ut-fancy-image-wrap a::before, .ut-fancy-image-wrap a::after,
.ut-fancy-image-wrap figcaption { display: none !important; opacity: 0 !important; }
.ut-fancy-image-wrap img { transition: transform .5s ease, filter .5s ease !important; filter: none !important; opacity: 1 !important; }
.ut-fancy-image-wrap a:hover img { transform: scale(1.04); }
.bklyn-call-to-action-wrapper { background: #fff; }
.wpb_content_element:has(> .bklyn-call-to-action-wrapper) { padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 768px) {
  .bklyn-call-to-action-inner {
    display: flex !important; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px !important;
  }
  .bklyn-call-to-action-inner::before, .bklyn-call-to-action-inner::after { display: none !important; }
  .bklyn-call-to-action-content, .bklyn-call-to-action-button-holder { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
  .bklyn-call-to-action-title { font-size: 20px !important; margin: 0 0 4px !important; line-height: 1.2 !important; }
  .bklyn-call-to-action-content p { margin: 0 !important; }
  .bklyn-call-to-action-button-holder .bklyn-btn-holder { margin: 0 !important; }
  .bklyn-call-to-action-button-holder .bklyn-btn { padding: 12px 26px !important; border-radius: 6px; white-space: nowrap; }
}

/* Logo de la empresa en el encabezado */
.site-logo h1.logo, .site-logo .logo { margin: 0 !important; line-height: 1 !important; }
.site-logo h1.logo a {
  display: block !important;
  width: 200px; height: 58px;
  background: url(/wp-content/uploads/2018/02/Screenshot_11.png) left center / contain no-repeat;
  font-size: 0 !important; line-height: 0 !important; color: transparent !important;
  overflow: hidden; text-indent: -9999px;
}
@media (max-width: 767px) {
  .site-logo h1.logo a { width: 150px; height: 44px; }
}

/* ===== Mejoras visuales (orden y lucidez) ===== */
/* 1. Un solo titulo: se oculta el titulo repetido bajo la cabecera */
body:has(#ut-hero) .page-header.page-primary-header { display: none !important; }

/* 2. Espaciado: primera seccion mas cerca de la cabecera */
body:not(.home):has(#ut-hero) #primary { padding-top: 70px !important; }
@media (max-width: 767px) { body:not(.home):has(#ut-hero) #primary { padding-top: 40px !important; } }
body:not(.home) #main-content .vc_row.wpb_row:not(.vc_inner) { margin-bottom: 50px !important; }
body:not(.home) #main-content .vc_row.wpb_row:not(.vc_inner):last-child { margin-bottom: 0 !important; }

/* 3. Tarjetas uniformes (cabecera de color + imagen) */
.wpb_text_column.topradius {
  min-height: 70px; margin-bottom: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  padding: 10px 18px !important; border-radius: 10px 10px 0 0 !important;
}
.wpb_text_column.topradius > .wpb_wrapper, .wpb_text_column.topradius p { margin: 0 !important; width: 100%; }
.wpb_single_image.bottomradius { margin-bottom: 0 !important; border-radius: 0 0 10px 10px; overflow: hidden; }
.wpb_single_image.bottomradius .vc_figure, .wpb_single_image.bottomradius .vc_single_image-wrapper { display: block !important; width: 100%; }
.wpb_single_image.bottomradius img {
  width: 100% !important; height: 230px !important; object-fit: cover; display: block; border-radius: 0 !important;
}
.vc_column-inner > .wpb_wrapper:has(> .topradius) {
  border-radius: 10px; margin-bottom: 34px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

/* 6. Tarjetas: se elevan al pasar el mouse */
.vc_column-inner > .wpb_wrapper:has(> .topradius),
.vc_column-inner > .wpb_wrapper:has(.bklyn-call-to-action-wrapper) {
  transition: transform .25s ease, box-shadow .25s ease;
}
.vc_column-inner > .wpb_wrapper:has(> .topradius):hover,
.vc_column-inner > .wpb_wrapper:has(.bklyn-call-to-action-wrapper):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

/* 4. Contraste y tamano del texto */
#main-content, #main-content .wpb_wrapper, #main-content .ut-st { color: #4a4a4a; }
#main-content .wpb_text_column:not(.topradius) p,
#main-content .wpb_text_column:not(.topradius) li {
  color: #3d3d3d;
  font-size: 16px;
  line-height: 1.7;
}
#main-content .ut-st, #main-content .ut-service-icon-box p { font-size: 15px; line-height: 1.7; }

/* Tarjetas: esquinas limpias e imagen uniforme */
.vc_column-inner > .wpb_wrapper:has(> .topradius) { overflow: hidden; }
.vc_column-inner > .wpb_wrapper:has(> .topradius) img,
.vc_column-inner > .wpb_wrapper:has(> .topradius) .vc_single_image-wrapper,
.vc_column-inner > .wpb_wrapper:has(> .topradius) .vc_figure,
.vc_column-inner > .wpb_wrapper:has(> .topradius) .wpb_single_image { border-radius: 0 !important; }
.vc_column-inner > .wpb_wrapper:has(> .topradius) > .wpb_single_image { margin-bottom: 0 !important; }
.vc_column-inner > .wpb_wrapper:has(> .topradius) > .wpb_single_image img { width: 100% !important; height: 230px !important; object-fit: cover; display: block; }
