/*
Theme Name: Yeyuk Bloques
Description: Tema de bloques para el piloto de migración de Yeyuk.
Version: 0.1.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: yeyuk-bloques
*/
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/roboto-variable.ttf') format('truetype');
}

:root {
  --yk-purple: #824496;
  --yk-dark: #3e3444;
  --yk-muted: #6b626e;
  --yk-soft: #f4eef6;
}
* { box-sizing: border-box; }
body, .editor-styles-wrapper {
  margin: 0;
  color: var(--yk-dark);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--yk-purple); }
a:focus-visible, button:focus-visible { outline: 3px solid #bba0c6; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { overflow: hidden; }

/* Cabecera y navegación nativa. */
.yk-header { max-width: 1180px; margin: auto; padding: 24px 20px; gap: 18px; flex-wrap: nowrap; }
.yk-header .wp-block-navigation { font-size: 14px; font-weight: 600; min-width: 0; }
.yk-logo { flex: 0 1 220px; margin: 0; min-width: 0; }
.yk-logo img { display: block; width: 220px; max-width: 100%; height: auto; }

.wp-block-button__link {
  background: var(--yk-purple);
  color: #fff;
  border: 1px solid var(--yk-purple);
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.is-style-outline > .wp-block-button__link { color: var(--yk-purple); background: transparent; border: 1px solid var(--yk-purple); }
.wp-block-button__link:hover { background: #673377; border-color: #673377; color: #fff; }
.yk-section { padding: 76px 22px; }
.yk-section h1, .yk-section h2, .yk-section h3 { color: var(--yk-dark); font-weight: 400; line-height: 1.16; }
.yk-section h1 { font-size: clamp(36px, 4.3vw, 60px); letter-spacing: -.025em; margin: 16px 0 24px; }
.yk-section h2 { font-size: clamp(29px, 3.1vw, 40px); margin: 0 0 18px; }
.yk-section h3 { font-size: 24px; margin: 0 0 12px; }
.yk-section .wp-block-columns { align-items: center; gap: clamp(25px, 4vw, 55px); }
.yk-eyebrow { color: var(--yk-purple); font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.yk-lead { color: var(--yk-muted); font-size: 18px; line-height: 1.65; max-width: 52ch; }
.yk-facts { color: #807183; font-size: 13px; line-height: 1.7; }

.yk-hero { background: #f7f2f4; padding-top: 56px; padding-bottom: 56px; }
.yk-hero-grid > .wp-block-column:last-child { position: relative; }
.yk-hero-grid figure { margin: 0; }
.yk-hero img { display: block; width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 18px; }
.yk-photo-note { position: absolute; left: 22px; right: 22px; bottom: 22px; margin: 0; padding: 15px 18px; border-radius: 9px; background: rgba(255,255,255,.94); color: var(--yk-dark); font-size: 14px; }
.yk-photo-note strong { color: var(--yk-purple); font-size: 17px; }
.yk-quick-wrap { background: #fff; border-bottom: 1px solid #e9e0ec; padding: 22px; }
.yk-quick { justify-content: center; gap: 12px 28px; }
.yk-quick .wp-block-button__link { color: var(--yk-muted); border: 0; padding: 0; font-size: 14px; font-weight: 400; }
.yk-quick .wp-block-button__link:hover { background: transparent; color: var(--yk-purple); }

.yk-cards { align-items: stretch !important; gap: 22px !important; margin-top: 24px; }
.yk-card { height: 100%; border: 1px solid #e9e0ec; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 5px 20px rgba(74,39,88,.04); }
.yk-card figure { margin: 0; }
.yk-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.yk-card-body { padding: 24px; }
.yk-card p { color: var(--yk-muted); font-size: 15px; }
.yk-beauty, .yk-fitness { background: var(--yk-soft); }
.yk-mini { padding: 20px 22px; margin: 12px 0; background: rgba(255,255,255,.8); border: 1px solid #e7daed; border-radius: 10px; }
.yk-mini h3 { color: var(--yk-purple); font-size: 18px; }
.yk-mini p { color: var(--yk-muted); font-size: 15px; margin: .2em 0; }
.yk-gift { background: #fff; }
.yk-voucher { padding: 34px; background: linear-gradient(125deg,#58276c,#9556a5); color: #fff; border-radius: 16px; min-height: 245px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 22px 40px rgba(93,43,108,.18); }
.yk-voucher-brand { font-size: 32px; font-weight: 700; }
.yk-section .yk-voucher h3 { color: #fff; font-size: 31px; font-weight: 300; }
.yk-gift-amounts { margin: 24px 0; }
.yk-gift-amounts .wp-block-button__link { padding: 9px 18px; border-color: #dcc9e3; font-size: 18px; }
.yk-reserve-gift { justify-content: space-between; }
.yk-section:not(.yk-hero) img { display: block; object-fit: cover; }
.yk-local { background: #f8f6f9; }
.yk-footer { padding: 35px 22px; background: #302238; color: #fff; }
.yk-footer a { color: #fff; }
.wp-block-post-content { margin-top: 0; }

@media (max-width: 781px) {
  .yk-header { justify-content: space-between; }
  .yk-logo { flex-basis: 170px; }
  .yk-header .wp-block-navigation { margin-left: auto; }
  .yk-section { padding-top: 48px; padding-bottom: 48px; }
  .yk-section h1 { font-size: 38px; }
  .yk-section .wp-block-columns { gap: 25px; }
  .yk-hero { padding-top: 34px; padding-bottom: 34px; }
  .yk-hero img { aspect-ratio: 3 / 2; }
  .yk-photo-note { left: 14px; right: 14px; bottom: 14px; }
  .yk-quick { justify-content: flex-start; }
  .yk-cards { gap: 20px !important; }
}
