/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/* Add your own styles here: */

/* =========================================================
   EJURA LEGAL — CSS global
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap");

/* ---------- Base ---------- */

html, body { overflow-x: clip; }

.cmplz-cookiebanner .cmplz-buttons { flex-direction: row-reverse; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Tipografía Petrona ---------- */

.l-section h1 em,
.l-section h2 em,
.l-section h3 em,
.l-section h4 em {
  font-family: "Petrona", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em !important;
}

#experiencia .w-counter-value {
  font-family: "Petrona", serif;
  font-style: italic;
  font-weight: 400;
}

/* ---------- Botones ---------- */

.w-btn.us-btn-style_1:hover {
  color: #fff !important;
  background-color: #418abe !important;
}

.btn-whatsapp.w-btn {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
}

.btn-whatsapp.w-btn:hover {
  background-color: #1ebe5b !important;
  border-color: #1ebe5b !important;
}

/* ---------- Títulos con círculo ----------
   El punto va DENTRO del texto, no como item flex.
   Así obedece al text-align nativo de Impreza en cada breakpoint. */

.title-circle-center,
.title-circle-left,
.title-circle-center-white {
  display: block;
  gap: 0;
}

.title-circle-center::before,
.title-circle-left::before,
.title-circle-center-white::before { content: none; }

.title-circle-center .w-text-value::before,
.title-circle-left .w-text-value::before,
.title-circle-center-white .w-text-value::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  border-radius: 50%;
}

.title-circle-center .w-text-value::before,
.title-circle-left .w-text-value::before { background-color: #0b4f71; }
.title-circle-center-white .w-text-value::before { background-color: #fff; }

/* ---------- Hero ---------- */

.hero-rating-badge { margin-bottom: 18px; }
.hero-rating-badge img { height: 42px; width: auto; }

.lead-name {
  font-size: 22px;
  font-weight: 600;
  margin: 10px 0 16px;
}

/* ---------- Home · Hablan de nosotros ---------- */

.ej-medios {
  background: rgba(240,240,240,.88);
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 14px 34px rgba(18,69,102,.16);
  flex-direction: row !important;
  align-items: center !important;
  gap: 26px;
  width: 860px;
  max-width: 90vw;
  min-height: 124px;
}

.ej-medios .ej-medios-txt {
  flex: 0 0 auto;
  margin: 0;
  color: #151515;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ej-medios .ej-medios-logos {
  flex: 1 1 auto;
  min-width: 380px;
  margin: 0;
}

.ej-medios .ej-medios-logos .w-grid-item-h {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.ej-medios .ej-medios-logos .w-post-elm.post_image { width: 100%; margin: 0; }

.ej-medios .ej-medios-logos .w-post-elm.post_image img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 186px;
  height: auto;
  object-fit: contain;
  opacity: .8;
  transition: opacity .25s ease;
}

.ej-medios .ej-medios-logos .w-grid-item:hover .w-post-elm.post_image img { opacity: 1; }

/* ---------- Home · Colaboraciones ---------- */

.ej-logos .w-grid-item-h {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ej-logos .w-post-elm.post_image { width: 100%; margin: 0; }

.ej-logos .w-post-elm.post_image img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity .25s ease;
}

.ej-logos .w-grid-item:hover .w-post-elm.post_image img { opacity: 1; }

/* ---------- Opiniones ---------- */

#opiniones .ej-op-card {
  position: relative;
  overflow: visible;
  transition: transform .3s ease, box-shadow .3s ease;
}

#opiniones .ej-op-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(18,69,102,.12);
}

#opiniones .ej-op-card .w-image {
  position: absolute !important;
  top: -14px;
  right: -14px;
  left: auto;
  z-index: 6;
  width: 60px;
  max-width: 60px;
  margin: 0 !important;
}

#opiniones .ej-op-card .w-image .w-image-h { margin: 0 !important; }

#opiniones .owl-stage-outer,
#opiniones .owl-item { overflow: visible; }

/* ---------- Flechas del carrusel ---------- */

.w-content-carousel .owl-nav { display: flex; gap: 12px; }

.w-content-carousel .owl-nav button.owl-prev,
.w-content-carousel .owl-nav button.owl-next {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease;
}

.w-content-carousel .owl-nav button.owl-prev i,
.w-content-carousel .owl-nav button.owl-next i,
.w-content-carousel .owl-nav button.owl-prev span,
.w-content-carousel .owl-nav button.owl-next span,
.w-content-carousel .owl-nav button.owl-prev::before,
.w-content-carousel .owl-nav button.owl-next::before { display: none !important; }

.w-content-carousel .owl-nav button.owl-prev {
  background-color: transparent !important;
  border: 1.5px solid #1a2b4a !important;
}

.w-content-carousel .owl-nav button.owl-next {
  background-color: #1a2b4a !important;
  border: none !important;
}

.w-content-carousel .owl-nav button.owl-prev::after,
.w-content-carousel .owl-nav button.owl-next::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.w-content-carousel .owl-nav button.owl-prev::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M15 8H1M1 8L7 2M1 8L7 14' stroke='%231a2b4a' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.w-content-carousel .owl-nav button.owl-next::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M1 8H15M15 8L9 2M15 8L9 14' stroke='white' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.w-content-carousel .owl-nav button.owl-prev:hover,
.w-content-carousel .owl-nav button.owl-next:hover { opacity: .8; }

/* ---------- Tarjetas ---------- */

.card-hover {
  transition: border-color .35s ease, box-shadow .35s ease !important;
}

.card-hover:hover {
  border-color: #418abe !important;
  box-shadow: 0 18px 38px rgba(65,138,190,.18) !important;
}

/* ---------- Casos de éxito · tarjeta del listado ---------- */

.layout_15141 .cf-badge { display: none; }

.w-grid-item .usg_vwrapper_1 {
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              box-shadow .35s ease,
              border-color .35s ease;
  will-change: transform;
}

.w-grid-item:hover .usg_vwrapper_1 {
  transform: translateY(-6px);
  border-color: #124566 !important;
  box-shadow: 0 16px 32px rgba(18,69,102,.16);
}

/* ---------- Casos de éxito · filtro de píldoras ---------- */

.filter-casos .w-filter-item-title { display: none !important; }

.filter-casos,
.filter-casos .w-filter-item { border: none !important; }

.filter-casos .w-filter-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-casos .w-filter-item-content { flex: 1 1 auto; }

.filter-casos .w-filter-item-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-casos .w-filter-item-value {
  margin: 0 !important;
  border: none !important;
}

.filter-casos input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.filter-casos label,
.filter-casos .w-filter-item-reset {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 9px 18px;
  border: 1px solid #E3E9EF;
  border-radius: 999px;
  background: #fff;
  color: #124566;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  user-select: none;
  transition: background-color .25s ease, border-color .25s ease,
              color .25s ease, box-shadow .25s ease;
}

.filter-casos label:hover,
.filter-casos .w-filter-item-reset:hover {
  border-color: #124566;
  box-shadow: 0 6px 14px rgba(18,69,102,.10);
}

.filter-casos .w-filter-item-reset { order: -1; }
.filter-casos .w-filter-item-reset span { display: none; }
.filter-casos .w-filter-item-reset::after { content: "Todas"; }

.filter-casos .w-filter-item-value:has(input:checked) label,
.filter-casos .w-filter-item-value.active label {
  background: #124566;
  border-color: #124566;
  color: #fff;
}

.filter-casos .w-filter-item:not(.has_value) .w-filter-item-reset {
  background: #124566;
  border-color: #124566;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.filter-casos label:focus-within,
.filter-casos .w-filter-item-reset:focus-visible {
  outline: 2px solid #418abe;
  outline-offset: 2px;
}

/* ---------- Mapa ---------- */

.mapa-container {
  border: 2px solid #124566;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(18,69,102,.18), 0 3px 10px rgba(18,69,102,.12);
  background-color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.mapa-container iframe { display: block; width: 100%; border: 0; }

.mapa-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18,69,102,.24), 0 5px 14px rgba(18,69,102,.16);
}

/* ---------- Fichas de servicio ---------- */

.ej-win-card > .vc_column-inner {
  transition: background .35s ease, border-color .35s ease,
              transform .35s ease, box-shadow .35s ease;
}

.ej-win-card:hover > .vc_column-inner {
  background: rgba(255,255,255,.13) !important;
  border-color: rgba(255,255,255,.45) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.20);
}

.ej-win-card:nth-child(2) > .vc_column-inner { animation-delay: .15s !important; }
.ej-win-card:nth-child(3) > .vc_column-inner { animation-delay: .30s !important; }

.ej-stagger > *:nth-child(2) > .vc_column-inner { animation-delay: .12s !important; }
.ej-stagger > *:nth-child(3) > .vc_column-inner { animation-delay: .24s !important; }
.ej-stagger > *:nth-child(4) > .vc_column-inner { animation-delay: .36s !important; }

/* ---------- Pie ---------- */

.footer-logo-white img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ---------- Formulario de contacto ---------- */

.wpcf7-form { max-width: 900px; }
.wpcf7-form p { margin: 0 0 30px 0; }

.wpcf7-form .form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.wpcf7-form .form-row > p { flex: 1; margin-bottom: 0; }

.wpcf7-form .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9ccd1;
  border-radius: 0;
  padding: 8px 0;
  font-size: 1rem;
  color: #1a2b4a;
  background: transparent;
  box-shadow: none;
  outline: none;
  transition: border-color .2s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-bottom: 1px solid #1a2b4a; }

.wpcf7-form textarea {
  min-height: 24px;
  resize: none;
  overflow-y: auto;
  line-height: 1.4;
}

.wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231a2b4a' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  color: #1a2b4a;
  cursor: pointer;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #1a2b4a;
  opacity: 1;
  font-size: 1rem;
}

.wpcf7-form .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid #c9ccd1;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.wpcf7-form .wpcf7-acceptance span,
.wpcf7-form .wpcf7-acceptance label {
  font-size: .9rem;
  color: #1a2b4a;
  margin: 0;
}

.wpcf7-form .wpcf7-acceptance a { color: #1a2b4a; text-decoration: underline; }

.wpcf7-form input[type="submit"] {
  background-color: #1a2b4a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease;
}

.wpcf7-form input[type="submit"]:hover { background-color: #12203a; }

.wpcf7-form .wpcf7-not-valid-tip {
  font-size: .8rem;
  color: #d94848;
  margin-top: 4px;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  border-color: #d94848;
  color: #d94848;
}

/* ---------- Barra flotante y WhatsApp ---------- */

#ej-cta-bar:target { display: none !important; }

.ej-cta-bar { border: 1px solid rgba(255,255,255,.14); }

.ej-cta-bar .w-btn {
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.ej-cta-bar .ej-cta-btn:hover { box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.ej-cta-bar .ej-cta-close:hover { background-color: rgba(255,255,255,.30) !important; }

@keyframes ejWaPulse {
  0%   { box-shadow: 0 6px 20px rgba(16,188,0,.40), 0 0 0 0 rgba(16,188,0,.45); }
  70%  { box-shadow: 0 6px 20px rgba(16,188,0,.40), 0 0 0 20px rgba(16,188,0,0); }
  100% { box-shadow: 0 6px 20px rgba(16,188,0,.40), 0 0 0 0 rgba(16,188,0,0); }
}

.ej-wa-float {
  animation: ejWaPulse 2.6s ease-out infinite;
  transition: transform .25s ease, background-color .25s ease;
}

.ej-wa-float:hover {
  animation: none;
  transform: scale(1.07);
  background-color: #0da400 !important;
  box-shadow: 0 10px 26px rgba(16,188,0,.5) !important;
}

.w-popup-box-content .w-btn { width: 100%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 1025px) {
  .ej-cta-bar {
    width: max-content !important;
    max-width: calc(100vw - 60px) !important;
    flex-wrap: nowrap !important;
  }
  .ej-cta-bar > * { flex-shrink: 0 !important; }
  .ej-cta-bar .ej-cta-txt,
  .ej-cta-bar .ej-cta-btn { white-space: nowrap; }
}

@media (max-width: 1400px) {
  .ej-medios {
    width: 720px;
    gap: 22px;
    padding: 24px 26px;
    min-height: 112px;
  }
  .ej-medios .ej-medios-txt { font-size: 17px; }
  .ej-medios .ej-medios-logos { min-width: 300px; }
  .ej-medios .ej-medios-logos .w-post-elm.post_image img { max-width: 158px; }
}

@media (max-width: 1200px) {
  .g-cols:has(> .hero-media) > .wpb_column { width: 100% !important; }
  .hero-media { width: 100% !important; }
  .hero-media > .vc_column-inner > .wpb_wrapper > .w-image { text-align: center; }
  .hero-media > .vc_column-inner > .wpb_wrapper > .w-image .w-image-h { padding-right: 0 !important; }

  .ej-medios {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 26px;
    min-height: 0;
    padding: 22px 26px;
    gap: 20px;
  }
  .ej-medios .ej-medios-logos { min-width: 0; }
}

@media (max-width: 1024px) {
  /* home */
  #quienes-somos > .l-section-h > .g-cols > .wpb_column { width: 100% !important; }
  #quienes-somos > .l-section-h > .g-cols > .wpb_column > .vc_column-inner { max-width: 100% !important; }
  #sobre-gonzalo > .l-section-h > .g-cols > .wpb_column { width: 100% !important; }
  #noticias .vc_row_inner > .wpb_column { width: 100% !important; }

  /* contacto */
  #contacto > .l-section-h > .g-cols > .wpb_column { width: 100% !important; }
  #contacto > .l-section-h > .g-cols > .wpb_column:last-child { margin-top: 34px; }
  #datos-contacto .vc_row_inner > .wpb_column { width: 50% !important; }

  /* servicios */
  #experiencia .vc_row_inner > .wpb_column { width: 50% !important; }
  #personas > .l-section-h > .g-cols > .wpb_column { width: 100% !important; }
  #personas > .l-section-h > .g-cols > .wpb_column > .vc_column-inner { max-width: 100% !important; }
  #empresas .vc_row_inner > .wpb_column { width: 50% !important; }

  /* fichas de servicio */
  .ej-stagger > .wpb_column .vc_column-inner {
    padding: 32px 24px !important;
  }
  .ej-win-card > .vc_column-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #punto-de-partida > .l-section-h > .g-cols > .wpb_column > .vc_column-inner,
  #por-que-nosotros > .l-section-h > .g-cols > .wpb_column > .vc_column-inner { max-width: 100% !important; }
  #por-que-nosotros > .l-section-h > .g-cols > .wpb_column:first-child .w-image {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  #por-que-nosotros .vc_row_inner > .wpb_column { width: 100% !important; }
  #por-que-nosotros .vc_row_inner > .wpb_column > .vc_column-inner {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  /* barra flotante */
  .ej-cta-bar { display: none !important; }
  .ej-wa-float {
    bottom: 20px !important;
    right: 18px !important;
    font-size: 27px !important;
    padding: 17px 18px !important;
  }
  .w-toplink {
    bottom: 104px !important;
    margin: 0 18px 0 0 !important;
  }
}

@media (max-width: 767px) {
  .wpcf7-form .form-row { flex-direction: column; gap: 0; }
  .wpcf7-form .form-row > p { margin-bottom: 20px; }
}

@media (max-width: 700px) {
  #empresas .vc_row_inner > .wpb_column { width: 100% !important; }

  .ej-medios {
    flex-direction: column !important;
    gap: 14px;
    padding: 22px;
  }
  .ej-medios .ej-medios-txt {
    white-space: normal;
    text-align: center;
    font-size: 18px;
  }
  .ej-medios .ej-medios-logos { width: 100%; }
}

@media (max-width: 600px) {
  .ej-logos .w-grid-item-h { min-height: 70px; }
  .ej-logos .w-post-elm.post_image img { max-width: 150px; max-height: 42px; }

  .filter-casos .w-filter-item,
  .filter-casos .w-filter-item-values { gap: 8px; }
  .filter-casos label,
  .filter-casos .w-filter-item-reset { padding: 8px 14px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  #experiencia .vc_row_inner > .wpb_column { width: 100% !important; }
  #datos-contacto .vc_row_inner > .wpb_column { width: 100% !important; }
}

@media (hover: none) {
  .w-grid-item:hover .usg_vwrapper_1 { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .l-section .us_animate_this {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ej-wa-float { animation: none !important; }
  .filter-casos label,
  .filter-casos .w-filter-item-reset,
  .w-grid-item .usg_vwrapper_1 { transition: none !important; }
  .w-grid-item:hover .usg_vwrapper_1 { transform: none; }
}
