/* iotec — landing dark theme.
   Paleta consistente con admin: bg #0f1117, card #1a1d27, accent #63b3ed. */

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

:root {
  --bg:        #0f1117;
  --bg-alt:    #131720;
  --card:      #1a1d27;
  --border:    #2d3748;
  --text:      #e2e8f0;
  --muted:     #718096;
  --accent:    #63b3ed;
  --accent-2:  #3182ce;
  --success:   #48bb78;
  --purple:    #9f7aea;
  --orange:    #ed8936;
  --max-width: 1100px;
  --radius:    10px;
  --radius-sm: 6px;
}

html, body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }

a { color: var(--accent); text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .8; }

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

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text); flex-shrink: 0; }
.brand-banner { height: 34px !important; width: auto !important; max-height: 34px; max-width: 220px; display: block; }
.footer-brand .brand-banner { height: 28px !important; max-height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .87rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-links .nav-cta { background: var(--accent-2); color: #fff; padding: 7px 14px; border-radius: var(--radius-sm); }
.nav-links .nav-cta:hover { background: #2b6cb0; opacity: 1; }
.nav-links .nav-lang { color: var(--muted); font-size: .78rem; font-weight: 600; padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; letter-spacing: .05em; }
.nav-links .nav-lang:hover { color: var(--text); border-color: var(--accent); opacity: 1; }

/* ============== HERO ============== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(99, 179, 237, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(159, 122, 234, 0.06), transparent 50%);
}
.hero-eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); background: rgba(99, 179, 237, 0.1); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(99, 179, 237, 0.2); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 22px; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.trust-item { display: inline-flex; align-items: center; gap: 6px; }

/* ============== BUTTONS ============== */
.btn { display: inline-block; padding: 11px 22px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s ease; text-align: center; }
.btn-primary { background: var(--accent-2); color: #fff; }
.btn-primary:hover { background: #2b6cb0; opacity: 1; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); opacity: 1; }
.btn-block { display: block; width: 100%; }

/* ============== SECTIONS ============== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { font-size: .78rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }

/* ============== PRODUCTS ============== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--accent); background: rgba(99, 179, 237, 0.12); padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; align-self: flex-start; margin-bottom: 14px; }
.product-tag.tag-purple { color: var(--purple); background: rgba(159, 122, 234, 0.12); }
.product-card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.product-tagline { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.feature-list { list-style: none; margin-bottom: 24px; flex: 1; }
.feature-list li { padding: 8px 0; color: var(--text); font-size: .88rem; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list strong { color: var(--accent); font-weight: 600; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.price { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.price-period { font-size: .82rem; font-weight: 400; color: var(--muted); margin-left: 2px; }

/* ============== WHY ============== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.why-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.why-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: rgba(99, 179, 237, 0.1); border-radius: 8px; font-size: 1.3rem; margin-bottom: 14px; }
.why-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .87rem; }

/* ============== PRICING ============== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color .2s ease;
}
.pricing-card:hover { border-color: var(--accent); }
.pricing-featured { border-color: var(--accent); position: relative; transform: scale(1.03); box-shadow: 0 8px 24px rgba(99, 179, 237, 0.15); }
.pricing-featured::before { content: "BEST VALUE"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.pricing-name { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 12px; }
.pricing-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-strike { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.pricing-period { font-size: .95rem; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.pricing-note { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.pricing-foot { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============== FAQ ============== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0; transition: border-color .15s ease; }
.faq-item:hover { border-color: var(--muted); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { padding: 16px 22px; font-weight: 600; cursor: pointer; font-size: .95rem; list-style: none; position: relative; padding-right: 50px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.4rem; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: .88rem; }

/* ============== FOOTER ============== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.footer-tag { color: var(--muted); font-size: .85rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); transition: all .15s ease; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; transform: translateY(-1px); }
.footer-socials svg { width: 16px; height: 16px; display: block; }
.footer-cols { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--text); font-size: .87rem; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: .75rem; text-align: center; }

/* Status indicator (UptimeRobot) */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  margin-right: 6px;
  vertical-align: middle;
  transition: background 0.3s ease;
}
.status-dot.up      { background: #48bb78; box-shadow: 0 0 6px rgba(72, 187, 120, .6); }
.status-dot.down    { background: #f56565; box-shadow: 0 0 6px rgba(245, 101, 101, .6); }
.status-dot.partial { background: #ed8936; box-shadow: 0 0 6px rgba(237, 137, 54, .6); }

/* ============== LEGAL PAGES ============== */
.legal { padding: 60px 0 80px; }
.legal-container { max-width: 760px; }
.legal-back { display: inline-block; color: var(--muted); font-size: .82rem; margin-bottom: 24px; }
.legal-back:hover { color: var(--accent); opacity: 1; }
.legal h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .82rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.legal p { color: var(--muted); margin-bottom: 14px; font-size: .92rem; }
.legal ul, .legal ol { color: var(--muted); margin: 0 0 14px 22px; font-size: .92rem; }
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: .85em; color: var(--text); }
.legal-hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.legal-ack { padding: 18px; background: rgba(99, 179, 237, 0.06); border: 1px solid rgba(99, 179, 237, 0.2); border-radius: var(--radius-sm); color: var(--text); }

/* ============== RISK WARNING BANNER en landing ============== */
.risk-warning {
  background: rgba(237, 137, 54, 0.08);
  border-top: 1px solid rgba(237, 137, 54, 0.2);
  border-bottom: 1px solid rgba(237, 137, 54, 0.2);
  padding: 14px 0;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}
.risk-warning strong { color: var(--orange); }
.risk-warning a { color: var(--orange); text-decoration: underline; }

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-trust { gap: 16px; flex-direction: column; }
  .section { padding: 56px 0; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-foot .btn { width: 100%; }
  .pricing-featured { transform: scale(1); }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 28px; }
}
