:root {
  --morado: #503295;
  --naranja: #ff9000;
  --negro: #000000;
  --blanco: #ffffff;
  --gris: #f4f4f4;
  --gris-texto: #d9d9d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--blanco);
  color: var(--negro);
}

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

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

/* HERO */

.hero {
  position: relative;
  min-height: 760px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("assets/hero-imago.jpg");
  background-size: cover;
  background-position: center;
  color: var(--blanco);
  overflow: hidden;
}

.header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.header__logo img {
  width: 96px;
  height: auto;
}

.header__nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.header__nav a {
  opacity: 0.85;
}

.header__nav a:hover {
  opacity: 1;
  color: var(--naranja);
}

.header__button {
  border: 1px solid var(--naranja);
  color: var(--blanco);
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 999px;
}

.header__button:hover {
  background: var(--naranja);
  color: var(--negro);
}

.hero__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 145px 40px 100px;
}

.hero__brand {
  width: 120px;
  margin-bottom: 30px;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 span {
  color: var(--naranja);
}

.hero p {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--gris-texto);
  font-size: 20px;
  line-height: 1.45;
}


/* MOBILE */

@media (max-width: 768px) {
  .hero {
    min-height: 720px;
    background-position: center;
  }

  .header {
    padding: 26px 24px 0;
  }

  .header__logo img {
    width: 92px;
  }

  .header__nav,
  .header__button {
    display: none;
  }

  .header::after {
    content: "☰";
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
  }

  .hero__content {
    padding: 110px 24px 60px;
    width: 100%;
    max-width: 390px;
    overflow: hidden;
  }

  .hero__brand {
    width: 165px;
    margin-bottom: 32px;
  }

  .hero h1 {
    width: 100%;
    max-width: 330px;
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: -0.055em;
    white-space: normal;
  }

  .hero p {
    max-width: 315px;
    font-size: 16px;
    line-height: 1.45;
    white-space: normal;
  }
}

/* ABOUT */

.about {
  background: var(--blanco);
  color: var(--negro);
  padding: 0;
}

.about__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
}

.about__content {
  padding: 92px 80px 80px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  display: inline-block;
  color: var(--morado);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.about h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.accent-line {
  width: 64px;
  height: 4px;
  background: var(--naranja);
  margin: 28px 0 34px;
}

.about p {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
  color: #222222;
}

.about__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.about__steps span {
  color: var(--morado);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.about__steps b {
  color: #ff9000;
}

.about__image {
  min-height: 650px;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ABOUT MOBILE */

@media (max-width: 768px) {
  .about__inner {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .about__content {
    padding: 48px 24px 56px;
  }

  .about h2 {
    font-size: 38px;
    max-width: 340px;
  }

  .about p {
    font-size: 16px;
    max-width: 340px;
  }

  .about__image {
    min-height: auto;
    height: 260px;
  }

  .about__steps {
    gap: 12px;
  }

  .about__steps span {
    font-size: 11px;
  }
}

/* SERVICES */

.services {
  background: #f4f4f4;
  color: #000000;
  padding: 96px 0 110px;
}

.services__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.services__intro h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 70px;
}

.service-card {
  position: relative;
  min-height: 280px;
  background: #ffffff;
  border: 1px solid #dddddd;
  padding: 32px 32px 56px;
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  width: 58px;
  height: 58px;
  background: #503295;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.service-card__icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 14px;
  color: #503295;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.45;
  color: #222222;
}

.service-card__arrow {
  position: absolute;
  left: 32px;
  bottom: 24px;
  color: #ff9000;
  font-size: 34px;
  line-height: 1;
}

/* SERVICES MOBILE */

@media (max-width: 768px) {
  .services {
    padding: 64px 0 72px;
  }

  .services__inner {
    padding: 0 24px;
  }

  .services__intro h2 {
    font-size: 34px;
    line-height: 1.05;
    max-width: 340px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 42px;
  }

  .service-card {
    min-height: 170px;
    padding: 26px 24px 28px;
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 20px;
    align-items: start;
  }

  .service-card__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 0;
  }

  .service-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card__arrow {
    left: auto;
    right: 24px;
    bottom: 22px;
    font-size: 30px;
  }
}


/* PROCESS */

.process {
  background: #000000;
  color: #ffffff;
  padding: 82px 0 88px;
}

.process__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.section-label--dark {
  color: #503295;
}

.process__intro h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.process__line {
  width: 140px;
  height: 5px;
  background: #ff9000;
  margin-top: 26px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 62px;
}

.process-step__heading {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 58px;
}

.process-step__heading span {
  color: #503295;
  font-size: 62px;
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.process-step__heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.process-step__body {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
}

.process-step__icon {
  width: 120px;
  height: 120px;
  border: 3px solid #503295;
  border-right-color: #ff9000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.process-step__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
  max-width: 145px;
}

/* PROCESS MOBILE */

@media (max-width: 768px) {
  .process {
    padding: 64px 0 76px;
  }

  .process__inner {
    padding: 0 24px;
  }

  .process__intro h2 {
    font-size: 40px;
    max-width: 320px;
  }

  .process__line {
    width: 90px;
    height: 4px;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 52px;
  }

  .process-step__heading {
    margin-bottom: 24px;
  }

  .process-step__heading span {
    font-size: 58px;
  }

  .process-step__heading h3 {
    font-size: 30px;
  }

  .process-step__body {
    grid-template-columns: 110px 1fr;
    gap: 20px;
  }

  .process-step__icon {
    width: 110px;
    height: 110px;
  }

  .process-step__icon img {
    width: 64px;
    height: 64px;
  }

  .process-step__body p {
    font-size: 15px;
    max-width: 220px;
  }
}


/* PROJECTS */

.projects {
  background: #f4f4f4;
  color: #000000;
  padding: 92px 0 96px;
}

.projects__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.projects__intro h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.projects__intro h2 span {
  color: #503295;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #dddddd;
}

.project-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: grayscale(100%);
}

.project-card__content {
  min-height: 96px;
  padding: 22px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card h3 {
  margin: 0 0 10px;
  color: #503295;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
}

.project-card__content span {
  color: #ff9000;
  font-size: 36px;
  line-height: 0.8;
  font-weight: 400;
}

/* PROJECTS MOBILE */

@media (max-width: 768px) {
  .projects {
    padding: 64px 0 76px;
  }

  .projects__inner {
    padding: 0 24px;
  }

  .projects__intro h2 {
    font-size: 34px;
    line-height: 1.08;
    max-width: 340px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 42px;
  }

  .project-card img {
    height: 170px;
  }

  .project-card__content {
    min-height: 88px;
  }
}


/* CONTACT */

.contact {
  background: #000000;
  color: #ffffff;
  padding: 92px 0 96px;
}

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(52px, 5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.contact__line {
  width: 96px;
  height: 5px;
  background: #ff9000;
  margin-top: 30px;
}

.contact__info p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.45;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact__item {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  column-gap: 16px;
  width: fit-content;
}

.contact__item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contact__item strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
}

.contact__item:hover strong {
  color: #ff9000;
}

.contact__item:nth-child(3) strong {
  color: #ffffff;
}

/* CONTACT MOBILE */

@media (max-width: 768px) {
  .contact {
    padding: 64px 0 72px;
  }

  .contact__inner {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact h2 {
    font-size: 48px;
  }

  .contact__info p {
    font-size: 17px;
    margin-bottom: 34px;
  }

  .contact__links {
    gap: 20px;
  }

  .contact__item {
    gap: 14px;
  }

.contact__item img {
  width: 28px;
  height: 28px;
}

.contact__item strong {
  font-size: 17px;
  line-height: 1.2;
}
}


/* FOOTER */

.footer {
  background: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 0;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer__logo {
  width: 96px;
  margin-bottom: 16px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.footer__right {
  text-align: right;
}

/* FOOTER MOBILE */

@media (max-width: 768px) {
  .footer {
    padding: 34px 0 40px;
  }

  .footer__inner {
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer__right {
    text-align: left;
  }
}


/* HOTFIX MOBILE HERO */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: 760px !important;
    width: 100% !important;
    overflow: hidden !important;
    background-position: center center !important;
  }

  .header {
    padding: 28px 24px 0 !important;
  }

  .header__logo img {
    width: 120px !important;
  }

  .header__nav,
  .header__button {
    display: none !important;
  }

  .header::after {
    content: "☰";
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
  }

  .hero__content {
    width: 100% !important;
    max-width: 390px !important;
    padding: 130px 24px 60px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .hero__brand {
    width: 180px !important;
    max-width: 180px !important;
    margin-bottom: 34px !important;
  }

  .hero h1 {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 !important;
    font-size: 40px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    white-space: normal !important;
  }

  .hero h1 span {
    display: block !important;
  }

  .hero p {
    width: 100% !important;
    max-width: 300px !important;
    margin-top: 26px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
  }
}



/* FIX FINAL MOBILE */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site,
section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .hero {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 760px !important;
    overflow: hidden !important;
    background-position: center center !important;
  }

  .header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 28px 24px 0 !important;
    box-sizing: border-box !important;
  }

  .header__logo img {
    width: 118px !important;
  }

  .header__nav,
  .header__button {
    display: none !important;
  }

  .header::after {
    content: "☰";
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
  }

  .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 130px 24px 60px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hero__brand {
    width: 175px !important;
    max-width: 175px !important;
    height: auto !important;
    margin-bottom: 34px !important;
  }

  .hero h1 {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 !important;
    font-size: 40px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    white-space: normal !important;
  }

  .hero h1 span {
    display: block !important;
  }

  .hero p {
    width: 100% !important;
    max-width: 300px !important;
    margin-top: 26px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
  }
}


/* RESET MOBILE FINAL */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

/* Forzar que ninguna sección se pase del ancho */
.site,
.hero,
.about,
.services,
.process,
.projects,
.contact,
.footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .header,
  .hero__content,
  .about__inner,
  .services__inner,
  .process__inner,
  .projects__inner,
  .contact__inner,
  .footer__inner {
    width: 100%;
    max-width: 100%;
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .hero {
    min-height: 760px !important;
    background-position: center center !important;
  }

  .hero__brand {
    width: 175px !important;
    max-width: 175px !important;
  }

  .hero h1 {
    max-width: 300px !important;
    font-size: 40px !important;
    line-height: 0.95 !important;
  }

  .hero p {
    max-width: 300px !important;
    font-size: 16px !important;
  }
}



/* FIX DEFINITIVO HERO MOBILE */

@media (max-width: 768px) {
  .hero {
    width: 100%;
    min-height: 760px;
    overflow: hidden;
  }

  .header {
    width: 100%;
    padding: 28px 24px 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header__logo img {
    width: 120px !important;
  }

  .header__nav,
  .header__button {
    display: none !important;
  }

  .header::after {
    content: "☰";
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
  }

  .hero__content {
    width: 100%;
    padding: 130px 24px 60px !important;
    margin: 0;
    box-sizing: border-box;
  }

  .hero__brand {
    width: 175px !important;
    max-width: 175px !important;
    margin-bottom: 34px !important;
  }

  .hero h1 {
    display: block;
    width: 100%;
    max-width: 280px !important;
    margin: 0;
    font-size: 38px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.045em !important;
    white-space: normal !important;
  }

  .hero h1 span {
    display: block;
  }

  .hero p {
    display: block;
    width: 100%;
    max-width: 280px !important;
    margin-top: 26px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }
}



/* FIX GLOBAL MOBILE */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.site {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  section,
  header,
  footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header,
  .hero__content,
  .about__inner,
  .about__content,
  .services__inner,
  .process__inner,
  .projects__inner,
  .contact__inner,
  .footer__inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .about__inner,
  .services__grid,
  .process__grid,
  .projects__grid,
  .contact__inner,
  .footer__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .about__image,
  .about__image img,
  .project-card,
  .service-card,
  .process-step,
  .contact__item {
    width: 100% !important;
    max-width: 100% !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  strong,
  span {
    overflow-wrap: break-word;
  }

  .services__intro h2,
  .projects__intro h2,
  .process__intro h2,
  .contact h2,
  .about h2 {
    max-width: 100% !important;
  }

  .contact__item {
    grid-template-columns: 30px 1fr !important;
  }

  .contact__item strong {
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
}

/* FIX MOBILE QUIÉNES SOMOS */

@media (max-width: 768px) {
  .about {
    width: 100%;
    overflow: hidden;
  }

  .about__inner {
    display: flex !important;
    flex-direction: column-reverse !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .about__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 48px 24px 56px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .about__image {
    width: 100% !important;
    height: 260px !important;
    min-height: auto !important;
  }

  .about__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .section-label {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    margin-bottom: 18px !important;
  }

  .about h2 {
    width: 100% !important;
    max-width: 330px !important;
    font-size: 40px !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
    margin: 0 !important;
  }

  .accent-line {
    width: 72px !important;
    height: 4px !important;
    margin: 28px 0 32px !important;
  }

  .about p {
    width: 100% !important;
    max-width: 330px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 0 18px !important;
    color: #222222 !important;
  }

  .about__steps {
    width: 100% !important;
    max-width: 330px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    margin-top: 30px !important;
  }

  .about__steps span {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
}


