/* === Variables de marca (ajusta estos colores a tu identidad corporativa) === */
:root {
  --brand-primary: #e06a2c; /* naranja corporativo */
  --brand-primary-600: #cc5f27;
  --brand-primary-700: #b35422;
  --brand-accent: #2c3e50; /* gris azulado */
  --brand-bg: #f7f7f9;
  --brand-text: #1f2937;
  --brand-muted: #6b7280;
  --surface: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* === Reset y tipografía === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--brand-text);
  background: var(--brand-bg);
}

/* Utilidades */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }
.status { margin-top: 12px; color: var(--brand-muted); font-size: .95rem; }

/* === Header === */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand-accent); }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-700)); }
.nav a { color: var(--brand-accent); text-decoration: none; margin-left: 18px; font-weight: 500; }
.nav a:hover { color: var(--brand-primary); }

/* === Hero === */
.hero { background: linear-gradient(180deg, #fff, var(--brand-bg)); padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.hero-copy h1 { margin: 0 0 12px; font-size: 2.2rem; line-height: 1.2; }
.highlight { color: var(--brand-primary); }
.hero-copy p { color: var(--brand-muted); margin: 0 0 20px; }
.hero-art { height: 220px; border-radius: 14px; background: radial-gradient(1200px 200px at 10% 20%, rgba(224,106,44,.18), transparent 40%),
            radial-gradient(800px 240px at 80% 80%, rgba(44,62,80,.15), transparent 45%),
            linear-gradient(135deg, #fff, #fafafa); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* === Botones === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 18px; border: 1px solid transparent; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-600); }
.btn-primary:active { background: var(--brand-primary-700); }

/* === Formulario === */
.form-group { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; color: var(--brand-accent); }
input[type="text"], input[type="email"], select, textarea, input[type="range"] {
  width: 100%; padding: 12px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 1rem; transition: box-shadow .2s, border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(224,106,44,.15); }
textarea { min-height: 120px; resize: vertical; }
.choice-list { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--brand-text); }

/* === Footer === */
.site-footer { margin-top: 56px; background: #fff; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.footer-links a { color: var(--brand-accent); text-decoration: none; margin-left: 14px; }
.footer-links a:hover { color: var(--brand-primary); }

/* === Helper para mensajes de estado === */
.status--ok { color: #0f9d58; }
.status--error { color: #d93025; }

/* === Modales === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: var(--surface);
  margin: 5% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-600));
  color: white;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close:hover {
  background-color: rgba(255,255,255,0.2);
}

.modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  color: var(--brand-accent);
  margin: 20px 0 8px 0;
  font-size: 1.1rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 8px 0;
  line-height: 1.5;
}

.modal-body ul {
  margin: 8px 0 16px 20px;
}

.modal-body li {
  margin: 4px 0;
  line-height: 1.4;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
}
