/* Tarjetas nativas: medida constante, imágenes proporcionadas y llamadas visibles. */
.wp-block-post-content > .yn-section {
  width: min(100% - 40px, 1140px);
  max-width: 1140px;
}
.yn-section .wp-block-columns:has(> .wp-block-column > .yn-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 28px);
}
.yn-section .wp-block-columns:has(> .wp-block-column > .yn-card) > .wp-block-column {
  min-width: 0;
  width: auto;
}
.yn-card > .wp-block-image {
  position: relative; width: 100%; max-width: none;
  aspect-ratio: 16 / 10; flex: 0 0 auto; overflow: hidden; margin: 0 !important;
  border-bottom: 3px solid #bd9bc6;
}
.yn-card > .wp-block-image img {
  display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover;
}
.yn-card > h3 { font-size: 23px; line-height: 1.3; font-weight: 400; }
.yn-card > p { line-height: 1.65; font-weight: 300; }
.yn-card .yn-meta { font-size: 16px; font-weight: 400; }
.yn-card .yn-price { font-size: 18px; color: #3e3444; font-weight: 600; }
/* Los enlaces heredados de compra son párrafos; conservan su destino original. */
.yn-card > p:has(> a[href]) { margin-top: auto; margin-bottom: 24px; }
.yn-card > p > a[href],
.yn-card .yn-actions .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  min-height: 45px; padding: 9px clamp(8px,1.25vw,16px);
  border: 1px solid #7d3c93; border-radius: 3px; background: #7d3c93; color: #fff;
  font-size: clamp(13px,1.25vw,16px); font-weight: 500; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.yn-card .yn-actions > .wp-block-buttons:nth-child(2) .wp-block-button__link {
  background: #fff; color: #7d3c93;
}
.yn-card > p > a[href]:hover,
.yn-card .yn-actions .wp-block-buttons .wp-block-button__link:hover {
  background: #673377; border-color: #673377; color: #fff;
}
.yn-card > p > a[href]:focus-visible,
.yn-card .wp-block-button__link:focus-visible { outline: 3px solid #bba0c6; outline-offset: 3px; }

/* Regalos: tres tarjetas de igual altura, con el diseño del vale original. */
.page-id-1252 .wp-block-post-content > .yn-section { margin-block: 50px 65px; }
.page-id-1252 .yn-section .yn-section { margin: 0; }
.page-id-1252 .yn-section h1 {
  font-size: clamp(34px,4vw,48px); line-height: 1.16; font-weight: 400; margin: 12px 0 18px;
}
.page-id-1252 .yn-section:has(> .yn-gift-cards) > p:first-child {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; color: #824496;
}
.page-id-1252 .yn-gift-cards { gap: 28px; margin-block: 40px 0; }
.page-id-1252 .yn-gift-cards > .yn-gift-option {
  display: flex; flex-direction: column; min-width: 0; margin-block: 0; border-radius: 14px;
}
.page-id-1252 .yn-gift-option > :is(.yn-voucher,.yn-gift-option-body) {
  width: 100%; max-width: none; margin-inline: 0 !important;
}
.page-id-1252 .yn-voucher {
  position: relative; display: flex; flex-direction: column; min-height: 267px;
  overflow: hidden; margin: 0; color: #fff;
}
.page-id-1252 .yn-voucher > p { margin: 0 !important; color: #fff; text-align: left; }
.page-id-1252 .yn-voucher > p:first-child { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.page-id-1252 .yn-voucher > p:nth-child(2) { margin-top: 16px !important; font-size: 12px; text-transform: uppercase; letter-spacing: .17em; opacity: .88; }
.page-id-1252 .yn-voucher > p:nth-child(3) { margin-top: 14px !important; }
.page-id-1252 .yn-voucher > p:nth-child(3), .page-id-1252 .yn-voucher > p:nth-child(4) { font-size: 27px; line-height: 1.2; font-weight: 300; }
.page-id-1252 .yn-voucher > p:last-child { margin-top: auto !important; padding-top: 15px; font-size: 38px; line-height: 1.1; }
.page-id-1252 .yn-voucher::after {
  content: ""; position: absolute; inset: -110px -100px auto auto; width: 280px; height: 280px;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.045),0 0 0 55px rgba(255,255,255,.035);
  pointer-events: none;
}
.page-id-1252 .yn-gift-option-body { flex: 1; display: flex; flex-direction: column; padding: 25px; margin: 0; }
.page-id-1252 .yn-gift-option-body > :is(p,h2,.yn-actions) {
  width: 100%; max-width: none; margin-inline: 0 !important;
}
.page-id-1252 .yn-gift-option-body h2 { margin: 0; font-size: 23px; font-weight: 400; }
.page-id-1252 .yn-gift-option-body .yn-actions { margin-top: auto; margin-bottom: 0; padding-top: 18px; }
.page-id-1252 .yn-gift-option-body .yn-actions .wp-block-button__link { font-size: 13px; padding: 11px 12px; }
@media (max-width: 781px) {
  .wp-block-post-content > .yn-section { width: calc(100% - 32px); }
  .yn-section .wp-block-columns:has(> .wp-block-column > .yn-card) { grid-template-columns: minmax(0,1fr); }
  .yn-card .yn-actions .wp-block-button__link { font-size: 14px; }
  .page-id-1252 .wp-block-post-content > .yn-section { margin-block: 32px 50px; }
  .page-id-1252 .yn-gift-cards { gap: 20px; margin-top: 30px; }
}
