* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fdfbf7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e3a3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.landing * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.landing {
  position: relative;
  width: 100%;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  aspect-ratio: 1080 / 3000;
  background-image: url('./public/pawgo_landing.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

.form-overlay {
  position: absolute;
  left: 53.5%;
  right: 4.4%;
  top: 80.5%;
  bottom: 7.5%;
  pointer-events: none;
}

.form-field {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: auto;
}

.form-field.field-submit {
  right: auto;
}

.field-nombre { top: 0%; height: 14%; }
.field-apellidos { top: 17.2%; height: 11.9%; }
.field-email { top: 34.5%; height: 10.8%; }
.field-whatsapp { top: 50.9%; height: 11%; }
.field-perfil { top: 67.3%; height: 11.4%; }
.field-submit { top: 88.6%; height: 7.8%; left: 9.9%; width: 56.5%; }

.form-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 5%;
  font-family: inherit;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 186, 73, 0.5);
}

.form-input::placeholder {
  color: transparent;
}

.form-input:not(:placeholder-shown):not(select),
.form-input:focus {
  background: #1e3a3d;
}

.landing select.select-perfil {
  cursor: pointer;
  padding-right: 15%;
  color: transparent;
}

.landing select.select-perfil:not(.select-empty) {
  background: #1e3a3d;
  color: #ffffff;
}

.landing select.select-perfil option {
  background: #1e3a3d;
  color: #ffffff;
}

.submit-btn {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0;
  transition: background 0.2s ease;
  color: transparent;
}

.submit-btn:hover { background: rgba(255, 255, 255, 0.12); }
.submit-btn:active { background: rgba(0, 0, 0, 0.1); }
.submit-btn:disabled { cursor: not-allowed; opacity: 0.6; }

.form-message {
  position: absolute;
  left: 53.5%;
  right: 4.4%;
  top: 93.5%;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: clamp(12px, 1.3vw, 15px);
  text-align: center;
  z-index: 10;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.form-message.success {
  background: rgba(52, 211, 153, 0.95);
  color: #064e3b;
}

.form-message.error {
  background: rgba(248, 113, 113, 0.95);
  color: #7f1d1d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.store-link {
  position: absolute;
  cursor: pointer;
  border-radius: 10%;
  text-decoration: none;
}

.store-hero-play { top: 18.5%; left: 17.5%; width: 4.5%; height: 2.2%; }
.store-hero-apple { top: 18.5%; left: 25%; width: 4.5%; height: 2.2%; }
.store-cta-play { top: 95.2%; left: 69%; width: 4.5%; height: 1.8%; }
.store-cta-apple { top: 95.2%; left: 76.5%; width: 4.5%; height: 1.8%; }

.store-link:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.3);
}

.form-input:focus-visible,
.submit-btn:focus-visible,
.store-link:focus-visible {
  outline: 3px solid #ffba49;
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .form-input {
    font-size: clamp(11px, 2.2vw, 16px);
  }
}

@media (max-width: 640px) {
  .form-input {
    font-size: clamp(10px, 2.8vw, 14px);
    padding: 0 6%;
  }

  .form-message {
    font-size: 12px;
    padding: 8px 14px;
  }
}