:root {
  --doncel-orange: #ff5a00;
  --doncel-orange-dark: #e84f00;
  --bg: #f3f3f3;
  --card: #ffffff;
  --text: #333846;
  --muted: #6b7280;
  --soft-border: #ffd4c2;
  --soft-orange: #fff7f2;
  --shadow: 0 14px 38px rgba(15, 23, 42, .075);
  --radius-lg: 14px;
  --radius-md: 10px;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.45) 28%, rgba(243,243,243,1) 68%),
    var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.doncel-page {
  width: 100%;
  padding: 46px 20px 30px;
}

.doncel-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.brand img {
  display: block;
  width: 230px;
  max-width: 54%;
  height: auto;
  margin: 0 auto 18px;
}

.eyebrow {
  margin: 0;
  text-align: center;
  color: #555b66;
  font-size: 16px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  font-weight: 500;
}

h1 {
  margin: 20px 0 14px;
  text-align: center;
  color: var(--doncel-orange);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: .5px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro {
  max-width: 750px;
  margin: 0 auto 20px;
  text-align: justify;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.62;
}

a {
  color: var(--doncel-orange);
  text-decoration: none;
  font-weight: 500;
}

.section-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255, 212, 194, .55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin: 0 0 16px;
}

.section-card.consent {
  background: linear-gradient(120deg, rgba(255, 247, 242, .98), rgba(255,255,255,.88));
  border-color: var(--soft-border);
  box-shadow: 0 12px 34px rgba(255, 90, 0, .08);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title .badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--doncel-orange);
  border: 1px solid var(--soft-border);
  background: rgba(255,255,255,.7);
  flex: 0 0 auto;
}

.section-title .badge.orange {
  color: #fff;
  border-color: var(--doncel-orange);
  background: var(--doncel-orange);
  box-shadow: 0 9px 18px rgba(255, 90, 0, .18);
}

.section-title svg {
  width: 29px;
  height: 29px;
  stroke: currentColor;
}

.section-title h2 {
  margin: 0;
  color: var(--doncel-orange);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

.section-subtitle {
  margin: -12px 0 18px 72px;
  color: #5d6470;
  font-size: 16px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 20px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin: 0 0 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.req {
  color: var(--doncel-orange);
  font-weight: 800;
}

.input-shell {
  position: relative;
}

.input-shell svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--doncel-orange);
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 49px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.64);
  color: var(--text);
  font: 16px var(--font);
  padding: 12px 14px 12px 50px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--doncel-orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 0, .10);
}

select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.64);
  color: var(--text);
  font: 16px var(--font);
  padding: 12px 14px 12px 50px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

select:focus {
  border-color: var(--doncel-orange);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 0, .10);
}

.mc-hidden-inputs {
  display: none;
}

.np-hidden {
  display: none !important;
}

.consent-body {
  padding-left: 72px;
  margin-top: -8px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  color: #3f4652;
  font-size: 16px;
  line-height: 1.48;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1.4px solid var(--soft-border);
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .12s ease-in-out;
  background: var(--doncel-orange);
  border-radius: 2px;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.divider {
  height: 1px;
  background: var(--soft-border);
  margin: 18px 0 18px;
}

.info-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 10px;
}

.info-note svg {
  width: 24px;
  height: 24px;
  color: var(--doncel-orange);
  margin-top: 1px;
}

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

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

.option {
  min-height: 54px;
  border: 1px solid var(--soft-border);
  border-radius: 9px;
  background: rgba(255,255,255,.56);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.option:hover {
  background: #fff;
  border-color: var(--doncel-orange);
  transform: translateY(-1px);
}

.option svg {
  width: 26px;
  height: 26px;
  color: var(--doncel-orange);
  flex: 0 0 auto;
}

.option input {
  flex: 0 0 auto;
  margin: 0;
}

.option span {
  display: inline-block;
  line-height: 1.18;
}

.gdpr-legal {
  margin: 14px 0 0 0;
  color: #8c95a3;
  font-size: 13px;
  line-height: 1.5;
}

.cta {
  margin-top: 10px;
}

button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--doncel-orange);
  color: #fff;
  font: 800 19px var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 90, 0, .18);
}

button:hover {
  background: var(--doncel-orange-dark);
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

button svg {
  width: 31px;
  height: 31px;
  color: #fff;
}

.footer-note {
  margin-top: 17px;
  text-align: center;
  color: #8c95a3;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-note svg {
  width: 16px;
  height: 16px;
  color: var(--doncel-orange);
  flex: 0 0 auto;
}

/* ── Toast de éxito/error ─────────────────────────────────── */

.mc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}

.mc-toast.mc-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.mc-toast.mc-toast--error {
  background: #b91c1c;
}

.mc-toast.mc-toast--success {
  background: #15803d;
}

@media (max-width: 780px) {
  .doncel-page {
    padding: 30px 14px 24px;
  }

  .brand img {
    width: 200px;
    max-width: 72%;
  }

  .intro {
    text-align: left;
  }

  .section-card {
    padding: 20px 18px;
  }

  .fields,
  .option-grid,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .consent-body,
  .section-subtitle {
    padding-left: 0;
    margin-left: 0;
  }

  .section-title {
    align-items: flex-start;
  }

  h1 {
    text-align: left;
  }

  .brand {
    text-align: center;
  }
}
