:root {
  --helisur-blue: #002f60;
  --helisur-yellow: #fff200;
  --helisur-lightblue: #e8f0fd;
  --helisur-text: #1a1a1a;
  --helisur-muted: #5a6a7a;
  --helisur-border: #c5d3e6;
  --helisur-white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--helisur-text);
  background: #f4f7fb;
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--helisur-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #001f40;
}

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

/* ========== Hero ========== */
.brand-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 120% at 100% -10%, rgba(255, 242, 0, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at -10% 110%, rgba(232, 240, 253, 0.2) 0%, transparent 50%),
    linear-gradient(155deg, #001326 0%, var(--helisur-blue) 48%, #0a4a8a 100%);
  color: var(--helisur-white);
  padding: 56px 0 64px;
  text-align: center;
}

.brand-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.03) 42% 43%, transparent 43% 100%),
    linear-gradient(115deg, transparent 0 62%, rgba(255, 242, 0, 0.05) 62% 63%, transparent 63% 100%);
  pointer-events: none;
}

.brand-hero-glow {
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 242, 0, 0.18) 0%, transparent 68%);
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}

.brand-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  animation: riseIn 0.7s ease both;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 242, 0, 0.32);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 242, 0, 0.6);
  color: inherit;
}

.brand-logo img {
  display: block;
  width: min(270px, 74vw);
  height: auto;
}

.brand-line {
  width: 80px;
  height: 4px;
  margin: 24px auto 28px;
  background: var(--helisur-yellow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  animation: lineGrow 0.8s 0.25s ease both;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--helisur-yellow);
}

.brand-sub {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.brand-hero::before,
.brand-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 78px;
  background: var(--helisur-yellow);
}

.brand-hero::before {
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.brand-hero::after {
  right: 0;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

/* ========== Trust strip ========== */
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding-bottom: 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--helisur-white);
  border: 1px solid var(--helisur-border);
  border-top: 3px solid var(--helisur-yellow);
  box-shadow: 0 10px 28px rgba(0, 47, 96, 0.08);
  animation: riseIn 0.65s ease both;
}

.trust-item:nth-child(2) { animation-delay: 0.08s; }
.trust-item:nth-child(3) { animation-delay: 0.16s; }

.trust-num {
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--helisur-yellow);
  background: var(--helisur-blue);
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--helisur-blue);
  font-size: 0.98rem;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--helisur-muted);
  line-height: 1.45;
  font-weight: 400;
}

/* ========== Main ========== */
.main {
  position: relative;
  padding: 36px 0 80px;
  background:
    linear-gradient(180deg, transparent 0%, #f4f7fb 40%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 38px,
      rgba(0, 47, 96, 0.015) 38px,
      rgba(0, 47, 96, 0.015) 39px
    );
}

.layout {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--helisur-blue);
}

.section-kicker.light {
  color: rgba(255, 255, 255, 0.85);
}

.line-italic {
  display: inline-block;
  width: 42px;
  height: 3px;
  background: var(--helisur-yellow);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.intro-panel {
  position: relative;
  padding: 36px 40px;
  background: var(--helisur-white);
  border: 1px solid var(--helisur-border);
  box-shadow: 0 12px 32px rgba(0, 47, 96, 0.06);
}

.intro-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--helisur-yellow), var(--helisur-blue));
}

.intro-panel p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--helisur-blue);
  font-weight: 400;
  line-height: 1.65;
}

.intro-panel p:last-child {
  margin-bottom: 0;
}

.intro-panel strong {
  font-weight: 700;
}

/* ========== Form panel ========== */
.form-panel {
  position: relative;
  overflow: hidden;
  background: var(--helisur-blue);
  color: var(--helisur-white);
  padding: 36px 40px 40px;
  box-shadow: 0 18px 40px rgba(0, 47, 96, 0.22);
}

.form-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 110px;
  height: 110px;
  background: var(--helisur-yellow);
  clip-path: polygon(40% 0, 100% 0, 100% 100%);
  opacity: 0.95;
}

.form-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.form-panel-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--helisur-yellow);
  text-transform: uppercase;
}

.form-lead {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.form-lead a {
  color: var(--helisur-yellow);
  font-weight: 700;
  word-break: break-word;
}

.form-lead a:hover {
  color: #fff;
  text-decoration: underline;
}

.ethics-form {
  position: relative;
  z-index: 1;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.field-step {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--helisur-yellow);
  color: var(--helisur-blue);
  font-size: 0.85rem;
  font-weight: 900;
  margin-top: 1px;
}

.field-label-text {
  flex: 1;
  line-height: 1.4;
  padding-top: 3px;
}

.form-field .optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

.form-field input,
.form-field textarea,
.form-field .input-text,
.form-field .input-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.97);
  color: var(--helisur-text);
  font-family: inherit;
  font-size: 1rem;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a97a8;
}

.form-field input,
.form-field .input-text {
  min-height: 54px;
}

.form-field textarea,
.form-field .input-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--helisur-yellow);
  box-shadow: 0 0 0 3px rgba(255, 242, 0, 0.28);
}

.field-error {
  display: none;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ffd0cb;
}

.field-error.show {
  display: block;
}

.form-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

input.button.button-blue {
  appearance: none;
  -webkit-appearance: none;
}

.button-blue {
  background-color: var(--helisur-yellow);
  color: var(--helisur-blue);
}

.button-blue:hover {
  background-color: #ffe600;
  color: #001a38;
}

.button-blue:active {
  transform: translateY(1px);
}

.button-blue:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  border-left: 4px solid var(--helisur-yellow);
}

.form-feedback.success {
  display: block;
  background: rgba(243, 249, 239, 0.95);
  color: #1f4d2a;
}

.form-feedback.error {
  display: block;
  background: rgba(253, 236, 234, 0.95);
  color: #7a1c14;
  border-left-color: #ff8f84;
}

/* Badge correo enviado */
.mail-sent-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 18px 18px 16px;
  background: linear-gradient(135deg, #f3faf0 0%, #eaf6e4 100%);
  border: 1px solid #b7d9a8;
  border-left: 5px solid #2f7d32;
  animation: riseIn 0.45s ease both;
}

.mail-sent-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f7d32;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.mail-sent-body {
  flex: 1;
  min-width: 0;
}

.mail-sent-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f5a22;
}

.mail-sent-text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #2d5a30;
  line-height: 1.45;
}

.mail-badge-code {
  display: inline-block;
  padding: 6px 12px;
  background: var(--helisur-yellow);
  color: var(--helisur-blue);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* ========== Motion ========== */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0.2);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -18px;
  }
}

@media (max-width: 720px) {
  .brand-hero {
    padding: 40px 0 52px;
  }

  .brand-logo {
    padding: 14px 20px;
  }

  .intro-panel,
  .form-panel {
    padding: 26px 18px 28px;
  }

  .form-panel::after {
    width: 72px;
    height: 72px;
  }
}
