/* Complemento local para las páginas de servicios convertidas a bloques.
   Se debe cargar tanto en la web como en el editor al integrar el piloto. */
.yn-section { margin-block: 2.5rem; }
.yn-section .wp-block-columns { align-items: stretch; gap: 28px; }
.yn-section .wp-block-column { min-width: 0; }
.yn-card, .yn-gift-option {
  height: 100%;
  background: #fff;
  border: 1px solid #e9e0ec;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(74, 39, 88, .04);
}
.yn-card > .wp-block-image { margin: 0; }
.yn-card > .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.yn-card > :not(.wp-block-image) { margin-left: 24px; margin-right: 24px; }
.yn-card > h3 { margin-top: 22px; font-size: 24px; font-weight: 400; line-height: 1.16; }
.yn-card > p { color: #6b626e; font-size: 15px; }
.yn-summary { display: block; }
.yn-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: #3e3444; }
.yn-price { color: #824496; font-weight: 600; }
.yn-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block: 20px 24px; }
.yn-actions > .wp-block-buttons { margin: 0; }
.yn-actions .wp-block-button__link { padding: 11px 15px; font-size: 14px; }
.yn-gift-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.yn-voucher { padding: 26px; background: linear-gradient(125deg, #58276c, #9556a5); color: white; min-height: 220px; }
.yn-voucher p { margin: 0 0 10px; }
.yn-gift-option-body { padding: 24px; }
.yn-gift-option h2 { font-size: 23px; }
@media (max-width: 781px) {
  .yn-section { margin-block: 2rem; }
  .yn-section .wp-block-columns { gap: 20px; }
  .yn-gift-cards { grid-template-columns: 1fr; }
  .yn-card > :not(.wp-block-image) { margin-left: 20px; margin-right: 20px; }
}

/* Jerarquía y distribución de las páginas publicadas. */
.yn-page-title {
  margin: 0;
  padding: 38px max(22px, calc((100% - 1180px) / 2));
  background: #824496;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}
.yn-card { display: flex; flex-direction: column; }
.yn-card > h3 { color: #824496; }
.yn-meta { justify-content: space-between; }
.yn-meta .yn-price { margin-left: auto; }
.yn-card > .yn-actions { margin-top: auto; padding-top: 20px; }
.yn-actions > .wp-block-buttons:nth-child(2) .wp-block-button__link {
  background: #fff;
  border-color: #824496;
  color: #824496;
}
.yn-actions > .wp-block-buttons:nth-child(2) .wp-block-button__link:hover {
  background: #673377;
  color: #fff;
}
.yn-fitness { color: #39333c; font-size: 16px; line-height: 1.65; }
.yn-modern-hero { padding: 64px 22px 48px; background: #f7f2f8; }
.yn-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  column-gap: 42px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}
.yn-hero-content > .yn-eyebrow,
.yn-hero-content > h1,
.yn-hero-content > .yn-intro { grid-column: 1; }
.yn-hero-content > .wp-block-image { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.yn-hero-content img { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 14px; }
.yn-eyebrow { text-transform: uppercase; letter-spacing: .14em; color: #824496; font-size: 12px; font-weight: 700; }
.yn-fitness h1, .yn-fitness h2, .yn-fitness h3 { color: #824496; font-weight: 400; }
.yn-fitness h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 12px 0 18px; }
.yn-fitness h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; }
.yn-fitness h3 { font-size: 19px; line-height: 1.3; }
.yn-intro { max-width: 760px; color: #655d67; font-size: 18px; }
.yn-fitness .yn-section { margin: 0; padding: 52px 22px; }
.yn-section-soft { background: #faf8fa; }
.yn-content, .yn-feature { max-width: 1140px; margin: 0 auto; }
.yn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.yn-modern-card { padding: 25px; background: #fff; border: 1px solid #eadfeb; border-radius: 12px; box-shadow: 0 5px 20px rgba(74,39,88,.05); }
.yn-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; align-items: center; }
.yn-feature .wp-block-image { margin: 0; }
.yn-feature img { width: 100%; display: block; border-radius: 14px; }
.yn-feature-reverse .wp-block-image { order: 2; }
.yn-table-wrap { overflow-x: auto; border: 1px solid #eadfeb; border-radius: 10px; }
.yn-table-wrap table { width: 100%; min-width: 430px; border-collapse: collapse; }
.yn-table-wrap th, .yn-table-wrap td { padding: 14px 17px; text-align: left; border-bottom: 1px solid #eadfeb; }
.yn-table-wrap th { color: #824496; background: #f7f2f8; }
@media (max-width: 700px) {
  .yn-page-title { padding: 28px 22px; }
  .yn-modern-hero { padding: 42px 16px 34px; }
  .yn-hero-content { display: block; }
  .yn-hero-content > .wp-block-image { margin-top: 24px; }
  .yn-hero-content img { height: auto; aspect-ratio: 3 / 2; }
  .yn-fitness .yn-section { padding: 36px 16px; }
  .yn-feature { grid-template-columns: 1fr; gap: 22px; }
  .yn-feature-reverse .wp-block-image { order: initial; }
}

/* Espaciado explícito frente a los márgenes automáticos de los grupos de WordPress. */
.yn-page-title { padding: 34px 24px; }
.yn-card { align-items: stretch; }
.yn-card > .wp-block-image { width: 100%; max-width: none; margin: 0 !important; flex: none; }
.yn-card > :not(.wp-block-image) { width: calc(100% - 48px); max-width: none !important; margin-left: 24px !important; margin-right: 24px !important; }
.yn-card > h3 { text-align: left; }
.yn-card > p:has(.yn-meta) { display: flex; flex-direction: column; flex-grow: 1; }
.yn-card .yn-summary { flex-grow: 1; }
.yn-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e9e0ec; font-size: 16px; }
.yn-card > .yn-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto !important; margin-bottom: 24px !important; padding-top: 18px; }
.yn-card .yn-actions > .wp-block-buttons { width: 100%; max-width: none; margin: 0 !important; }
.yn-card .yn-actions > .wp-block-buttons:only-child { grid-column: 1 / -1; }
.yn-card .yn-actions .wp-block-button, .yn-card .yn-actions .wp-block-button__link { width: 100%; }
.yn-card .yn-actions .wp-block-button__link { display: flex; align-items: center; justify-content: center; }
.yn-hero-content > *, .yn-feature > *, .yn-grid > * { min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
.yn-grid > * { width: 100%; }
.yn-table-wrap > .wp-block-table { width: 100%; margin: 0 !important; }
@media(max-width: 781px) {
 .yn-card > :not(.wp-block-image) { width: calc(100% - 40px); margin-left: 20px !important; margin-right: 20px !important; }
}

/* Tablas legibles y contacto, sin depender del constructor anterior. */
.yn-table-wrap .wp-block-table table { min-width: 0; }
.yn-table-wrap .wp-block-table th, .yn-table-wrap .wp-block-table td { border: 0; border-bottom: 1px solid #eadfeb; }
.yn-table-wrap .wp-block-table thead { border: 0; }
.yn-table-wrap tr:last-child td { border-bottom: 0; }
.yn-contact-form { max-width: 760px; }
.yn-contact-form label { display: block; font-size: 15px; font-weight: 500; }
.yn-contact-form input:not([type=submit]), .yn-contact-form textarea { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #d9cddd; border-radius: 8px; padding: 12px 14px; background: #fff; color: #3e3444; font: inherit; }
.yn-contact-form textarea { min-height: 170px; }
.yn-contact-form input:focus, .yn-contact-form textarea:focus { outline: 2px solid #824496; outline-offset: 2px; }
.yn-contact-form input[type=submit] { border: 1px solid #824496; border-radius: 7px; background: #824496; color: #fff; padding: 13px 30px; font: inherit; cursor: pointer; }

/* WooCommerce conserva sus bloques y lógica; únicamente se adapta la presentación. */
.woocommerce main .wp-block-post-title { color: #824496; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 400; }
.woocommerce main .wc-block-components-product-price.has-large-font-size { color: #824496; font-size: 30px !important; }
.woocommerce .woocommerce-price-suffix { font-size: 14px; color: #6b626e; }
.woocommerce .wp-element-button, .woocommerce a.button, .woocommerce button.button { background: #824496; border: 1px solid #824496; border-radius: 7px; color: #fff; padding: 12px 20px; font-size: 15px; font-weight: 600; }
.woocommerce .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: #673377; color: #fff; }
.woocommerce .woocommerce-product-gallery img { border-radius: 12px; }
.woocommerce input.qty { border: 1px solid #d9cddd; border-radius: 7px; padding: 12px; color: #3e3444; }
.woocommerce .wp-block-woocommerce-product-collection .wc-block-product-template > li { padding: 14px; border: 1px solid #e9e0ec; border-radius: 12px; }
@media(max-width: 781px) {
 .woocommerce main { padding-left: 18px; padding-right: 18px; }
 .woocommerce main .wp-block-post-title { font-size: 28px; }
}
