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

* {
  margin: 0;
}

:root {
  --gray: #cccecc;
  --ink: #211b15;
  --brown: #392620;
  --blue: #1ab5d7;
  --white: #fffaf4;
  --muted: #746c65;
  --surface: #e4e6e4;
  --line: rgba(33, 27, 21, 0.16);
  --shadow: 0 24px 70px rgba(33, 27, 21, 0.2);
  --radius: 8px;
  --header-height: 76px;
  --content: min(1160px, calc(100% - 32px));
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--gray);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  padding: 14px max(16px, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: rgba(33, 27, 21, 0.94);
  border-bottom: 1px solid rgba(26, 181, 215, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(112px, 14vw, 134px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 250, 244, 0.76);
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
  transform: translateY(-1px);
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid rgba(26, 181, 215, 0.42);
  border-radius: var(--radius);
  color: var(--gray);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(33, 27, 21, 0.28);
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: whatsapp-float 2.8s ease-in-out infinite;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(26, 181, 215, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: btn-shine 3.6s ease-in-out infinite;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(26, 181, 215, 0.42);
  animation: btn-pulse 2.8s ease-out infinite;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  color: var(--white);
  background: var(--brown);
  box-shadow: 0 24px 56px rgba(33, 27, 21, 0.34);
}

.btn-small {
  min-height: 42px;
  padding: 12px 16px;
  font-size: 0.74rem;
}

.btn-hero {
  min-width: min(100%, 274px);
  min-height: 58px;
  padding-inline: 28px;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(500px, 37.5vw, 620px);
  width: 100%;
  background: var(--gray);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--content);
  min-height: inherit;
  margin-inline: auto;
  padding-block: clamp(54px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(26, 181, 215, 0.14);
  border-left: 4px solid var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: clamp(2.45rem, 4.8vw, 4.9rem);
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  color: var(--brown);
}

.hero p {
  max-width: 570px;
  color: var(--brown);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  font-weight: 600;
}

.hero-lead {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 800;
}

.hero .btn {
  margin-top: 34px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gray);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(204, 206, 204, 0.98) 0%, rgba(204, 206, 204, 0.92) 30%, rgba(204, 206, 204, 0.38) 57%, transparent 76%);
  pointer-events: none;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 54%;
}

.ticker {
  color: var(--white);
  background: var(--ink);
  border-block: 1px solid rgba(26, 181, 215, 0.28);
  overflow: hidden;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 16px 0;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  position: relative;
  min-width: max-content;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-50%);
}

.section {
  padding: clamp(72px, 9vw, 124px) max(16px, 4vw);
}

.section-light {
  background: var(--gray);
}

.section-head {
  width: var(--content);
  margin: 0 auto clamp(34px, 5vw, 58px);
}

.section-head .eyebrow,
.preview-copy .eyebrow,
.vip-panel .eyebrow {
  margin-inline: 0;
}

.section-head h2,
.preview h2,
.vip-section h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.section-head p,
.preview-copy p,
.vip-panel p {
  max-width: 620px;
  color: var(--brown);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 700;
}

.modalities-grid {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.modality-card {
  grid-column: span 2;
}

.modality-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.modality-card:nth-child(4),
.modality-card:nth-child(5) {
  grid-template-rows: auto 1fr;
}

.modality-card:nth-child(-n + 3) {
  grid-template-rows: auto 1fr;
}

.modality-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: 245px 1fr;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.42);
  border: 1px solid rgba(57, 38, 32, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(33, 27, 21, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.modality-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 181, 215, 0.55);
}

.modality-media {
  position: relative;
  min-height: 0;
  background: var(--ink);
  overflow: hidden;
}

.image-preview-trigger {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.image-preview-trigger:focus-visible {
  position: relative;
  z-index: 2;
  outline-offset: -5px;
}

.modality-card:nth-child(-n + 3) .modality-media {
  aspect-ratio: 1.44 / 1;
  cursor: zoom-in;
}

.modality-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(33, 27, 21, 0.3));
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modality-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.modality-card:first-child .modality-media img {
  object-position: center 36%;
}

.modality-card:nth-child(2) .modality-media img {
  object-position: center;
}

.modality-card:nth-child(3) .modality-media img {
  object-position: center 4%;
}

.modality-card:nth-child(4) .modality-media img,
.modality-card:nth-child(5) .modality-media img {
  object-fit: contain;
  object-position: center;
}

.modality-card:nth-child(4) .modality-media,
.modality-card:nth-child(5) .modality-media {
  aspect-ratio: 4 / 5;
  background: var(--ink);
}

.modality-content {
  padding: clamp(24px, 2.8vw, 32px);
}

.card-marker {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(26, 181, 215, 0.16);
  border: 1px solid rgba(26, 181, 215, 0.42);
  border-radius: var(--radius);
  font-weight: 900;
}

.modality-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.modality-card p {
  color: var(--brown);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox.is-pinned {
  pointer-events: auto;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(16, 13, 11, 0.9);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-lightbox-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 1440px);
  height: min(84vh, 980px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
  pointer-events: none;
}

.image-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.46));
}

.image-lightbox.is-open .image-lightbox-image {
  animation: reveal-full-image 240ms ease-out both;
}

.image-lightbox-caption {
  color: rgba(255, 250, 244, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.image-lightbox-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 250, 244, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(33, 27, 21, 0.78);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease;
}

.image-lightbox.is-pinned .image-lightbox-close {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  color: var(--ink);
  background: var(--blue);
  border-color: var(--blue);
}

body.lightbox-pinned {
  overflow: hidden;
}

.preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 181, 215, 0.18), transparent 34%),
    linear-gradient(135deg, var(--ink), var(--brown));
}

.preview-copy {
  justify-self: end;
  width: min(100%, 500px);
}

.preview-copy .eyebrow {
  color: var(--white);
}

.preview h2 {
  color: var(--white);
}

.preview h2 span {
  display: block;
  margin-top: 0.14em;
  color: var(--blue);
}

.preview-copy p {
  color: rgba(255, 250, 244, 0.78);
}

.preview-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.72fr);
  gap: 16px;
  align-items: end;
}

.preview-shot {
  position: relative;
  border: 1px solid rgba(255, 250, 244, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.preview-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(33, 27, 21, 0.74) 100%);
  pointer-events: none;
}

.preview-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.preview-shot:hover img {
  transform: scale(1.04);
}

.preview-shot-wide {
  aspect-ratio: 1.42 / 1;
}

.preview-shot-tall {
  aspect-ratio: 0.72 / 1;
}

.preview-shot figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vip-section {
  padding: clamp(74px, 10vw, 132px) max(16px, 4vw);
  background: #ffffff;
}

.vip-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vip-panel .eyebrow {
  margin-inline: auto;
  padding: 9px 18px;
  color: var(--brown);
  background: rgba(26, 181, 215, 0.1);
  border: 1px solid rgba(26, 181, 215, 0.48);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  line-height: 1;
}

.vip-section h2 {
  max-width: 760px;
  color: var(--ink);
  text-align: center;
}

.vip-section h2 span {
  display: block;
  color: var(--blue);
}

.vip-panel p {
  margin-inline: auto;
  color: var(--muted);
  text-align: center;
}

.vip-panel .btn {
  margin: 34px auto 0;
  color: #ffffff;
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.26);
}

.vip-panel .btn:hover,
.vip-panel .btn:focus-visible {
  color: #ffffff;
  background: #1fb85a;
  border-color: #1fb85a;
  box-shadow: 0 22px 46px rgba(37, 211, 102, 0.34);
}

.site-footer {
  padding: 30px max(16px, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 250, 244, 0.68);
  background: var(--ink);
  border-top: 1px solid rgba(255, 250, 244, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-logo {
  width: 138px;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes whatsapp-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 181, 215, 0.42);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(26, 181, 215, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 181, 215, 0);
  }
}

@keyframes btn-shine {
  0%, 58% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes reveal-full-image {
  from {
    opacity: 0.72;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .preview-copy {
    justify-self: start;
    width: var(--content);
    margin-inline: auto;
  }

  .preview-gallery {
    width: var(--content);
    margin-inline: auto;
  }

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

  .modality-card,
  .modality-card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --content: min(100% - 48px, 1160px);
  }

  .site-header {
    min-height: var(--header-height);
    padding: 10px 32px;
    gap: 12px;
    color: var(--ink);
    background: rgba(255, 250, 244, 0.94);
    border-bottom: 1px solid rgba(33, 27, 21, 0.1);
    box-shadow: 0 8px 24px rgba(33, 27, 21, 0.08);
  }

  .nav-links {
    display: none;
  }

  .brand-logo {
    content: url("../fotos/logo-energy-horizontal.png");
    width: 126px;
  }

  .btn-small {
    min-height: 38px;
    padding: 11px 18px;
    color: var(--ink);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 12px 24px rgba(26, 181, 215, 0.28);
    font-size: 0.75rem;
    letter-spacing: 0.7px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    background: var(--gray);
  }

  .hero-copy {
    order: 2;
    width: var(--content);
    min-height: auto;
    margin-inline: auto;
    padding: 36px 0 48px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    font-size: clamp(1.95rem, 8.8vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-media::after {
    display: block;
    background: linear-gradient(
      180deg,
      transparent 78%,
      rgba(204, 206, 204, 0.18) 88%,
      var(--gray) 100%
    );
  }

  .hero .eyebrow {
    margin: 0 0 18px;
    padding: 8px 18px;
    border: 1px solid rgba(26, 181, 215, 0.55);
    border-left: 1px solid rgba(26, 181, 215, 0.55);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.58);
    color: var(--brown);
    font-size: 0.66rem;
    letter-spacing: 3px;
    line-height: 1;
  }

  .hero p {
    max-width: 100%;
    margin-inline: auto;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 500;
  }

  .hero-lead {
    margin-bottom: 12px;
    color: var(--brown);
    font-size: 0.98rem;
    line-height: 1.62;
    font-weight: 600;
  }

  .hero .btn {
    width: 100%;
    margin-top: 26px;
  }

  .section-head h2,
  .preview h2,
  .vip-section h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.75rem);
    line-height: 1.08;
  }

  .modality-card {
    min-height: auto;
    grid-template-rows: 220px 1fr;
    padding: 0;
  }

  .modality-content {
    padding: 26px 24px 30px;
  }

  .modality-card h3 {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem);
    margin-top: 0;
  }

  .preview-gallery {
    grid-template-columns: 1fr;
  }

  .preview-shot-wide,
  .preview-shot-tall {
    aspect-ratio: 1 / 1.08;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 20px;
  }

  .brand-logo {
    width: 112px;
  }

  .btn {
    width: 100%;
  }

  .site-header .btn {
    width: auto;
  }

  .site-header .whatsapp-icon {
    width: 18px;
    height: 18px;
  }

  .site-header .btn {
    min-width: 128px;
    font-size: 0.68rem;
    padding-inline: 12px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 8vw, 2.2rem);
    letter-spacing: -0.02em;
  }

  .hero-media {
    height: auto;
  }

  .hero p,
  .section-head p,
  .preview-copy p,
  .vip-panel p {
    font-size: 0.92rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
