/* Letsdoia v2 — e-commerce & Shopify positioning */
.v2-trust-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}
.v2-trust-bar strong { color: #2563eb; }
.v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.v2-hero-actions .cta-btn--secondary {
  background: #fff;
  color: #2563eb !important;
  border: 2px solid #2563eb;
}
.v2-hero-actions .cta-btn--secondary:hover {
  background: #eaf3fb;
  color: #7c3aed !important;
  border-color: #7c3aed;
}
.v2-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.v2-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px #2563eb08;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.v2-card:hover {
  border-color: #2563eb44;
  box-shadow: 0 8px 32px #2563eb15;
}
.v2-card h3 {
  color: #2563eb;
  font-size: 1.35em;
  margin: 0 0 12px;
  height: auto;
}
.v2-card ul {
  text-align: left;
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: #444;
  line-height: 1.65;
}
.v2-card--highlight {
  border-color: #2563eb;
  background: linear-gradient(180deg, #f3f8fd 0%, #fff 100%);
}
.v2-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.v2-case {
  background: #f8fafc;
  border-radius: 14px;
  padding: 22px 20px;
  border-left: 4px solid #2563eb;
}
.v2-case h4 { margin: 0 0 8px; color: #181a1b; font-size: 1.1em; }
.v2-case p { margin: 0; color: #555; font-size: 0.98em; line-height: 1.55; }
.v2-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.v2-step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}
.v2-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.v2-price-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.v2-price-card--featured {
  border: 2px solid #2563eb;
  box-shadow: 0 8px 40px #2563eb18;
  position: relative;
}
.v2-price-card--featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.v2-price-card h3 { height: auto; margin-bottom: 8px; }
.v2-price {
  font-size: 1.5em;
  font-weight: 700;
  color: #181a1b;
  margin: 12px 0;
}
.v2-price small { display: block; font-size: 0.55em; font-weight: 500; color: #64748b; }
.v2-table-wrap { overflow-x: auto; margin-top: 24px; }
.v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}
.v2-table th, .v2-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.v2-table th { background: #f1f5f9; color: #2563eb; }
.v2-faq details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}
.v2-faq summary { cursor: pointer; font-weight: 600; color: #2563eb; }
.v2-faq p { margin: 12px 0 0; color: #444; line-height: 1.6; }
.v2-note { font-size: 0.9em; color: #64748b; margin-top: 20px; text-align: center; }
.navbar nav a.nav-link--product { color: #7c3aed; font-weight: 600; }

/* Banderas mobile: main.css las oculta en .navbar-flags; requiere .navbar-flags-mobile */
@media (min-width: 601px) {
  .navbar-flags-mobile {
    display: none !important;
  }
}

/* ——— Layout base: sin scroll horizontal ——— */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

.v2-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 28px;
}
.v2-contact-actions .cta-btn {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.v2-contained {
  max-width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-title {
    font-size: 1.35em !important;
    padding: 0 4px;
  }

  /* Hero: texto arriba, imagen chica abajo — sin hueco gigante */
  .hero.hero-2col {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 16px 20px !important;
    max-width: 100%;
  }
  .hero-2col .hero-content {
    order: 1;
    width: 100%;
    max-width: 100%;
  }
  .hero-2col .hero-image {
    order: 2;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }
  .hero-2col .hero-image img {
    max-width: min(220px, 72vw) !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 8px !important;
    transform: none !important;
    display: block;
  }
  .hero-2col h1 {
    font-size: 1.45em !important;
  }

  .v2-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 20px;
  }
  .v2-hero-actions .cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    font-size: 1em !important;
    white-space: normal;
  }

  .v2-trust-bar {
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .v2-grid-3,
  .v2-cases,
  .v2-steps,
  .v2-pricing {
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .v2-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 16px;
    overflow-wrap: anywhere;
  }
  .v2-card .cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    white-space: normal;
    padding: 14px 16px !important;
  }

  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 16px !important;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .select-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .v2-contained {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 16px !important;
  }

  #contacto > p {
    padding: 0 4px;
  }

  .navbar {
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 56px;
  }
  .navbar nav a.cta-nav {
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-2col .hero-image {
    display: none;
  }
  .hero.hero-2col {
    padding-bottom: 12px !important;
  }
}
