/* Contable.Pe - Plain CSS (no frameworks) */

:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: hsl(282, 47%, 32%);
  --accent-light: hsl(282, 47%, 97%);
  --border: #ebebeb;
  --radius: 0.625rem;
  --shadow-soft: 0 1px 3px 0 rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 16px -4px rgba(0,0,0,0.08);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}



body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-img {
  width: 2rem;
  height: 2rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-links .nav-link {
  display: inline-block;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--foreground);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 0.25rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
}

.nav-mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.nav-mobile-actions .btn {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
  border: none;
}

.btn-primary:hover {
  background: rgba(23,23,23,0.9);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: none;
}

.btn-ghost:hover {
  color: var(--foreground);
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  margin-left: 0.25rem;
}

/* Main */
.min-h-screen {
  min-height: 100vh;
}

/* Hero */
.hero {
    padding-top: 7rem;
    padding-bottom: 5rem;


    position: relative;
    overflow: hidden;
}


.hero-img-left,
.hero-img-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 85%; /* ajusta según necesidad */
    width: auto;
    z-index: 0;
    pointer-events: none;
}

.hero-img-left {
    left: 0;
}

.hero-img-right {
    right: 0;
}


.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 768px) {
    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center; /* if hero-buttons is a flex container */
    }
}


.hero-content {
    flex: 1;
    margin-left:30px;
}

.hero-image {
    flex: 0 0 40%; /* fixed 45% width */
    text-align: right;
}

    .hero-image img {
        width: 100%;
        height: auto;
    }


.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 80rem;
  margin: 0 auto 2.5rem ;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
 /*justify-content: center; */
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-muted {
  background: rgba(245,245,245,0.5);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-header-left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.section-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.25rem;
  }
}

.section-desc {
  color: var(--muted-foreground);
  margin: 0;
}

/* Integrations marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 10;
  pointer-events: none;
}

@media (min-width: 768px) {
  .marquee-fade {
    width: 10rem;
  }
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(245,245,245,0.9), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(245,245,245,0.9), transparent);
}

.marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-inner {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    animation: none; /* move animation here */
}

/* single wrapping element that holds both inners */
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

    .marquee-inner:nth-child(2) {
        padding-left: 1rem; /* compensate for the gap between the two inners */
    }


@media (max-width: 767px) {
    .marquee-wrap .marquee-fade,
    .marquee-wrap .marquee-track,
    .marquee-wrap .marquee {
        display: none;
    }

    .integration-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

        .integration-grid-mobile .integration-card {
            width: auto;
            padding: 1.25rem;
        }

            .integration-grid-mobile .integration-card p {
                display: none;
            }
}

@media (min-width: 768px) {
    .integration-grid-mobile {
        display: none;
    }
}

.integration-card {
  flex-shrink: 0;
  width: 260px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s;
}

.integration-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.integration-logo {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.integration-card p {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

/* Modules */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-card);
}

.module-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.module-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.module-card p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

/* Clients */
.clients-logos {
  max-width: 80rem;
  margin: 0 auto;
}

.clients-logos img {
  width: 100%;
  object-fit: contain;
}

/* Extras */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .extras-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.extra-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.extra-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-card);
}

.extra-image {
  width: 100%;
  height: 9rem;
  overflow: hidden;
}

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

.extra-content {
  padding: 1.5rem;
}

.extra-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.extra-content p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* CTA */
.cta-wrapper {
  max-width: 36rem;
  margin: 0 auto;
}

.cta-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cta-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .cta-header h2 {
    font-size: 2.25rem;
  }
}

.cta-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto;
}

.cta-form {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(245,245,245,0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.cta-form .btn {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-legal {
  font-size: 12px;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0.5rem 0;
}

.form-legal a {
  text-decoration: underline;
}

.form-legal a:hover {
  color: var(--foreground);
}

.cta-success {
  text-align: center;
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(245,245,245,0.5);
}

.cta-success.hidden {
  display: none !important;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cta-success h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cta-success p {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  width: 1.75rem;
  height: 1.75rem;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.footer p,
.footer ul {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

.footer h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--foreground);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Page content (legal, etc.) */
.page-content {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.page-content .container {
  max-width: 48rem;
}

.page-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .page-content h1 {
    font-size: 2.25rem;
  }
}

.page-content .page-meta {
  color: var(--muted-foreground);
  margin: 0 0 2rem;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.page-content a {
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-body h2 {
  margin: 2rem 0 0.75rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 1rem;
}

/* Consulta form */
.consulta-form {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-card);
}

.consulta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

 