/* ==========================================================================
   Patio – capa «Terracota y oliva»
   Crema cálida, tinta marrón, terracota y verde oliva; tipografía Young Serif
   (títulos) e Instrument Sans (texto). Se carga la última.
   ========================================================================== */

:root,
body {
  --fr-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fr-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --fr-radius: 18px;
  --fr-radius-lg: 26px;
  --fr-radius-xl: 34px;
  --fr-shadow: 0 1px 2px rgba(58, 42, 32, .05), 0 12px 30px rgba(58, 42, 32, .08);
  --fr-shadow-lg: 0 6px 14px rgba(58, 42, 32, .08), 0 26px 56px rgba(58, 42, 32, .15);
  --pt-terra: #C4623A;
  --pt-terra-dark: #9A4424;
  --pt-olive: #5E6B3A;
  --pt-ochre: #E3A93F;
  --pt-sand: #E9DCC8;
  --pt-peach: #F2B48F;
  --pt-ink: #3A2A20;
}

/* Tonos de las tuiles (sustituyen coral, menta, mostaza, lila y cielo) */
body.patio-palette-patio {
  --ms-coral: var(--pt-terra);
  --ms-mint: #A9B68A;
  --ms-mustard: var(--pt-ochre);
  --ms-lilac: var(--pt-olive);
  --ms-sky: var(--pt-terra-dark);
}
body.patio-palette-patio .ms-tone-peach { background: var(--pt-peach); }
body.patio-palette-patio .ms-tone-lime { background: var(--pt-sand); }

/* Tipografía: títulos con serif cálida, sin compresión de letras */
body { font-family: var(--fr-font); color: var(--pt-ink); }
h1, h2, h3, .fr-title, .ms-tile__txt strong, .ms-slide__title, .fr-card__title, .fr-card__title a {
  font-family: var(--fr-display) !important;
  font-weight: 400 !important;
  letter-spacing: -.01em !important;
}
.ms-slide__title { line-height: 1.08 !important; }

/* Portada: el «sol» del patio en la tuile principal */
.ms-tile--hero { background: var(--pt-terra) !important; }
.ms-tile--hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: var(--pt-peach); opacity: .9; z-index: 0; pointer-events: none;
  animation: pt-sun 14s ease-in-out infinite alternate;
}
.ms-tile--hero .ms-slide { z-index: 1; }
.ms-tile--hero .ms-slide__img + .ms-slide__copy, .ms-tile--hero .ms-slide__img ~ * { position: relative; }
.ms-slide__title .patio-em { background: #fff; color: var(--pt-terra-dark); }
@keyframes pt-sun { from { transform: translate(0, 0) scale(1); } to { transform: translate(-24px, 18px) scale(1.08); } }

/* Cabecera y píldoras */
.fr-topbar { background: var(--pt-ink) !important; }
.fr-header { background: rgba(251, 247, 241, .96) !important; }
.ms-pill.is-on { background: var(--pt-olive) !important; border-color: var(--pt-olive) !important; }
.ms-pill:hover { border-color: var(--pt-olive) !important; }

/* Botones */
.ms-btn, .fr-card__add { background: var(--pt-ink) !important; }
.ms-btn--light { background: #fff !important; color: var(--pt-ink) !important; }
.fr-card__add:hover, .ms-btn:hover { background: var(--pt-terra) !important; }
.ms-btn--accent, .ms-contact__send, .ms-trackform__go { background: var(--pt-terra) !important; }

/* Tarjetas de producto */
.fr-card__media { background: #F4EBDD !important; }
.fr-badge--sale { background: var(--pt-terra) !important; }
.ms-fav.is-on { color: var(--pt-terra) !important; }

/* Pie */
.fr-footer, .site-footer { background: var(--pt-ink) !important; }

@media (prefers-reduced-motion: reduce) {
  .ms-tile--hero::after { animation: none; }
}
