/* =========================================================
   Contexto – Core CSS Foundation
   ========================================================= */

/* ---------- CSS RESET (modern, minimal) ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Dosis";
  src: url("/static/fonts/Dosis-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- ROOT VARIABLES ---------- */
:root {
  /* Brand colors */
  --color-bg: #fcfcfc;
  --color-text: #000000;
  --color-muted: #2a2c41;
  --color-border: rgba(0, 0, 0, 0.08);

  --color-primary: #d32f2f;   /* Contexto red */
  --color-secondary: #8e0707;
  --color-accent: #D3792F;    /* Accent orange */

  /* Typography */
  --font-sans: "Dosis", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Layout */
  --max-width: 1100px;
}

/* ---------- BASE ELEMENTS ---------- */
html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- IMAGES ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- BUTTONS (basic) ---------- */
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

.button-primary {
  font-family: var(--font-sans);
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.button-primary:hover {
  opacity: 0.9;
}
input.button-primary {
  -webkit-appearance: none;
  appearance: none;
  border: none;
}
/* ---------- COMPONENTS ---------- */
.about-header {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 1.25rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  width: 120px;
  height: auto;
}

/* ---------- ABOUT PAGE LAYOUT ---------- */
.about-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  margin-bottom: 1rem;
}

.about-section h3 {
  margin-bottom: 0.5rem;
}

.feature-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.feature-text {
  flex: 2;
}

.feature-image {
  flex: 1;
  min-height: 160px;
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .feature-row {
    flex-direction: column;
  }
}

/* ---------- CONTACT PAGE ---------- */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.contact-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.field-errors {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.field-errors span {
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-bg);
}

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

/* ---------- UTILITIES ---------- */
.muted {
  color: var(--color-muted);
}

.hidden {
  display: none !important;
}
