/* Semac v0.12.88 — the approved dark treatment on institutional cards.
 * Delivery conditions: PC + mobile. Remaining changes: desktop >= 1024px.
 * No changes to forms, Google validation, delivery rules, markup or carousel logic.
 */
@media screen {
  body.semac-theme #semac-info-main {
    --semac-info-dark-surface:linear-gradient(135deg,#10271c,#0b4329);
    --semac-info-dark-border:#1b5838;
    --semac-info-dark-text:#d2e6d9;
    --semac-info-dark-accent:#70e39d;
  }
  /* Replace the former charcoal / bright top border on the three conditions.
   * Card geometry and every piece of operating information are unchanged. */
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority {
    background:var(--semac-info-dark-surface)!important;
    border:1px solid var(--semac-info-dark-border)!important;
    box-shadow:0 10px 26px rgba(6,34,20,.13);
    color:var(--semac-info-dark-text);
  }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority .semac-delivery-important-icon {
    background:rgba(112,227,157,.12);
    border:1px solid rgba(112,227,157,.22);
    color:var(--semac-info-dark-accent);
    box-shadow:none;
    box-sizing:border-box;
  }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority span { color:var(--semac-info-dark-accent); }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority h3 { color:#fff; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority p { color:var(--semac-info-dark-text); }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-important-card.is-priority p strong {
    background:rgba(112,227,157,.12);
    border:1px solid rgba(112,227,157,.22);
    color:#b5f2cc;
    box-shadow:none;
  }
}

@media screen and (min-width:1024px) {
  /* CONTACTO — same surface and contrast as the approved mobile form.
   * Desktop dimensions, submission, CAPTCHA and validation stay untouched. */
body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-card {
    background:var(--semac-info-dark-surface)!important;
    border-color:var(--semac-info-dark-border);color:#f1fbf5;
    box-shadow:0 10px 26px rgba(6,34,20,.14);
  }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-heading { border-color:rgba(151,221,179,.25); }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-heading h2 { color:#fff; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-heading .semac-eyebrow { color:#70e39d; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-heading > div > p:last-child { color:#d2e6d9; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-heading-icon { background:rgba(112,227,157,.12);color:#70e39d;border:1px solid rgba(112,227,157,.22); }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(.wpcf7,.wpcf7-form,.wpforms-container,.wpforms-form) { background:transparent!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap { color:#d2e6d9; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap label,
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap .wpforms-field-label { color:#f1fbf5!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(.wpforms-field-description,.wpforms-field-sublabel) { color:#d2e6d9!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap a { color:#92efb3;text-decoration:underline;text-underline-offset:3px; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(input[type=text],input[type=email],input[type=tel],input[type=url],select,textarea) {
    background:#f8fcfa!important;color:#193425!important;
    border:1px solid #70b78c!important;border-radius:10px!important;
  }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(input,textarea)::placeholder { color:#687d70!important;opacity:1; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(input,select,textarea):focus { border-color:#77e0a0!important;box-shadow:0 0 0 3px rgba(112,227,157,.22)!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(input[type=submit],button[type=submit]) {
    min-height:46px!important;
    border-color:#58bb7f!important;color:#fff!important;
    background:linear-gradient(135deg,#00853f,#009a4b)!important;
  }
  /* Keep visible validation errors and responses; do not hide CAPTCHA or notices. */
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(.wpcf7-not-valid-tip,em.wpforms-error,.wpforms-required-label) { color:#ffbdb5!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap :is(.wpcf7-response-output,.wpforms-confirmation-container-full) {
    background:#edf9f1!important;color:#17482e!important;border-color:#74ce96!important;
  }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap .wpcf7-form:is(.invalid,.failed,.spam) .wpcf7-response-output { background:#fff5e6!important;color:#654518!important;border-color:#ebbb72!important; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap .wpcf7-spinner { background:#dbf3e4; }
  body.semac-theme #semac-info-main.semac-info-page--contacto .semac-contact-form-wrap .wpcf7-spinner::before { background:#0b4329; }

  /* DELIVERY — dark finder, light input and readable suggestions. */
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder {
    background:var(--semac-info-dark-surface)!important;border-color:var(--semac-info-dark-border);color:#e2f3e8;
    box-shadow:0 10px 26px rgba(6,34,20,.13);
  }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder .semac-public-delivery-heading h2 { color:#fff; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder .semac-public-delivery-heading .semac-eyebrow { color:#70e39d; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder .semac-public-delivery-heading p:last-child { color:#d2e6d9; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder .semac-info-section-icon { background:rgba(112,227,157,.12);color:#70e39d;border:1px solid rgba(112,227,157,.22); }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder-box { width:100%;box-sizing:border-box;background:rgba(255,255,255,.035);border-color:#32654b; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder-box > label { color:#f1fbf5; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder-input-wrap { background:#f8fcfa;border-color:#70b78c;min-width:0; }
  body.semac-theme #semac-info-main.semac-info-page--delivery #semac-delivery-address { min-width:0;color:#193425; }
  body.semac-theme #semac-info-main.semac-info-page--delivery #semac-delivery-address::placeholder { color:#657e6e; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-finder-input-wrap:focus-within { box-shadow:0 0 0 3px rgba(112,227,157,.20);border-color:#70e39d; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-status { color:#d2e6d9; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-status.is-valid { color:#80e7a6; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-status.is-warning { color:#ffd49a; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-result:not(.is-outside) { background:#0d2c1e;border-color:#43835b; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-result:not(.is-outside) strong { color:#fff; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-result:not(.is-outside) span { color:#86eaae; }
  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-result:not(.is-outside) small { color:#d2e6d9; }
  body.semac-theme #semac-info-main.semac-info-page--delivery :is(.semac-delivery-page-suggestions,.semac-delivery-lookup-result)[hidden] { display:none!important; }

  body.semac-theme #semac-info-main.semac-info-page--delivery .semac-delivery-lookup-status.is-loading { color:#d2e6d9; }

  /* EMPRESA — v0.12.100: copy 44% / gallery 56%, aligned at BOTH edges.
   * Text starts at the top instead of floating in the centre. The carousel is
   * allowed to grow with the copy, but no longer grows to 4:3 of an ultrawide
   * column. The photograph, caption and dots keep a stable, separate area. */
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) {
    display:grid;
    grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);
    gap:24px;
    align-items:stretch;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) > .semac-company-copy-card,
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) > .semac-company-carousel {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    margin:0;
    align-self:stretch;
    border-radius:18px;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) > .semac-company-copy-card {
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding:clamp(24px,2.4vw,38px);
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-copy-card > .semac-eyebrow {
    margin:0 0 12px;
    color:#008f43;
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
    line-height:1.4;
    text-transform:uppercase;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-copy-card > h2 {
    margin:0 0 18px;
    font-size:clamp(28px,2.2vw,36px);
    line-height:1.16;
    text-wrap:balance;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-copy-card > p:not(.semac-eyebrow) {
    margin:0 0 14px;
    font-size:15px;
    line-height:1.65;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-chips {
    gap:8px;
    margin:4px 0 0;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-chips span {
    box-sizing:border-box;
    max-width:100%;
    padding:8px 10px;
    font-size:12px;
    line-height:1.4;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-actions {
    margin-top:auto;
    padding-top:20px;
    gap:10px;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-stage {
    flex:1 1 0;
    min-height:clamp(360px,29vw,500px)!important;
    height:auto;
    aspect-ratio:auto;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide {
    display:grid;
    grid-template-rows:minmax(0,1fr) 116px;
    min-height:0;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide[hidden] { display:none!important; }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide img {
    display:block;
    width:100%;
    height:100%;
    min-height:0!important;
    max-height:none;
    object-fit:cover;
  }
  /* The new facade has sky above the sign. Frame its middle area in the
   * desktop viewport; preserve the photo file and all other slide framing. */
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide:first-child img { object-position:center 43%; }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide figcaption {
    box-sizing:border-box;
    min-height:0;
    height:116px;
    padding:18px 22px;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-slide figcaption span { max-width:100%; }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-footer {
    box-sizing:border-box;
    min-height:52px;
    align-items:center;
    gap:14px;
    padding:12px 18px;
  }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-footer > span { padding-top:0; }
  body.semac-theme #semac-info-main.semac-info-page--empresa .semac-company-intro:not(.semac-company-intro--single) .semac-company-carousel-arrow {
    top:calc((100% - 116px) / 2);
    margin-top:-21px;
  }
}
