/* ═══════════════════════════════════════
   Apartado Calendario de oración
   Reutiliza las variables de style.css (--gold, --bg-card, etc.)
   para que la página parezca parte del mismo sitio.
════════════════════════════════════════ */

.cal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.cal-hero {
  text-align: center;
  margin-bottom: 40px;
}

.cal-kicker {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .04em;
}

.cal-hero h1 {
  margin: 18px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.cal-lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cal-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(212, 175, 55, .08);
  color: var(--text-secondary);
  font-size: .95rem;
}

.cal-price-badge strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.cal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin-bottom: 26px;
}

.cal-card h2 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.cal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--gold);
}

.cal-note,
.cal-hint {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 8px 0 0;
}

/* ── Vídeo demo ─────────────────────────────────────────────────────────── */
.cal-demo-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border-strong);
}

.cal-demo-frame iframe,
.cal-demo-frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: cover;
}

.cal-demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, rgba(201, 168, 76, .08), rgba(0, 0, 0, .25));
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.cal-demo-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .14);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 1.1rem;
  padding-left: 4px; /* óptico: centra el triángulo de "play" */
}

.cal-demo-placeholder p {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted);
}

/* ── Cuenta: acceso / registro ─────────────────────────────────────────── */
.cal-auth-card { padding: 0; overflow: hidden; }

.cal-auth-grid {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.15fr);
}

.cal-auth-pitch {
  padding: 32px 30px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 168, 76, .14), transparent 60%),
    rgba(0, 0, 0, .18);
  border-right: 1px solid var(--border);
}

.cal-auth-pitch h2 {
  margin: 14px 0 10px;
}

.cal-auth-perks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cal-auth-perks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-secondary);
  font-size: .92rem;
}

.cal-auth-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-weight: 700;
}

.cal-auth-box {
  padding: 32px 30px;
}

.cal-auth-form { margin-top: 0; }

.cal-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cal-auth-submit { flex: 1 1 160px; justify-content: center; }

.cal-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--text-muted);
  font-size: .82rem;
}

.cal-auth-divider::before,
.cal-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  background: var(--text-primary);
  color: #3c3c3c;
  font-family: 'Lato', sans-serif;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.btn-google:disabled { opacity: .55; }

.cal-auth-forgot {
  display: block;
  margin: 14px auto 0;
  text-align: center;
}

@media (max-width: 780px) {
  .cal-auth-grid { grid-template-columns: 1fr; }
  .cal-auth-pitch {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .cal-auth-pitch,
  .cal-auth-box { padding: 26px 22px; }
}

.cal-account {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .95rem;
}

.cal-logout-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  font: inherit;
  font-size: .85rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: all .2s;
}

.cal-logout-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, .08);
}

.cal-form {
  margin-top: 18px;
}

.cal-group {
  padding: 22px 22px 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, .14);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cal-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 20px;
  margin: 20px 0;
}

/* Dentro de un grupo, el padding de la tarjeta ya hace de margen: sin esto,
   el margen del grid + el margen del propio campo se sumaban y dejaban un
   hueco enorme debajo de la última fila. */
.cal-group .cal-grid {
  margin: 0;
}

.cal-group .cal-grid > .field {
  margin-bottom: 4px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  color: var(--text-secondary);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, .25);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 53%,
    calc(100% - 15px) 53%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:hover,
.field select:hover {
  border-color: var(--gold-dim);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field input:disabled,
.field select:disabled {
  opacity: .55;
  cursor: default;
}

.city-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  max-height: 260px;
  overflow-y: auto;
}

.city-results button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}

.city-results button:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.cal-details {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: .95rem;
}

.cal-details summary {
  cursor: pointer;
  color: var(--gold);
}

.cal-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}

.cal-coords .field {
  flex: 1 1 140px;
  margin-bottom: 0;
}

.cal-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px 18px;
  margin: 20px 0;
}

.cal-fieldset legend {
  padding: 0 8px;
  color: var(--text-secondary);
  font-size: .95rem;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: var(--text-secondary);
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.check:has(input:checked) {
  background: rgba(201, 168, 76, .16);
  border-color: var(--gold);
  color: var(--text-primary);
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--gold);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
  padding: 10px 4px;
  text-decoration: underline;
}

.cal-progress {
  margin-top: 16px;
  color: var(--gold-light);
  font-size: .95rem;
}

.cal-pay {
  margin: 28px 0 4px;
  padding: 26px 26px 22px;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(201, 168, 76, .16), transparent 55%),
    rgba(0, 0, 0, .2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.cal-pay h2 {
  margin: 10px 0 10px;
}

.cal-pay > p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.cal-list {
  margin: 14px 0 4px;
  padding-left: 4px;
  list-style: none;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cal-actions .btn-primary {
  flex: 1 1 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.cal-pay-trust {
  text-align: center;
}

.cal-unlocked-note {
  margin: 28px 0 4px;
  padding: 16px 20px;
  background: rgba(61, 160, 102, .12);
  border: 1px solid var(--green-bright);
  border-radius: var(--radius);
  color: #b9e8cb;
  font-size: .95rem;
  line-height: 1.6;
}

.cal-unlocked-note strong {
  color: var(--text-primary);
}

.cal-warn {
  background: rgba(201, 168, 76, .1);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--gold-light);
  font-size: .92rem;
  margin: 0 0 18px;
}

.cal-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 18px 0 6px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.msg {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: .95rem;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, .3);
  color: var(--text-secondary);
}

.msg--error {
  border-color: #d9534f;
  color: #ffb3b0;
  background: rgba(217, 83, 79, .12);
}

.msg--ok {
  border-color: var(--green-bright);
  color: #b9e8cb;
  background: rgba(61, 160, 102, .14);
}

.msg--info {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, .12);
}

@media (max-width: 640px) {
  .cal-page { padding: 100px 0 60px; }
  .cal-card { padding: 22px 18px; }
}
