:root {
  font-family: 'DM Sans', sans-serif;
  color: #19213a;
  background: #f7f8fc;
  font-synthesis: none;
  --blue: #2b43dd;
  --yellow: #fff178;
  --muted: #646a7d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.dropzone:focus-within {
  outline: 3px solid #e59d00;
  outline-offset: 4px;
}
[hidden] { display: none !important; }

.top {
  height: 100px;
  max-width: 1280px;
  margin: auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e3ee;
}
.brand {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon { color: var(--blue); font-size: 42px; }
.dot { color: var(--blue); margin-left: -9px; }
.header-note { font-size: 14px; color: var(--muted); }
.help { font-size: 14px; text-decoration: none; font-weight: 600; }

main { max-width: 1280px; padding: 0 42px; margin: auto; }
.intro { padding: 44px 0 30px; }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin: 0 0 15px;
}
h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.4rem, 4.25vw, 3.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2.4px;
  margin: 0 0 18px;
}
h1 span { color: var(--blue); }
.intro > p:last-child {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 32px;
  align-items: start;
}
.finder {
  background: white;
  border: 1px solid #e0e3ee;
  border-radius: 22px;
  padding: 28px;
}
.section-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 19px;
}
.section-line h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -.3px;
}
.step {
  background: #edf0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tiny {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.dropzone {
  position: relative;
  border: 1.5px dashed #9aa8ed;
  background: #f5f6ff;
  min-height: 205px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s;
}
.dropzone:hover,
.dropzone.dragover { background: #e9edff; }
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.dropzone #upload-prompt {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
}
.upload-icon {
  border: 1px solid #c4cbef;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  color: var(--blue);
  font-size: 30px;
  line-height: 40px;
  background: white;
  margin-bottom: 4px;
}
.dropzone strong { font-size: 18px; }
.dropzone span span:not(.upload-icon) {
  font-size: 14px;
  color: var(--muted);
}
.dropzone u {
  color: var(--blue);
  text-underline-offset: 3px;
}
.dropzone small {
  font-size: 12px;
  color: var(--muted);
}
#preview {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #eef0f8;
}
#change-photo {
  position: absolute;
  bottom: 12px;
  background: white;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: 0 2px 8px #0002;
}
.privacy {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.status {
  font-size: 14px;
  line-height: 1.5;
  color: var(--blue);
  margin: 12px 0 0;
}
.status:empty { display: none; }

.details-line { margin-top: 26px; }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
input:not([type=file]),
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8dce8;
  background: white;
  border-radius: 9px;
  padding: 12px;
  color: #19213a;
  font-size: 14px;
}
#other-field { margin-top: 14px; }

.primary {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  padding: 17px 20px;
  font-weight: 700;
  margin-top: 22px;
  box-shadow: 0 4px 0 #1b2daa;
}
.primary:hover { background: #2135bc; }
.primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1b2daa;
}
.form-note {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin: 15px 0 0;
}

.inspiration {
  border-radius: 22px;
  overflow: hidden;
  background: var(--yellow);
  position: relative;
}
.photo-wrap {
  position: relative;
  height: 405px;
  background: #addbde;
  overflow: hidden;
}
.example-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  display: block;
}
.photo-wrap:after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #0b213cbb);
  pointer-events: none;
}
.photo-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 11px;
  letter-spacing: 1.2px;
  background: white;
  padding: 9px 12px;
  border-radius: 30px;
  font-weight: 700;
}
.sticker {
  position: absolute;
  top: 70px;
  right: 22px;
  transform: rotate(10deg);
  background: var(--yellow);
  border-radius: 50%;
  width: 105px;
  height: 105px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.25;
}
.sticker span { font-size: 13px; }
.photo-caption {
  position: absolute;
  bottom: 27px;
  left: 28px;
  right: 28px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-family: Manrope, sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}
.heart { font-size: 65px; font-weight: 400; }
.example-bottom {
  padding: 22px 25px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.example-bottom p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.secondary {
  background: transparent;
  border: 1px solid #252c49;
  border-radius: 8px;
  padding: 11px 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.secondary:hover { background: #fff8b4; }
.credit {
  font-size: 11px;
  margin: 0;
  padding: 0 25px 17px;
  color: #505026;
}
.credit a { text-decoration: none; }

.how {
  margin: 40px 0 36px;
  padding: 26px 0;
  border-top: 1px solid #dfe3ee;
  border-bottom: 1px solid #dfe3ee;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  scroll-margin-top: 24px;
}
.small-num {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--blue);
}
.how p {
  font-size: 14px;
  margin: 9px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  padding-bottom: 30px;
  font-size: 12px;
}
footer p { font-size: 14px; }
.footer-brand { font-size: 24px; color: #19213a; }

.results {
  background: #edf0ff;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid #d6ddfb;
  scroll-margin-top: 16px;
}
.results h2 {
  font-family: Manrope, sans-serif;
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.results > p:not(.eyebrow) {
  line-height: 1.6;
  font-size: 14px;
}
.gift {
  background: white;
  border-radius: 13px;
  padding: 20px;
  margin-top: 15px;
}
.gift-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.gift-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.gift h3 {
  font-size: 19px;
  margin: 9px 0;
}
.gift p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}
.gift a {
  display: inline-block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.gift-badge {
  font-size: 11px;
  background: var(--yellow);
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 700;
}
.result-note {
  color: var(--muted);
  font-size: 12px !important;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 14px;
  padding: 8px 0;
  font-weight: 700;
}

@media (min-width: 1450px) {
  .intro { padding-top: 55px; }
}
@media (max-width: 950px) {
  .tiny { display: none; }
  .top, main { padding-left: 25px; padding-right: 25px; }
  .workspace { gap: 20px; }
  .finder { padding: 22px; }
  .fields { grid-template-columns: 1fr; }
  .photo-wrap { height: 440px; }
  .photo-caption { font-size: 24px; }
  .example-bottom {
    flex-direction: column;
    align-items: start;
  }
  .header-note { display: none; }
  .how { gap: 20px; }
  h1 { font-size: 48px; }
}
@media (max-width: 680px) {
  .top { height: 78px; padding: 0 20px; }
  .brand { font-size: 29px; }
  .brand-icon { font-size: 35px; }
  main { padding: 0 18px; }
  .intro { padding: 30px 0 25px; }
  .intro .eyebrow { font-size: 11px; }
  h1 {
    font-size: 39px;
    letter-spacing: -1.7px;
  }
  .intro > p:last-child { font-size: 16px; }
  .workspace { grid-template-columns: 1fr; }
  .finder { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .photo-wrap { height: 330px; }
  .example-bottom {
    flex-direction: row;
    align-items: center;
  }
  .inspiration { margin-top: 2px; }
  .how {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }
  footer {
    flex-wrap: wrap;
    gap: 7px;
  }
  footer p { margin: 0; }
  footer > span:last-child {
    width: 100%;
    margin-top: 8px;
  }
  .results { padding: 24px; }
  .privacy { line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Logo RegaloMascota */
.header-logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 320px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .header-logo {
        height: 52px;
        max-width: 230px;
    }
}

/* === FIX DEFINITIVO LOGO CABECERA === */
.header-logo {
    display: block !important;
    width: 220px !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 85px !important;
    object-fit: contain !important;
    object-position: left center !important;
    position: static !important;
    transform: none !important;
}

header .header-logo,
nav .header-logo,
.brand .header-logo,
.logo .header-logo {
    width: 220px !important;
    height: auto !important;
    max-width: 220px !important;
}

@media (max-width: 700px) {
    .header-logo,
    header .header-logo,
    nav .header-logo,
    .brand .header-logo,
    .logo .header-logo {
        width: 165px !important;
        max-width: 165px !important;
        height: auto !important;
        max-height: 70px !important;
    }
}
