@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --rose:       #b76e79;
  --rose-light: #e8b4bc;
  --rose-dark:  #8f4f5a;
  --cream:      #fdf6f0;
  --text-dark:  #3d2830;
  --text-mid:   #7a545c;
  --glass-bg:   rgba(255, 248, 245, 0.55);
  --glass-border: rgba(183, 110, 121, 0.18);
}

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Jost', sans-serif;
  overflow: hidden;
  position: relative;
  background: #f9eff0;
  padding: 24px 0;
}

/* ── Fondo con capas ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%,  #f7dde2 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%,  #eed5f5 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 50%,  #fdf0f2 0%, transparent 80%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(183,110,121,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

/* ── Tulipanes ── */
#tulips-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tulip {
  position: absolute;
  top: -15vh;
  width: 28px;
  height: 50px;
  opacity: var(--op, .85);
  will-change: transform;
  animation: tulipFall var(--dur, 10s) linear var(--del, 0s) infinite;
  filter: drop-shadow(0 6px 8px rgba(183,110,121,.18));
  transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
}

.tulip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 13px 13px 15px 15px;
  background: linear-gradient(145deg, var(--c1, #f06b8f), var(--c2, #f5bcd0));
  box-shadow: inset 0 -3px 7px rgba(255,255,255,.4);
}

.tulip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(14px 16px at 38% 22%, rgba(255,255,255,.25) 0 35%, transparent 36%),
    radial-gradient(14px 16px at 62% 22%, rgba(255,255,255,.15) 0 35%, transparent 36%),
    radial-gradient(2px 20px at 50% 76%, var(--stem, #3aa35c) 0 98%, transparent 99%),
    radial-gradient(10px 8px at 42% 82%, rgba(58,163,92,.7) 0 55%, transparent 56%),
    radial-gradient(10px 8px at 58% 82%, rgba(58,163,92,.5) 0 55%, transparent 56%);
}

@keyframes tulipFall {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--rot,0deg)) scale(var(--sc,1)); }
  50%  { transform: translate3d(var(--drift,0px), 55vh, 0) rotate(calc(var(--rot,0deg) + 130deg)) scale(var(--sc,1)); }
  100% { transform: translate3d(calc(var(--drift,0px) * -1), 115vh, 0) rotate(calc(var(--rot,0deg) + 270deg)) scale(var(--sc,1)); opacity: 0; }
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 10;
  width: 400px;
  padding: 52px 44px 44px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.8) inset,
    0 24px 60px rgba(143, 79, 90, 0.14),
    0 4px 16px rgba(183, 110, 121, 0.08);
  text-align: center;
  animation: aparecer 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Marca dentro de card ── */
.card-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.85;
}

.card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* ── Inputs ── */
.inputBox {
  margin: 12px 0;
  text-align: left;
}

.inputBox label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 500;
}

.inputBox input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(183,110,121,0.22);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,0.7);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.inputBox input::placeholder {
  color: #c4a8ad;
}

.inputBox input:focus {
  border-color: var(--rose);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 3px rgba(183,110,121,0.1);
}

/* ── Botón ── */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(143, 79, 90, 0.28);
  margin-top: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 79, 90, 0.35);
  background: linear-gradient(135deg, #c27f89 0%, var(--rose-dark) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Texto pequeño ── */
.small {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-mid);
}

.small a {
  color: var(--rose);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.small a:hover {
  opacity: 0.7;
}

/* ── Error ── */
#mensaje-error {
  font-size: 13px;
  color: #c0392b;
  background: rgba(192,57,43,0.07);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 440px) {
  .card {
    width: calc(100vw - 32px);
    padding: 40px 24px 36px;
  }
}
