/* ===== Base ===== */
:root {
  --color-primary: #2563eb;
  --color-dark: #1e293b;
  --color-light: #f8fafc;
  --color-muted: #64748b;
  --max-width: 1100px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background: #fff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 0.5em;
}

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* Toggle móvil */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 24px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  left: 0;
}

.nav-toggle-label span { top: 50%; transform: translateY(-50%); }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== Secciones ===== */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-light);
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== Grid de tarjetas ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card p {
  color: var(--color-muted);
}

/* ===== Formulario ===== */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  border-color: transparent;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: #cbd5e1;
  text-align: center;
  padding: 1.5rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 400px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .site-nav li {
    padding: 0.5rem 0;
  }

  .hero {
    padding: 3.5rem 0;
  }
}
