/* =========================================================
   PROYECTO EVA
   HOME
   ========================================================= */


/* VARIABLES
   ========================================================= */

:root {

  --eva-petroleo: #073F4C;
  --eva-verde-azulado: #007B91;
  --eva-limon: #BDE54D;
  --eva-verde: #ABD63F;
  --eva-gris: #344055;
  --eva-verde-claro: #EBF4EF;
  --eva-linea: #CCDDE0;
  --eva-blanco: #FFFFFF;

  --eva-font: "Manrope", sans-serif;

  --eva-max-width: 1272px;

}


/* RESET
   ========================================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  font-family: var(--eva-font);

  color: var(--eva-gris);
  background: var(--eva-blanco);

  -webkit-font-smoothing: antialiased;

}


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


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


button,
input,
textarea,
select {
  font: inherit;
}



/* CONTENEDOR
   ========================================================= */

.eva-container {

  width: min(
    calc(100% - 168px),
    var(--eva-max-width)
  );

  margin-inline: auto;

}



/* HEADER
   ========================================================= */

.site-header {

  position: relative;

  z-index: 20;

  width: 100%;

  background: var(--eva-blanco);

}


.header-inner {

  min-height: 104px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

}


.main-nav {

  display: flex;

  align-items: center;

  gap: 40px;

}


.nav-link {

  position: relative;

  padding: 10px 0;

  font-size: 16px;
  line-height: 24px;
  font-weight: 500;

  color: var(--eva-gris);

}


.nav-logo-mesa {

  display: inline-flex;
  align-items: center;

  padding: 0;

}


.nav-logo-mesa img {

  width: 80px;
  height: 80px;

}


.nav-logo-mesa::after {

  display: none;

}


.nav-link::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 1px;

  height: 3px;

  background: transparent;

}


.nav-link:hover::after,
.nav-link.active::after {

  background: var(--eva-verde);

}


.nav-button {

  min-width: 174px;
  height: 56px;

  padding: 0 28px;

  display: inline-flex;

  justify-content: center;
  align-items: center;

  border: 2px solid var(--eva-verde-azulado);
  border-radius: 999px;

  font-size: 16px;
  font-weight: 600;

  color: var(--eva-petroleo);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;

}


.nav-button:hover {

  background: var(--eva-verde-azulado);
  color: var(--eva-blanco);

}



/* PORTADA Y SERVICIOS
   ========================================================= */

.mobile-menu,
.mobile-contact { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #F7F9F7;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 61%;
  background:
    linear-gradient(90deg, #F7F9F7 0%, rgba(247,249,247,.86) 21%, rgba(247,249,247,0) 58%),
    linear-gradient(0deg, #F7F9F7 0%, rgba(247,249,247,0) 23%),
    url("../assets/Home/hero-home.webp") 65% center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 660px;
  padding-top: 34px;
  padding-bottom: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-brand { width: 225px; height: auto; margin-bottom: 32px; }

.hero-eyebrow {
  margin: 0 0 24px;
  color: var(--eva-verde-azulado);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--eva-limon);
}

.hero-title {
  margin: 0;
  color: var(--eva-petroleo);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.055em;
}

.hero-title span { display: block; white-space: nowrap; }
.hero-title span:last-child { color: var(--eva-verde-azulado); }

.hero-description {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--eva-gris);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }

.primary-button,
.text-button { display: inline-flex; align-items: center; gap: 13px; font-weight: 700; }

.primary-button {
  min-height: 58px;
  padding: 0 27px;
  border-radius: 999px;
  background: var(--eva-limon);
  color: var(--eva-petroleo);
  font-size: 16px;
  transition: transform .2s ease, background-color .2s ease;
}

.primary-button:hover { background: var(--eva-verde); transform: translateY(-2px); }
.text-button { padding: 12px 0; color: var(--eva-petroleo); font-size: 15px; }
.text-button:hover { color: var(--eva-verde-azulado); }

.services { padding: 35px 0 76px; background: var(--eva-blanco); }
.section-eyebrow {
  margin: 0 0 10px;
  color: var(--eva-verde-azulado);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 34px;
  color: var(--eva-petroleo);
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.04em;
}
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service-card { border-top: 4px solid var(--eva-verde-azulado); padding-top: 18px; }
.service-card:nth-child(2) { border-color: #C96F48; }
.service-number { display: block; color: var(--eva-verde-azulado); font-size: 15px; font-weight: 700; }
.service-card:nth-child(2) .service-number { color: #C96F48; }
.service-card h3 { margin: 12px 0 9px; color: var(--eva-petroleo); font-size: 24px; line-height: 1.3; }
.service-card p { max-width: 360px; margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--eva-verde);
  padding-bottom: 4px;
  color: var(--eva-verde-azulado);
  font-size: 15px;
  font-weight: 600;
}
.service-card a span { color: var(--eva-verde-azulado); font-size: 20px; }

.story { padding: 70px 0; background: #F0F6F4; }
.story-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px 60px; align-items: start; }
.story-inner > p { grid-column: 1 / -1; margin: 0; color: var(--eva-verde-azulado); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.story h2 { max-width: 590px; margin: 0; color: var(--eva-petroleo); font-size: clamp(28px, 2.7vw, 38px); line-height: 1.22; letter-spacing: -.04em; }
.story-inner > div { max-width: 570px; color: var(--eva-gris); font-size: 20px; line-height: 1.6; }

/* FRANJA DE CONFIANZA
   ========================================================= */

.trust-strip {

  background: var(--eva-verde-claro);

}


.trust-grid {

  min-height: 108px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  align-items: center;

}


.trust-grid div {

  position: relative;

  text-align: center;

  color: var(--eva-gris);

  font-size: 18px;
  line-height: 28px;

}


.trust-grid div + div::before {

  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 1px;
  height: 38px;

  transform: translateY(-50%);

  background: var(--eva-verde);

}



/* CTA FINAL
   ========================================================= */

.final-cta {

  position: relative;

  min-height: 430px;

  overflow: hidden;

  background: var(--eva-blanco);

}


.final-cta-inner {

  position: relative;

  z-index: 5;

  padding-top: 56px;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

}


.cta-accent {

  width: 92px;
  height: 5px;

  margin-bottom: 30px;

  background: var(--eva-verde);

}


.final-cta h2 {

  margin: 0;

  color: var(--eva-petroleo);

  font-size: 52px;
  line-height: 54px;
  font-weight: 600;

  letter-spacing: -0.04em;

}


.final-cta p {

  margin: 12px 0 18px;

  color: var(--eva-gris);

  font-size: 18px;
  line-height: 28px;

}


.outline-button {

  min-width: 236px;
  height: 58px;

  padding: 0 24px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 36px;

  border: 2px solid var(--eva-verde-azulado);
  border-radius: 999px;

  color: var(--eva-petroleo);

  font-size: 16px;
  font-weight: 600;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;

}


.outline-button:hover {

  color: var(--eva-blanco);

  background: var(--eva-verde-azulado);

}


.outline-arrow {

  color: var(--eva-verde);

  font-size: 27px;

}


/* CURVAS CTA
   ========================================================= */

.footer-curves {

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 130px;

  overflow: hidden;

}


.footer-curve-lime,
.footer-curve-teal {

  position: absolute;

  border-radius: 50% 0 0 0;

}


.footer-curve-lime {

  right: -6%;

  bottom: 2px;

  width: 55%;

  height: 100px;

  background: var(--eva-verde);

  transform: rotate(-5deg);

}


.footer-curve-teal {

  right: -8%;

  bottom: -42px;

  width: 70%;

  height: 125px;

  background: var(--eva-verde-azulado);

  transform: rotate(-2deg);

}



/* FOOTER
   ========================================================= */

.site-footer {

  min-height: 145px;

  background: var(--eva-blanco);

}


.footer-inner {

  min-height: 145px;

  display: flex;

  align-items: center;

  justify-content: space-between;

}


.footer-logo {

  width: 170px;

  height: auto;

}


.footer-links {

  display: flex;

  align-items: center;

  gap: 56px;

  color: var(--eva-gris);

  font-size: 14px;
  line-height: 22px;

}

.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--eva-verde-azulado); text-decoration: underline; }
.footer-links a:focus-visible { outline: 3px solid var(--eva-verde-azulado); outline-offset: 4px; }

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.footer-contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--eva-linea);
  border-radius: 50%;
  background: #F1F7F7;
  color: var(--eva-petroleo);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-link:hover .footer-contact-icon,
.footer-contact-link:focus-visible .footer-contact-icon {
  border-color: var(--eva-verde-azulado);
  background: var(--eva-verde-azulado);
  color: var(--eva-blanco);
}



/* ADAPTACIÓN A PANTALLAS
   ========================================================= */

.final-cta-kicker {
  margin: 0 0 18px !important;
  color: var(--eva-verde-azulado) !important;
  font-size: 16px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.final-cta h2 { display: flex; align-items: center; justify-content: center; gap: 14px; }
.final-cta h2 img { width: 180px; height: auto; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--eva-verde-azulado); outline-offset: 4px; }

@media (max-width: 1050px) {
  .eva-container { width: calc(100% - 80px); }
  .main-nav { gap: 24px; }
  .hero-title { font-size: clamp(40px, 4.7vw, 53px); }
  .hero-brand { width: 200px; }
  .hero-description { font-size: 18px; }
  .footer-links { flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
}

@media (max-width: 768px) {
  .eva-container { width: calc(100% - 48px); }
  .header-inner { min-height: 76px; justify-content: space-between; }
  .main-nav { display: none; }
  .mobile-menu { display: block; position: relative; z-index: 30; }
  .mobile-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: block; width: 26px; height: 2px; background: var(--eva-petroleo); }
  .mobile-menu nav { position: absolute; top: 58px; left: -24px; width: min(290px, 85vw); padding: 12px 22px; background: white; border: 1px solid var(--eva-linea); border-radius: 0 0 18px 18px; box-shadow: 0 16px 26px rgba(7,63,76,.12); }
  .mobile-menu nav a { display: block; padding: 14px 2px; color: var(--eva-petroleo); font-weight: 600; }
  .mobile-menu nav a + a { border-top: 1px solid var(--eva-linea); }
  .mobile-contact { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; height: 48px; border: 2px solid var(--eva-verde-azulado); border-radius: 999px; color: var(--eva-petroleo); font-size: 15px; font-weight: 600; }

  .hero { min-height: 0; }
  .hero-photo {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 330px;
    background:
      linear-gradient(180deg, #F7F9F7 0%, rgba(247,249,247,0) 26%, rgba(247,249,247,0) 75%, #F7F9F7 100%),
      url("../assets/Home/hero-home.webp") 68% center / cover no-repeat;
  }
  .hero-inner { min-height: 0; padding-top: 24px; padding-bottom: 340px; }
  .hero-brand { width: 186px; margin-bottom: 26px; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 11px; white-space: nowrap; }
  .hero-eyebrow::after { margin-top: 12px; }
  .hero-title { font-size: clamp(28px, 8.7vw, 38px); line-height: 1.35; letter-spacing: -.05em; }
  .hero-description { max-width: 440px; margin-top: 22px; font-size: 16px; line-height: 1.48; }
  .hero-description br { display: none; }
  .hero-actions { width: 100%; margin-top: 22px; }
  .primary-button { width: 100%; min-height: 54px; justify-content: center; font-size: 15px; }
  .text-button { display: none; }

  .services { padding: 32px 0 54px; }
  .section-eyebrow { font-size: 12px; }
  .section-title { margin-bottom: 26px; font-size: 34px; }
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-card h3 { font-size: 23px; }
  .story { padding: 55px 0; }
  .story-inner { grid-template-columns: 1fr; gap: 20px; }
  .story-inner > p { grid-column: 1; font-size: 12px; }
  .story h2 { font-size: 30px; }
  .story-inner > div { font-size: 17px; }

  .trust-grid { padding: 26px 0; grid-template-columns: 1fr; gap: 18px; }
  .trust-grid div { font-size: 16px; line-height: 24px; }
  .trust-grid div + div::before { display: none; }
  .final-cta { min-height: 390px; }
  .final-cta-inner { padding-top: 48px; }
  .cta-accent { width: 64px; margin-bottom: 24px; }
  .final-cta h2 { flex-direction: column; gap: 6px; font-size: 32px; line-height: 1.15; }
  .final-cta h2 img { width: 160px; }
  .final-cta p { font-size: 16px; line-height: 25px; }
  .outline-button { width: 100%; max-width: 280px; }
  .footer-curves { height: 85px; }
  .footer-inner { padding: 32px 0; flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-logo { width: 145px; }
  .footer-links { width: 100%; justify-content: initial; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
}
