/* ===========================
   AZAHARES · FORMULARIO
   styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ---------- Variables ---------- */
:root {
  --cream:      #fdf6ed;
  --gold:       #c9a96e;
  --gold-mid:   #b8944f;
  --gold-light: #e8d5b0;
  --dark:       #1a1410;
  --mid:        #4a3f35;
  --soft:       #8a7a6a;
  --bg-card:    rgba(255,255,255,0.88);
  --shadow:     0 8px 48px rgba(100,70,30,0.11);
  --radius:     4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Body ---------- */
body {
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 17px;          /* base más grande */
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background orbs ---------- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(201,169,110,0.18), transparent 70%);
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 400px; height: 400px;
  bottom: 5%; left: -80px;
  background: radial-gradient(circle, rgba(201,169,110,0.13), transparent 70%);
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%   { opacity: 0;   transform: translate(0,0) scale(1); }
  10%  { opacity: 1; }
  50%  { transform: translate(30px,-40px) scale(1.08); }
  90%  { opacity: 1; }
  100% { opacity: 0;   transform: translate(0,0) scale(1); }
}

/* ---------- Petals canvas ---------- */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;   /* más visible */
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  animation: slideDown 0.8s ease 0.1s forwards;
}
.brand-line::before,
.brand-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.brand-line::after {
  background: linear-gradient(to left, transparent, var(--gold));
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 9vw, 62px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
  opacity: 0;
  animation: slideDown 0.9s ease 0.25s forwards;
}
.header h1 em {
  font-style: italic;
  color: var(--gold);
  position: relative;
  display: inline-block;
}
.header h1 em::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,0.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s ease 1.5s infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { background-position: 200% 0; opacity: 0; }
}

.header p {
  font-size: 17px;
  font-weight: 300;
  color: var(--soft);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: slideDown 0.9s ease 0.4s forwards;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: var(--radius);
  padding: 52px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(32px);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.card.visible {
  animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.card:hover {
  box-shadow: 0 16px 64px rgba(100,70,30,0.16);
  border-color: rgba(201,169,110,0.4);
}

/* ---------- Section label ---------- */
.section-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 30px;
}

/* ---------- Form fields ---------- */
.field {
  margin-bottom: 30px;
  position: relative;
}
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.field:focus-within label {
  color: var(--gold-mid);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,169,110,0.4);
  padding: 11px 0;
  font-family: 'Jost', sans-serif;
  font-size: 17px;      /* más grande */
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.field::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), left 0.4s cubic-bezier(0.4,0,0.2,1);
}
.field:focus-within::after {
  width: 100%; left: 0;
}
.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.65;
}

/* ---------- Rating groups ---------- */
.rating-group {
  margin-bottom: 38px;
}
.rating-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;      /* más grande */
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.rating-desc {
  font-size: 14px;      /* más grande */
  font-weight: 300;
  color: var(--soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ---------- Rating buttons ---------- */
.stars {
  display: flex;
  gap: 7px;
}
.stars input[type="radio"] { display: none; }
.stars label {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,169,110,0.32);
  border-radius: var(--radius);
  font-size: 15px;      /* más grande */
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.stars label:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(201,169,110,0.28);
}
.stars input[type="radio"]:checked + label {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 6px 20px rgba(201,169,110,0.48);
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid rgba(201,169,110,0.18);
  margin: 34px 0;
}

/* ---------- Progress bar ---------- */
.progress-wrap {
  margin-bottom: 40px;
  opacity: 0;
  animation: slideDown 0.8s ease 0.55s forwards;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 8px;
}
.progress-bar {
  height: 2px;
  background: rgba(201,169,110,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Submit ---------- */
.submit-wrap {
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}
.btn {
  display: inline-block;
  padding: 18px 64px;
  background: var(--gold);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 13px;      /* más grande */
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.btn:hover {
  background: var(--mid);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100,70,30,0.25);
}
.btn:active {
  transform: translateY(-1px);
}
.required-note {
  font-size: 13px;
  color: var(--soft);
  font-weight: 300;
  margin-top: 16px;
  opacity: 0.85;
}

/* ---------- Success ---------- */
.success-msg {
  display: none;
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.success-msg .checkmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.12); opacity: 0.8; }
}
.success-msg h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 14px;
  color: var(--dark);
}
.success-msg p {
  font-size: 17px;
  font-weight: 300;
  color: var(--soft);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Footer ornament ---------- */
.footer-ornament {
  text-align: center;
  margin-top: 64px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  letter-spacing: 0.4em;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

/* ---------- Keyframes ---------- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 0.6; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .card { padding: 32px 20px; }
  .stars label { width: 40px; height: 40px; font-size: 14px; }
  .btn { padding: 16px 44px; }
  body { font-size: 16px; }
}
