/*
 Theme Name:   Logistic Child
 Description:  Child theme de Logistic para Woodequip
 Author:        Woodequip
 Template:     logistic
 Version:      1.0.0
 Text Domain:  logistic-child
*/


/* ============================================================
   CSS ORIGINAL (migrado desde Personalizar › CSS adicional)
   ============================================================ */

/* Ocultar miniatura destacada en singles */
.single .featured-thumbnail {
  display: none !important;
}

/* Ocultar autor y fecha en single de maquinaria */
.single .post-meta,
.single .entry-meta,
.single .post-info,
.single .meta,
.single .meta-author,
.single .meta-date {
  display: none !important;
}

/* Sticky form solo en desktop */
@media (min-width: 992px) {
  .sticky-form,
  .sticky-form > .wpb_wrapper {
    position: sticky;
    top: 120px;
    align-self: flex-start;
  }
}

/* =========================
   SINGLE MAQUINARIA — SIDEBAR FORM CARD
   ========================= */

/* 1) Separación general entre columnas */
@media (min-width: 992px) {
  .product-content > .vc_column-inner {
    padding-right: 80px !important;
  }
  .product-form-card > .vc_column-inner {
    padding-left: 80px !important;
  }
}

/* 2) Card */
.product-form-card {
  background: #f6f7f9;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* 3) Ajuste fino: padding interno WPBakery */
.product-form-card .vc_column_container > .vc_column-inner {
  padding: 0 !important;
}
.product-form-card .wpb_wrapper > *:first-child { margin-top: 0; }
.product-form-card .wpb_wrapper > *:last-child  { margin-bottom: 0; }

/* 4) Título */
.product-form-card .vc_separator .vc_sep_holder .vc_sep_line {
  border-color: rgba(0,0,0,.12) !important;
}
.product-form-card .vc_separator h1,
.product-form-card .vc_separator h2,
.product-form-card .vc_separator h3,
.product-form-card .vc_separator h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 5) Formulario CF7 */
.product-form-card .wpcf7 { margin-top: 10px; }
.product-form-card .wpcf7 form p { margin: 0 0 14px; }

.product-form-card input[type="text"],
.product-form-card input[type="email"],
.product-form-card input[type="tel"],
.product-form-card select,
.product-form-card textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: none;
  outline: none;
}
.product-form-card textarea {
  min-height: 140px;
  resize: vertical;
}
.product-form-card input:focus,
.product-form-card select:focus,
.product-form-card textarea:focus {
  border-color: rgba(0,0,0,.25);
}

/* Botón */
.product-form-card input[type="submit"],
.product-form-card button,
.product-form-card .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.product-form-card input[type="submit"]:hover,
.product-form-card .wpcf7-submit:hover {
  transform: translateY(-1px);
}

/* 6) Sticky solo en desktop */
@media (min-width: 992px) {
  .product-form-card {
    position: sticky;
    top: 110px;
  }
}

/* 7) Móvil: formulario no apelmazado */
@media (max-width: 991px) {
  .product-sidebar { padding-left: 0; margin-top: 24px; }
  .product-form-card { padding: 18px; border-radius: 12px; }
}

/* Tipografía inputs */
.product-form-card input,
.product-form-card textarea,
.product-form-card select {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
.product-form-card input::placeholder,
.product-form-card textarea::placeholder {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: .65 !important;
}
.product-form-card input,
.product-form-card textarea {
  padding: 14px 16px !important;
  line-height: 1.4;
}

/* ===============================
   LIMPIEZA DE SINGLE MAQUINARIA
   =============================== */
.single-maquinaria #newer-older-posts-wrapper { display: none !important; }
.single-maquinaria .post-submeta              { display: none !important; }

/* ===============================
   BOTÓN CONTACTO EN MENÚ
   =============================== */
@media (min-width: 1025px) {
  .menu-contact-button > a {
    background: #000;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.25s ease;
  }
  .menu-contact-button > a:hover { background: #222; color: #fff; }
  .header-v1 .menu-contact-button > a { display: inline-flex; align-items: center; }
}

/* CONTACTO en móvil — ítem normal */
@media (max-width: 1024px) {
  .menu-contact-button > a {
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: inherit !important;
    box-shadow: none !important;
  }
}

/* ===============================
   ESPACIADO MENÚ ESCRITORIO
   =============================== */
@media (min-width: 1025px) {
  .header-v1 .menu > li { margin-right: 32px; }
}


/* ============================================================
   NUEVOS FIXES RESPONSIVE — WOODEQUIP
   ============================================================ */

/* ---------------------------------------------------------------
   1. HEADER STICKY — garantizar posición fija también en móvil
   --------------------------------------------------------------- */
#header.header-v1 {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Compensar barra de administración cuando el usuario está logado */
.admin-bar #header.header-v1 { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #header.header-v1 { top: 46px; }
}

/* En móvil ocultar la info-bar superior para ganar espacio
   (dirección, horario, teléfono) */
@media (max-width: 1024px) {
  #header.header-v1 #info-bar { display: none; }
}


/* ---------------------------------------------------------------
   2. MENÚ MÓVIL — eliminar resaltado gris al tocar un ítem
   --------------------------------------------------------------- */

/* El tema aplica: body.classic-menu #top-menu ul li:hover { background: rgb(54,54,54) }
   En touch, :hover queda "pegado" después del tap.
   Lo reemplazamos por el azul corporativo (#009ec5) con texto blanco. */
@media (hover: none) {
  body.classic-menu #top-menu ul li:hover {
    background: #009ec5 !important;
  }
  body.classic-menu #top-menu ul li:hover > a {
    color: #fff !important;
  }
}

/* Tap-highlight nativo del navegador (iOS/Android) */
body.classic-menu #top-menu ul li a,
body.classic-menu #top-menu ul li a:visited {
  -webkit-tap-highlight-color: transparent !important;
}

/* Focus/active residual → mismo azul corporativo */
@media (max-width: 1120px) {
  body.classic-menu #top-menu ul li > a:focus,
  body.classic-menu #top-menu ul li > a:active {
    background-color: #009ec5 !important;
    color: #fff !important;
    outline: none !important;
  }
}


/* ---------------------------------------------------------------
   3. HOME — bloque "01 / 02 / 03" (Maquinaria, Experiencia, Servicio)
      En desktop alterna texto-izq/imagen-dcha e imagen-izq/texto-dcha.
      En móvil WPBakery apila las columnas en orden DOM.
      La fila 02 tiene imagen primero en el DOM → la mostramos después
      del texto usando order de flexbox.
   --------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Las columnas están dentro de .parallax-wrapper, no directamente en .vc_row.
     Fila 02 (nth-child 5): imagen-izq / texto-dcha en desktop → invertir en móvil */
  .wpb-content-wrapper > .vc_row:nth-child(5) .parallax-wrapper {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Imagen (primer hijo en DOM) → pasa a segundo visualmente */
  .wpb-content-wrapper > .vc_row:nth-child(5) .parallax-wrapper > .wpb_column:first-child {
    order: 2 !important;
    width: 100% !important;
    float: none !important;
  }
  /* Texto (segundo hijo en DOM) → pasa a primero visualmente */
  .wpb-content-wrapper > .vc_row:nth-child(5) .parallax-wrapper > .wpb_column:last-child {
    order: 1 !important;
    width: 100% !important;
    float: none !important;
  }
}


/* ---------------------------------------------------------------
   4. CONÓCENOS (page-id-2258) — mapa (Revolution Slider) y heading
   --------------------------------------------------------------- */

/* El mapa Revolution Slider tiene lógica JS propia de posicionamiento.
   La opción más limpia en móvil es ocultarlo y mostrar un texto alternativo.
   Si prefieres mantenerlo visible, cambia display:none por overflow:hidden. */
@media (max-width: 767px) {
  .page-id-2258 .vc_row:first-child {
    display: none !important;
  }
}

/* Heading "Por qué las empresas confían en Woodequip" — 70px inline → reducir */
@media (max-width: 767px) {
  .vc_custom_1769602136098 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }
}


/* ---------------------------------------------------------------
   5. PÁGINA MÁQUINAS (page-id-1936)
   --------------------------------------------------------------- */

/* 5a. Espaciado entre título y descripción */
@media (max-width: 767px) {
  .page-id-1936 h1 {
    margin-bottom: 16px !important;
  }
  .page-id-1936 .wpb_text_column.wpb_content_element {
    margin-bottom: 0 !important;
  }
  /* Separación entre el bloque de texto intro y el grid */
  .page-id-1936 .vc_row:first-child {
    padding-bottom: 24px !important;
  }
}

/* 5b. Filtro de categorías — aspecto pill en móvil
   IMPORTANTE: NO cambiar display del contenedor .vc_grid-filter — WPBakery
   lo usa para controlar visibilidad. Solo estilizamos los ítems hijos. */
@media (max-width: 767px) {
  .vc_grid-filter.vc_grid-filter-default {
    text-align: center;
    padding: 0 12px 16px !important;
    border: none !important;
  }
  .vc_grid-filter-item {
    display: inline-block !important;
    margin: 3px 2px !important;
    border: none !important;
    float: none !important;
  }
  .vc_grid-filter-item > span,
  .vc_grid-filter-item > a {
    display: inline-block !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    border: 1px solid currentColor !important;
    border-radius: 20px !important;
    white-space: nowrap;
    line-height: 1.4;
    transition: all 0.2s;
  }
  .vc_grid-filter-item.vc_active > span,
  .vc_grid-filter-item.vc_active > a {
    border-color: transparent !important;
  }
}

/* 5c. Botón "Load more" → "Ver más" */
.vc_grid-btn-load_more a.vc_btn3 {
  font-size: 0 !important;
  letter-spacing: 0 !important;
}
.vc_grid-btn-load_more a.vc_btn3::before {
  content: 'Ver más';
  font-size: 14px;
  letter-spacing: 0.08em;
  font-family: inherit;
  font-weight: 600;
}


/* ---------------------------------------------------------------
   6. PÁGINA CONTACTO (page-id-61) — hero section
   --------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Contener desbordamiento del parallax */
  .page-id-61 .vc_row:first-of-type,
  .vc_custom_1769597214816 {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    background-attachment: scroll !important; /* parallax off en móvil */
  }
  .vc_custom_1769597214816 .parallax-wrapper {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
  }

  /* El heading tiene font-size: 70px inline puesto por WPBakery.
     Necesitamos !important para sobreescribir el style="font-size:70px" */
  .vc_custom_1769597214816 .vc_custom_heading {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
}
