/*
 * Corporate value cards (/valores-corporativos/<slug>/), after the public Wix page: a 980 × 500
 * photo card on "Fondo Verde.jpg" (the value's featured image), a 60 % white panel and a round
 * close button past the photo's top-right corner, with the title and text in Century Gothic at
 * weight 700, as the public page sets them. Wix renders phones as a 320 px layout scaled to
 * the screen: there the photo becomes a banner above the text and close a pill below it; at
 * 480 px and below --u is one pixel of that layout.
 */

/*
 * The public card text is the client's uploaded Century Gothic webfont, which Wix declares as one
 * regular face (ascent 100.6 %, descent 22 % of the size); asked for weight 700, browsers embolden
 * that regular face, which looks lighter than a real bold. This face does the same with an installed
 * Century Gothic or the self-hosted look-alike's regular file (fonts.css, owner decision L120), and no
 * bold face is declared, so 700 is emboldened too. Wix also sets each title line inside a heading
 * whose own font makes the line 3 px taller below the text (2 px in the phone layout); the line heights
 * below add that, and the ascent and descent are tuned from the public 100.6 % / 22 % so the baselines
 * still land on the public ones (measured 2026-10-21 on /valores-corporativos/liderazgo and
 * /estudios-1/asesor%C3%ADas-arqueol%C3%B3gicas, at 1440 px and in the phone layout). The public
 * face is also about 0.4 % wider (0.37 % on the eight value texts, 0.56 % on their names, 0.34 % on
 * the 14 study titles), so size-adjust widens the look-alike to break lines at the same words; the
 * size-adjust also scales the overrides, which is why they read 97.2 % and 24.9 %.
 */
@font-face {
  font-family: "EIATEC Wix Century Gothic";
  src: local("Century Gothic"), local("CenturyGothic"), url("fonts/texgyreadventor-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100.4%;
  ascent-override: 97.2%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}

/* A 16 px gutter left the close button 4 px outside the window from 601 to 1019 px; 20 px keeps it in. */
.eiatec-value-page { --u: 1px; min-height: 501px; padding: 0 20px; background: #fff; }
.eiatec-value-card {
  --eiatec-value-fallback: radial-gradient(70% 95% at 0 100%, rgba(98, 180, 85, .55), transparent 70%),
    radial-gradient(55% 80% at 100% 0, rgba(98, 180, 85, .5), transparent 70%), linear-gradient(120deg, #dcefcf, #f7fbf2 45%, #d6ecc6);
  position: relative; max-width: 980px; min-height: 500px; margin: 0 auto; padding: 29px 29px 29px 42px;
  background-color: #eef6e6; background-image: var(--eiatec-value-background, var(--eiatec-value-fallback));
  background-position: center; background-repeat: no-repeat; background-size: cover;
}
.eiatec-value-banner { display: none; }
.eiatec-value-panel {
  min-height: 442px; padding: 28px 97px 28px 96px; background: rgba(255, 255, 255, .6); color: #083037;
  font-family: "EIATEC Wix Century Gothic", "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}
/* Public: 55 px on 77 px lines, each 3 px taller (80 px); the text starts 97 px below the title's top. */
.eiatec-value-title {
  max-width: 450px; margin: 0 auto 17px; color: #1b80c3; font-family: inherit;
  font-size: 55px; font-weight: 700; line-height: 80px; text-align: center; overflow-wrap: anywhere;
}
.eiatec-value-description p {
  margin: 0; color: #083037; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 23.8px;
}
.eiatec-value-close {
  position: absolute; top: 6px; right: -20px; display: grid; width: 40px; height: 40px; place-items: center;
  border-radius: 100px; background: #282626; color: #fff; text-decoration: none;
}
.eiatec-value-close svg { display: block; width: 18px; height: 18px; }
.eiatec-value-close:focus-visible { outline: 2px solid #1b80c3; outline-offset: 3px; }

@media (max-width: 600px) {
  .eiatec-value-page { min-height: 0; padding: calc(20 * var(--u)); }
  .eiatec-value-card { display: flex; flex-direction: column; min-height: 0; max-width: none; padding: 0; background: none; }
  .eiatec-value-banner {
    display: block; height: calc(143 * var(--u));
    background: var(--eiatec-value-background, var(--eiatec-value-fallback)) center / cover no-repeat, #eef6e6;
  }
  .eiatec-value-panel { min-height: 0; padding: calc(20 * var(--u)) calc(10 * var(--u)) 0; background: none; }
  .eiatec-value-title { max-width: none; margin: 0 0 calc(10 * var(--u)); font-size: calc(27 * var(--u)); line-height: calc(39.8 * var(--u)); }
  .eiatec-value-description p { font-size: calc(16 * var(--u)); line-height: calc(22.4 * var(--u)); }
  .eiatec-value-close {
    position: static; align-self: center; width: calc(120 * var(--u)); height: calc(42 * var(--u)); margin-top: calc(72 * var(--u));
  }
  .eiatec-value-close svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
}
@media (max-width: 480px) {
  .eiatec-value-page { --u: calc(100vw / 320); }
}
