/* ==========================================================================
   Ronda 08 · piezas de Material (Google) SOLO dentro de .mat
   Para las pantallas que Francis quiso en Material (juegos y temas).
   El menú, el pie y los botones del sitio siguen siendo los de la base Apple.
   Colores: los mismos que generó la herramienta oficial de Google en la ronda 2.
   ========================================================================== */
.mat {
  --md-sys-color-primary: #5142e4;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #e3dfff;
  --md-sys-color-on-primary-container: #381fcd;
  --md-sys-color-secondary-container: #e4dff9;
  --md-sys-color-on-secondary-container: #464559;
  --md-sys-color-tertiary: #825500;
  --md-sys-color-tertiary-container: #ffddb3;
  --md-sys-color-on-tertiary-container: #624000;
  --md-sys-color-surface: #fcf8fa;
  --md-sys-color-on-surface: #1c1b1d;
  --md-sys-color-on-surface-variant: #47464a;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f7f2f4;
  --md-sys-color-surface-container: #f1edef;
  --md-sys-color-surface-container-high: #ebe7e9;
  --md-sys-color-surface-container-highest: #e5e1e3;
  --md-sys-color-outline: #78767a;
  --md-sys-color-outline-variant: #c9c5ca;
  --md-marca: "Google Sans Flex", "Google Sans", Roboto, Arial, sans-serif;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-marca);
  letter-spacing: 0.1px;
}
.mat h1, .mat h2, .mat h3 { font-family: var(--md-marca); letter-spacing: 0; }
.mat .md-display-medium { font-size: 45px; line-height: 52px; font-weight: 500; font-variation-settings: "ROND" 30; }
.mat .md-display-small { font-size: 36px; line-height: 44px; font-weight: 500; font-variation-settings: "ROND" 30; }
.mat .md-headline-large { font-size: 32px; line-height: 40px; font-weight: 400; font-variation-settings: "ROND" 30; }
.mat .md-headline-small { font-size: 24px; line-height: 32px; font-weight: 400; font-variation-settings: "ROND" 30; }
.mat .md-title-large { font-size: 22px; line-height: 28px; font-weight: 400; }
.mat .md-title-medium { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .15px; }
.mat .md-body-large { font-size: 16px; line-height: 24px; letter-spacing: .5px; }
.mat .md-body-medium { font-size: 14px; line-height: 20px; letter-spacing: .25px; }
.mat .md-label-large { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; }
.mat .variante { color: var(--md-sys-color-on-surface-variant); }

.mat .ms { font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; flex: none; }
.mat .ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.mat .md-card { position: relative; border-radius: 12px; overflow: hidden; color: inherit; }
.mat .md-card.filled { background: var(--md-sys-color-surface-container-highest); }
.mat .md-card.suave { background: var(--md-sys-color-surface-container); }
.mat .md-card.outlined { background: var(--md-sys-color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.mat .md-card.r-xl { border-radius: 28px; }
.mat .md-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-size: 14px; font-weight: 500; letter-spacing: .1px; white-space: nowrap; }
.mat .md-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 24px; border-radius: 9999px; border: 0; cursor: pointer; white-space: nowrap; font-family: var(--md-marca); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; text-decoration: none !important; }
.mat .md-btn::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s linear; }
.mat .md-btn:hover::before { opacity: .08; }
.mat .md-btn:active { border-radius: 12px; }
.mat .md-btn .ms { font-size: 20px; }
.mat .md-btn.filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.mat .md-btn.tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.mat .md-btn.text { background: transparent; color: var(--md-sys-color-primary); padding: 0 12px; }
.mat .md-btn.m { height: 56px; font-size: 16px; }
.mat .md-fab { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 0; cursor: pointer; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15); }

.mat .icono-forma { width: 56px; height: 56px; display: grid; place-items: center; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); flex: none; }
.mat .icono-forma.terciario { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.mat .icono-forma.secundario { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.mat .icono-forma .ms { font-size: 28px; }
.mat .f-galleta4 { clip-path: url(#f-galleta4); }
.mat .f-galleta9 { clip-path: url(#f-galleta9); }
.mat .f-galleta12 { clip-path: url(#f-galleta12); }
.mat .f-flor { clip-path: url(#f-flor); }

@media (max-width: 599px) {
  .mat .md-display-medium { font-size: 32px; line-height: 40px; }
  .mat .md-display-small { font-size: 28px; line-height: 36px; }
  .mat .md-headline-large { font-size: 28px; line-height: 36px; }
  .mat .md-btn { white-space: normal; height: auto; min-height: 40px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
}
