/* ===== Reset / base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #6e6e6e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --green: #45b27c;
  --green-dark: #12764b;
  --green-darker: #025b35;
  --text: #6e6e6e;
  --gray-bg: #f5f5f5;
}

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.primary-color { color: var(--green); }
.section-gray { background: var(--gray-bg); }

/* ===== Headings ===== */
.heading-caps {
  font-family: "Raleway";
  font-variant-caps: small-caps;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.3px;
  color: var(--text);
  line-height: 1.2;
}

/* Centered heading with short green underline */
.underline-primary { position: relative; padding-bottom: 22px; margin-bottom: 18px; }
.underline-primary:after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--green);
}

/* ===== Buttons ===== */
.button, .btn-acceso-top, .btn-acceso-mobile {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Lato', sans-serif; font-weight: 700;
  text-transform: uppercase; white-space: nowrap;
  border: 2px solid transparent; border-radius: 0;
  transition: background .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--green-dark); color: #fff;
  font-size: 14px; letter-spacing: 2px; padding: 16px 28px; line-height: 1.2;
}
.btn-primary:hover { background: #0e5e3c; }
.button .arrow { font-size: 16px; line-height: 1; display: inline-block; }

/* ===== Header ===== */
.site-header { position: relative; z-index: 50; background: #fff; }
.top-bar { background: var(--green); color: #fff; }
.top-bar__inner { display: flex; align-items: center; justify-content: flex-end; min-height: 40px; }
.top-bar__info { display: flex; align-items: center; gap: 26px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 400; letter-spacing: .2px; }
.tb-ico { flex: none; }
.btn-acceso-top {
  background: var(--green-dark); color: #fff; font-size: 11px; letter-spacing: 3.3px;
  padding: 13px 16px; margin-left: 26px; align-self: stretch; align-items: center;
}
.btn-acceso-top:hover { background: #0e5e3c; }

.nav-bar { background: #fff; }
.nav-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 77px; }
.logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; }
.main-nav__wrap { display: contents; }
.menu { display: flex; align-items: center; }
.menu > .menu-item { position: relative; }
.menu > .menu-item > a {
  display: block; padding: 27px 16px 26px;
  font-family: "Raleway"; font-variant-caps: small-caps; font-weight: bold;
  font-size: 16px; letter-spacing: .4px; color: var(--green);
}
.menu > .menu-item.active > a { color: var(--green-dark); }
.menu > .menu-item.active > a { box-shadow: inset 0 -3px 0 var(--green-dark); }
.menu > .menu-item > a:hover { color: var(--green-dark); }
.sub-toggle { display: none; }

/* dropdowns (desktop) */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s ease; z-index: 60;
}
.menu-item.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block; padding: 15px; font-family: "Raleway"; font-variant-caps: small-caps;
  font-size: 16px; letter-spacing: .3px; color: var(--green); border-bottom: 1px solid #f0f0f0;
}
.submenu li a:hover { background: #fafafa; color: var(--green-dark); }
.btn-acceso-mobile { display: none; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; height: 500px; display: flex; align-items: center;
    background: url(../img/other-images-2-min.jpg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,14,.72) 0%, rgba(8,10,14,.5) 45%, rgba(8,10,14,.32) 100%); }
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; color: #fff; text-transform: uppercase; margin-bottom: 18px; }
.hero__title { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 46px; line-height: 1.12; letter-spacing: -1px; color: #fff; margin-bottom: 30px; }
.hero__btn { padding: 16px 30px; }

/* ===== Green bands ===== */
.band { background: var(--green); }
.band__inner { display: flex; align-items: center; justify-content: space-between; min-height: 134px; }
.band__title { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 30px; color: #fff; letter-spacing: 0; }
.band__btn { background: var(--green-dark); }
.band__btn:hover { background: #0e5e3c; }

/* ===== Objetivos ===== */
.objetivos { padding-top: 90px; padding-bottom: 90px; }
.objetivos .title-area { max-width: 660px; margin: 0 auto 10px; }
.objetivos__intro { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); margin-top: 4px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.feature {
  background: #fff; border: 1px solid #e9e9e9; padding: 55px 40px 60px; text-align: center;
}
.feature-icon { font-size: 56px; line-height: 1; color: var(--green-dark); display: inline-block; }
.feature h4 { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 24px; line-height: 1.25; color: #23272b; margin: 28px 0 22px; }
.feature p { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.6; color: var(--text); }

/* ===== Damos soporte ===== */
.soporte { background: #fff; padding: 80px 0; }
.soporte__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eyebrow-line { font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--text); text-transform: uppercase; position: relative; padding-bottom: 14px; margin-bottom: 18px; }
.eyebrow-line:after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--text); }
.soporte__title { font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 30px; line-height: 1.33; letter-spacing: -.4px; color: var(--green); margin-bottom: 22px; max-width: 500px; }
.soporte__desc { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); }
.soporte__logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 50px; justify-items: center; align-items: center; max-width: 480px; margin-left: auto; }
.plogo { display: flex; align-items: center; justify-content: center; height: 150px; }
.plogo img { max-height: 130px; width: auto; opacity: .95; }

/* ===== Analysis (chart + portfolios) ===== */
.analysis { padding: 80px 0 90px; }
.analysis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.analysis__grid > * { min-width: 0; }
.chart-block .wpb_heading { margin-bottom: 18px; }
.chart-wrap { position: relative; height: 380px; width: 100%; min-width: 0; }
.chart-wrap canvas { max-width: 100% !important; }
.chart-note { font-family: 'Lato', sans-serif; font-style: italic; font-size: 15px; color: #8a8a8a; margin-top: 14px; }
.portfolios-block { padding-top: 6px; }
.portfolios__title { font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 24px; color: var(--green); position: relative; padding-bottom: 18px; margin-bottom: 18px; }
.underline-small:after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--green); }
.portfolios__intro { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 26px; }
.port-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.port-ico { font-size: 34px; line-height: 1; color: var(--green); flex: none; width: 40px; }
.port-item h5 { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 18px; color: #444; margin-bottom: 4px; }
.port-item p { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); }

/* Pilares */
.pilares-title { margin-top: 70px; margin-bottom: 50px; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.pilar__name { margin-bottom: 16px; }
.bar {
  position: relative; background: #f7f7f7; border: 1px solid #ededed; height: 36px;
  margin-bottom: 9px; display: flex; align-items: center;
}
.bar small {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  z-index: 2; color: #fff; font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 400;
}
.bar-fill { position: absolute; left: 0; top: 0; height: 100%; display: block; }
.bar-blue { background: #0074cc; }
.bar-red { background: #da4f49; }
.bar-green { background: #5bb75b; }

/* ===== CTA ===== */
.cta { position: relative; display: flex; align-items: center; min-height: 232px;
  background: url('../img/lets-work-bg.jpg') center center / cover no-repeat; }
.cta__overlay { position: absolute; inset: 0; background: rgba(40,54,82,.86); }
.cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta__title { font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 40px; letter-spacing: -1.5px; color: #fff; }
.cta__btn { background: var(--green); }
.cta__btn:hover { background: #3a9d6b; }

/* ===== Footer ===== */
.footer { background: var(--green); color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .6fr; gap: 30px; padding: 60px 15px 55px; }
.footer__logo { height: 46px; width: auto; margin-bottom: 26px; }
.footer__about p { font-family: 'Lato', sans-serif; font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.92); }
.footer__h { font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.footer__menu li a, .footer__contact { font-family: 'Lato', sans-serif; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.92); }
.footer__menu li { margin-bottom: 8px; position: relative; padding-left: 24px; }
.footer__menu li:before { content: "\2192"; position: absolute; left: 0; top: 0; color: rgba(255,255,255,.85); }
.footer__menu li a:hover { color: #fff; text-decoration: underline; }
.footer__contact { margin-bottom: 16px; }
.footer__social { display: flex; justify-content: flex-end; }
.social-link { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.footer__bottom { background: var(--green-darker); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; flex-wrap: wrap; gap: 10px; }
.copy { font-family: 'Lato', sans-serif; font-size: 15px; color: rgba(255,255,255,.92); }
.footer__legal { display: flex; gap: 30px; }
.footer__legal a { font-family: 'Lato', sans-serif; font-size: 15px; color: rgba(255,255,255,.92); }
.footer__legal a:hover { text-decoration: underline; }

/* ===== Responsive ===== */

/* Nav collapses to hamburger (top bar, hero & content stay multi-column) */
@media (max-width: 980px) {
  .nav-bar { position: relative; }
  .nav-bar__inner { flex-wrap: wrap; min-height: 77px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; background: var(--green); border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 0 auto; border-radius: 1px; }
  .main-nav {
    display: grid; grid-template-rows: 0fr; position: static; width: 100%;
    background: #fff; order: 3; z-index: 40; overflow: hidden;
    transition: grid-template-rows .35s ease;
  }
  .main-nav__wrap { display: block; overflow: hidden; min-height: 0; }
  .site-header.nav-open .main-nav { grid-template-rows: 1fr; }
  .menu { display: block; }
  .menu > .menu-item { border-bottom: 1px solid #ededed; position: static; }
  .menu > .menu-item > a { padding: 13px 20px; font-size: 18px; line-height: 1.4; }
  .menu > .menu-item.active > a { box-shadow: none; }
  .menu-item.has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .menu-item.has-sub > a { flex: 1; }
  .sub-toggle { display: flex; align-items: center; justify-content: center; width: 54px; align-self: stretch; font-size: 26px; color: var(--green); cursor: pointer; border-left: 1px solid #ededed; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; max-height: 0; overflow: hidden; transition: max-height .3s ease; background: #fafafa; }
  .menu-item.sub-open .submenu { max-height: 400px; }
  .submenu li a { padding: 14px 30px; }
  .btn-acceso-mobile { display: flex; justify-content: center; background: var(--green); color: #fff; font-size: 13px; letter-spacing: 2px; padding: 18px; }
}

/* Content stacks (Bootstrap xs) — top bar & hero hidden */
/* Revslider hero grows tall in the tablet/phablet zone before hiding */
@media (max-width: 778px) and (min-width: 481px) {
  .hero { height: 123vw; }
}

@media (max-width: 767px) {
  .container { padding: 0 30px; }
  .top-bar { display: none; }

  .band__inner { flex-direction: column; align-items: flex-start; gap: 26px; padding: 44px 30px; min-height: 0; }
  .band__title { font-size: 30px; line-height: 1.45; width: 100%; }
  .heading-caps { font-size: 26px; }

  .objetivos { padding: 55px 0; }
  .features { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .feature { padding: 45px 30px 50px; }

  .soporte { padding: 55px 0; }
  .soporte__grid { grid-template-columns: 1fr; gap: 40px; }
  .soporte__title { font-size: 28px; max-width: none; }
  .soporte__logos { grid-template-columns: 1fr 1fr; margin: 0 auto; }

  .analysis { padding: 55px 0; }
  .analysis__grid { grid-template-columns: 1fr; gap: 50px; }
  .pilares { grid-template-columns: 1fr; gap: 36px; }
  .pilares-title { margin-top: 50px; margin-bottom: 36px; }

  .cta { min-height: 0; padding: 50px 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .cta__title { font-size: 32px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding: 50px 30px 45px; text-align: left; }
  .footer__social { justify-content: flex-start; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; padding: 22px 30px; }
  .footer__legal { flex-wrap: wrap; gap: 10px 24px; }
}

/* Hero hidden on phones (matches original revslider) */
@media (max-width: 480px) {
  .hero { display: none; }
}

@media (max-width: 420px) {
  .soporte__title { font-size: 26px; }
  .cta__title { font-size: 28px; }
  .hero__title { font-size: 34px; }
}
