:root {
  --rojo: #ff4d36;
  --rojo-oscuro: #d93825;
  --marfil: #eee7cc;
  --indigo: #182825;
  --invierno: #d2e9ec;
  --blanco: #ffffff;
  --gris: #f7f5ef;
  --borde: #e6e1d2;
  --texto: #24302d;
  --texto-suave: #5b6763;
  --exito-bg: #ecfdf5;
  --exito-borde: #10b98180;
  --exito-texto: #065f46;
  --error-bg: #fef2f2;
  --error-borde: #ef444480;
  --error-texto: #7f1d1d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 77, 54, 0.12), transparent 32%),
    linear-gradient(180deg, #f5efd8 0%, var(--marfil) 100%);
  color: var(--texto);
}

.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}

.hero-card,
.form-card,
.footer-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--borde);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(24, 40, 37, 0.08);
}

.hero-card {
  padding: 26px;
  margin-bottom: 18px;
  border-top: 7px solid var(--rojo);
}

.form-card {
  padding: 26px;
  margin-bottom: 18px;
}

.footer-card {
  padding: 18px 22px;
  line-height: 1.55;
}

.footer-card p {
  margin: 0 0 8px;
}

.footer-card p:last-child {
  margin-bottom: 0;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.logo {
  width: 112px;
  max-width: 40%;
  height: auto;
  display: inline-block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rojo);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  text-align: center;
}

h1,
h2 {
  color: var(--indigo);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 560px;
  margin: 14px auto 20px;
  text-align: center;
  line-height: 1.55;
  font-size: 17px;
  color: var(--texto-suave);
}

.important-box {
  background: var(--indigo);
  color: var(--blanco);
  border-radius: 18px;
  padding: 17px 18px;
  line-height: 1.6;
  margin: 20px 0;
}

.important-box strong {
  color: var(--marfil);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.info-box {
  background: var(--gris);
  border: 1px solid #ece7d9;
  border-radius: 18px;
  padding: 17px 18px;
}

.info-box h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.info-box p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.notes {
  background: var(--invierno);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--indigo);
  line-height: 1.55;
}

.notes p {
  margin: 0 0 8px;
}

.notes p:last-child {
  margin-bottom: 0;
}

.form-header {
  margin-bottom: 18px;
}

.form-header .eyebrow {
  text-align: left;
}

.form-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.form-header p {
  margin: 0;
  color: var(--texto-suave);
  line-height: 1.5;
}

.field {
  margin-bottom: 15px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin: 0 0 7px;
  color: var(--indigo);
  font-weight: 800;
}

input,
select,
textarea,
button {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  border-radius: 14px;
}

input,
select,
textarea {
  border: 1px solid #d9d3c4;
  background: var(--blanco);
  color: var(--texto);
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 4px rgba(255, 77, 54, 0.13);
}

select:disabled,
input:disabled,
textarea:disabled {
  background: #f3f0e6;
  color: #8a867a;
  cursor: not-allowed;
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

button {
  border: 0;
  background: var(--rojo);
  color: var(--blanco);
  padding: 15px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, opacity 0.12s ease;
}

button:hover {
  background: var(--rojo-oscuro);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message {
  margin-top: 14px;
}

.alert {
  padding: 14px 15px;
  border-radius: 14px;
  line-height: 1.5;
  font-weight: 650;
}

.alert.success {
  background: var(--exito-bg);
  border: 1px solid var(--exito-borde);
  color: var(--exito-texto);
}

.alert.error {
  background: var(--error-bg);
  border: 1px solid var(--error-borde);
  color: var(--error-texto);
}

.alert.info {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  color: var(--indigo);
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .page {
    padding: 18px 12px 32px;
  }

  .hero-card,
  .form-card {
    padding: 20px;
    border-radius: 22px;
  }

  .info-grid,
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-box {
    margin-bottom: 12px;
  }

  .info-box:last-child {
    margin-bottom: 0;
  }

  .form-header h2 {
    font-size: 26px;
  }

  .logo {
    width: 96px;
  }
}

@media (max-width: 380px) {
  .hero-card,
  .form-card {
    padding: 17px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 15px;
  }
}