:root {
  --bg: #f3f4f6;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --primary: #111827;
  --accent: #16a34a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 18px;

  --header-gradient-start: #443737;
  --header-gradient-end: #221e1e;
  --header-accent-soft: #000000f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

/* =========================
   HEADER PÁGINAS
========================= */

.site-header {
  position: relative;
  background:
    radial-gradient(
      circle at top right,
      var(--header-accent-soft),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      var(--header-gradient-start),
      var(--header-gradient-end)
    );
  color: white;
  padding: 32px 0 24px;
}

.brand-label {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbf7d0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

.header-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 1.05rem;
}

/* =========================
   CONTENIDO GENERAL
========================= */

.main-content {
  padding: 28px 0;
}

.intro-section,
.contact-section,
.social-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.intro-section h2,
.contact-section h2,
.social-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.intro-section p,
.contact-section p,
.social-section p {
  max-width: 760px;
}

.intro-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.intro-section li {
  margin-bottom: 8px;
}

.section-description {
  color: var(--muted);
}

/* =========================
   CONTACTO
========================= */

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  color: var(--text);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-help {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.submit-button {
  border: 0;
  cursor: pointer;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-weight: 900;
  font: inherit;
}

.submit-button:focus-visible,
.back-link:focus-visible,
.social-card:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 3px;
}

.back-link {
  color: #166534;
  font-weight: 900;
  text-decoration: none;
}

/* =========================
   REDES
========================= */

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.social-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.social-card span {
  font-weight: 800;
  text-align: center;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 0 40px;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin: 14px auto 0;
  text-align: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 760px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .intro-section,
  .contact-section,
  .social-section {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}
