/* =====================================================================
   Martec — Landing (réplica de martec.la) + estilos base
   Paleta y layout derivados del sitio de referencia.
   ===================================================================== */

:root {
  --green: #48d597;
  --green-dark: #2fa877;
  --green-deep: #128057;
  --green-tint: #e9faf2;
  --ink: #111111;
  --white: #ffffff;
  --gray: #f6f6f6;
  --line: #e5e5e5;
  --radius-card: 20px;
  --radius-pill: 12px;
  --shadow-nav: 0 8px 16px rgba(0, 0, 0, 0.16);
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0;
  padding: 0;
}

label {
  font-family: var(--font);
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
}

[id^="section"] {
  scroll-margin-top: 120px;
}

.text-strong {
  font-weight: 800;
}

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  display: flex;
  align-items: center;
  background: var(--white);
  box-shadow: var(--shadow-nav);
  z-index: 40;
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  height: 82px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.navbar__inner {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  height: 48px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  column-gap: 2rem;
}

.navbar__link {
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.18s ease;
}

.navbar__link:hover {
  color: var(--green-deep);
}

.navbar__last {
  background: var(--ink);
  border-radius: var(--radius-pill);
  color: var(--white);
  padding: 9.5px 20px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.navbar__last:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.navbar__toggle span {
  display: block;
  height: 3px;
  width: 26px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.is-open .navbar__toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar.is-open .navbar__toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .navbar__toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar__mobile {
  display: none;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: var(--green);
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 170px;
  overflow: hidden;
}

.hero__title {
  font-size: clamp(28px, 6.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.hero__subtitle {
  font-size: clamp(20px, 5.4vw, 60px);
  color: var(--white);
  font-weight: 400;
  line-height: 1.05;
  margin: 8px 0 clamp(40px, 8vw, 91px);
}

.hero__end-text {
  font-size: clamp(16px, 3.2vw, 32px);
  line-height: 1.3;
  margin: 0;
}

.hero__button {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 24px;
  padding: 16px 70px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero__button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.hero__arrow {
  position: absolute;
  pointer-events: none;
  width: 190px;
  height: auto;
}

.hero__arrow--left {
  left: 15%;
  top: 25%;
}

.hero__arrow--right {
  right: 15%;
  bottom: 25%;
}

/* =====================================================================
   FIRST CONTENT (Modelo / Beneficios)
   ===================================================================== */
.first-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 190px 24px 0;
}

.first-content__title {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.first-content__team {
  background: var(--green);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: row;
  height: 100px;
  width: 70%;
}

.first-content__team-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.first-content__team-cell .text-strong {
  font-size: clamp(26px, 3.6vw, 40px);
}

.first-content__team-container {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
  width: 70%;
}

.first-content__team-container-content {
  background: var(--gray);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  text-align: center;
  width: calc(25% - 0.5rem);
  padding: 30px 14px;
}

.first-content__li-container {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 12px;
  margin-left: 1.5rem;
}

.first-content__li-container img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.first-content__teamli {
  font-size: medium;
  text-align: left;
}

.first-content__cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 2rem;
  width: 95%;
}

.first-content__card {
  border: 1px solid var(--green);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  padding: 24px;
  width: calc(30% - 2rem);
}

.first-content__card p {
  font-size: 16px;
  line-height: 1.5;
}

.first-content__card--first {
  background: var(--green);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  padding: 24px;
  width: calc(30% - 2rem);
}

.first-content__card--first .text-strong,
.first-content__card--first span {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
}

.first-content__card h3 {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.first-content__ilustration {
  height: 120px;
  width: 120px;
  margin: 28px auto;
}

.first-content__button-end {
  background: #000;
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 24px;
  padding: 16px 70px;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.first-content__button-end:hover {
  transform: translateY(-2px);
}

/* =====================================================================
   SECOND CONTENT (Nosotros)
   ===================================================================== */
.second-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  min-height: 960px;
  padding: 60px 24px;
  margin-top: 120px;
}

.second-content__content {
  display: flex;
  flex-direction: row;
  column-gap: 3rem;
  width: 70%;
}

.second-content__first {
  background: var(--white);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  padding: 150px 90px;
  width: 65%;
}

.second-content__first .text-strong {
  font-size: clamp(28px, 4vw, 45px);
}

.second-content__first p {
  font-size: clamp(17px, 2.1vw, 25px);
  line-height: 1.5;
}

.second-content__second {
  position: relative;
  background: var(--green);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 35%;
  padding: 40px 24px;
}

.second-content__second-text {
  color: #fff;
  font-weight: 100;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0;
}

.second-content__arrow {
  position: absolute;
  pointer-events: none;
}

.second-content__arrow--right {
  bottom: 20%;
  right: 1rem;
}

.second-content__arrow--left {
  left: 1rem;
  top: 20%;
}

/* =====================================================================
   THIRD CONTENT (Contacto)
   ===================================================================== */
.third-content {
  display: flex;
  justify-content: center;
  padding: 0 24px 40px;
}

.third-content__content {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  width: 65%;
}

.third-content__first,
.third-content__second {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.third-content__second {
  row-gap: 24px;
}

.third-content__heading {
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.third-content__img-row {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.third-content__img-row img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.third-content__img-row p {
  font-size: clamp(16px, 1.8vw, 20px);
}

.third-content__input {
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--font);
  padding: 11px 16px;
  width: 100%;
  background: transparent;
}

.third-content__input::placeholder,
.third-content__area::placeholder {
  color: #555;
}

.third-content__input:focus,
.third-content__area:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px rgba(72, 213, 151, 0.3);
}

.third-content__area {
  border: 1px solid #000;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 16px;
  height: 100px;
  padding: 11px 16px;
  resize: none;
  width: 100%;
  background: transparent;
}

.third-content__form-row {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.third-content__radius {
  height: 20px;
  width: 20px;
  accent-color: var(--green-dark);
}

.third-content__form-row label {
  font-size: 15px;
}

.third-content__button {
  background: #000;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 24px;
  padding: 16px 70px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.18s ease;
}

.third-content__button:hover {
  transform: translateY(-2px);
}

.third-content__status {
  font-size: 14px;
  color: var(--green-deep);
  min-height: 18px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer__main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  min-height: 138px;
  width: 100%;
  padding: 24px 0;
}

.footer__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 70%;
}

.footer__image {
  height: 50px;
  width: auto;
}

.footer__center {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__center span {
  font-size: 15px;
}

.footer__line {
  color: #b5b5b5;
}

.footer__black {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  min-height: 80px;
  width: 100%;
  padding: 16px;
  text-align: center;
}

.footer__black span {
  font-size: 14px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1440px) {
  .first-content__team,
  .first-content__team-container {
    width: 90%;
  }
  .footer__content {
    width: 80%;
  }
  .hero__arrow--left {
    left: 7%;
  }
  .hero__arrow--right {
    right: 7%;
  }
}

@media (max-width: 1378px) {
  .first-content__team,
  .first-content__team-container {
    width: 88%;
  }
}

@media (max-width: 1322px) {
  .second-content__content {
    flex-direction: column;
    row-gap: 1rem;
    width: 95%;
  }
  .second-content__first {
    width: calc(100% - 180px);
  }
  .second-content__second {
    padding: 1rem;
    width: calc(100% - 2rem);
  }
  .second-content {
    min-height: auto;
  }
  .third-content__content {
    width: 95%;
  }
}

@media (max-width: 1250px) {
  .first-content__team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }
  .first-content__card,
  .first-content__card--first {
    width: 44%;
  }
  .first-content__team-container-content {
    width: 32%;
  }
}

@media (max-width: 1150px) {
  .first-content__card,
  .first-content__card--first {
    width: 43%;
  }
  .footer__content {
    width: 98%;
  }
  .footer__image {
    height: 40px;
  }
}

@media (max-width: 1025px) {
  .footer__content {
    width: 99%;
  }
  .footer__image {
    height: 35px;
  }
}

@media (max-width: 1024px) {
  .hero__arrow--left {
    left: 1%;
    top: 15%;
    z-index: 0;
  }
  .hero__arrow--right {
    right: 1%;
    bottom: 10%;
    z-index: 0;
  }
  .hero {
    padding-top: 150px;
  }
}

@media (max-width: 995px) {
  .first-content__card,
  .first-content__card--first {
    width: 95%;
  }
}

@media (max-width: 981px) {
  .footer__main {
    min-height: 150px;
  }
  .footer__content {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }
  .footer__center {
    width: 100%;
  }
}

@media (max-width: 850px) {
  .navbar__inner {
    width: 90%;
  }
  .navbar__brand {
    height: 38px;
  }
}

@media (max-width: 770px) {
  .hero {
    padding-bottom: 8rem;
    padding-top: 8rem;
  }
  .first-content__team-container-content {
    width: 48%;
  }
}

@media (max-width: 665px) {
  .navbar__menu {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }
  .navbar__mobile {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14);
    padding: 12px 6%;
    z-index: 39;
    flex-direction: column;
  }
  .navbar.is-open .navbar__mobile {
    display: flex;
  }
  .navbar__mobile a {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .navbar__mobile a:last-child {
    border-bottom: none;
  }
  .hero {
    padding-bottom: 8rem;
    padding-top: 12rem;
  }
  .hero__subtitle {
    width: 100%;
  }
  .hero__arrow {
    width: 128px;
  }
  .first-content {
    padding-top: 120px;
  }
  .first-content__team-container-content {
    width: 100%;
  }
  .third-content__content {
    flex-direction: column;
    row-gap: 2rem;
  }
  .third-content__first,
  .third-content__second {
    width: 100%;
  }

  .footer__main {
    min-height: 211px;
  }
  .footer__center {
    flex-direction: column;
    row-gap: 1rem;
  }
  .footer__line {
    display: none;
  }
}

@media (max-width: 500px) {
  .second-content__first {
    padding: 64px 39px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 340px) {
  .hero {
    padding-bottom: 14rem;
    padding-top: 16rem;
  }
  .first-content__card {
    width: 83%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
