@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --background: #f8f9fa;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --foreground: #1e293b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-foreground: #ffffff;
  --primary-soft: #dbeafe;
  --border: #e2e8f0;
  --green: #16a34a;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); padding: 12px 22px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28); }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); color: #fff;
}
.brand-text { letter-spacing: -0.02em; }
.brand-text strong { font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--muted-foreground); }
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--foreground); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, #ffffff 0%, var(--background) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
.highlight { color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--muted-foreground); margin: 0 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-points li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--muted-foreground); }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-head { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--muted); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.dot:first-child { background: #fca5a5; }
.dot:nth-child(2) { background: #fcd34d; }
.dot:nth-child(3) { background: #86efac; }
.hero-card-body { padding: 24px; }
.stat-row { display: flex; gap: 12px; margin-bottom: 22px; }
.stat { flex: 1; background: var(--primary-soft); border-radius: 12px; padding: 16px; text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
.stat-label { font-size: 0.8rem; color: var(--primary-dark); }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: 0.92rem;
}
.mini-icon { font-size: 1.1rem; }

/* ---------- Trust ---------- */
.trust { background: var(--primary); color: #fff; padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; flex-direction: column; text-align: center; }
.trust-item strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.trust-item span { font-size: 0.88rem; opacity: 0.85; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted-foreground); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.8rem; display: inline-block; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted-foreground); font-size: 0.94rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-cat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-cat:hover { border-color: var(--primary); transform: translateY(-2px); }
.product-cat span { font-size: 1.9rem; }
.product-cat h3 { margin: 12px 0 6px; font-size: 1rem; }
.product-cat p { margin: 0; color: var(--muted-foreground); font-size: 0.84rem; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.about-copy p { color: var(--muted-foreground); margin: 0 0 14px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}
.about-card { background: var(--primary); color: #fff; border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg); }
.about-quote { font-size: 4rem; line-height: 0.6; opacity: 0.4; font-weight: 800; }
.about-quote-text { font-size: 1.2rem; line-height: 1.5; margin: 18px 0 26px; }
.about-sign { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem;
}
.about-sign strong { display: block; }
.about-sign span { font-size: 0.85rem; opacity: 0.8; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.contact-info > p { color: var(--muted-foreground); margin: 0 0 28px; }
.contact-details { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.contact-details a { color: var(--primary); font-weight: 500; }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field .opt { color: var(--muted-foreground); font-weight: 400; }
.field input, .field textarea {
  font-family: inherit; font-size: 0.95rem; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { resize: vertical; }
.form-status { min-height: 20px; margin: 12px 0 0; font-size: 0.9rem; text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 12px 0 0; font-size: 0.9rem; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; margin: 0 0 6px; font-size: 0.9rem; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom span { font-size: 0.82rem; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px;
  }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .cards, .product-grid, .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0; }
  .section { padding: 56px 0; }
}
