/* TurnerosPro.com — Landing comercial
   Paleta según marca/turnerospro-marca.png + brand-identity
   Mobile-first: base → 600 → 900 → 1200
*/

:root {
  --primary: #0a1b3d;
  --primary-hover: #0d47a1;
  --accent: #1976d2;
  --accent-light: #64b5f6;
  --accent-ring: rgba(25, 118, 210, 0.12);
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eef1f5;
  --text: #0a1b3d;
  --text-muted: #757575;
  --border: #e0e3e8;
  --border-soft: #c7cdd6;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --success-border: #c8e6c9;
  --wa: #25d366;
  --wa-hover: #1ebe57;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 64px;
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: min(1120px, calc(100% - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  text-align: center;
}

.btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #e3f2fd;
  border-color: var(--accent-light);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

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

.btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
}

.brand img {
  width: auto;
  height: 40px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a:not(.btn) {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}

.site-nav a:not(.btn):hover {
  background: var(--surface-soft);
}

.site-nav a.btn.header-cta {
  margin-top: 8px;
}

/* ——— Hero ——— */
.hero {
  padding: 36px 0 48px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(100, 181, 246, 0.28), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(25, 118, 210, 0.1), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.85rem, 6vw, 3rem);
  margin-bottom: 14px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 36rem;
}

.price-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 28rem;
}

.price-badge strong {
  font-size: 1.05rem;
  color: var(--primary);
}

.price-badge span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-showcase {
  position: relative;
  width: min(100%, 420px);
  padding: 12px 12px 28px;
}

.hero-showcase-desktop {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.hero-showcase-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-showcase-phone {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 34%;
  max-width: 130px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #0a1b3d;
  box-shadow: 0 12px 32px rgba(10, 27, 61, 0.28);
  background: var(--surface);
}

.hero-showcase-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 20px;
}

.hero-card-title {
  font-weight: 800;
  font-size: 1.15rem;
}

.hero-card-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 4px 0 16px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.chip-ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* ——— Sections ——— */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
}

.section-odonto {
  background:
    linear-gradient(180deg, #e3f2fd 0%, var(--bg) 120px, var(--bg) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
  max-width: 40rem;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  margin-bottom: 10px;
}

.section-lead {
  color: var(--text-muted);
}

.section-lead strong {
  color: var(--text);
}

/* ——— Steps ——— */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e3f2fd;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  padding-right: 36px;
}

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

/* ——— Rubros ——— */
.rubros-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.rubro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rubro:hover,
.rubro:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.rubro-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff 0%, #e3f2fd 100%);
  grid-column: 1 / -1;
}

.rubro-icon {
  width: 64px;
  height: 64px;
  color: var(--primary-hover);
}

.rubro-icon svg {
  width: 100%;
  height: 100%;
}

.rubro h3 {
  font-size: 1.05rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* ——— Features Odontología ——— */
.feature-list {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.feature {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot {
  position: relative;
  background: linear-gradient(165deg, #eef1f5 0%, #e8f0fa 55%, #eef1f5 100%);
  min-height: 240px;
  padding: 18px 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot--duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
  justify-items: center;
}

.shot--duo-phones {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 16px;
}

.shot--phone,
.shot--desktop {
  padding: 24px 16px;
}

.shot-device {
  width: 100%;
  min-width: 0;
}

.shot-device--desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.shot-device--wide {
  max-width: 100%;
}

.shot-device--phone {
  width: min(100%, 168px);
  margin-inline: auto;
}

.shot--duo:not(.shot--duo-phones) .shot-device--phone {
  width: min(72%, 190px);
}

.shot-device--phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 3px solid #0a1b3d;
  box-shadow: 0 10px 28px rgba(10, 27, 61, 0.22);
  background: var(--surface);
}

.shot-phone-frame {
  width: min(100%, 280px);
  margin-inline: auto;
}

.shot-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 3px solid #0a1b3d;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.shot img {
  max-width: 100%;
}

.shot.is-fallback .shot-device,
.shot.is-fallback .shot-phone-frame {
  display: none;
}

.shot.is-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #0a1b3d 0%, #0d47a1 50%, #1976d2 100%);
}

.shot.is-fallback img {
  display: none;
}

.feature-body {
  padding: 4px 20px 22px;
}

.feature-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-body > p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-body ul {
  display: grid;
  gap: 8px;
}

.feature-body li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: inset 0 0 0 3px var(--accent);
}

.feature-grid-extra {
  display: grid;
  gap: 12px;
}

.extra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.extra-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e3f2fd;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.extra-icon svg {
  width: 22px;
  height: 22px;
}

.extra-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

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

/* ——— Plans ——— */
.plans {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-tag-featured {
  color: var(--accent);
}

.plan h3 {
  font-size: 1.35rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0;
}

.plan-price .currency {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-price .amount {
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
}

.plan-price .period {
  font-weight: 600;
  color: var(--text-muted);
}

.plan-note {
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.plan .btn {
  margin-top: auto;
}

/* ——— CTA custom rubro ——— */
.section-cta {
  padding-top: 8px;
  padding-bottom: 64px;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}

.cta-copy h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin-bottom: 8px;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.cta-box .btn-wa {
  align-self: stretch;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.brand-footer img {
  height: 42px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin: 8px 0;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Tablet ≥ 600 ——— */
@media (min-width: 600px) {
  :root {
    --container: min(1120px, calc(100% - 48px));
    --header-h: 72px;
  }

  .brand img {
    height: 44px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-showcase {
    width: min(100%, 520px);
    padding: 16px 16px 36px;
  }

  .hero-showcase-phone {
    width: 32%;
    max-width: 150px;
    right: 0;
  }

  .shot--duo:not(.shot--duo-phones) {
    grid-template-columns: 1.2fr 0.55fr;
    gap: 12px;
    padding: 20px 16px;
  }

  .shot--duo-phones {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .shot--duo-phones .shot-device--phone {
    width: min(100%, 150px);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .rubros-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rubro-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
  }

  .rubro-featured .rubro-icon {
    width: 72px;
    height: 72px;
  }

  .feature-body {
    padding: 8px 24px 24px;
  }

  .feature-grid-extra {
    grid-template-columns: 1fr 1fr;
  }

  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }

  .cta-box .btn-wa {
    align-self: center;
    flex-shrink: 0;
  }
}

/* ——— Desktop ≥ 900 ——— */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .site-nav a:not(.btn) {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .site-nav a.btn.header-cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
  }

  .hero-showcase {
    width: 100%;
    max-width: 540px;
    justify-self: end;
  }

  .hero-showcase-phone {
    width: 30%;
    max-width: 160px;
    right: -8px;
  }

  .section {
    padding: 72px 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .rubros-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  .feature-reverse {
    direction: rtl;
  }

  .feature-reverse > * {
    direction: ltr;
  }

  .shot {
    min-height: 320px;
    padding: 24px 20px;
    border-radius: 0;
  }

  .shot--duo:not(.shot--duo-phones) {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 22px 18px 22px 22px;
    align-items: center;
    justify-content: center;
  }

  .shot--duo:not(.shot--duo-phones) .shot-device--desktop {
    flex: 1;
  }

  .shot--duo:not(.shot--duo-phones) .shot-device--phone {
    width: 148px;
    flex-shrink: 0;
    margin-bottom: -8px;
  }

  .shot--duo-phones {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

  .shot--duo-phones .shot-device--phone {
    width: min(100%, 180px);
  }

  .shot--phone,
  .shot--desktop {
    padding: 28px 24px;
  }

  .shot-phone-frame {
    max-width: 300px;
  }

  .feature-body {
    padding: 28px 32px;
  }

  .feature-grid-extra {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ——— Wide ≥ 1200 ——— */
@media (min-width: 1200px) {
  :root {
    --container: min(1160px, calc(100% - 64px));
  }

  .hero {
    padding: 64px 0 80px;
  }

  .section {
    padding: 88px 0;
  }

  .hero-showcase {
    max-width: 580px;
  }

  .hero-showcase-phone {
    max-width: 170px;
  }

  .hero-card {
    width: 380px;
    padding: 36px 28px;
  }
}

/* Botones en <a>: evitar que estilos de nav/links pisen color/fondo */
a.btn.btn-primary,
a.btn.btn-primary:visited {
  color: #fff;
  background-color: var(--primary);
}

a.btn.btn-primary:hover,
a.btn.btn-primary:focus-visible {
  color: #fff;
  background-color: var(--primary-hover);
}

a.btn.btn-secondary,
a.btn.btn-secondary:visited {
  color: var(--primary);
  background-color: var(--surface-soft);
  border-color: var(--border);
}

a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus-visible {
  color: var(--primary);
  background-color: #e3f2fd;
  border-color: var(--accent-light);
}
