:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --primary: #0f4c81;
  --primary-dark: #09365d;
  --text: #122033;
  --muted: #5c6b7a;
  --border: #dbe7f3;
  --shadow: 0 20px 45px rgba(10, 29, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  line-height: 1.7;
}

::selection {
  background: rgba(15, 76, 129, 0.2);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section.container {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - 1160px) / 2));
  margin: 0;
}

.hero {
  background: #7D8D78;
  color: #1b2825;
  padding-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  display: none;
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.24;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: #7fd0ff;
  top: -80px;
  right: -60px;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: #a8e1ff;
  bottom: -80px;
  left: -40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero > .navbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(1rem, calc((100% - 1160px) / 2));
  background: #f8fbf8;
}

.navbar.scrolled {
  background: rgba(248, 251, 248, 0.97);
  border-bottom: 1px solid rgba(31, 75, 67, 0.12);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 112px;
  width: auto;
  display: block;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.newsletter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
}

.newsletter-meta {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.newsletter-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.newsletter-item > p:not(.newsletter-meta) {
  margin: 0 0 1rem;
  color: var(--muted);
}

.newsletter-source {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.timeline-image-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.timeline-image {
  display: block;
  width: 100%;
  min-width: 1000px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.nav-links a {
  color: #1b2825;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: #7D8D78;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1b2825;
  margin: 5px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy panel"
    "strip strip";
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.2rem 0 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero-copy {
  grid-area: copy;
}

.hero-panel {
  grid-area: panel;
}

.hero-strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.77rem;
  font-weight: 700;
  color: #8fe0ff;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.4rem 0 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: #1b2825;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges span {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 430px;
  min-height: 760px;
  margin-left: auto;
  justify-content: flex-start;
}

.hero-visual {
  width: 100%;
  flex: 0 0 auto;
  min-height: 300px;
}

.panel-card {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 430px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 1.3rem;
  padding: 1.45rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.panel-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.panel-card p {
  margin: 0;
  color: var(--muted);
}

.card-badge {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.panel-stats div {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: #fbfdff;
}

.panel-stats strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
}

.strip-item {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.strip-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.strip-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.trust-bar {
  background: linear-gradient(180deg, rgba(18, 48, 43, 0.04), rgba(18, 48, 43, 0.02));
  border-top: 1px solid rgba(16, 60, 54, 0.08);
  border-bottom: 1px solid rgba(16, 60, 54, 0.08);
  padding: 0.8rem 0 0.9rem;
  overflow: hidden;
  margin-top: 0;
}

.trust-label {
  text-align: center;
  margin: 0 0 0.85rem;
}

.trust-marquee {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: trustMarquee 28s linear infinite;
  will-change: transform;
}

.trust-marquee:hover {
  animation-play-state: paused;
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.trust-track img {
  height: 120px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 60, 54, 0.08);
  box-shadow: 0 8px 18px rgba(17, 32, 29, 0.06);
}

@keyframes trustMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2,
.split h2,
.cta-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.7rem;
}

.section-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-carousel {
  position: relative;
}

.services-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.services-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(140px, auto));
  grid-auto-columns: clamp(12rem, 22vw, 16rem);
  gap: 1rem;
  width: max-content;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-card {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 1.1rem;
  color: var(--primary-dark);
  text-align: center;
  background: #e8eee9;
  border: 1px solid rgba(31, 75, 67, 0.12);
  border-radius: 0.65rem;
  box-shadow: 0 12px 25px rgba(27, 52, 45, 0.08);
}

.service-card:nth-child(4n + 1) {
  color: #1b2825;
  background: #7D8D78;
}

.service-card:nth-child(4n + 2) {
  color: #1b2825;
  background: #7D8D78;
}

.service-card:nth-child(4n + 3) {
  background: #d9e9df;
}

.service-card:nth-child(4n) {
  background: #edf2df;
}

.service-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.services-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.services-carousel-arrow,
.services-carousel-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.services-carousel-arrow:hover,
.services-carousel-toggle:hover {
  color: #1b2825;
  background: var(--primary);
  transform: translateY(-2px);
}

.services-carousel-arrow span,
.services-carousel-toggle span {
  font-size: 1rem;
  line-height: 1;
}

.services-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.services-carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  background: rgba(31, 75, 67, 0.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.services-carousel-dot[aria-current="true"] {
  width: 1.6rem;
  background: var(--primary);
  border-radius: 999px;
}

.info-card,
.step-card,
.feature-item,
.benefit-card,
.metric-card,
.testimonial-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.step-card:hover,
.feature-item:hover,
.benefit-card:hover,
.metric-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 42px rgba(10, 29, 51, 0.14);
}

.info-card h3,
.feature-item h3,
.step-card h3,
.benefit-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(22, 112, 184, 0.2));
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.value-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: none;
}

.value-list li {
  display: inline-flex;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
}

.value-list strong {
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.value-descriptions {
  margin-top: 0.75rem;
}

.value-descriptions > summary {
  display: none;
}

.value-descriptions-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.value-descriptions-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(16, 60, 54, 0.1);
  border-radius: 0.75rem;
  background: rgba(16, 60, 54, 0.02);
}

.value-descriptions-list strong {
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.value-descriptions-list span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card span {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.metric-card span {
  display: block;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  min-height: 100%;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card p {
  margin-top: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.cta-section {
  padding-top: 2rem;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #0f4c81, #1b7cb8);
  color: white;
  padding: 2rem;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-pill-group {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #7fd0ff;
  box-shadow: 0 0 0 3px rgba(127, 208, 255, 0.2);
}

.field.error input,
.field.error textarea {
  border-color: #ff5f5f;
}

.error-message {
  min-height: 1rem;
  color: #ffd1d1;
  font-size: 0.8rem;
}

.field.focus {
  transform: translateY(-1px);
}

.helper-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.form-message {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.95rem;
}

.form-message.success {
  color: #dff9e8;
}

.form-message.error {
  color: #ffd1d1;
}

.footer {
  background: #0b2138;
  color: #dfeaf5;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-content,
  .split,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .cards-grid,
  .benefits-grid,
  .steps-grid,
  .metrics-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(8, 47, 77, 0.96);
    box-shadow: var(--shadow);
    display: none;
    min-width: 220px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-strip,
  .cards-grid,
  .benefits-grid,
  .steps-grid,
  .metrics-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 2.3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .cta-box,
  .footer-content {
    padding: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

.field input,
.field textarea {
  border: 1px solid #cad9e8;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  font: inherit;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.16);
}

.field.focus input,
.field.focus textarea {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.16);
}

.field.error input,
.field.error textarea {
  border-color: #dc3545;
  background: #fff7f7;
}

.error-message {
  min-height: 1rem;
  color: #dc3545;
  font-size: 0.8rem;
}

.helper-text {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.form-message {
  min-height: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.form-message.success {
  color: #dff8e7;
}

.form-message.error {
  color: #ffe1e1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: floatIn 0.7s ease both;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer {
  background: #0a223a;
  color: #dceaf8;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 900px) {
  .cards-grid,
  .steps-grid,
  .newsletter-grid,
  .split,
  .cta-box,
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid,
  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    background: rgba(9, 54, 93, 0.96);
    padding: 1rem;
    border-radius: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content,
  .split,
  .cta-box,
  .cards-grid,
  .steps-grid,
  .newsletter-grid,
  .benefits-grid,
  .stats-grid,
  .footer-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-content {
    padding-top: 1.5rem;
  }

  .brand img {
    height: 92px;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* ===========================
   PAGINAS INTERNAS
   =========================== */

.inner-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 146px;
  z-index: 1000;
  background: #f8fbf8;
  border-bottom: 1px solid rgba(31, 75, 67, 0.12);
}


/* Navbar fija para páginas internas */

.inner-header .navbar {
  position: relative;
  top: auto;
  left: auto;
  width: min(1160px, calc(100% - 2rem));
    height: 146px;
  margin: 0 auto;
    padding: 1.05rem 0;
  background: transparent;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

}


/* Links visibles */

.inner-header .nav-links a {
  color: #1b2825;
    text-decoration: none;
    font-weight: 500;
}


.inner-header .nav-links a:hover {
  color: #7D8D78;
}


/* Logo */

.inner-header .brand img {
  height: 112px;
  max-height: none;
}


/* Botón móvil */

.inner-header .menu-toggle span {
  background: #1b2825;
}


/* Evita que el contenido quede debajo de la navbar */

.page-content {
  padding-top: 146px;
}

@media (max-width: 700px) {
  .inner-header,
  .inner-header .navbar {
    height: 126px;
  }

  .inner-header .brand img {
    height: 92px;
  }

  .inner-header .nav-links {
    top: calc(100% - 0.25rem);
    background: #f8fbf8;
  }

  .page-content {
    padding-top: 126px;
  }
}

@media (max-width: 760px) {
  .hero .menu-toggle,
  .inner-header .menu-toggle {
    display: block;
  }

  .hero .nav-links,
  .inner-header .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 0.25rem);
    right: 0;
    padding: 1rem;
    border-radius: 0.65rem;
    background: #f8fbf8;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
  }

  .hero .nav-links.open,
  .inner-header .nav-links.open {
    display: flex;
  }
}

/* Ajustes visuales de la firma */
:root {
  --bg: #f4f6f3;
  --surface-alt: #e8eee9;
  --primary: #7D8D78;
  --primary-dark: #1b2825;
  --text: #1b2825;
  --muted: #63706b;
  --border: #d8e1dc;
  --shadow: 0 20px 45px rgba(27, 52, 45, 0.1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(180deg, #f8fbf8 0%, #f4f6f3 100%);
}

main {
  background: #f4f6f3;
}

.section-alt {
  background: #ffffff;
}

.hero {
  background: #7D8D78;
  color: #1b2825;
}

.cta-box {
  background: linear-gradient(120deg, #7D8D78 0%, #7D8D78 58%, #7D8D78 100%);
  color: #1b2825;
}

.hero .lead,
.hero .hero-badges span,
.hero .btn-secondary,
.hero .strip-item span {
  color: #1b2825;
}

.hero .hero-badges span {
  border-color: rgba(27, 40, 37, 0.2);
  background: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary {
  border-color: rgba(27, 40, 37, 0.32);
  background: rgba(255, 255, 255, 0.4);
}

.hero .strip-item {
  border-color: rgba(27, 40, 37, 0.18);
  background: rgba(255, 255, 255, 0.35);
}

.cta-box .helper-text,
.cta-box .contact-note {
  color: rgba(27, 40, 37, 0.82);
}

.cta-box .contact-pill {
  background: rgba(255, 255, 255, 0.78);
  color: #1b2825;
  border-color: rgba(27, 40, 37, 0.18);
}

.team-carousel-arrow:hover,
.team-carousel-toggle:hover {
  color: #1b2825;
}

.hero h1,
.section-heading h1,
.section-heading h2,
.split h2,
.cta-box h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0;
}

.eyebrow {
  color: #6b9f8d;
}

.hero .eyebrow {
  color: #1b2825;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 390px;
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19, 47, 43, 0.04), rgba(19, 47, 43, 0.7));
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.visual-caption {
  position: absolute;
  left: 1.25rem;
  right: auto;
  width: 42%;
  bottom: 1.25rem;
  display: grid;
  gap: 0.2rem;
  color: white;
}

.visual-caption span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c7ded0;
}

.visual-caption strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  justify-content: flex-start;
}

.hero-panel .panel-card {
  position: relative;
  right: auto;
  bottom: auto;
  max-width: none;
  width: 100%;
  min-height: 360px;
  z-index: 2;
  border-radius: 1.3rem;
  padding: 1.45rem;
  margin: 0;
  flex: 1 1 auto;
}

.hero-strip {
  margin-top: 0;
}

.info-card,
.step-card,
.feature-item,
.benefit-card,
.metric-card,
.testimonial-card,
.faq-item {
  border-radius: 0.65rem;
}

.team-photo {
  overflow: hidden;
  border-radius: 0.65rem;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero-panel .panel-card {
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  .hero-visual {
    min-height: 300px;
  }

  .hero-panel .panel-card {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin-top: 1rem;
  }

  .visual-caption {
    width: auto;
    right: 1.25rem;
  }

  .hero-strip {
    margin-top: 2rem;
  }
}

.team-section {
  position: relative;
  overflow: hidden;
  background: #f4f6f3;
}

.team-section::before {
  content: 'CG';
  position: absolute;
  top: 2rem;
  right: 6%;
  color: rgba(31, 75, 67, 0.08);
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: 0.8;
  pointer-events: none;
}

.team-carousel-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  text-align: center;
}

.team-carousel-heading h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.team-carousel {
  position: relative;
  z-index: 1;
}

.team-carousel-viewport {
  overflow: hidden;
  border-radius: 0.8rem;
}

.team-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.team-card {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: center;
  align-items: center;
  column-gap: clamp(1.5rem, 5vw, 4rem);
  min-height: 380px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 75, 67, 0.12);
  border-radius: 0.8rem;
  box-shadow: 0 14px 30px rgba(27, 52, 45, 0.08);
}

.team-photo {
  width: 100%;
  max-width: 400px;
  grid-column: 1;
  grid-row: 1 / 5;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 5px solid #e8f1eb;
  box-shadow: 0 8px 18px rgba(27, 52, 45, 0.12);
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.25rem;
  filter: saturate(0.82);
}

.team-card h2,
.team-card h3,
.team-card p {
  grid-column: 2;
  text-align: left;
}

.team-card h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.team-card h3 {
  margin: 0.2rem 0 0.65rem;
  color: #6b9f8d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-card p {
  margin: 0 0 1rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.team-specialties {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-top: auto;
}

.team-specialties span {
  padding: 0.35rem 0.6rem;
  border: 1px solid #c8ddd0;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.team-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-carousel-arrow,
.team-carousel-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.team-carousel-arrow:hover,
.team-carousel-toggle:hover {
  color: white;
  background: var(--primary);
  transform: translateY(-2px);
}

.team-carousel-arrow span {
  font-size: 1.2rem;
  line-height: 1;
}

.team-carousel-toggle span {
  font-size: 0.8rem;
  line-height: 1;
}

.team-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.team-carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  background: rgba(31, 75, 67, 0.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.team-carousel-dot[aria-current="true"] {
  width: 1.6rem;
  background: var(--primary);
  border-radius: 999px;
}

@media (max-width: 600px) {
  .team-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 0;
    min-height: 0;
    padding: 1.25rem;
  }

  .team-photo {
    width: min(100%, 280px);
    grid-column: 1;
    grid-row: 1;
    margin: 0 auto 1.25rem;
  }

  .team-card h2,
  .team-card h3,
  .team-card p,
  .team-specialties {
    grid-column: 1;
    text-align: center;
  }

  .team-specialties {
    justify-content: center;
  }

  .team-carousel-controls {
    gap: 0.65rem;
  }

  .team-carousel-arrow,
  .team-carousel-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-track {
    transition: none;
  }
}

@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "panel"
      "strip";
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .hero-copy,
  .hero-panel,
  .hero-strip {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    overflow-wrap: anywhere;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-actions .btn {
    flex: 1 1 10rem;
    text-align: center;
  }

  .hero-panel {
    max-width: none;
    min-height: 0;
    gap: 0.8rem;
    margin: 0;
  }

  .hero-visual {
    min-height: clamp(210px, 62vw, 300px);
  }

  .hero-panel .panel-card {
    min-height: 0;
    flex: 0 1 auto;
    margin: 0;
    padding: 1.15rem;
  }

  .hero-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin: 0;
  }

  .hero-strip .strip-item {
    padding: 0.75rem 0.9rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  .section-heading h1 {
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .section-heading h2,
  .team-carousel-heading h2,
  .split h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .cards-grid,
  .benefits-grid,
  .steps-grid,
  .metrics-grid,
  .testimonial-grid,
  .newsletter-grid,
  .stats-grid,
  .history-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .history-grid {
    display: grid;
  }

  .cta-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .contact-form,
  .field,
  .field input,
  .field textarea {
    min-width: 0;
  }

  .footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .inner-header,
  .inner-header .navbar {
    height: 104px;
  }

  .inner-header .brand img,
  .hero .brand img {
    height: 72px;
  }

  .page-content {
    padding-top: 104px;
  }

  .hero .nav-links,
  .inner-header .nav-links {
    top: calc(100% - 0.25rem);
    right: 1rem;
    min-width: min(220px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }

  .team-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0.45rem;
    min-height: 0;
    padding: 1rem;
  }

  .team-photo {
    width: min(100%, 280px);
    grid-column: 1;
    grid-row: auto;
    margin: 0 auto 0.75rem;
  }

  .team-card h2,
  .team-card h3,
  .team-card p,
  .team-specialties {
    grid-column: 1;
    text-align: center;
  }

  .team-specialties {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .team-carousel-controls {
    gap: 0.65rem;
  }

  .value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .value-list li {
    padding: 0.35rem 0.55rem;
  }

  .value-descriptions {
    margin-top: 0.85rem;
  }

  .value-descriptions > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .value-descriptions > summary::-webkit-details-marker {
    display: none;
  }

  .value-descriptions > summary::after {
    content: '+';
    font-size: 1.1rem;
    line-height: 1;
  }

  .value-descriptions[open] > summary::after {
    content: '\2212';
  }

  .value-descriptions-list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0.65rem;
  }
}

main > section:nth-of-type(odd) {
  background: #ffffff;
}

main > section:nth-of-type(even) {
  background: #7D8D78;
  color: #1b2825;
}

main > section:nth-of-type(even) .eyebrow,
main > section:nth-of-type(even) .section-copy {
  color: #1b2825;
}

#firma .benefit-card {
  background: #f4f6f3;
}

#sectores .service-card {
  color: #1b2825;
  background: #ffffff;
}

#servicios .service-card {
  color: #1b2825;
  background: #ffffff;
}

#servicios .services-carousel-dot {
  background: rgba(27, 40, 37, 0.3);
}

#servicios .services-carousel-dot[aria-current="true"] {
  background: #1b2825;
}

#contacto .cta-box {
  background: #ffffff;
  color: #1b2825;
}

@media (max-width: 760px) {
  .benefits-grid,
  .newsletter-grid,
  .metrics-grid,
  .history-grid,
  .feature-stack {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 1rem 0.85rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    touch-action: pan-x pan-y;
  }

  .benefits-grid > *,
  .newsletter-grid > *,
  .metrics-grid > *,
  .history-grid > *,
  .feature-stack > * {
    flex: 0 0 min(86%, 22rem);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .benefit-card,
  .newsletter-item,
  .metric-card,
  .history-card,
  .feature-item {
    height: auto;
    min-height: 0;
  }

  .history-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    box-shadow: var(--shadow);
  }
}

.firm-story {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.firm-story > .section-heading {
  max-width: 850px;
  margin: 0 0 2rem;
  text-align: left;
}

.firm-story .section-heading h1 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.firm-story .section-copy {
  max-width: 64ch;
  margin: 0;
  font-size: 1.05rem;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 1.25rem;
}

.history-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.history-card:first-child {
  position: relative;
  overflow: hidden;
  border-color: #1b2825;
  background: #1b2825;
  color: #ffffff;
}

.history-card:first-child::after {
  position: absolute;
  right: -0.1em;
  bottom: -0.42em;
  color: rgba(255, 255, 255, 0.06);
  content: 'CG';
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 20vw, 15rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.history-card h2 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  line-height: 1.2;
}

.history-card:first-child h2,
.history-card:first-child p {
  position: relative;
  z-index: 1;
}

.history-card:first-child p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
}

.history-card p {
  margin: 0 0 0.9rem;
}

.history-card p:last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(125, 141, 120, 0.38);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  position: absolute;
  top: 0.35rem;
  left: calc(-1rem - 6px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7D8D78;
  content: '';
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.94rem;
}

.firm-values .benefit-card {
  min-width: 0;
  background: #ffffff;
}

.firm-specialties .split {
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.firm-specialties .split > div:first-child {
  max-width: 42rem;
}

.firm-contact {
  padding-top: 2rem;
}

.firm-contact .cta-box {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.firm-contact .cta-box .eyebrow {
  color: var(--primary);
}

.firm-contact .cta-box .btn-primary {
  background: #7D8D78;
  color: #1b2825;
}

@media (max-width: 760px) {
  .firm-story {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .firm-story > .section-heading {
    margin-bottom: 1.25rem;
  }

  .firm-story .section-heading h1 {
    max-width: 20ch;
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.12;
  }

  .firm-story .section-copy {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .history-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.75rem;
    padding-right: 0.5rem;
  }

  .history-grid > .history-card {
    flex-basis: 92%;
    padding: 1.25rem;
    border-radius: 0.5rem;
  }

  .history-card h2 {
    font-size: 1.4rem;
  }

  .firm-values {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .firm-specialties {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .firm-specialties .split {
    gap: 1.25rem;
  }

  .firm-contact {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .firm-contact .cta-box {
    padding: 1.25rem;
  }
}