
:root {
  --negro: #1a1a1a;
  --gris-texto: #6b6b6b;
  --content-max-width: 87.5rem;
  --corner-shape-size: 220px;
  --logo-energia-size: 160px;
  --logo-tics-size: 140px;
  --maintenance-image-size: 640px;
}

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

html, body {
  min-height: 100%;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--negro);
  background: linear-gradient(135deg, #fafafa 0%, #ececec 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

/* Forma amarilla decorativa esquina superior izquierda */
.corner-shape {
  position: absolute;
  top: 0;
  left: -50px;
  width: var(--corner-shape-size);
  height: var(--corner-shape-size);
  display: block;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 4rem clamp(1.5rem, 6vw, 6rem) 2rem;
  max-width: min(var(--content-max-width), 100%);
  width: 100%;
  margin: 0 auto;
  transition: gap 220ms ease, padding 220ms ease, grid-template-columns 220ms ease;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  min-width: 0;
  transition: gap 220ms ease;
}

.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--negro);
  margin-bottom: 2.5rem;
  transform: translateX(20%);
}

.hero__title-line {
  display: block;
  transform: translateX(20%);
}

.hero__messages {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-width: 0;
  font-size: clamp(1rem, 2.5vw, 2.3rem);
  color: var(--gris-texto);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 3rem;
}

.hero__messages p + p {
  margin-top: 1.25rem;
}

/* Entidad */
.hero__brands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  min-width: 0;
  transition: gap 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.brand__logo-energia {
  display: block;
  width: var(--logo-energia-size);
  max-width: none;
  height: auto;
  transition: width 220ms ease;
}

.brand__logo-tics {
  display: block;
  width: var(--logo-tics-size);
  max-width: none;
  height: auto;
  transition: width 220ms ease;
}

.brand__divider {
  width: max(1px, 0.125rem);
  height: clamp(1.9rem, 7vh, 4.4rem);
  background: var(--negro);
  opacity: 0.5;
}

/* ============ icono ============ */
.hero__art {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: clamp(9rem, 24vh, 16rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

.hero__maintenance-image {
  width: var(--maintenance-image-size);
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
  transition: transform 220ms ease, width 220ms ease;
}

/* ============ RESPONSIVE ============ */

/* MOBILE PEQUENO */
@media (max-width: 389px) {
  :root {
    --corner-shape-size: 120px;
    --logo-energia-size: 100px;
    --logo-tics-size: 90px;
    --maintenance-image-size: 160px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-28rem, -45vh, -20rem));
  }
}

/* MOBILE NORMAL */
@media (min-width: 390px) and (max-width: 767px) {
  :root {
    --corner-shape-size: 140px;
    --logo-energia-size: 120px;
    --logo-tics-size: 105px;
    --maintenance-image-size: 180px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-25rem, -40vh, -15rem));
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 900px) {
  :root {
    --corner-shape-size: 180px;
    --logo-energia-size: 140px;
    --logo-tics-size: 120px;
    --maintenance-image-size: 420px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-20rem, -30vh, -10rem));
  }
}

/* LAPTOP */
@media (min-width: 901px) and (max-width: 1199px) {
  :root {
    --corner-shape-size: 200px;
    --logo-energia-size: 150px;
    --logo-tics-size: 130px;
    --maintenance-image-size: 520px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-18rem, -26vh, -8rem));
  }
}

/* DESKTOP NORMAL */
@media (min-width: 1200px) and (max-width: 1439px) {
  :root {
    --corner-shape-size: 220px;
    --logo-energia-size: 160px;
    --logo-tics-size: 140px;
    --maintenance-image-size: 700px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-16rem, -24vh, -7rem));
  }
}

/* DESKTOP GRANDE */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root {
    --corner-shape-size: 250px;
    --logo-energia-size: 170px;
    --logo-tics-size: 150px;
    --maintenance-image-size: 780px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-13rem, -22vh, -6rem));
  }
}

/* MOVIL LANDSCAPE */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 1fr);
    align-items: start;
    padding: clamp(1rem, 3vh, 1.8rem) clamp(1rem, 3.5vw, 2rem) clamp(0.75rem, 2vh, 1.25rem);
    gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  .hero__art {
    align-items: flex-start;
    min-height: clamp(7rem, 16vh, 11rem);
  }

  .hero__maintenance-image {
    width: min(var(--maintenance-image-size), 42vw);
    transform:
      translateX(0%)
      translateY(clamp(-10rem, -20vh, -5rem));
  }
}

/* ULTRAWIDE */
@media (min-width: 1920px) {
  :root {
    --content-max-width: 96rem;
    --corner-shape-size: 280px;
    --logo-energia-size: 180px;
    --logo-tics-size: 160px;
    --maintenance-image-size: 860px;
  }

  .hero__maintenance-image {
    height: auto;
    transform:
      translateX(0%)
      translateY(clamp(-10rem, -20vh, -5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__content,
  .hero__brands,
  .brand__logo-energia,
  .brand__logo-tics,
  .hero__maintenance-image {
    animation: none !important;
    transition: none !important;
  }
}









