/* ============================================================
   PROSER México — AJUSTES SOBRE EL DISEÑO ORIGINAL (pedidos por María, 30 nov 2026)
   Todo lo que difiere del sitio WordPress original vive aquí; el resto (sitio.css y
   <pagina>.css) es el diseño de Elementor tal cual.
   ============================================================ */

/* ---------- Menú desplegable (celular y tablet) ---------- */
@media (max-width: 1024px) {
  /* Va pegado abajo de la barra (antes se encimaba ~13 px sobre ella; el top lo pone main.js) */
  body .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 14px 28px rgba(9, 29, 66, .22);
    overflow: hidden;
  }
  body .elementor-nav-menu--dropdown .elementor-item {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(29, 58, 124, .10);
  }
  body .elementor-nav-menu--dropdown li:last-child .elementor-item { border-bottom: 0; }
}

@media (max-width: 767px) {

  /* ---------- Títulos del banner centrados (estaban fijos a 91–96 px de la izquierda) ---------- */
  body .elementor .elementor-element.elementor-element-7d8359d,
  body .elementor .elementor-element.elementor-element-5c815872,
  body .elementor .elementor-element.elementor-element-29fd691,
  body .elementor .elementor-element.elementor-element-99870c0 {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px;
    box-sizing: border-box;
  }
  body .elementor-element-7d8359d .elementor-heading-title,
  body .elementor-element-5c815872 .elementor-heading-title,
  body .elementor-element-29fd691 .elementor-heading-title,
  body .elementor-element-99870c0 .elementor-heading-title { text-align: center !important; }

  /* ---------- Inicio: bloque azul "Servicios" a todo lo ancho (medía 379 px y dejaba un hueco blanco) ---------- */
  body .elementor-10 .elementor-element.elementor-element-0faf735 {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ---------- Productos: iconos por especie con espaciado parejo ---------- */
  body .elementor-1043 .elementor-element.elementor-element-bf769a5 {
    --width: 100% !important;
    width: 100% !important;
    --padding-top: 28px; --padding-bottom: 28px; --padding-left: 16px; --padding-right: 16px;
    padding: 28px 16px !important;
    row-gap: 30px !important;
    column-gap: 12px !important;
    align-items: start !important;
  }
  body .elementor-1043 .elementor-element-bf769a5 > .elementor-widget-image-box { margin: 0 !important; }
  body .elementor-1043 .elementor-element-bf769a5 > .elementor-widget-image-box .elementor-widget-container { padding: 0 !important; }
  body .elementor-1043 .elementor-element-bf769a5 .elementor-image-box-wrapper .elementor-image-box-img {
    width: 76px !important;
    height: 76px;
    margin: 0 auto 12px !important;
    display: flex; align-items: center; justify-content: center;
  }
  body .elementor-1043 .elementor-element-bf769a5 .elementor-image-box-img img { width: 64px !important; height: 64px !important; object-fit: contain; }
  body .elementor-1043 .elementor-element-bf769a5 .elementor-image-box-title { font-size: 19px !important; line-height: 1.25 !important; }
  body .elementor-1043 .elementor-element-bf769a5 .elementor-image-box-description { margin-top: 2px; }
  /* el quinto (Otras soluciones) centrado debajo de los otros cuatro */
  body .elementor-1043 .elementor-element.elementor-element-5f7e151 { grid-column: 1 / -1; justify-self: center; width: 70%; }

  /* ---------- "¿Buscas atención…?": datos de contacto y formulario centrados ---------- */
  /* cada dato centrado con su icono pegado al texto */
  body .elementor-element-1fc1e3a .elementor-icon-list-item,
  body .elementor-element-1fc1e3a .elementor-icon-list-item > a {
    display: block !important; text-align: center !important;
  }
  body .elementor-element-1fc1e3a .elementor-icon-list-item { padding-bottom: 8px !important; }
  body .elementor-element-1fc1e3a .elementor-icon-list-icon {
    display: inline-flex !important; vertical-align: middle; margin-right: 6px; position: relative; top: -1px;
  }
  body .elementor-element-1fc1e3a .elementor-icon-list-text { display: inline !important; padding-left: 0 !important; }
  body .elementor-form .elementor-field-textual { text-align: center; }
  body .elementor-form .elementor-field-textual::placeholder { text-align: center; }
  body .elementor-form .e-form__buttons { justify-content: center !important; width: 100% !important; flex-basis: 100% !important; max-width: 100% !important; }
  body .elementor-form .e-form__buttons .elementor-button { margin: 0 auto; }

  /* ---------- Pie de página (el general y el de Contacto): una sola columna centrada y pareja ---------- */
  body .elementor .elementor-element.elementor-element-224c599c,
  body .elementor .elementor-element.elementor-element-cfc97c2 {
    --flex-direction: column; flex-direction: column !important; flex-wrap: nowrap !important;
    align-items: center !important;
    --gap: 36px; --row-gap: 36px; gap: 36px !important;
    --padding-top: 56px; --padding-bottom: 44px; --padding-left: 24px; --padding-right: 24px;
    padding: 56px 24px 44px !important;
  }
  body .elementor-element-224c599c > .e-con,
  body .elementor-element-cfc97c2 > .e-con {
    margin: 0 !important;
    --margin-top: 0; --margin-bottom: 0;
    width: 100% !important; max-width: 420px !important;
    --gap: 14px; gap: 14px !important;
    align-items: center !important;
  }
  /* orden: Contacto, Acceso rápido, logo + copyright */
  body .elementor-element-2bce5f49 { order: 1; }
  body .elementor-element-47a4a78, body .elementor-element-ce25b2b { order: 2; }
  body .elementor-element-7e80882c, body .elementor-element-55aa855 { order: 3; --gap: 18px; gap: 18px !important; }
  body .elementor-element-224c599c .elementor-heading-title,
  body .elementor-element-cfc97c2 .elementor-heading-title { text-align: center !important; }
  body .elementor-element-224c599c .elementor-widget,
  body .elementor-element-cfc97c2 .elementor-widget { width: 100%; margin: 0 !important; }
  /* listas de enlaces: un bloque centrado con las flechitas alineadas */
  body .elementor-element-e0c1295 .elementor-widget-container,
  body .elementor-element-28a13ba .elementor-widget-container { text-align: center; }
  body .elementor-element-e0c1295 .elementor-icon-list-items,
  body .elementor-element-28a13ba .elementor-icon-list-items {
    display: inline-flex !important; flex-direction: column; align-items: flex-start; text-align: left;
  }
  body .elementor-element-e0c1295 .elementor-icon-list-item,
  body .elementor-element-28a13ba .elementor-icon-list-item { justify-content: flex-start !important; padding-bottom: 6px !important; }
  /* logo del pie centrado */
  body .elementor-element-19836d4d, body .elementor-element-852d163 { width: auto !important; margin: 0 auto !important; }
  body .elementor-element-19836d4d .elementor-image-box-wrapper,
  body .elementor-element-852d163 .elementor-image-box-wrapper { text-align: center !important; }
  body .elementor-element-19836d4d .elementor-image-box-img,
  body .elementor-element-852d163 .elementor-image-box-img { margin: 0 auto !important; }
}

/* ---------- SEO: título principal (H1) solo para Google y lectores de pantalla en Inicio ---------- */
.sm-sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---------- Páginas nuevas: 404 y Aviso de privacidad (mismo encabezado y pie del sitio) ---------- */
.sm-main { display: block; }
.sm-page { font-family: "Sora", Sans-serif; color: #1D3A7C; }
.sm-page__inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.sm-btn {
  display: inline-block; padding: 13px 26px; border-radius: 35px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; border: 2px solid transparent;
}
.sm-btn--primary { background: #FF8133; color: #fff; }
.sm-btn--primary:hover, .sm-btn--primary:focus { background: #BAD1FD; color: #1D3A7C; }
.sm-btn--ghost { border-color: #BAD1FD; color: #fff; }
.sm-btn--ghost:hover, .sm-btn--ghost:focus { background: #BAD1FD; color: #1D3A7C; }

/* 404: todo en azul de marca */
.sm-404 { background: #1D3A7C; color: #fff; text-align: center; padding: 170px 0 110px; }
.sm-404__code { font-size: clamp(96px, 18vw, 170px); line-height: 1; font-weight: 700; color: #FF8133; margin: 0 0 10px; letter-spacing: -2px; }
.sm-404 .sm-page__title { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0 0 14px; }
.sm-page__lead { font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 auto 32px; color: #DBE8FF; }
.sm-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Aviso de privacidad: franja azul con el título y texto legal en blanco */
.sm-hero { background: #1D3A7C; color: #fff; padding: 160px 24px 56px; text-align: center; }
.sm-hero .sm-page__title { color: #fff; font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin: 0 0 8px; }
.sm-legal__date { color: #BAD1FD; font-size: 15px; margin: 0; }
.sm-legal { background: #fff; padding-bottom: 72px; }
.sm-legal .sm-page__inner { padding-top: 48px; font-size: 16px; line-height: 1.7; color: #1f2a44; }
.sm-legal h2 { color: #1D3A7C; font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.sm-legal h2:first-child { margin-top: 0; }
.sm-legal p { margin: 0 0 14px; }
.sm-legal ul { margin: 0 0 14px; padding-left: 22px; }
.sm-legal li { margin-bottom: 6px; }
.sm-legal a { color: #1D3A7C; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sm-legal a:hover { color: #FF8133; }
@media (max-width: 767px) {
  .sm-404 { padding: 130px 0 80px; }
  .sm-hero { padding: 130px 20px 40px; }
  .sm-legal .sm-page__inner { padding-top: 32px; font-size: 15px; }
  .sm-legal h2 { font-size: 19px; margin-top: 28px; }
}

/* Enlace al aviso de privacidad junto al copyright */
.sm-aviso { display: block; margin-top: 6px; color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; opacity: .9; }
.sm-aviso:hover { color: #FF8133 !important; opacity: 1; }
.sm-aviso-sep { display: none; }

/* reCAPTCHA diferido: se reserva el espacio del sello para que nada se mueva cuando aparece */
.elementor-field-type-recaptcha_v3.recaptcha_v3-inline .elementor-field { min-height: 60px; }

/* ---------- Fondos más ligeros en celular (versión de 960 px de cada banner; generado) ---------- */
@media (max-width: 767px) {
  .elementor-10 .elementor-element.elementor-element-d57df00:not(.elementor-motion-effects-element-type-background), .elementor-10 .elementor-element.elementor-element-d57df00 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/proser-banners-pagina-web-9-960.webp"); }
  .elementor-10 .elementor-element.elementor-element-c0dd9a9:not(.elementor-motion-effects-element-type-background), .elementor-10 .elementor-element.elementor-element-c0dd9a9 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/proser-banners-pagina-web-3-960.webp"); }
  .elementor-16 .elementor-element.elementor-element-167d4516:not(.elementor-motion-effects-element-type-background), .elementor-16 .elementor-element.elementor-element-167d4516 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/untitled-design-8-960.webp"); }
  .elementor-392 .elementor-element.elementor-element-2d5a8d5e:not(.elementor-motion-effects-element-type-background), .elementor-392 .elementor-element.elementor-element-2d5a8d5e > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/untitled-design-9-960.webp"); }
  .elementor-392 .elementor-element.elementor-element-40c59834:not(.elementor-motion-effects-element-type-background), .elementor-392 .elementor-element.elementor-element-40c59834 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/woman-feeding-two-brown-cows-on-a-farm-960.webp"); }
  .elementor-1043 .elementor-element.elementor-element-167d4516:not(.elementor-motion-effects-element-type-background), .elementor-1043 .elementor-element.elementor-element-167d4516 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/untitled-design-2-960.webp"); }
  .elementor-1489 .elementor-element.elementor-element-fb67c6b:not(.elementor-motion-effects-element-type-background), .elementor-1489 .elementor-element.elementor-element-fb67c6b > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../img/young-multiracial-farmer-people-working-together-i-2025-02-21-10-06-35-utc-scaled-960.webp"); }
}

/* ---------- Inicio, "Nuestra esencia": la foto llega hasta el borde derecho en pantallas anchas
   (Elementor la limitaba a 800 px y en monitores de más de 1600 px quedaba una franja azul) ---------- */
@media (min-width: 1025px) {
  body .elementor-10 .elementor-element.elementor-element-b1a697f img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: 900px;
    object-fit: cover;
    display: block;
  }
}

/* ---------- Consistencia (revisión 30 nov 2026) ---------- */
/* Textos de "Nuestra esencia" en Inicio: estaban en negro; todo el sitio usa el azul de marca */
body .elementor-10 .elementor-element.elementor-element-841b76b,
body .elementor-10 .elementor-element.elementor-element-841b76b p,
body .elementor-10 .elementor-element.elementor-element-b1937ab,
body .elementor-10 .elementor-element.elementor-element-b1937ab p { color: var(--e-global-color-primary) !important; }
/* Botones "Ver más": mismo relleno y redondeo que el resto de botones (12px 24px, radio 35px) */
body .elementor-10 .elementor-element.elementor-element-fd9a8a8 .elementor-button,
body .elementor-10 .elementor-element.elementor-element-932fc30 .elementor-button,
body .elementor-10 .elementor-element.elementor-element-7726aeb .elementor-button {
  padding: 12px 24px !important; border-radius: 35px !important;
}
/* Botón Enviar de Contacto: mismo relleno que los demás formularios */
body .elementor-element-487e1b2 .elementor-button { padding-left: 24px !important; padding-right: 24px !important; }
/* Título del Aviso de privacidad: mismo tamaño y peso que los títulos de banner de las demás páginas */
.sm-hero .sm-page__title { font-size: 44.64px; font-weight: 600; }
/* Nombres de especie en Productos: mismo tamaño que en Inicio */
@media (min-width: 768px) {
  body .elementor-1043 .elementor-element-bf769a5 .elementor-image-box-title { font-size: 22px !important; }
}
@media (max-width: 767px) {
  .sm-hero .sm-page__title { font-size: 40px; }
  /* Texto de "Nuestra esencia" en celular: 16px como todos los párrafos */
  body .elementor-10 .elementor-element.elementor-element-841b76b,
  body .elementor-10 .elementor-element.elementor-element-841b76b p { font-size: 16px !important; line-height: 1.6 !important; }
  /* Pestañas de Servicios y Productos: margen lateral de 20px (estaba en 10px, más pegado que el resto del sitio) */
  body .elementor-element.elementor-element-851f906, body .elementor-element.elementor-element-0545046,
  body .elementor-element.elementor-element-818d3e0, body .elementor-element.elementor-element-f4f4ceb,
  body .elementor-element.elementor-element-130c811, body .elementor-element.elementor-element-32e2983 {
    --padding-left: 20px !important; --padding-right: 20px !important;
  }
}

/* ---------- Escala de títulos unificada (aprobada por María, 30 nov 2026) ----------
   Títulos de sección (H2): 36px escritorio / 30px celular, peso 600 (antes 32, 37, 41 y 48 según la página).
   Títulos de tarjeta (Misión, Visión, Correo, Teléfono, Dirección): 26px / 22px, peso 600. */
@media (min-width: 768px) {
  body .elementor-widget-heading h2.elementor-heading-title { font-size: 36px !important; font-weight: 600 !important; }
  body .elementor-element-d49613c h3, body .elementor-element-72c2b42 h3,
  body .elementor-element-6ab9782 .elementor-icon-box-title, body .elementor-element-17221fa .elementor-icon-box-title,
  body .elementor-element-1b45ae2 .elementor-icon-box-title { font-size: 26px !important; font-weight: 600 !important; }
  /* excepciones: frase destacada de Nosotros y etiqueta pequeña, se quedan como estaban */
  body .elementor-widget-heading.elementor-element-2dad3253 h2.elementor-heading-title { font-size: 32px !important; }
  body .elementor-widget-heading.elementor-element-3e4cf3e5 h2.elementor-heading-title { font-size: 32px !important; } /* etiqueta lateral 'Sobre nosotros' */
  body .elementor-widget-heading.elementor-element-503fe946 h2.elementor-heading-title { font-size: 16px !important; font-weight: 500 !important; }
}
@media (max-width: 767px) {
  body .elementor-widget-heading h2.elementor-heading-title { font-size: 30px !important; font-weight: 600 !important; }
  body .elementor-element-d49613c h3, body .elementor-element-72c2b42 h3,
  body .elementor-element-6ab9782 .elementor-icon-box-title, body .elementor-element-17221fa .elementor-icon-box-title,
  body .elementor-element-1b45ae2 .elementor-icon-box-title { font-size: 22px !important; font-weight: 600 !important; }
  body .elementor-widget-heading.elementor-element-2dad3253 h2.elementor-heading-title { font-size: 21px !important; }
  body .elementor-widget-heading.elementor-element-503fe946 h2.elementor-heading-title { font-size: 12px !important; font-weight: 500 !important; }
}
