:root {
  --tbp-green: #99C23B;
  --tbp-blue: #023840;
  --tbp-dark: #02171B;
  --tbp-gray: #6F7B80;
  --tbp-light: #F5F7F4;
  --tbp-soft: #F7FAF7;
  --radius-lg: 1.6rem;
  --radius-md: 1rem;
  --shadow-sm: 0 12px 35px rgba(0,0,0,.04);
  --shadow-hover: 0 18px 45px rgba(0,0,0,.08);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #101518;
  line-height: 1.55;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  background: #023840;
  color: #fff;
  font-size: .8rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 1rem;
}
.topbar-right {
  display: flex;
  gap: .7rem;
  align-items: center;
}
.topbar-right a { color: #fff; font-weight: 500; }
.divider { opacity: .35; }

.lang {
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .15rem .5rem;
  cursor: pointer;
  font-size: .7rem;
}
.lang.active {
  background: #99C23B;
  color: #023840;
  font-weight: 600;
}
.pulse-dot {
  width: .55rem;
  height: .55rem;
  background: #99C23B;
  border-radius: 999px;
  display: inline-block;
  margin-right: .45rem;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* HEADER */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
  min-height: 90px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  gap: 1.5rem;
}
.logo-img {
  height: 82px;
  max-height: 82px;
  width: auto;
  transition: all 0.3s ease;
}
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  color: #023840;
  padding: .35rem .3rem;
  border-radius: .5rem;
  transition: .15s;
}
.nav-link:hover { color: #99C23B; }
.nav-cta {
  background: #99C23B;
  color: #023840;
  padding: .4rem .85rem;
  border-radius: .7rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #023840;
}

/* HEADER SHRINK */
.header.shrink,
.header.shrink .header-inner { min-height: 70px; }
.header.shrink .logo-img {
  height: 62px;
  max-height: 62px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  background:
    linear-gradient(120deg, rgba(2,56,64,.9) 0%, rgba(2,33,38,.95) 50%, rgba(2,56,64,.9) 100%),
    url('../img/hero-tbp.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(153,194,59,.22) 0%, rgba(2,56,64,0) 35%), radial-gradient(circle, rgba(153,194,59,.3) 0, rgba(2,56,64,0) 55%);
  opacity: .8;
  pointer-events: none;
}
.hero-flex {
  position: relative;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 4.6rem 0 4.2rem;
}
.hero-left { flex: 1.1; }
.hero-right { flex: .9; position: relative; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  opacity: .9;
  margin-bottom: .9rem;
}
.hero-title {
  font-size: clamp(2.45rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-text {
  max-width: 520px;
  margin-bottom: 1.3rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}
.btn-primary {
  background: #99C23B;
  color: #023840;
  padding: .7rem 1.2rem;
}
.btn-outline {
  background: rgba(255,255,255,.01);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: .7rem 1.2rem;
}
.btn:hover { transform: translateY(-1.5px); }

/* HERO STATS */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat {
  background: rgba(2,56,64,.12);
  border: 1px solid rgba(153,194,59,.2);
  border-radius: 1rem;
  padding: .6rem .9rem;
  min-width: 130px;
}
.stat h3 { margin: 0; font-size: 1.4rem; }
.stat p { margin: 0; font-size: .7rem; opacity: .8; }

.hero-card {
  background: rgba(5,17,21,.35);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: 1.3rem;
  padding: 1.5rem;
  max-width: 320px;
  box-shadow: 0 12px 45px rgba(0,0,0,.2);
}
.hero-card ul {
  padding-left: 1.15rem;
  margin-bottom: .7rem;
}
.hero-floating {
  position: absolute;
  bottom: -2.2rem;
  right: 1rem;
  background: #fff;
  color: #023840;
  border-radius: 1.2rem;
  padding: .6rem .9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: float 3.6s ease-in-out infinite;
}
.badge-success {
  background: rgba(153,194,59,.14);
  border: 1px solid rgba(153,194,59,.4);
  border-radius: 999px;
  padding: .12rem .6rem;
  font-size: .65rem;
  display: inline-block;
  margin-top: .25rem;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* SECTION BASE */
.section { padding: 4.8rem 0; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  font-size: .75rem;
  color: #99C23B;
  margin-bottom: .4rem;
}
.section h2 {
  font-size: 2.05rem;
  margin-bottom: 1rem;
  color: #023840;
}
.section-head {
  margin-bottom: 3rem;
}
.section-head.center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-head.center.narrow {
  max-width: 540px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.3rem;
  align-items: center;
}
.about-cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.about-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.15rem;
  border: 1px solid rgba(2,56,64,.04);
  box-shadow: 0 12px 35px rgba(2,56,64,.02);
  transition: .15s;
}
.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2,56,64,.08);
}
.about-card.highlighted {
  border: 1px solid rgba(153,194,59,.3);
  background: rgba(153,194,59,.05);
}
.about-pill-row {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .3rem;
}
.pill {
  background: rgba(153,194,59,.18);
  color: #023840;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .7rem;
}
.about-image {
  position: relative;
  max-width: 440px;
  justify-self: center;
}
.img-rounded {
  border-radius: 1.4rem;
  box-shadow: 0 22px 45px rgba(0,0,0,.12);
  object-fit: cover;
  width: 100%;
  height: 360px;
  background: #eee;
}
.about-image-badge {
  position: absolute;
  bottom: -16px;
  left: 14px;
  background: #023840;
  color: #fff;
  padding: .55rem .9rem .6rem;
  border-radius: 1rem;
  font-size: .78rem;
  box-shadow: 0 18px 30px rgba(0,0,0,.25);
}

/* SERVICES */
.services { background: #F5F7F4; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.4rem 1.25rem;
  border: 1px solid rgba(2,56,64,.02);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 250px;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: rgba(153,194,59,.14);
  color: #023840;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #5C6C6F;
  font-size: .9rem;
}
.service-link {
  margin-top: auto;
  font-weight: 600;
  color: #023840;
}

/* STEPS / METODOLOGÍA */
.steps {
  background: var(--tbp-soft);
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  position: relative;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: rgba(2,56,64,.1);
  z-index: 0;
}
.step-card {
  background: #fff;
  border-radius: 1.3rem;
  padding: 1.4rem 1.25rem 1.2rem;
  border: 1px solid rgba(2,56,64,.03);
  box-shadow: 0 12px 35px rgba(0,0,0,.02);
  position: relative;
  z-index: 1;
  transition: .15s;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(0,0,0,.04);
}
.step-top {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
}
.step-badge {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #99C23B;
  color: #023840;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 18px rgba(153,194,59,.3);
  flex: 0 0 46px;
}
.step-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6F7B80;
  font-weight: 500;
}

/* WHY */
.why {
  background: #fff;
}
.why-shell {
  background: linear-gradient(110deg, #fff 0%, #fff 46%, rgba(2,56,64,.04) 46%, rgba(2,56,64,.04) 100%);
  border-radius: 1.6rem;
  padding: 3.3rem 3rem 3.2rem;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2.5rem;
}
.why-left p {
  max-width: 460px;
}
.why-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.why-points li::before {
  content: "• ";
  color: #99C23B;
}
.why-right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.why-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid rgba(2,56,64,.05);
  box-shadow: 0 12px 40px rgba(0,0,0,.015);
  transition: .15s;
}
.why-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 38px rgba(0,0,0,.03);
}
.why-card-image {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #022329;
}
.why-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(2,35,41,0) 0%, rgba(2,35,41,.8) 100%);
  padding: .6rem .8rem 1rem;
  color: #fff;
  font-size: .8rem;
}

/* TEAM */
.team {
  background: #F5F7F4;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid rgba(2,56,64,.04);
  box-shadow: 0 12px 30px rgba(0,0,0,.02);
  transition: .15s;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.04);
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto .7rem;
  background: #dce3df;
  display: grid;
  place-items: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  font-weight: 500;
  color: #023840;
  margin-bottom: .3rem;
}

.team-text {
  color: #6F7B80;
  font-size: .85rem;
}

/* Cuadro de asociados */
.team-associates {
  margin-top: 2.2rem;
  background: #fff;
  border: 1px solid rgba(2,56,64,.03);
  border-radius: 1.1rem;
  padding: 1.4rem 1.6rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.02);
}

.team-associates h3 {
  margin-top: 0;
  margin-bottom: .5rem;
  color: #023840;
}

.team-associates p {
  margin-bottom: .6rem;
  color: #5C6C6F;
}

.team-associates ul {
  margin: 0 0 .8rem 0;
  padding-left: 1.1rem;
  color: #5C6C6F;
  font-size: .85rem;
}

.team-associates .tag {
  display: inline-block;
  background: rgba(153,194,59,.13);
  color: #023840;
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .7rem;
  font-weight: 600;
}


/* CONTACT */
.contact {
  background: linear-gradient(120deg, #023840 0%, #025669 80%);
  color: #fff;
}
.contact-inner {
  display: grid;
  grid-template-columns: .9fr .9fr;
  gap: 2.2rem;
  align-items: center;
}
.contact-left h2,
.contact-left p,
.contact-left a {
  color: #fff;
}
.contact-block p a {
  color: #fff;
  font-weight: 600;
}
.contact-form {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.6rem 1.5rem;
  color: #023840;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  width: min(440px, 100%);
  justify-self: end;
}
.form-group {
  margin-bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
label {
  font-weight: 600;
}
input,
select,
textarea {
  border: 1px solid rgba(2,56,64,.14);
  border-radius: .7rem;
  padding: .5rem .6rem;
  font-family: inherit;
  outline: none;
  font-size: .9rem;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #99C23B;
  box-shadow: 0 0 0 3px rgba(153,194,59,.15);
}
textarea { resize: vertical; }
.w-100 { width: 100%; }

/* FOOTER */
.footer {
  background: #022329;
  color: #fff;
  padding: 1.8rem 0 2.2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-inner p,
.footer a {
  color: rgba(255,255,255,.9);
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer a:hover {
  color: #fff;
}

/* BOTÓN FLOTANTE */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #99C23B;
  color: #023840;
  border: none;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 99;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .why-shell {
    grid-template-columns: 1fr;
    background: #fff;
    padding: 0;
  }
  .why-right {
    margin-top: 1.8rem;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 90px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    display: none;
    border-bottom: 1px solid rgba(0,0,0,.03);
  }
  .nav.nav-open { display: flex; }
  .nav-link,
  .nav-cta {
    padding: 1rem 1.25rem;
    border-radius: 0;
  }
  .nav-toggle {
    display: block;
  }
  .hero-flex {
    flex-direction: column;
  }
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-form {
    justify-self: start;
  }
  .steps-row::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .header,
  .header-inner {
    min-height: 72px;
  }
  .logo-img {
    height: 64px;
    max-height: 64px;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-stats { gap: .6rem; }
  .contact-form { width: 100%; }
}
