:root {
  --azul-royal: #0037b3;
  --azul-marino: #023f9d;
  --verde-teal: #17a2a0;
  --verde-teal-dark: #0f7a86;
  --texto: #2b2b2b;
  --texto-claro: #6b7280;
  --borde: #e2e5ec;
  --error: #d9364f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  color: var(--texto);
}

body {
  background: var(--azul-royal);
  padding: 12px;
}

.page {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
}

.ondas {
  position: absolute;
  top: 170px;
  right: -15%;
  width: 150%;
  z-index: 0;
  pointer-events: none;
}

header.site-header {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 26px 20px 14px;
  text-align: center;
}

header.site-header img.logo {
  width: 100%;
  max-width: 300px;
  height: auto;
}

main {
  position: relative;
  z-index: 2;
  padding: 4px 34px 28px;
  display: flex;
  justify-content: center;
}

.form-card {
  background: linear-gradient(180deg, #fbfbfc, #edeff2);
  border: 1px solid var(--borde);
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  padding: 24px 20px 26px;
  box-shadow: 0 12px 24px rgba(0, 30, 90, 0.08);
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azul-marino);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.field .opcional {
  font-weight: 400;
  color: var(--texto-claro);
  font-size: 12px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--texto);
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--azul-royal);
}

.field input.error {
  border-color: var(--error);
  background: #fdf1f2;
}

.field .error-msg {
  display: none;
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

.field.has-error .error-msg {
  display: block;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-enviar {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px;
  margin-top: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--verde-teal), var(--verde-teal-dark));
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 122, 134, 0.3);
}

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

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-msg.ok {
  display: block;
  background: #e6f7f0;
  color: #0f7a4d;
}

.form-msg.fail {
  display: block;
  background: #fdeceb;
  color: var(--error);
}

.gracias-card {
  background: linear-gradient(180deg, #fbfbfc, #edeff2);
  border: 1px solid var(--borde);
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  padding: 44px 26px 38px;
  box-shadow: 0 12px 24px rgba(0, 30, 90, 0.08);
  text-align: center;
}

.gracias-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde-teal), var(--verde-teal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(15, 122, 134, 0.3);
}

.gracias-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--azul-marino);
}

.gracias-card p {
  margin: 0 0 26px;
  font-size: 15.5px;
  color: var(--texto-claro);
}

.gracias-volver {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azul-royal);
  text-decoration: none;
  border-bottom: 1.5px solid var(--azul-royal);
  padding-bottom: 2px;
}

.footer-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
}

.footer-row img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-row img.tagline {
  flex: 1 1 42%;
  min-width: 0;
  max-width: 200px;
}

.footer-row img.badges {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 260px;
}

.divider {
  height: 12px;
  background: var(--azul-royal);
}

.brand-footer {
  text-align: center;
  padding: 18px 20px 22px;
}

.brand-footer img {
  width: 160px;
  max-width: 55vw;
  height: auto;
}

@media (min-width: 480px) {
  header.site-header img.logo { max-width: 340px; }
}
