/* Tailwind v4 site stylesheet. Single source of truth for design + custom CSS.
 *
 * At draft time, this is read inline into a <style type="text/tailwindcss"> block.
 * At publish time, the Tailwind CLI compiles this file (plus templates) into
 * dist/styles.css. Every directive works here: @theme, @layer, @utility,
 * @apply, @keyframes, plus plain CSS. Do NOT write <style> blocks in PHP
 * templates for theme CSS — put it here so it lands in the compiled bundle.
 *
 * functions.php also parses the @theme block at runtime to register the
 * palette + font sizes with Gutenberg via add_theme_support().
 *
 * Conventions:
 *   1. @theme: tokens only (--color-*, --font-*, --text-*, --radius-*). No
 *      selectors, no @apply. Tokens auto-generate matching utilities.
 *   2. Plain CSS: outside @theme, inside @layer. Prefer utility classes in
 *      templates first; only write CSS here when utilities cannot express it.
 *      @layer base { h1 { font-size: var(--text-2xl); } }
 *      @layer components { .card { padding: --spacing(6); } }
 *   3. New reusable utilities: prefer @utility over @apply.
 *      @utility content-auto { content-visibility: auto; }
 *   4. Custom web fonts: load via <link> in template-parts/head.php, then
 *      reference here via --font-*.
 *
 * Token naming (Tailwind v4):
 *   --color-{slug}        → bg-{slug}, text-{slug}, border-{slug}
 *   --color-{slug}-{NN}   → numeric shades (skipped in the Gutenberg palette)
 *   --font-{slug}         → font-{slug}
 *   --text-{slug}         → text-{slug}
 *   --radius-{slug}       → rounded-{slug}
 */

@theme {
	--color-primary: #2563eb;
	--color-primary-50:  #eff6ff;
	--color-primary-100: #dbeafe;
	--color-primary-500: #3b82f6;
	--color-primary-600: #2563eb;
	--color-primary-700: #1d4ed8;
	--color-primary-900: #1e3a8a;

	--color-secondary: #475569;
	--color-secondary-50:  #f8fafc;
	--color-secondary-100: #f1f5f9;
	--color-secondary-200: #e2e8f0;
	--color-secondary-300: #cbd5e1;
	--color-secondary-500: #64748b;
	--color-secondary-600: #475569;
	--color-secondary-700: #334155;
	--color-secondary-900: #0f172a;

	--color-neutral: #171717;
	--color-background: #ffffff;

	--font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;
	--font-mono:  ui-monospace, "SF Mono", Menlo, monospace;

	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.25rem;
	--text-2xl:  1.5rem;
	--text-3xl:  1.875rem;
	--text-4xl:  2.25rem;
	--text-5xl:  3rem;
}

/* Element-level defaults. Reach for utility classes in templates first; put
 * a rule here only when the same styling needs to apply across every instance
 * of an element (e.g. body font features). Keep this layer small. */
@layer base {
	/* body { font-feature-settings: "ss01", "ss02"; } */
}

/* Entre Sesiones: scoped layout, with no effect on other product pages. */
body.page-id-198 .content-page { max-width: 1080px; }
body.page-id-198 .entry-content .es-offer h2 { font-size: clamp(1.6rem, 3.8vw, 2.8rem); line-height: 1.15; }
body.page-id-198 .entry-content .es-offer h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 12px; }
body.page-id-198 .es-offer-intro { padding: clamp(24px, 5vw, 56px); border-radius: 20px; background: #173c34; color: #f9f7ef; }
body.page-id-198 .entry-content .es-offer-intro h2 { color: #f9f7ef; margin-top: 12px; border: 0; padding-top: 0; }
body.page-id-198 .entry-content .es-offer-intro p { color: #f9f7ef; }
body.page-id-198 .es-offer-intro a:not(.xp-button) { color: #d5e4ae; }
body.page-id-198 .es-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
body.page-id-198 .es-lead { font-size: 1.15rem; line-height: 1.7; }
body.page-id-198 .es-offer .xp-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
body.page-id-198 .es-offer-intro .xp-button-dark { background: #d5e4ae; color: #173c34; border-color: #d5e4ae; }
body.page-id-198 .es-offer-intro .xp-button-outline { color: #f9f7ef; border: 1px solid #c0d2c8; }
body.page-id-198 .es-offer .xp-button { text-decoration: none; min-height: 48px; white-space: normal; text-align: center; }
body.page-id-198 .es-note { font-size: .85rem; line-height: 1.6; }
body.page-id-198 .es-offer-section { padding: 40px 0; border-bottom: 1px solid #d9dfd9; scroll-margin-top: 110px; }
body.page-id-198 .es-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
body.page-id-198 .es-feature-grid article { padding: 22px; background: #f0f3ec; border-radius: 14px; }
body.page-id-198 .es-feature-grid p { font-size: .95rem; margin-bottom: 0; }
body.page-id-198 .es-price-panel { margin-top: 20px; padding: clamp(24px,4vw,40px); background: #eef2e5; border-radius: 20px; border-bottom: 0; }
body.page-id-198 .es-offer a:focus-visible { outline: 3px solid #70a12f; outline-offset: 4px; }
.cm-art-entre-sesiones { background: #173c34; color: #f9f7ef; }
@media(max-width: 700px) {
 body.page-id-198 .es-feature-grid { grid-template-columns: 1fr; }
 body.page-id-198 .es-offer-section { padding-top: 28px; padding-bottom: 28px; }
 body.page-id-198 .es-price-panel { padding: 24px; }
 body.page-id-198 .es-offer .xp-buttons a { width: 100%; }
}

/* Reusable component classes. Use for compound patterns that recur and need
 * a name (e.g. .card, .hero-heading, .divider). Reference tokens via var();
 * @apply works but is finicky — prefer var() + utility classes in templates. */
@layer components {
	/* Entre Sesiones: sales presentation only; access and payments live in the app. */
}

/* Entre Sesiones — flagship card. Isolated to home; no change to checkout or product content. */
.xp-home .cm-product-entre-sesiones{
  border:1px solid #b6d3c5;
  border-radius:23px;
  background:#fffefa;
  box-shadow:0 15px 38px rgba(9,59,46,.09),0 3px 9px rgba(10,31,25,.035);
  position:relative;
  isolation:isolate;
}
.xp-home .cm-product-entre-sesiones:hover{
  box-shadow:0 26px 58px rgba(9,59,46,.15),0 4px 12px rgba(10,31,25,.045);
}
.xp-home .cm-product-entre-sesiones .xp-catalog-top{
  padding:18px 27px 9px;
  background:linear-gradient(116deg,#092e2d 0%,#145344 58%,#163c34 100%);
  color:#f0f8ef;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-top > span:first-child{
  border:1px solid rgba(223,245,224,.18);
  border-radius:50px;
  background:rgba(250,255,244,.075);
  padding:7px 12px;
  color:#eff8ed;
  font-size:11px;
  letter-spacing:.025em;
  font-weight:680;
}
.xp-home .cm-product-entre-sesiones .cm-status.is-available{
  background:#e9f4df;
  color:#123e2d;
  font-size:11px;
  padding:8px 12px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
}
.xp-home .cm-product-entre-sesiones .cm-card-art{
  height:246px;
  padding:16px 27px 20px;
  background:radial-gradient(circle at 81% 23%,rgba(137,192,158,.26),transparent 49%),
    linear-gradient(130deg,#092e2d 4%,#115044 57%,#1a5747 100%);
  color:#fffefa;
}
.xp-home .cm-product-entre-sesiones .cm-card-art:before{
  content:"";
  position:absolute;
  width:430px;height:300px;
  left:-115px;bottom:-218px;
  border-radius:50%;
  background:rgba(139,185,152,.13);
  transform:rotate(-17deg);
  pointer-events:none;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-kicker{
  display:block;
  max-width:260px;
  position:relative;
  z-index:2;
  font-size:10px;
  font-weight:750;
  letter-spacing:.15em;
  color:#cae3d2;
}
.xp-home .cm-product-entre-sesiones .cm-card-art > strong{
  position:relative;
  z-index:2;
  display:block;
  margin-top:19px;
  font-size:clamp(31px,3vw,42px);
  font-weight:810;
  line-height:1.03;
  letter-spacing:-.055em;
  color:#fffef8;
  text-shadow:0 2px 9px rgba(0,0,0,.10);
}
.xp-home .cm-product-entre-sesiones .cm-card-art > strong em{
  font-style:normal;
  color:#deeee1;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-accent{
  position:relative;
  z-index:2;
  display:block;
  width:51px;
  height:4px;
  margin-top:23px;
  border-radius:5px;
  background:#e4bf80;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-scene{
  position:absolute;
  width:210px;
  height:222px;
  right:0;
  bottom:-17px;
  z-index:1;
  pointer-events:none;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-leaves{
  position:absolute;
  right:0;
  bottom:6px;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-panel{
  position:absolute;
  border-radius:13px;
  background:#f8f8f1;
  box-shadow:0 12px 24px rgba(4,28,23,.3);
  border:1px solid rgba(255,255,255,.85);
}
.xp-home .cm-product-entre-sesiones .cm-es-art-panel-back{
  right:4px;
  bottom:36px;
  width:106px;
  height:160px;
  padding:15px 12px;
  transform:rotate(11deg);
  opacity:.82;
}
.xp-home .cm-product-entre-sesiones .cm-es-mini-dot{
  display:block;
  width:19px;height:19px;border-radius:50%;
  background:#bdd9bc;
  margin-bottom:10px;
}
.xp-home .cm-product-entre-sesiones .cm-es-mini-line{
  display:block;
  height:6px;
  width:68px;
  background:#e0e4d9;
  border-radius:5px;
  margin:7px 0;
}
.xp-home .cm-product-entre-sesiones .cm-es-mini-line-short{width:46px}
.xp-home .cm-product-entre-sesiones .cm-es-mini-row{
  display:block;
  height:26px;
  border-top:1px solid #e5e5db;
  margin-top:14px;
}
.xp-home .cm-product-entre-sesiones .cm-es-art-panel-front{
  right:67px;
  bottom:13px;
  width:124px;
  height:188px;
  padding:12px;
  transform:rotate(6deg);
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-top{
  display:flex;
  align-items:center;
  gap:8px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-bloom{
  width:25px;height:25px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#d5e9d3;
  color:#2e7659;
  font-size:15px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-lines{
  display:grid;gap:5px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-lines i{
  display:block;height:5px;width:44px;
  border-radius:6px;background:#dfe3da;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-lines i:last-child{width:29px}
.xp-home .cm-product-entre-sesiones .cm-es-panel-landscape{
  height:72px;
  background:linear-gradient(#d9e9cb,#b7d3bc);
  border-radius:9px;
  position:relative;
  overflow:hidden;
  margin:13px 0 12px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-sun{
  position:absolute;
  right:16px;top:12px;
  height:19px;width:19px;border-radius:50%;
  background:#fff0c7;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-hill{
  position:absolute;
  left:-16px;bottom:-27px;
  width:100px;height:67px;
  transform:rotate(16deg);
  border-radius:50%;background:#7faf96;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-hill-front{
  background:#438571;
  left:45px;bottom:-37px;
  width:99px;height:72px;
  transform:rotate(-22deg);
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-check{
  display:flex;align-items:center;gap:7px;margin-top:9px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-check b{
  width:12px;height:12px;display:grid;place-items:center;
  flex:0 0 12px;border-radius:50%;
  background:#246b59;color:#fff;font-size:9px;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-check span{
  height:5px;width:60px;border-radius:5px;background:#e1e5dc;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-check-muted b{
  background:transparent;border:1px solid #a9c7b2;
}
.xp-home .cm-product-entre-sesiones .cm-es-panel-check-muted span{width:47px}
.xp-home .cm-product-entre-sesiones .xp-catalog-body{
  padding:29px 30px 29px;
  background:linear-gradient(180deg,#fffefa,#ffffff);
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body h3{
  font-size:clamp(27px,2.7vw,34px);
  font-weight:820;
  letter-spacing:-.045em;
  line-height:1.12;
  margin-bottom:9px;
  color:#0d2e2e;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body>strong{
  color:#155344;
  font-size:18px;
  line-height:1.38;
  font-weight:730;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body>p{
  color:#526376;
  font-size:15px;
  line-height:1.65;
  margin:14px 0 19px;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body ul{
  margin:0 0 22px;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body li{
  padding:8px 0 8px 36px;
  color:#273d46;
  font-size:14px;
  line-height:1.45;
}
.xp-home .cm-product-entre-sesiones .xp-catalog-body li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:4px;
  width:26px;height:26px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  color:#195845;
  background:#e5f0e2;
  font-weight:900;
  font-size:13px;
}
.xp-home .cm-product-entre-sesiones .cm-card-price{
  border-color:#d9e7df;
  padding-top:21px;
  gap:6px;
}
.xp-home .cm-product-entre-sesiones .cm-card-price b{
  color:#0c2f2e;
  font-size:30px;
  font-weight:850;
  letter-spacing:-.05em;
}
.xp-home .cm-product-entre-sesiones .cm-card-price small{
  color:#526879;
  font-size:12px;
  line-height:1.5;
}
.xp-home .cm-product-entre-sesiones .cm-card-cta{
  margin-top:23px;
  border-radius:12px;
  padding:17px 19px;
  min-height:54px;
  background:linear-gradient(115deg,#0a4742,#0d3b37);
  box-shadow:0 7px 15px rgba(8,57,49,.14);
  color:#fff;
  font-size:15px;
  font-weight:750;
  text-decoration:none;
}
.xp-home .cm-product-entre-sesiones .cm-card-cta:hover{
  background:linear-gradient(115deg,#135d53,#0a4742);
  color:#fff;
}
.xp-home .cm-product-entre-sesiones .cm-card-cta:focus-visible{
  outline:3px solid #e6b763;
  outline-offset:4px;
}
@media(max-width:620px){
  .xp-home .cm-product-entre-sesiones .xp-catalog-top{padding:15px 20px 9px}
  .xp-home .cm-product-entre-sesiones .cm-card-art{height:221px;padding:14px 20px}
  .xp-home .cm-product-entre-sesiones .cm-card-art>strong{font-size:34px}
  .xp-home .cm-product-entre-sesiones .cm-es-art-scene{right:-22px;transform:scale(.88);transform-origin:bottom right}
  .xp-home .cm-product-entre-sesiones .xp-catalog-body{padding:25px 22px}
}
@media(prefers-reduced-motion:reduce){
  .xp-home .cm-product-entre-sesiones{transition:none}
}

