/* ============================================
   Cotee — Estilos compartidos
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --warn: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Inter", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.muted { color: var(--text-soft); }
.small { font-size: 0.85rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm { padding: 8px 14px; font-size: 0.88rem; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: white;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-alt);
}

.btn--dark {
  background: var(--dark);
  color: white;
}
.btn--dark:hover { background: #1e293b; color: white; }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }

.brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand__text strong { color: var(--primary); }

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 16px;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(180deg, white, var(--bg-alt));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__title { margin-bottom: 20px; }

.grad {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 60px;
}

/* Hero mock */
.hero__mock { max-width: 900px; margin: 0 auto; }

.mock {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mock__bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mock__bar span:nth-child(1) { background: #ef4444; }
.mock__bar span:nth-child(2) { background: #f59e0b; }
.mock__bar span:nth-child(3) { background: #10b981; }
.mock__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.mock__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mock__panel {
  padding: 28px;
  border-right: 1px solid var(--border);
  background: white;
}

.mock__row { margin-bottom: 18px; }
.mock__row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mock__pill {
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}
.mock__pill--big { min-height: 60px; }

.mock__btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.mock__preview {
  padding: 28px;
  background: var(--bg-alt);
}

.mock__doc {
  background: white;
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.mock__doc-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
}
.mock__line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock__line.short { width: 60%; }
.mock__total {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.mock__total strong { color: var(--text); }

@media (max-width: 720px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__panel { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 0;
}
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card__emoji { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.95rem; }

.card--problem h3 { color: var(--danger); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--primary-soft);
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; }

.cta-center { text-align: center; }

/* Chips */
.chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.plan__badge--alt { background: var(--dark); }

.plan__name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.plan__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.plan__price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.plan__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
}
.plan__features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 0.95rem;
}
.plan__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.plan__features li:last-child { border-bottom: none; }
.plan__features li.muted { color: var(--text-soft); }
.plan__features li strong { color: var(--text); }

.pricing__note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all 0.15s ease;
}
.faq__item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 12px 0 0; }

/* ============================================
   CTA section
   ============================================ */
.cta {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
}
.cta h2 {
  color: white;
  margin-bottom: 12px;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
}
.cta .btn--primary {
  background: white;
  color: var(--primary);
}
.cta .btn--primary:hover { background: rgba(255, 255, 255, 0.9); color: var(--primary); }

.cta__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer h4 {
  margin-bottom: 14px;
}
.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 4px 0;
}
.footer a:hover { color: var(--text); }

.footer__tag {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.footer__bottom p { margin: 0; color: inherit; }
