/* Landing editorial — crema, marfil, hero fotográfico */

body.landing-editorial {
  --cream: #f5f0e7;
  --ivory: #fffcf7;
  --ink: #302a24;
  --sand: #d8c9b6;
  --sage: #53664b;
  --sage-dark: #3f4d39;
  --danger: #a33b3b;

  --bg-deep: var(--cream);
  --bg-elevated: var(--ivory);
  --bg-card: var(--ivory);
  --bg-card-hover: #f8f3ea;
  --border-subtle: rgba(48, 42, 36, 0.1);
  --border-metal: rgba(48, 42, 36, 0.16);
  --hairline: rgba(48, 42, 36, 0.08);
  --text-primary: var(--ink);
  --text-secondary: rgba(48, 42, 36, 0.72);
  --text-muted: rgba(48, 42, 36, 0.52);
  --silver: rgba(48, 42, 36, 0.85);
  --silver-dim: rgba(48, 42, 36, 0.55);
  --accent: var(--sage);
  --accent-dim: var(--sage-dark);
  --accent-glow: rgba(83, 102, 75, 0.2);
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;

  color: var(--text-primary);
  background-color: var(--cream);
  background-image: none;
}

body.landing-editorial a {
  color: var(--sage-dark);
}

body.landing-editorial a:hover {
  color: var(--ink);
}

body.landing-editorial .skip-link {
  background: var(--sage);
  color: var(--ivory);
}

/* Header crema */
body.landing-editorial .site-header {
  background: rgba(245, 240, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

body.landing-editorial .brand-wordmark {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.landing-editorial .header-nav a {
  color: rgba(48, 42, 36, 0.65);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

body.landing-editorial .header-nav a:hover {
  color: var(--ink);
}

body.landing-editorial .menu-toggle span {
  background: var(--ink);
}

body.landing-editorial .mobile-nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}

body.landing-editorial .mobile-nav a {
  color: var(--ink);
}

/* Hero fotográfico */
body.landing-editorial .hero.hero--photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(85vh, 640px);
  min-height: max(85svh, 640px);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  margin: 0;
  border-bottom: none;
  overflow: hidden;
}

body.landing-editorial .hero.hero--photo::before {
  display: none;
}

body.landing-editorial .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.landing-editorial .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

body.landing-editorial .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(245, 240, 231, 0.94) 0%,
      rgba(245, 240, 231, 0.78) 38%,
      rgba(48, 42, 36, 0.22) 100%
    );
  pointer-events: none;
}

@media (min-width: 960px) {
  body.landing-editorial .hero-scrim {
    background:
      linear-gradient(
        95deg,
        rgba(245, 240, 231, 0.96) 0%,
        rgba(245, 240, 231, 0.72) 42%,
        rgba(48, 42, 36, 0.18) 78%,
        rgba(48, 42, 36, 0.28) 100%
      );
  }
}

body.landing-editorial .hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.landing-editorial .hero-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 36rem;
  align-items: stretch;
  text-align: left;
}

body.landing-editorial .hero-copy {
  max-width: none;
}

body.landing-editorial .hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

body.landing-editorial .hero-subtitle {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 34rem;
}

body.landing-editorial .hero-subtitle strong {
  font-weight: 600;
  color: var(--ink);
}

body.landing-editorial .hero-form {
  padding: 0;
  border: none;
  max-width: 32rem;
}

body.landing-editorial .url-form {
  gap: 0.85rem;
}

body.landing-editorial .url-field-wrap {
  background: var(--ivory);
  border: 1px solid rgba(48, 42, 36, 0.14);
  border-radius: 2px;
  padding: 0.2rem 0.25rem 0.2rem 1.15rem;
  box-shadow: 0 1px 0 rgba(255, 252, 247, 0.8) inset;
}

body.landing-editorial .url-field-wrap:focus-within {
  border-color: rgba(83, 102, 75, 0.55);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

body.landing-editorial .url-prefix {
  font-family: var(--font);
  font-size: 0.95rem;
  color: rgba(48, 42, 36, 0.45);
}

body.landing-editorial .url-input {
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 1.08rem);
  padding: 1rem 0.85rem;
  color: var(--ink);
}

body.landing-editorial .url-input::placeholder {
  color: rgba(48, 42, 36, 0.38);
}

body.landing-editorial .hero-form .btn-primary {
  width: 100%;
  padding: 1.05rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  background: var(--sage);
  color: var(--ivory);
}

body.landing-editorial .hero-form .btn-primary:hover {
  background: var(--sage-dark);
  opacity: 1;
  box-shadow: none;
}

body.landing-editorial .form-hint.is-success {
  color: var(--sage-dark);
}

body.landing-editorial .hero-trust {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(48, 42, 36, 0.55);
  max-width: 32rem;
}

/* Secciones posteriores */
body.landing-editorial .lead-capture {
  background: var(--ivory);
  border-block: 1px solid var(--hairline);
}

body.landing-editorial .lead-capture h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

body.landing-editorial .field-input {
  background: var(--cream);
  border-color: var(--border-metal);
  color: var(--ink);
}

body.landing-editorial .consent-label {
  color: var(--text-secondary);
}

body.landing-editorial .results.section {
  background: var(--cream);
}

body.landing-editorial .section-header--editorial h2,
body.landing-editorial .benefits .section-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

body.landing-editorial .demo-label {
  color: var(--sage);
}

body.landing-editorial .benefits {
  background: var(--ivory);
  border-color: var(--hairline);
}

body.landing-editorial .seo-guide-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  body.landing-editorial .seo-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.landing-editorial .seo-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.landing-editorial .seo-faq h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

body.landing-editorial .seo-faq-list {
  margin: 0;
  max-width: 42rem;
}

body.landing-editorial .seo-faq-list dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.75rem;
}

body.landing-editorial .seo-faq-list dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

body.landing-editorial .benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

body.landing-editorial .site-footer {
  background: var(--cream);
  border-color: var(--hairline);
}

body.landing-editorial .footer-brand {
  color: var(--ink);
}

body.landing-editorial .footer-nav a {
  color: var(--text-muted);
}

body.landing-editorial .cta--editorial {
  background: var(--sand);
  color: var(--ink);
}

body.landing-editorial .cta--editorial .btn-primary {
  background: var(--sage);
  color: var(--ivory);
}

/* Dashboard demo e informe embebido — armonía crema */
body.landing-editorial .dashboard .metric-fill {
  background: #0cce6b;
}

body.landing-editorial .dashboard .metric-fill--seo,
body.landing-editorial .dashboard .metric-fill--ux,
body.landing-editorial .dashboard .metric-fill--bp {
  background: rgba(48, 42, 36, 0.35);
}

body.landing-editorial .ring-bg {
  stroke: rgba(48, 42, 36, 0.12);
}

body.landing-editorial .score-compare th,
body.landing-editorial .score-compare td {
  border-bottom-color: var(--hairline);
}

body.landing-editorial .device-error {
  color: #a33b3b;
  background: rgba(163, 59, 59, 0.08);
}

body.landing-editorial .btn-secondary {
  border-color: rgba(83, 102, 75, 0.45);
  color: var(--sage-dark);
}

body.landing-editorial .btn-secondary:hover {
  background: rgba(83, 102, 75, 0.08);
}

body.landing-editorial .fade-in {
  animation: landing-fade-in 0.6s ease forwards;
}

@keyframes landing-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-editorial .fade-in {
    animation: none;
    opacity: 1;
  }
}
