@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

/* ============================================================
   TOKENS / BASE
   ============================================================ */
:root {
  --font-sans: "Ubuntu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-accent: #e30613;

  --color-card: #f5f5f5;

  --border: 1px solid #eee;
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.08);

  --max-width: 1100px;

  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 0.9rem;
  --space-4: 1.2rem;
  --space-5: 1.6rem;
  --space-6: 2.2rem;
  --space-7: 3rem;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.4rem;
}

p,
label,
input,
textarea,
select,
button {
  font-family: var(--font-sans);
  font-weight: 400;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.table {
  font-size: 0.9rem;
}
.table thead th {
  font-weight: 500;
}
.btn {
  font-weight: 500;
}

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  border-bottom: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  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 */
.nav-cta .btn-small {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.25);
  transition: 0.15s ease-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

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

.btn-small svg {
  margin-left: 6px;
  transition: transform 0.15s ease-out;
}
.btn-small:hover svg {
  transform: translateX(3px);
}

/* Hamburger (checkbox) */
.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.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
   ============================================================ */
.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--decorated {
  position: relative;
  overflow: hidden;
}

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

.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(var(--color-accent) 0 0) 60% 40% / 25% 25% no-repeat,
    linear-gradient(#000 0 0) 40% 60% / 40% 40% no-repeat;
}

.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(var(--color-accent) 0 0) 60% 40% / 40% 40% no-repeat;
}

.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;
}

.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: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-lg);
}

.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);
}

/* ============================================================
   SECTIONS / GRID
   ============================================================ */
.section {
  padding: 2.5rem 0 2.8rem;
}

.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;
}

.section-header h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  background-color: #111;
  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;
}

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

.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  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;
}

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

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

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

.split ul {
  margin-top: 0.75rem;
  margin-left: 1.1rem;
  font-size: 0.9rem;
}

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

.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: var(--radius-md);
  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);
}

/* ============================================================
   DIVIDER / GRID BG
   ============================================================ */
.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);
}

.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;
}

/* ============================================================
   PRICING
   ============================================================ */
.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: var(--border);
  border-radius: var(--radius-md);
  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 var(--color-accent);
  background: #fff8f8;
}

.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: var(--color-accent);
  color: #fff;
}

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

.price {
  font-size: 1.8rem;
  font-weight: 700;
  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: var(--color-accent);
  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: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

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

/* Comparador */
.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: var(--border);
  text-align: center;
}

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

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

/* ============================================================
   TESTIMONIALS (sin duplicados)
   ============================================================ */
.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: var(--border);
  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: 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;
  filter: grayscale(100%) contrast(120%) brightness(0.6);
}

.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;
}

/* ============================================================
   LOGO WALL
   ============================================================ */
.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;
}

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

.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem 3rem;
  align-items: center;
}

.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;
}

.logo-wall-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: var(--border);
  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);
}

/* ============================================================
   RESPONSIVE (ordenado, sin solapes)
   ============================================================ */

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

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

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

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

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



/* <= 640px */
@media (max-width: 640px) {
  .container {
    padding: 1.25rem;
  }

  .hero {
    padding: 2.5rem 1.25rem 3rem;
  }

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

  .pricing {
    padding-inline: 1.25rem;
  }

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

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

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

/* <= 960px: menú hamburguesa (una sola regla, sin duplicados) */
/* <= 960px: menú hamburguesa */
@media (max-width: 960px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* clave */
    gap: 0.75rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: auto;            /* clave: NO 100% */
  }

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

  /* Botón hamburguesa: en flujo, visible */
  .nav-toggle-btn {
    display: flex;  
    flex-direction: column;
    position: static;       
    transform: none;
    margin-left: auto;      
  }

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

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .nav-cta .btn-small {
    width: min(420px, 100%);
    justify-content: center;
  }

  /* Menú abierto */
  .nav-toggle:checked ~ .nav-links,
  .nav-toggle:checked ~ .nav-cta {
    display: flex;
  }
}

/* 641px - 1100px */
@media (min-width: 641px) and (max-width: 1100px) {
  .container {
    padding: 0.8rem;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }

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

