:root {
  --primary: #2F6BFF;
  --secondary: #5AA8FF;
  --accent: #FFD54A;
  --bg: #EEF5FF;
  --card: #ffffff;
  --text: #1B2A4A;
  --muted: #7A8BAD;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(47, 107, 255, 0.12);
  --shadow-soft: 0 4px 14px rgba(47, 107, 255, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  min-height: 100vh;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px 80px;
}

/* ---------- Hero (encabezado con gradiente) ---------- */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 0 0 32px 32px;
  padding: 44px 24px 36px;
  text-align: center;
  color: #fff;
  margin: 0 -18px 24px;
  box-shadow: var(--shadow);
}

.hero .logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  margin-top: 8px;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* ---------- Tarjetas ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Celebraciones próximas ---------- */

.celebrations {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.celebrations h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.celebrations h2 .star { color: var(--accent); font-size: 1.2rem; }

.celebration-item {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.celebration-item:last-child { margin-bottom: 0; }

.celebration-item strong { font-weight: 800; }

/* ---------- Tarjeta de miembro ---------- */

.member-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.member-card.today {
  box-shadow: 0 0 0 3px var(--accent), var(--shadow);
}

.member-name {
  font-size: 1.35rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.member-days {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 8px 0 2px;
  letter-spacing: -0.03em;
}

.member-days small {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.3;
}

.member-milestone {
  font-size: 1.08rem;
  color: var(--muted);
  margin-top: 6px;
}

.member-milestone.today {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Botones ---------- */

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35);
  transition: transform 0.1s;
}

.btn-primary:active { transform: scale(0.97); }

.btn-soft {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 14px;
}

.btn-soft:active { transform: scale(0.97); }

.btn-danger-soft {
  padding: 12px 22px;
  border-radius: 999px;
  background: #FFF0F0;
  color: #D24545;
  font-size: 1rem;
  font-weight: 700;
}

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.btn-row button { margin-top: 0; flex: 1; }

/* ---------- Formularios ---------- */

label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 8px;
  text-align: left;
}

input[type="text"],
input[type="date"] {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  padding: 16px;
  border: 2px solid #DCE8FF;
  border-radius: 16px;
  background: #F7FAFF;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 58px;
}

input:focus { border-color: var(--secondary); background: #fff; }

form .btn-primary, .form-actions { margin-top: 20px; }

/* ---------- Compartir ---------- */

.share-box {
  word-break: break-all;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0 4px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 26px 4px 14px;
}

.hint { font-size: 0.95rem; color: var(--muted); margin-top: 10px; }

.error {
  color: #D24545;
  font-weight: 600;
  margin-top: 12px;
  font-size: 1rem;
  min-height: 1.2em;
  text-align: center;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 1.1rem;
}

a { color: var(--primary); font-weight: 700; text-decoration: none; }

.center { text-align: center; }

.big-emoji { font-size: 3rem; margin-bottom: 8px; }
