:root {
  --navy: #283753;
  --text: #223053;
  --blue: #318ec9;
  --cyan: #00a8d7;
  --green: #55b64f;
  --line-green: #4fc082;
  --light-blue: #73c9ec;
  --soft-gray: #f3f3f3;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

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

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

.top-header {
  position: relative;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
}

.header-inner,
.nav-inner,
.section-inner,
.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-name {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.product-name img {
  width: 78px;
  height: auto;
}

.brand-lockup a {
  display: inline-flex;
  align-items: center;
}

.brand-lockup img {
  display: block;
  height: auto;
}

.brand-logo-phelps {
  width: 115px;
}

.brand-logo-prysmian {
  width: 126px;
}

.phelps-logo,
.prysmian-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.phelps-mark {
  width: 46px;
  height: 46px;
  border: 5px solid var(--white);
  border-radius: 999px;
  box-shadow: inset 8px -4px 0 rgba(255, 255, 255, 0.4);
  transform: skewX(-14deg);
}

.phelps-logo span:last-child {
  display: grid;
  line-height: 0.82;
  font-style: italic;
}

.phelps-logo strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.phelps-logo small {
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.brand-divider,
.contact-brand-divider {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.75);
}

.prysmian-mark {
  width: 28px;
  height: 28px;
  border: 6px solid #46c972;
  border-bottom-color: #3f8cff;
  border-left-color: transparent;
  border-radius: 999px;
  transform: rotate(-40deg);
}

.prysmian-logo strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: transparent;
  color: var(--white);
  font: inherit;
  padding: 8px 14px;
}

.main-nav {
  background: linear-gradient(90deg, #348fd0 0%, #00a8d7 25%, #17b4a5 58%, #55b64f 100%);
}

.nav-inner {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr max-content;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

.nav-inner > a {
  justify-self: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  text-align: center;
}

.language-menu {
  position: relative;
  justify-self: end;
}

.language {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.language::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translateY(-2px);
}

.language-options {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 100;
  min-width: 96px;
  display: none;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(34, 48, 83, 0.18);
}

.language-options.is-open {
  display: block;
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options {
  display: block;
}

.language-options a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
}

.language-options a:hover,
.language-options a:focus-visible {
  background: #eef7f5;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-self: end;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links img {
  width: auto;
  height: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: var(--white) url("./assets/landing/fondo-olas-energia-banner-superior.png") center bottom / cover no-repeat;
}

.hero-inner {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: 300px minmax(280px, 1fr) 300px;
  align-items: center;
  gap: 12px;
}

.phone-stage {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-top: 34px;
}

.phone-stage img {
  width: 255px;
}

.hero-copy {
  text-align: center;
  padding-top: 22px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.12;
  font-weight: 500;
}

.hero-copy h1 strong {
  font-weight: 800;
}

.download-button {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  filter: drop-shadow(0 10px 14px rgba(49, 142, 201, 0.16));
}

.download-button img {
  width: 254px;
  height: auto;
}

.download-panel {
  display: grid;
  grid-template-columns: 170px 108px;
  align-items: center;
  gap: 18px;
}

.qr-card {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background: #eeeeee;
}

.qr-card img {
  width: 154px;
  height: auto;
  border-radius: 0;
}

.store-badges {
  display: grid;
  gap: 12px;
}

.store-badges a {
  display: inline-flex;
}

.store-badges img {
  width: 108px;
  border-radius: 0;
}

.wire,
.eco-wire {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border: 3px solid transparent;
  border-bottom-color: var(--line-green);
  border-radius: 50%;
}

.wire-one {
  width: 740px;
  height: 270px;
  left: -185px;
  top: 52px;
  border-bottom-color: var(--light-blue);
  transform: rotate(7deg);
}

.wire-two {
  width: 610px;
  height: 220px;
  right: -160px;
  top: 150px;
  border-bottom-color: rgba(79, 192, 130, 0.75);
  transform: rotate(-6deg);
}

.benefits-band {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 54px;
}

.benefits-band h2 {
  margin: 0 0 46px;
  text-align: center;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 500;
}

.benefits-band h2 strong {
  font-weight: 800;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
}

.benefit-item {
  min-width: 0;
}

.benefit-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.icon-line {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--line-green);
  font-size: 43px;
  line-height: 1;
  font-weight: 300;
}

.icon-search {
  position: relative;
}

.icon-search::before {
  content: "";
  width: 31px;
  height: 31px;
  border: 2px solid var(--line-green);
  border-radius: 999px;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  left: 32px;
  top: 36px;
  background: var(--line-green);
  transform: rotate(45deg);
}

.icon-gears {
  font-size: 45px;
}

.icon-like {
  position: relative;
}

.icon-like::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 24px;
  left: 8px;
  bottom: 8px;
  border: 2px solid var(--line-green);
}

.icon-like::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 39px;
  left: 25px;
  bottom: 8px;
  border: 2px solid var(--line-green);
  border-left: 0;
  border-radius: 0 13px 8px 0;
  transform: skewY(-15deg);
}

.benefit-item h3 {
  display: inline-block;
  margin: 12px 0 20px;
  padding-bottom: 7px;
  border-bottom: 0;
  background-image: linear-gradient(90deg, var(--blue), var(--green));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 4px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.benefit-item p {
  margin: 0;
  max-width: 210px;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 600;
}

.eco-section {
  position: relative;
  overflow: hidden;
  background: var(--white) url("./assets/landing/fondo-planeta.png") center center / cover no-repeat;
  min-height: 360px;
}

.eco-inner {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.eco-inner p {
  margin: -34px 0 0 auto;
  max-width: 500px;
  font-size: 24px;
  line-height: 1.35;
}

.eco-inner strong {
  font-weight: 800;
}

.wire-three {
  width: 1250px;
  height: 310px;
  left: -180px;
  top: -35px;
  border-bottom-color: var(--line-green);
  transform: rotate(-1deg);
}

.wire-three::after {
  content: "";
  position: absolute;
  width: 1250px;
  height: 270px;
  left: -20px;
  top: 26px;
  border: 3px solid transparent;
  border-bottom-color: var(--light-blue);
  border-radius: 50%;
}

.globe-art {
  position: relative;
  min-height: 190px;
}

.globe {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 235px;
  top: 40px;
  border: 2px solid var(--light-blue);
  border-radius: 999px;
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line-green);
  border-radius: 50%;
}

.globe::before {
  width: 86px;
  height: 118px;
  left: 18px;
  top: -2px;
}

.globe::after {
  width: 118px;
  height: 56px;
  left: -2px;
  top: 30px;
}

.app-is-section {
  background: var(--soft-gray);
  padding: 28px 0 0;
  text-align: center;
}

.app-is-section h2 {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0 70px 8px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--blue), var(--green)) 1;
  color: #020202;
  font-size: 28px;
  text-transform: uppercase;
}

.app-is-layout {
  position: relative;
  min-height: 390px;
}

.app-is-phones {
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: 500px;
  height: auto;
  transform: translateX(-50%);
}

.mini-phone {
  position: absolute;
  width: 162px;
  height: 275px;
  padding: 20px 12px 14px;
  border: 6px solid #111821;
  border-radius: 26px;
  background: #f8fbfb;
  box-shadow: 0 20px 28px rgba(0, 0, 0, 0.18);
}

.mini-phone::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 12px;
  top: 5px;
  left: 50%;
  border-radius: 0 0 10px 10px;
  background: #111821;
  transform: translateX(-50%);
}

.mini-phone-left {
  left: 78px;
  top: 48px;
  transform: rotate(-9deg);
}

.mini-phone-right {
  right: 62px;
  top: 0;
  transform: rotate(11deg);
}

.phone-bar {
  height: 16px;
  margin: -5px -12px 12px;
  background: var(--navy);
}

.phone-cable {
  width: 78px;
  height: 21px;
  margin: 12px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #2779d3 0 58%, #8e2f20 58% 66%, #cda064 66% 74%, #9b2b20 74% 82%, #c48655 82%);
}

.phone-copy-line,
.phone-field {
  height: 13px;
  margin-bottom: 8px;
  background: #eef3f0;
}

.phone-copy-line.short {
  width: 72%;
}

.phone-button {
  height: 24px;
  margin-top: 10px;
  border-radius: 5px;
  background: var(--navy);
}

.phone-field {
  height: 28px;
  border-radius: 3px;
}

.phone-field.active {
  background: #baf2bb;
}

.phone-nav {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  height: 24px;
  border-radius: 999px;
  background: #d8eef1;
}

.value-callout {
  position: absolute;
  display: grid;
  grid-template-columns: 80px minmax(0, 215px);
  align-items: center;
  gap: 14px;
  text-align: left;
}

.callout-efficient {
  left: 76px;
  top: 68px;
}

.callout-sustainable {
  left: 106px;
  top: 210px;
}

.callout-profitable {
  right: 72px;
  top: 72px;
}

.callout-useful {
  right: 98px;
  top: 215px;
}

.value-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 16px;
  text-transform: uppercase;
}

.value-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 500;
}

.value-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.steps-section {
  position: relative;
  overflow: visible;
  padding: 62px 0 72px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.steps-section h2 {
  position: absolute;
  top: -28px;
  left: 50%;
  z-index: 3;
  display: inline-block;
  margin: 0;
  padding: 10px 24px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  transform: translateX(-50%);
  white-space: nowrap;
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 78px;
  text-align: left;
}

.steps-grid article {
  min-height: 170px;
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 0;
}

.steps-grid img {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.steps-grid p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.12;
  font-weight: 500;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 48px 0 42px;
  background: var(--white) url("./assets/landing/fondo-olas-footer.png") center center / cover no-repeat;
  text-align: center;
}

.contact-inner {
  position: relative;
  z-index: 1;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  align-items: center;
  gap: 28px;
}

.contact-product {
  display: inline-flex;
  justify-self: start;
}

.contact-product img {
  width: 120px;
  height: auto;
}

.contact-center h2 {
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.contact-social a {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-social img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.contact-logos {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.contact-logos a {
  display: inline-flex;
  align-items: center;
}

.contact-logo-phelps {
  width: 126px;
}

.contact-logo-prysmian {
  width: 145px;
}

.contact-brand-divider {
  height: 40px;
  background: var(--text);
}

.site-footer {
  padding: 7px 0;
  background: #3a8fd3;
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 400;
  font-size: 24px;
}

.footer-inner a {
  padding: 0 28px;
  line-height: 1;
  border-right: 1px solid var(--white);
}

.footer-inner a:last-child {
  border-right: 0;
}

@media (max-width: 940px) {
  .header-inner {
    min-height: 82px;
  }

  .product-name {
    font-size: 28px;
  }

  .brand-lockup {
    transform: scale(0.84);
    transform-origin: right center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 12px 0;
  }

  .hero-inner {
    min-height: 720px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 26px 0 38px;
  }

  .phone-stage {
    align-self: auto;
    padding-top: 0;
  }

  .download-panel {
    grid-template-columns: 160px 104px;
  }

  .qr-card {
    width: 160px;
    height: 160px;
  }

  .qr-card img {
    width: 145px;
  }

  .store-badges img {
    width: 104px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .eco-inner {
    grid-template-columns: 1fr;
  }

  .eco-section {
    min-height: 340px;
    background-position: center center;
  }

  .eco-inner {
    min-height: 340px;
  }

  .eco-inner p {
    width: min(500px, 70%);
    margin-left: auto;
    margin-top: -22px;
    font-size: 22px;
  }

  .app-is-layout {
    min-height: auto;
    display: grid;
    gap: 28px;
    padding-bottom: 44px;
  }

  .app-is-phones {
    position: static;
    width: min(590px, 100%);
    height: auto;
    margin: 0 auto;
    transform: none;
    order: 1;
  }

  .value-callout {
    position: static;
    width: min(460px, 100%);
    margin: 0 auto;
    order: 2;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .contact-product,
  .contact-logos {
    justify-self: center;
  }

  .globe {
    left: calc(50% - 60px);
  }
}

@media (max-width: 620px) {
  .header-inner,
  .nav-inner,
  .section-inner,
  .hero-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-lockup {
    display: none;
  }

  .hero-section {
    min-height: auto;
    background-size: auto 100%;
    background-position: center bottom;
  }

  .hero-inner {
    min-height: auto;
  }

  .phone-stage img {
    width: min(78vw, 285px);
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .download-button {
    max-width: min(280px, 100%);
  }

  .download-button img {
    width: 100%;
  }

  .download-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .qr-card {
    width: 148px;
    height: 148px;
    border-radius: 22px;
  }

  .qr-card img {
    width: 134px;
  }

  .store-badges {
    grid-template-columns: repeat(2, 98px);
    gap: 10px;
  }

  .store-badges img {
    width: 98px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .benefits-band h2,
  .eco-inner p,
  .steps-section h2 {
    font-size: 24px;
  }

  .benefits-band {
    padding: 34px 0 44px;
  }

  .benefit-item {
    text-align: center;
  }

  .benefit-icon {
    margin: 0 auto;
  }

  .benefit-item p {
    max-width: 280px;
    margin: 0 auto;
  }

  .eco-section {
    min-height: 470px;
    background-size: auto 260px;
    background-position: center 24px;
  }

  .eco-inner {
    min-height: 470px;
    gap: 16px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 34px;
  }

  .eco-inner > span {
    display: none;
  }

  .eco-inner p {
    width: 100%;
    margin: 0;
    font-size: 20px;
    line-height: 1.28;
  }

  .app-is-section {
    padding-top: 28px;
  }

  .app-is-section h2 {
    padding-inline: 28px;
    font-size: 22px;
    white-space: nowrap;
  }

  .app-is-layout {
    gap: 24px;
    padding-bottom: 56px;
  }

  .app-is-phones {
    width: min(390px, 100%);
  }

  .value-callout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    text-align: left;
  }

  .value-icon {
    width: 58px;
    height: 58px;
  }

  .steps-section {
    padding-top: 92px;
  }

  .steps-section h2 {
    top: -23px;
    max-width: calc(100vw - 32px);
    padding: 9px 18px 11px;
    font-size: 22px;
    white-space: nowrap;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .steps-grid article {
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  .steps-grid p {
    font-size: 16px;
  }

  .footer-inner {
    gap: 10px;
    font-size: 16px;
  }

  .footer-inner a {
    padding: 0 12px;
  }
}
