:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-accent: #e30613; /* rojo logo */
  --color-muted: #666666;
  --color-card: #f5f5f5;
  --max-width: 1100px;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* LAYOUT GENERAL */

header {
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav img {
  height: 50px;
}

.nav-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* CTA en el header */

.nav-cta .btn-small {
  background: #e30613;
  color: #fff;
  border: 1px solid #e30613;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.25);
  transition: .15s ease-out;
  text-decoration: none;
}

.nav-cta .btn-small:hover {
  background: #c00510;
  border-color: #c00510;
  transform: translateY(-1px);
}


.btn-small svg {
  margin-left: 6px;
  transition: transform .15s ease-out;
}

.btn-small:hover svg {
  transform: translateX(3px);
}



/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero-tag span.dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.02rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

/* BOTONES GENERALES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s,
    color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: #ddd;
}

.btn-outline:hover {
  border-color: var(--color-text);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-note b {
  color: var(--color-text);
}

.hero-card {
  background: var(--color-card);
  border-radius: 1.25rem;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.hero-card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hero-stat span.number {
  font-size: 2.1rem;
  font-weight: 700;
}

.hero-stat span.label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-list {
  list-style: none;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.hero-list li::before {
  content: "■";
  font-size: 0.55rem;
  color: var(--color-accent);
}

/* SECCIONES */

.section {
  padding: 2.5rem 0 2.8rem; /* igual que tu CSS original */
}

.section-soft {
  background: #fafafa;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Elemento decorativo en títulos */
.section-header h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  background-color: #111;   /* color final del icono */
  mask: url("../img/logo-mark.svg") no-repeat center / contain;
  -webkit-mask: url("../img/logo-mark.svg") no-repeat center / contain;
}


.section-header p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* GRID DE FUNCIONES */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1.3rem 1.2rem;
  font-size: 0.95rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* PASTILLA */

.pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

/* SECCIÓN PARTIDA */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.split p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.split ul {
  margin-top: 0.75rem;
  margin-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.split ul li {
  margin-bottom: 0.35rem;
}

/* SECCIÓN CÓMO FUNCIONA */

.section-how {
  background: #ffffff;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.how-step {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1.5rem 1.3rem;
  text-align: left;
}

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.how-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* PIE DE PÁGINA */

footer {
  border-top: 1px solid #eee;
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

/* HERO DECORADO */

.hero--decorated {
  position: relative;
  overflow: hidden;
}

/* Grupo de cuadrados */
.hero--decorated::before,
.hero--decorated::after {
  content: "";
  position: absolute;
  opacity: 0.07;
  transform: rotate(6deg);
}

/* Bloque grande */
.hero--decorated::before {
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background:
    linear-gradient(#000 0 0) 0 0 / 60% 60% no-repeat,
    linear-gradient(#e30613 0 0) 60% 40% / 25% 25% no-repeat,
    linear-gradient(#000 0 0) 40% 60% / 40% 40% no-repeat;
}

/* Bloque más pequeño, un poco desplazado */
.hero--decorated::after {
  top: 120px;
  right: 40px;
  width: 90px;
  height: 90px;
  background:
    linear-gradient(#000 0 0) 0 0 / 60% 60% no-repeat,
    linear-gradient(#e30613 0 0) 60% 40% / 40% 40% no-repeat;
}

/* DIVISOR ENTRE SECCIONES */

.divider {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: var(--max-width);
  margin: 2rem auto 1.5rem;
  padding: 0 1.5rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #eee, #ffffff);
}

.divider__square {
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 2px;
}

.divider__square--red {
  background: var(--color-accent);
}

/* SECCIÓN CON GRID SUAVE DE FONDO */

.section--grid-bg {
  position: relative;
  overflow: hidden;
}

.section--grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#f2f2f2 1px, transparent 1px),
    linear-gradient(90deg, #f2f2f2 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section--grid-bg > .container {
  position: relative;
  z-index: 1;
}

/* PLANES */

.pricing {
  text-align: center;
  padding: 4rem 1.5rem;
}

.pricing-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.pricing-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border: 2px solid #e30613;
  background: #fff8f8;
}

/* Badge "Más elegido" */
.badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e30613;
  color: #fff;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 1.4rem 0 1.7rem;
}

.price span {
  font-size: 0.9rem;
  color: #666;
}

.pricing-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "■";
  color: #e30613;
  font-size: 0.6rem;
  position: absolute;
  left: 0;
  top: 3px;
}

.btn-plan {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 2rem;
  border: 1px solid #222;
  text-decoration: none;
  color: #222;
  transition: 0.2s;
}

.btn-plan:hover {
  background: #222;
  color: #fff;
}

.btn-plan.primary {
  background: #e30613;
  border-color: #e30613;
  color: #fff;
}

.btn-plan.primary:hover {
  background: #c00510;
}

/* Comparador rápido */

.pricing-compare {
  margin-top: 3rem;
  text-align: left;
}

.pricing-compare h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
}

.pricing-table thead th {
  font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .features-grid,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing {
    padding-inline: 1.25rem;
  }
}



/* TESTIMONIOS */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  font-size: 0.95rem;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background:
    linear-gradient(135deg, #000000 0%, #111111 55%),
    linear-gradient(135deg, #e30613 55%, #ff5e5e 100%);
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.testimonial-text {
  margin: 0.6rem 0 0.8rem;
  color: var(--color-muted);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: #999999;
}


/* Responsive testimonios */

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Avatar con logo */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* LOGO WALL / MURO DE LOGOS */

.logo-wall {
  text-align: center;
}

.logo-wall-header {
  max-width: 620px;
  margin: 0 auto 2rem;
}

.logo-wall-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.logo-wall-header p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Panel que agrupa los logos */
.logo-wall-panel {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

/* Grid de logos */
.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem 3rem;  /* más aire */
  align-items: center;
}

/* Cada celda */
.logo-wall-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wall-item img {
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(100%) contrast(120%) brightness(0.6);
  opacity: 0.85;
  transition: all 0.2s ease;
}

.logo-wall-item img:hover {
  filter: grayscale(0%) contrast(110%) brightness(1);
  opacity: 1;
}

/* Nota pequeña bajo los logos */
.logo-wall-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .logo-wall-header h2 {
    font-size: 1.3rem;
  }

  .logo-wall-panel {
    padding: 1.1rem 1.2rem;
  }

  .logo-wall-grid {
    gap: 1.1rem 1.4rem;
  }

  .logo-wall-item img {
    max-height: 60px;
  }
}


/* ============================================================
   LAYOUT HERO – DESKTOP + MÓVIL
   ============================================================ */

/* Hero: organizamos el interior con flex en lugar de depender
   sólo del grid del <section> */
.hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Columna de texto y tarjeta en escritorio */
.hero-copy {
  flex: 2;
}

.hero-card {
  flex: 1.4;
}

/* ============================================================
   AJUSTES ESPECÍFICOS PARA MÓVIL
   ============================================================ */

@media (max-width: 768px) {
  /* Header: un poco más compacto en móvil */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav nav {
    font-size: 0.9rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  /* Hero: apilamos y forzamos orden correcto */
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-copy {
    order: 1;  /* siempre primero el texto */
  }

  .hero-card {
    order: 2;  /* la tarjeta va debajo en móvil */
  }

  /* Secciones: un poco más de aire lateral en móvil */
  .section,
  .pricing,
  .section-contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-two,
  .how-grid,
  .integrations-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   AJUSTES ESPECÍFICOS PARA MÓVIL: HEADER + MÁRGENES
   ============================================================ */

@media (max-width: 640px) {

  /* Más aire lateral para todo el contenido */
  .container {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  /* Header en columna, logo centrado */
  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.8rem;
    padding-bottom: 0.9rem;
  }

  .nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-left img {
    height: 46px; /* un poco más grande en móvil */
  }

  /* Menú visible y centrado debajo del logo */
  .nav-links {
    display: flex !important;      /* anula el display:none anterior */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    font-size: 0.9rem;
    margin-top: 0.2rem;
  }

  .nav-links a {
    text-decoration: none;
    padding: 0.15rem 0;
  }

  /* Botón "Entrar al panel" debajo del menú, centrado */
  .nav-cta {
    display: flex !important;      /* anula el display:none anterior */
    margin-top: 0.4rem;
  }

  .nav-cta .btn-small {
    margin: 0 auto;
  }
}

/* ============================================================
   TAMAÑOS INTERMEDIOS (TABLET / PORTÁTIL PEQUEÑO)
   ============================================================ */
/* Aplica aprox. entre móvil y escritorio grande */
@media (min-width: 641px) and (max-width: 1100px) {

  /* Más margen lateral para todo el contenido */
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  /* Ajuste suave del hero para que respire un poco más */
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }

  .hero-card {
    max-width: 420px;
  }
}

/* =========================================
   MENÚ MÓVIL TIPO ACORDEÓN (HAMBURGUESA)
   ========================================= */

.nav-toggle {
  display: none; /* checkbox oculto */
}

/* Botón hamburguesa: oculto en escritorio */
.nav-toggle-btn {
  display: none;
}

/* ---------- MÓVIL ---------- */
@media (max-width: 960px) {

  /* Contenido con algo más de margen lateral en móvil */
  .container {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  /* Header en varias filas, logo centrado */
  .nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav-left {
    width: 100%;
    display: flex;
    justify-content: center;  /* logo centrado */
    align-items: center;
  }

  .nav-left img {
    height: 46px;
  }

  /* Botón hamburguesa visible a la derecha */
  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
  }

  .nav-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111;
  }

  /* Menú oculto por defecto en móvil */
  .nav-links,
  .nav-cta {
    display: none;
    width: 100%;
  }

  /* Enlaces en columna, centrados */
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }

  .nav-links a {
    padding: 0.15rem 0;
  }

  /* Botón "Entrar al panel" centrado y ancho completo si se quiere */
  .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .nav-cta .btn-small {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Cuando el checkbox está marcado, mostramos menú + CTA */
  .nav-toggle:checked ~ .nav-links,
  .nav-toggle:checked ~ .nav-cta {
    display: flex;
  }
}



