/* ==========================================================================
   PERGE Home v1
   HTML/CSS/JS estático — pensado para cPanel
   ========================================================================== */

:root {
  --bg: #07090b;
  --surface: #0d1013;
  --surface-2: #11151a;
  --text: #f4f5f7;
  --muted: #a8afb8;
  --line: rgba(255,255,255,.12);

  --orange: #eb340a;
  --blue: #0037ea;
  --green: #0f5749;

  --shell: 1440px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.035), transparent 30%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: white;
  color: black;
  border-radius: 8px;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to bottom, rgba(4,6,8,.72), rgba(4,6,8,.08));
  backdrop-filter: blur(4px);
}

.nav-wrap {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: .075em;
  font-size: 1.15rem;
}

.brand-copy small {
  margin-top: 6px;
  color: #c9cdd2;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 600;
}

.desktop-nav a {
  transition: color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: white;
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
}

.menu-button,
.mobile-menu {
  display: none;
}

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

.hero {
  position: relative;
  min-height: min(910px, 100vh);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background:
    url("../assets/images/herov1.webp") center center / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.96) 0%,
      rgba(3,5,7,.88) 24%,
      rgba(3,5,7,.54) 47%,
      rgba(3,5,7,.10) 72%,
      rgba(3,5,7,.13) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.77) 0%,
      rgba(3,5,7,0) 46%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-inner {
  min-height: min(910px, 100vh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 90px;
}

.hero-copy {
  max-width: 760px;
  padding-block: 80px;
}

.eyebrow,
.kicker,
.area-label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .74rem;
  font-weight: 750;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.72);
}

.eyebrow-line {
  width: 42px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.5rem, 7vw, 8.25rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 790;
}

.hero h1 span {
  display: block;
  margin-top: .06em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255,.78);
  text-stroke: 1.4px rgba(255,255,255,.78);
}

.hero-copy > p {
  max-width: 620px;
  margin: 34px 0 0;
  color: #d1d5da;
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 750;
}

.button-primary {
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(235, 52, 10, .22);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(235, 52, 10, .28);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7dbe0;
  font-size: .9rem;
  font-weight: 650;
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-index {
  align-self: flex-end;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px;
  padding-bottom: 36px;
  color: rgba(255,255,255,.36);
  font-size: .72rem;
  letter-spacing: .16em;
}

/* Areas ------------------------------------------------------------------- */

.areas-section {
  padding: 112px 0 128px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.kicker {
  color: var(--orange);
}

.section-heading h2,
.perge-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.7rem, 4.1vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.area-card {
  --accent: var(--orange);
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    border-color .35s ease;
}

.area-card--orange { --accent: var(--orange); }
.area-card--blue { --accent: var(--blue); }
.area-card--green { --accent: var(--green); }

.area-image,
.area-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.area-image {
  z-index: -3;
  object-fit: cover;
  transition:
    transform .7s cubic-bezier(.2,.8,.2,1),
    filter .5s ease;
}

.area-overlay {
  z-index: -2;
  background:
    linear-gradient(to top,
      rgba(4,6,8,.97) 0%,
      rgba(4,6,8,.85) 32%,
      rgba(4,6,8,.24) 63%,
      rgba(4,6,8,.08) 100%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, transparent) 0%,
      transparent 34%);
}

.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 0%, transparent);
  transition: box-shadow .3s ease;
  pointer-events: none;
}

.area-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 52%, rgba(255,255,255,.16));
}

.area-card:hover::after {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 52%, transparent);
}

.area-card:hover .area-image {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.area-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: .72rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .16em;
  font-weight: 700;
}

.area-content {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 30px;
}

.area-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13),
    0 10px 28px rgba(0,0,0,.28);
}

.area-label {
  display: inline-block;
  margin-bottom: 9px;
  color: color-mix(in srgb, var(--accent) 72%, white 28%);
}

.area-content h3 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 2.55vw, 3rem);
  line-height: .96;
  letter-spacing: -.045em;
}

.area-content p {
  max-width: 41ch;
  margin: 15px 0 0;
  color: #d1d4d8;
  font-size: .96rem;
  line-height: 1.62;
}

.area-button {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, rgba(255,255,255,.18));
  border-radius: 12px;
  background: rgba(6,8,10,.48);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition:
    background .2s ease,
    border-color .2s ease;
}

.area-button span {
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--accent) 72%, white 28%);
}

.area-button:hover,
.area-button:focus-visible {
  background: color-mix(in srgb, var(--accent) 13%, rgba(6,8,10,.66));
  border-color: color-mix(in srgb, var(--accent) 90%, white 10%);
}

/* Corporate section ------------------------------------------------------- */

.perge-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 120px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 42%),
    var(--surface);
}

.perge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.perge-copy > p {
  margin: 0;
  max-width: 660px;
  color: #c9ced4;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.75;
}

.capability-list {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.capability-list > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list strong {
  color: var(--orange);
  font-size: .74rem;
  letter-spacing: .16em;
}

.capability-list span {
  color: #eef0f2;
  font-weight: 600;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 58px 0;
  background: #050607;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px 60px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  letter-spacing: .1em;
  font-weight: 800;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-brand p,
.footer-legal {
  color: #777f88;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: .88rem;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: .86rem;
}

.footer-contact > span {
  margin-bottom: 5px;
  color: #6f7780;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .66rem;
  font-weight: 700;
}

.footer-contact a {
  color: #d2d6da;
}

.footer-contact a:hover {
  color: white;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .76rem;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card,
  .area-content {
    min-height: 620px;
  }

  .area-card {
    max-width: 820px;
  }

  .area-content {
    max-width: 520px;
  }

  .area-image {
    object-position: center 36%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(0,0,0,.18);
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 16px;
    height: 1px;
    background: white;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    background: rgba(7,9,11,.97);
    backdrop-filter: blur(14px);
  }

  .mobile-menu-inner {
    display: grid;
    gap: 0;
    padding-block: 10px 18px;
  }

  .mobile-menu-inner a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg,
        rgba(3,5,7,.94) 0%,
        rgba(3,5,7,.76) 55%,
        rgba(3,5,7,.28) 100%),
      linear-gradient(0deg,
        rgba(3,5,7,.86) 0%,
        rgba(3,5,7,.06) 55%);
  }

  .hero-copy {
    max-width: 610px;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(4rem, 13vw, 6.8rem);
  }

  .hero-index {
    display: none;
  }

  .perge-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand-copy small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 118px;
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 17vw, 5.15rem);
    line-height: .9;
  }

  .hero-copy > p {
    font-size: .98rem;
    line-height: 1.58;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .areas-section {
    padding: 84px 0 96px;
  }

  .section-heading h2,
  .perge-heading h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .area-card,
  .area-content {
    min-height: 620px;
  }

  .area-content {
    padding: 22px;
  }

  .area-logo {
    width: 48px;
    height: 48px;
  }

  .area-content h3 {
    max-width: 12ch;
    font-size: 2.15rem;
  }

  .area-content p {
    font-size: .91rem;
  }

  .perge-section {
    padding: 90px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ==========================================================================
   PERGE Home V2 — dirección visual simplificada
   ========================================================================== */

body {
  font-family:
    Bahnschrift, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.site-header {
  background: linear-gradient(to bottom, rgba(4,6,8,.55), rgba(4,6,8,0));
  border-bottom-color: rgba(255,255,255,.055);
  backdrop-filter: blur(2px);
}

.nav-wrap {
  grid-template-columns: 1fr auto;
  min-height: 76px;
}

.desktop-nav {
  justify-self: start;
  gap: 34px;
}

.header-cta {
  justify-self: end;
}

/* Hero más compacto para que las áreas aparezcan desde la primera pantalla */
.hero,
.hero-inner {
  min-height: 58vh;
  max-height: 650px;
}

.hero-inner {
  align-items: flex-end;
  padding-top: 76px;
}

.hero-copy {
  max-width: 780px;
  padding: 110px 0 76px;
}

.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.97) 0%,
      rgba(3,5,7,.89) 25%,
      rgba(3,5,7,.58) 48%,
      rgba(3,5,7,.12) 74%,
      rgba(3,5,7,.16) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.9) 0%,
      rgba(3,5,7,0) 56%);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family:
    Bahnschrift, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  text-transform: none;
  line-height: .9;
  letter-spacing: -.065em;
}

.hero-title-top,
.hero-title-main {
  display: block;
}

.hero h1 .hero-title-top {
  color: #f2f2f2;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 780;
  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 5px 18px rgba(0,0,0,.22);
}

.hero h1 .hero-title-main {
  margin-top: 6px;
  color: #17191b;
  -webkit-text-stroke: 1px rgba(255,255,255,.34);
  text-stroke: 1px rgba(255,255,255,.34);
  font-size: clamp(5.4rem, 9.7vw, 10.2rem);
  font-weight: 780;
  line-height: .78;
  letter-spacing: -.075em;
  text-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 1px 0 rgba(255,255,255,.14),
    0 8px 24px rgba(0,0,0,.32);
}

.hero-copy > p {
  max-width: 590px;
  margin-top: 28px;
  color: #d4d7db;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.98rem, 1.2vw, 1.13rem);
  line-height: 1.6;
}

/* Áreas mucho más cercanas al hero */
.areas-section {
  position: relative;
  z-index: 3;
  padding: 28px 0 112px;
  margin-top: -22px;
}

.section-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-family:
    Bahnschrift, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 520px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .93rem;
  line-height: 1.55;
}

/* Tarjetas visuales más compactas y presentes */
.area-card,
.area-content {
  min-height: 585px;
}

.area-card {
  border-radius: 20px;
}

.area-content {
  padding: 26px;
}

.area-logo {
  width: 50px;
  height: 50px;
}

.area-label {
  display: none;
}

.area-content h3 {
  font-family:
    Bahnschrift, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.8rem, 2.25vw, 2.65rem);
  letter-spacing: -.045em;
}

.area-content p {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.area-button {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ya no se usan en V2 */
.eyebrow,
.hero-actions,
.hero-index,
.area-number,
.perge-section {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero,
  .hero-inner {
    min-height: 620px;
    max-height: none;
  }

  .areas-section {
    margin-top: 0;
    padding-top: 72px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .area-card,
  .area-content {
    min-height: 600px;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .hero-inner {
    min-height: 690px;
  }

  .hero-copy {
    padding-top: 160px;
    padding-bottom: 68px;
  }

  .hero h1 .hero-title-top {
    font-size: clamp(1.65rem, 6vw, 2.4rem);
  }

  .hero h1 .hero-title-main {
    font-size: clamp(5.2rem, 20vw, 8rem);
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero-copy {
    padding-top: 145px;
    padding-bottom: 54px;
  }

  .hero h1 .hero-title-main {
    font-size: clamp(4.8rem, 25vw, 7rem);
  }

  .areas-section {
    padding-top: 58px;
  }

  .area-card,
  .area-content {
    min-height: 590px;
  }
}


/* ==========================================================================
   PERGE Home V3 — hero + tarjetas como una sola primera pantalla
   ========================================================================== */

body {
  font-family:
    "Aptos", "Segoe UI", Arial, sans-serif;
}

/* Header aún más liviano */
.site-header {
  background: linear-gradient(to bottom, rgba(4,6,8,.5), rgba(4,6,8,0));
}

/* HERO */
.hero {
  min-height: 43vh;
  max-height: 470px;
  border-bottom: 0;
}

.hero-inner {
  min-height: 43vh;
  max-height: 470px;
  align-items: flex-end;
  padding-top: 76px;
}

.hero-copy {
  max-width: 720px;
  padding: 104px 0 54px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family:
    "Arial Narrow", "Aptos Display", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.045em;
  text-transform: none;
}

/* PERGE arriba */
.hero h1 .hero-title-main {
  display: block;
  margin: 0;
  color: #f0f1f2;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-family:
    "Arial Narrow", "Aptos Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(5.7rem, 9vw, 9rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.055em;
  text-shadow:
    0 4px 18px rgba(0,0,0,.28);
}

/* Productos y servicios abajo */
.hero h1 .hero-title-top {
  display: block;
  margin-top: 18px;
  color: #f5f5f5;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-family:
    "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.65rem, 2.65vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 2px 12px rgba(0,0,0,.24);
}

/* Sin texto descriptivo en hero */
.hero-copy > p {
  display: none !important;
}

/* Fundir hero y tarjetas visualmente */
.hero::after {
  height: 26%;
  background: linear-gradient(to top, rgba(7,9,11,.96), transparent);
}

.areas-section {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 0 0 34px;
  background: var(--bg);
}

/* Sin título ni descripción de "Nuestras áreas" */
.section-heading {
  display: none !important;
}

/* Tres tarjetas completas dentro de la primera pantalla en desktop */
.areas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.area-card,
.area-content {
  min-height: 430px;
}

.area-card {
  border-radius: 18px;
}

.area-content {
  padding: 22px;
  gap: 13px;
}

.area-logo {
  width: 44px;
  height: 44px;
}

.area-content h3 {
  max-width: 14ch;
  font-family:
    "Aptos Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.5rem, 1.85vw, 2.15rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
}

.area-content p {
  margin-top: 10px;
  font-size: .83rem;
  line-height: 1.48;
  max-width: 44ch;
}

.area-button {
  min-height: 44px;
  padding-inline: 15px;
  border-radius: 10px;
  font-size: .74rem;
}

/* Unir visualmente las cards con el hero, sin franja de transición */
.areas-section .shell {
  position: relative;
}

.site-footer {
  margin-top: 0;
}

/* Desktop mediano */
@media (max-width: 1180px) {
  .hero,
  .hero-inner {
    min-height: 500px;
    max-height: none;
  }

  .areas-section {
    padding-top: 18px;
  }

  .area-card,
  .area-content {
    min-height: 470px;
  }
}

/* Tablet: ya permitimos apilar, porque mantener 3 columnas sería demasiado estrecho */
@media (max-width: 900px) {
  .hero,
  .hero-inner {
    min-height: 610px;
  }

  .hero-copy {
    padding-top: 150px;
    padding-bottom: 58px;
  }

  .hero h1 .hero-title-main {
    font-size: clamp(5rem, 18vw, 7.5rem);
  }

  .hero h1 .hero-title-top {
    font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card,
  .area-content {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 140px;
    padding-bottom: 48px;
  }

  .hero h1 .hero-title-main {
    font-size: clamp(4.6rem, 24vw, 6.6rem);
  }

  .hero h1 .hero-title-top {
    margin-top: 14px;
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .areas-section {
    padding-bottom: 24px;
  }

  .area-card,
  .area-content {
    min-height: 520px;
  }
}


/* ==========================================================================
   PERGE Home V4 — wordmark editable + ajuste Comercializadora
   ========================================================================== */

.hero-wordmark-heading {
  margin: 0;
  max-width: 760px;
  line-height: 1;
}

.hero-wordmark {
  width: min(760px, 56vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.25));
}

/* El wordmark viene desde SVG: anulamos estilos tipográficos anteriores del h1 */
.hero h1,
.hero h1 span {
  color: inherit;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  text-shadow: none;
  font-size: inherit;
  letter-spacing: normal;
}

/* Comercializadora: priorizar la parte superior del gabinete para que no quede cortado */
.area-image--comercializadora {
  object-position: 50% 18%;
}

/* Ajuste fino en desktop para dejar algo más de aire sobre el gabinete */
@media (min-width: 901px) {
  .area-card--blue .area-image {
    transform: scale(1.01);
  }

  .area-card--blue:hover .area-image {
    transform: scale(1.035);
  }
}

@media (max-width: 820px) {
  .hero-wordmark {
    width: min(680px, 82vw);
  }
}

@media (max-width: 560px) {
  .hero-wordmark {
    width: min(560px, 92vw);
  }

  .area-image--comercializadora {
    object-position: 50% 12%;
  }
}


/* ==========================================================================
   PERGE Home V5 — logo PNG centrado en el hero
   ========================================================================== */

.hero-inner {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-copy {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 104px 0 54px;
}

.hero-wordmark-heading {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-wordmark--uploaded {
  width: min(900px, 62vw);
  max-height: 255px;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.34));
}

/* Equilibrar el fondo para que el logo se lea centrado sin perder la foto */
.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.76) 0%,
      rgba(3,5,7,.52) 30%,
      rgba(3,5,7,.30) 50%,
      rgba(3,5,7,.18) 70%,
      rgba(3,5,7,.26) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.84) 0%,
      rgba(3,5,7,.06) 60%);
}

@media (max-width: 900px) {
  .hero-wordmark--uploaded {
    width: min(820px, 80vw);
    max-height: 230px;
  }
}

@media (max-width: 560px) {
  .hero-wordmark--uploaded {
    width: 90vw;
    max-height: 190px;
  }
}


/* ==========================================================================
   PERGE Home V6 — subir logo y tarjetas para completar la primera pantalla
   ========================================================================== */

/* Hero más bajo y contenido un poco más arriba */
.hero {
  min-height: 36vh;
  max-height: 390px;
}

.hero-inner {
  min-height: 36vh;
  max-height: 390px;
  align-items: center;
  padding-top: 58px;
}

.hero-copy {
  padding: 56px 0 22px;
  transform: translateY(-18px);
}

/* Logo un poco más arriba y apenas más compacto */
.hero-wordmark--uploaded {
  width: min(850px, 58vw);
  max-height: 225px;
}

/* Subir las tarjetas y reducir un poco su altura para que entren completas */
.areas-section {
  margin-top: -10px;
  padding: 0 0 24px;
}

.area-card,
.area-content {
  min-height: 392px;
}

.area-content {
  padding: 20px;
  gap: 11px;
}

.area-logo {
  width: 42px;
  height: 42px;
}

.area-content h3 {
  font-size: clamp(1.42rem, 1.7vw, 1.95rem);
  line-height: .98;
}

.area-content p {
  margin-top: 8px;
  font-size: .79rem;
  line-height: 1.42;
}

.area-button {
  min-height: 41px;
  font-size: .71rem;
}

/* Ajuste de encuadre de imágenes al reducir altura */
.area-image {
  object-position: center 34%;
}

.area-image--comercializadora {
  object-position: 50% 12%;
}

@media (max-width: 1180px) {
  .hero,
  .hero-inner {
    min-height: 440px;
    max-height: none;
  }

  .hero-copy {
    transform: none;
    padding: 92px 0 34px;
  }

  .area-card,
  .area-content {
    min-height: 445px;
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-wordmark--uploaded {
    width: min(760px, 78vw);
  }

  .areas-section {
    margin-top: 0;
    padding-top: 16px;
  }

  .area-card,
  .area-content {
    min-height: 540px;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-copy {
    padding: 130px 0 44px;
  }

  .hero-wordmark--uploaded {
    width: 90vw;
    max-height: 180px;
  }

  .area-card,
  .area-content {
    min-height: 500px;
  }
}


/* ==========================================================================
   PERGE Home V7 — recuperar aire y escala sin perder la primera pantalla
   ========================================================================== */

/* Hero apenas más alto */
.hero {
  min-height: 39vh;
  max-height: 425px;
}

.hero-inner {
  min-height: 39vh;
  max-height: 425px;
  padding-top: 62px;
}

.hero-copy {
  padding: 64px 0 28px;
  transform: translateY(-12px);
}

.hero-wordmark--uploaded {
  width: min(890px, 60vw);
  max-height: 240px;
}

/* Más espacio entre hero y tarjetas */
.areas-section {
  margin-top: 0;
  padding: 10px 0 30px;
}

/* Tarjetas un poco más grandes */
.area-card,
.area-content {
  min-height: 420px;
}

.area-content {
  padding: 22px;
  gap: 12px;
}

.area-logo {
  width: 44px;
  height: 44px;
}

.area-content h3 {
  font-size: clamp(1.48rem, 1.8vw, 2.05rem);
}

.area-content p {
  margin-top: 9px;
  font-size: .81rem;
  line-height: 1.45;
}

.area-button {
  min-height: 43px;
  font-size: .72rem;
}

/* Un poco más de margen lateral visual sin perder ancho útil */
.areas-grid {
  gap: 18px;
}

@media (max-width: 1180px) {
  .hero,
  .hero-inner {
    min-height: 455px;
    max-height: none;
  }

  .hero-copy {
    transform: none;
    padding: 96px 0 38px;
  }

  .area-card,
  .area-content {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-inner {
    min-height: 575px;
  }

  .hero-wordmark--uploaded {
    width: min(780px, 80vw);
  }

  .area-card,
  .area-content {
    min-height: 545px;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-inner {
    min-height: 535px;
  }

  .hero-copy {
    padding: 132px 0 46px;
  }

  .area-card,
  .area-content {
    min-height: 510px;
  }
}


/* ==========================================================================
   PERGE Home V7.1 — nuevos assets 5:4
   ========================================================================== */

.area-card--orange .area-image {
  object-position: 58% 40%;
}

.area-card--blue .area-image {
  object-position: 52% 40%;
}

.area-card--green .area-image {
  object-position: 56% 40%;
}


/* ==========================================================================
   PERGE Home V7.1.1 — nuevo hero aprobado
   ========================================================================== */

.hero-media {
  background-image: url("../assets/images/herov1.webp");
  background-position: center center;
}

/* El nuevo hero ya viene trabajado y oscuro: reducimos el overlay para conservar detalle */
.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.46) 0%,
      rgba(3,5,7,.28) 28%,
      rgba(3,5,7,.18) 50%,
      rgba(3,5,7,.20) 72%,
      rgba(3,5,7,.30) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.68) 0%,
      rgba(3,5,7,.02) 62%);
}


/* ==========================================================================
   PERGE Home V7.1.2 — nuevos assets aprobados
   ========================================================================== */

.hero-media {
  background-image: url("../assets/images/herov1.webp");
  background-position: center center;
}

.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.34) 0%,
      rgba(3,5,7,.18) 28%,
      rgba(3,5,7,.12) 50%,
      rgba(3,5,7,.16) 72%,
      rgba(3,5,7,.24) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.56) 0%,
      rgba(3,5,7,.00) 62%);
}

.area-card--orange .area-image {
  object-position: 60% 40%;
}

.area-card--blue .area-image {
  object-position: 52% 40%;
}

.area-card--green .area-image {
  object-position: 58% 40%;
}


/* ==========================================================================
   PERGE Home V7.1.3 — nuevo mensaje principal
   ========================================================================== */

.hero-copy {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-statement {
  width: min(1120px, 86vw);
  max-width: none !important;
  margin: 0 auto !important;
  color: #fff !important;
  font-size: clamp(2.65rem, 5.1vw, 5.6rem) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0,0,0,.38) !important;
}

@media (max-width: 820px) {
  .hero-statement {
    width: min(92vw, 760px);
    font-size: clamp(2.2rem, 9vw, 4rem) !important;
    line-height: 1 !important;
  }
}


/* ==========================================================================
   PERGE Home V7.1.4 — wordmark gráfico de Ingeniería
   ========================================================================== */

.hero-wordmark--ingenieria {
  width: min(1180px, 78vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.28));
}

.hero-wordmark-heading {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
}

@media (max-width: 820px) {
  .hero-wordmark--ingenieria {
    width: min(92vw, 900px);
  }
}


/* ==========================================================================
   PERGE Home V7.1.5 — hero v9 + lockup PERGE / Ingeniería
   ========================================================================== */

.hero-media {
  background-image: url("../assets/images/herov1.webp");
  background-position: center center;
}

/* herov9 ya viene oscurecido; overlay más liviano para no perder lectura */
.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(3,5,7,.18) 0%,
      rgba(3,5,7,.10) 26%,
      rgba(3,5,7,.08) 50%,
      rgba(3,5,7,.10) 74%,
      rgba(3,5,7,.18) 100%),
    linear-gradient(0deg,
      rgba(3,5,7,.34) 0%,
      rgba(3,5,7,.00) 58%);
}

/* Nuevo lockup: PERGE protagonista + claim debajo */
.hero-wordmark--ingenieria {
  width: min(1080px, 72vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.30));
}

@media (max-width: 820px) {
  .hero-wordmark--ingenieria {
    width: min(92vw, 880px);
  }
}


/* ==========================================================================
   PERGE Home V7.1.6 — ajuste mínimo de tamaño del título
   ========================================================================== */

.hero-wordmark--ingenieria {
  width: min(990px, 67vw);
}

@media (max-width: 820px) {
  .hero-wordmark--ingenieria {
    width: min(88vw, 820px);
  }
}
