:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --line: #e3e3df;
  --accent: #e10a17;
  --accent-soft: #fdeaeb;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; display: block; }
.brand small { font-size: 13px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.brand small, .nav ul a { white-space: nowrap; }
@media (max-width: 860px) { .nav ul { display: none; } }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--text); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero .tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
}
.btn:hover { filter: brightness(0.92); }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 64px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card a.ig { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }

.services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.services .card { padding: 28px; }
.services ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* Datos de la empresa */
.datos {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.datos dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; }
.datos dt, .datos dd { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.datos dt { color: var(--muted); font-weight: 500; background: #fafaf8; }
.datos dd { font-weight: 600; word-break: break-word; }
.datos dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* Footer */
footer { background: #161616; color: #bdbdbd; padding: 36px 0; font-size: 14px; }
footer a { color: #fff; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* Legal page */
.legal { max-width: 760px; padding: 56px 20px; }
.legal h1 { font-size: 32px; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #333; }

@media (max-width: 640px) {
  .nav ul { display: none; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .datos dl { grid-template-columns: 1fr; }
  .datos dt { border-bottom: 0; padding-bottom: 2px; background: none; }
  .datos dd { padding-top: 0; }
}
