/* Popup de bienvenida Yohari Extras — autónomo (no depende del tema) */

.ye-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 28, 0.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
}
.ye-overlay.ye-visible {
  opacity: 1;
  pointer-events: auto;
}

.ye-popup {
  background: #FBF6EC;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ye-overlay.ye-visible .ye-popup {
  transform: translateY(0) scale(1);
}

.ye-popup-img { background: #F3E8D3; }
.ye-popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ye-popup-cuerpo {
  padding: 36px 32px;
  display: grid;
  gap: 14px;
  align-content: center;
  position: relative;
}

.ye-cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6E6057;
  cursor: pointer;
}
.ye-cerrar:hover { color: #8E1F2F; }

.ye-popup-cuerpo h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #2B211C;
  margin: 0;
}
.ye-popup-cuerpo p {
  font-size: 0.95rem;
  color: #6E6057;
  margin: 0;
}

#ye-form { display: grid; gap: 10px; }
#ye-email {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(142, 31, 47, 0.22);
  background: #FFFDF9;
  width: 100%;
}
#ye-email:focus {
  outline: none;
  border-color: #8E1F2F;
  box-shadow: 0 0 0 3px rgba(142, 31, 47, 0.14);
}

.ye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background: #8E1F2F;
  color: #FFFDF9;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.ye-btn:hover { background: #6B1523; transform: translateY(-1px); }

.ye-nota { font-size: 0.78rem !important; color: #6E6057 !important; }

.ye-no {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #6E6057;
  text-decoration: underline;
  justify-self: center;
  cursor: pointer;
}
.ye-no:hover { color: #8E1F2F; }

.ye-codigo {
  border: 2px dashed #8E1F2F;
  border-radius: 10px;
  background: #FFFDF9;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #8E1F2F;
  cursor: pointer;
}
.ye-codigo small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #6E6057;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ye-overlay, .ye-popup { transition: none; }
}

@media (max-width: 768px) {
  .ye-popup { grid-template-columns: 1fr; max-width: 420px; }
  .ye-popup-img { display: none; }
}
