/* paginaportada — Landing comercial
   Paleta cálida pero corporativa:
   - #2c5282 (primary, navy)
   - #ed8936 (accent, naranja cálido)
   - Mobile-first responsive, sin librerías.
*/

:root {
  --primary: #2c5282;
  --primary-hover: #234169;
  --primary-soft: #ebf2fb;
  --accent: #ed8936;
  --accent-hover: #d97706;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-alt: #eef2f7;
  --bg-dark: #1a202c;

  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #9ca3af;
  --text-on-dark: #e5e7eb;

  --border: #e4e7eb;
  --border-strong: #cbd2d9;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 16px 0; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.2; }
h3 { font-size: 20px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
p { margin: 0 0 14px 0; color: var(--text-soft); }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }
.muted { color: var(--text-muted); font-size: 14px; }
.center { text-align: center; }
.accent { color: var(--accent); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text) !important;
}
.brand-icon { font-size: 22px; }
.brand-icon-img { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.footer-brand .brand-icon-img { vertical-align: middle; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  text-decoration: none;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text) !important;
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft) !important;
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { color: var(--text) !important; background: var(--bg-soft); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background:
    radial-gradient(ellipse at top right, #fff7ed 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--primary-soft) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin: 16px 0 28px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-bullets li {
  font-size: 14px;
  color: var(--text-soft);
}
.hero-bullets code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* signup form (hero + bottom) */
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-top: 24px;
}
.signup-form-center { margin: 24px auto 0; }
.signup-form input[type=email] {
  flex: 1;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}
.signup-form input[type=email]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.signup-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
}
.signup-status.error { color: #dc2626; }
.signup-status.success { color: #16a34a; }

@media (max-width: 520px) {
  .signup-form { flex-direction: column; }
}

/* hero visual mock */
.hero-visual {
  display: flex;
  justify-content: center;
}
.mock-window {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  border: 1px solid var(--border);
}
.mock-titlebar {
  background: var(--bg-alt);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}
.mock-body { padding: 24px; }
.mock-hero { padding: 20px; background: linear-gradient(135deg, var(--primary-soft), #fff); border-radius: var(--radius-md); margin-bottom: 16px; }
.mock-h1 { height: 18px; width: 75%; background: var(--primary); opacity: .8; border-radius: 4px; margin-bottom: 10px; }
.mock-p { height: 10px; width: 90%; background: var(--border-strong); border-radius: 4px; margin-bottom: 6px; }
.mock-p::after { content: ''; display: block; height: 10px; width: 60%; background: var(--border-strong); border-radius: 4px; margin-top: 6px; }
.mock-btn { height: 28px; width: 120px; background: var(--accent); border-radius: 4px; margin-top: 14px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mock-card { height: 60px; background: var(--bg-soft); border-radius: 6px; border: 1px solid var(--border); }

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, .85); }
.section-cta input[type=email] { background: rgba(255, 255, 255, .95); }
.section-cta .signup-status { color: rgba(255, 255, 255, .85); }

.section-title { text-align: center; margin-bottom: 8px; }
.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 17px;
  margin: 0 auto 48px;
  max-width: 540px;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
.step {
  text-align: center;
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(237, 137, 54, .3);
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.price-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.price-card h3 { margin-bottom: 8px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-amount { font-size: 42px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.price-period { font-size: 15px; color: var(--text-muted); }
.price-tag { font-size: 14px; color: var(--text-soft); margin-bottom: 20px; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.price-features li.dim { color: var(--text-muted); }
.price-features li:last-child { border-bottom: none; }

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 32px auto 0;
}

/* ============ TESTIMONIOS ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .testimonials { grid-template-columns: 1fr; gap: 16px; }
}
.testimonial {
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.testimonial.placeholder { opacity: .75; }
.testimonial-avatar {
  font-size: 36px;
  margin-bottom: 12px;
}
.testimonial p { font-style: italic; color: var(--text); }
.testimonial-author {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ FAQ ============ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--text-soft);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .brand-name { color: var(--text-on-dark); }
.footer-brand .muted { color: rgba(255, 255, 255, .5); margin-top: 12px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 { color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-on-dark);
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom .muted { color: rgba(255, 255, 255, .5); font-size: 13px; }
