:root {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-soft: #52606d;
  --color-accent: #ff6f00;
  --color-accent-soft: #fff2e0;
  --color-accent-dark: #c2410c;
  --color-border: #e4e7eb;
  --color-link: #c2410c;
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-error: #c62828;
  --color-error-bg: #ffebee;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 10px;
  --max-width: 800px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* HEADER */
.site-header {
  background: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
}

.header-text h1 {
  margin: 0 0 4px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tagline {
  margin: 0 0 8px 0;
  font-size: 15px;
  opacity: 0.9;
}

.meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.meta strong { font-weight: 600; }

/* CONTENT */
.content {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

/* TYPOGRAPHY */
.lead {
  font-size: 17px;
  color: var(--color-text);
}

h2 {
  font-size: 22px;
  margin: 32px 0 12px 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

section:first-of-type h2,
#introduccion + section h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

#introduccion {
  margin-bottom: 24px;
}

p { margin: 8px 0 12px 0; }

ul, ol { margin: 8px 0 16px 0; padding-left: 24px; }
li { margin-bottom: 6px; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { text-decoration: none; }

code {
  background: var(--color-accent-soft);
  color: var(--color-link);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #ffa000;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14.5px;
  margin: 16px 0;
}

/* FORM */
form {
  margin-top: 8px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}

.field small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.field input[type="email"],
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: #fafafa;
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input[type="email"]:focus,
.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

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

.field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-accent-soft);
  border: 1px solid #ffcc99;
  padding: 12px 14px;
  border-radius: 6px;
}

.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.field-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  cursor: pointer;
}

.required { color: var(--color-error); }

.btn-submit {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background: var(--color-accent-dark);
}

.btn-submit:active {
  transform: translateY(1px);
}

/* ALERTS */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 15px;
  border-left: 4px solid;
}

.alert-ok {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-left-color: var(--color-success);
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-left-color: var(--color-error);
}

/* FOOTER */
.site-footer {
  background: var(--color-text);
  color: #cbd2d9;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

/* MOBILE */
@media (max-width: 600px) {
  .site-header { padding: 28px 0; }
  .header-text h1 { font-size: 22px; }
  .logo { width: 60px; height: 60px; }
  .content { padding: 24px 18px; border-radius: 0; }
  h2 { font-size: 19px; }
  .container { padding: 0 16px; }
}
