@layer xone-reset, xone-base, xone-responsive, xone-layout, xone-components, xone-project;
@layer xone-reset {
  xone-island { display: block; }
  *, *::before, *::after { box-sizing: border-box; }
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Roboto-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Roboto-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Roboto-Bold.ttf') format('truetype');
}
@layer xone-base {
  /* Layout primitives — paridad baselineCss.ts del xml-renderer */
  body { display: flex; flex-direction: column; align-items: stretch; min-height: 100dvh; margin: 0; }
  .xone-canvas {
    display: flex; flex-direction: column; align-items: stretch;
    flex: 1 1 auto; min-height: 0; width: 100%;
    container-type: inline-size; container-name: xoneCanvas;
    font-family: 'Roboto', sans-serif;
  }
  .xone-canvas[data-responsive="1"] {
    min-height: 100dvh;
    --xone-p-unit: calc(100cqw / var(--xone-base-width));
    --xone-font-unit: calc(var(--xone-font-factor) * 100cqw / var(--xone-base-width));
  }
  .xone-canvas[data-responsive="1"][data-canvas-mode="fluid"] {
    width: min(100vw, var(--xone-canvas-max-width, 540px));
    align-self: center;
  }
  .xone-canvas[data-responsive="1"][data-canvas-mode="viewport"] {
    width: 100vw; max-width: none; align-self: stretch;
  }
  .xone-canvas[data-responsive="1"][data-canvas-mode="fixed"] {
    width: calc(var(--xone-base-width) * 1px);
    height: calc(var(--xone-base-height) * 1px);
    flex: 0 0 auto; min-height: 0; align-self: center;
  }
  .xone-canvas[data-responsive="1"][data-canvas-mode="letterbox"] {
    aspect-ratio: var(--xone-base-width) / var(--xone-base-height);
    width: min(100vw, calc(100dvh * var(--xone-base-width) / var(--xone-base-height)));
    flex: 0 0 auto; min-height: 0; align-self: center;
  }
  .xone-canvas[data-responsive="1"][data-canvas-align="left"]   { align-self: flex-start; }
  .xone-canvas[data-responsive="1"][data-canvas-align="right"]  { align-self: flex-end; }
  .xone-canvas[data-responsive="1"][data-canvas-align="center"] { align-self: center; }
  .xone-coll { flex: 1 1 auto; min-height: 100%; }
  .xone-group { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .xone-frame {
    display: flex; flex-direction: column; min-height: 0;
    position: relative;
  }
  .xone-row {
    display: flex; flex-direction: row; align-items: stretch;
    width: 100%; gap: 0; flex: 0 0 auto; align-self: stretch;
  }
  .xone-prop { display: flex; flex-direction: column; width: 100%; min-height: 0; }
  .xone-prop-tl { display: block; width: 100%; }

  /* Inputs */
  .xone-prop input, .xone-prop textarea, .xone-prop select {
    width: 100%; height: 100%;
    padding: 12px 14px; border: 1px solid currentColor; border-radius: 8px;
    background: transparent; color: inherit; font-family: inherit;
    font-size: inherit; outline: none;
  }
  .xone-prop input:focus, .xone-prop textarea:focus, .xone-prop select:focus {
    border-color: var(--xone-border-color-focus, currentColor);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
  }

  /* Buttons */
  .xone-prop-b {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; background: transparent;
    color: inherit; font-family: inherit; font-size: inherit;
    padding: 0; min-width: 0;
  }

  /* Vertical center */
  .xone-prop.xone-prop-centered-y {
    display: flex; flex-direction: column; justify-content: center;
  }

  /* Line clamp */
  .xone-prop-tl .xone-label-text.xone-label-clamp {
    display: -webkit-box; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
  }

  /* Floating labels */
  .xone-field-floating { position: relative; display: block; height: 100%; font-size: inherit; }
  .xone-field-floating input,
  .xone-field-floating textarea { width: 100%; height: 100%; box-sizing: border-box; font-family: inherit; font-size: inherit; }
  .xone-floating-label {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none; transition: all 0.15s ease;
    font-size: inherit; opacity: 0.5;
  }
  .xone-field-floating input:focus + .xone-floating-label,
  .xone-field-floating input:not(:placeholder-shown) + .xone-floating-label,
  .xone-field-floating textarea:focus + .xone-floating-label,
  .xone-field-floating textarea:not(:placeholder-shown) + .xone-floating-label {
    top: 6px; transform: translateY(0); font-size: 0.65em; opacity: 1;
  }

  /* Contents (prop type="Z") — layout aplicado por islands-runtime */
  .xone-prop-z { position: relative; min-height: 0; }
  .xone-contents { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .xone-contents.is-gridview { display: grid; gap: 8px; }
  .xone-contents.is-recyclerview { display: flex; gap: 6px; }
  .xone-contents[data-orientation="horizontal"] {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .xone-contents[data-orientation="horizontal"] > .xone-content-item {
    width: auto; flex: 0 0 auto; scroll-snap-align: start;
  }
  .xone-content-item {
    display: flex; flex-direction: column; width: 100%;
    cursor: pointer; transition: filter 0.1s ease;
  }
  .xone-content-item:hover { filter: brightness(0.97); }
  .xone-contents-empty {
    color: #9AA0A6; text-align: center; padding: 16px; font-size: 12px;
  }
}
@layer xone-project {
.xone-coll {
    background-color: #FFF8F0;
}

.xone-group {
    background-color: #FFF8F0;
}

.xone-frame {
    border: none;
}

.xone-prop {
    font-size: calc((8 + 13) * var(--xone-font-unit, 1px));
    color: #2D3436;
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-left: none;
    border: none; padding: 0;
}

.xone-prop-tl {
    color: #2D3436;
    font-size: calc((8 + 13) * var(--xone-font-unit, 1px));
}

.xone-prop-b {
    font-size: calc((8 + 15) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(14 * var(--xone-p-unit, 1px));
    border: none;
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-left: none;
    border: none; padding: 0;
}

.groupNoTab {
    background-color: #FFF8F0;
}

.groupCardCat {
    background-color: transparent;
}

.groupCardRec {
    background-color: transparent;
}

.groupIng {
    background-color: transparent;
}

.groupPaso {
    background-color: transparent;
}

.btnPrimario {
    background-color: #FF6B9D;
    color: #FFFFFF;
    color: #FFFFFF;
    font-size: calc((8 + 15) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(16 * var(--xone-p-unit, 1px));
    text-align: center;
}

.btnSecundario {
    background-color: #4ECDC4;
    color: #FFFFFF;
    color: #FFFFFF;
    font-size: calc((8 + 15) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(16 * var(--xone-p-unit, 1px));
    text-align: center;
}

.btnAcento {
    background-color: #FFD93D;
    color: #2D3436;
    color: #2D3436;
    font-size: calc((8 + 15) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(16 * var(--xone-p-unit, 1px));
    text-align: center;
}

.btnGhost {
    background-color: #FFFFFF;
    color: #FF6B9D;
    color: #FF6B9D;
    font-size: calc((8 + 14) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(16 * var(--xone-p-unit, 1px));
    text-align: center;
    border-width: calc(1 * var(--xone-p-unit, 1px));
}

.btnBack {
    background-color: #42423E;
    color: #FFFFFF;
    color: #FFFFFF;
    font-size: calc((8 + 22) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(22 * var(--xone-p-unit, 1px));
    text-align: center;
}

.textoTitulo {
    font-size: calc((8 + 22) * var(--xone-font-unit, 1px));
    color: #2D3436;
    color: #2D3436;
    font-weight: bold;
}

.textoSubtitulo {
    font-size: calc((8 + 13) * var(--xone-font-unit, 1px));
    color: #9AA0A6;
    color: #9AA0A6;
}

.textoEnfasis {
    font-size: calc((8 + 13) * var(--xone-font-unit, 1px));
    color: #FF6B9D;
    color: #FF6B9D;
    font-weight: bold;
}

.textoEditable {
    font-size: calc((8 + 14) * var(--xone-font-unit, 1px));
    color: #2D3436;
    color: #2D3436;
    background-color: #F5F1EB;
    background-color: #F5F1EB;
    border-radius: calc(14 * var(--xone-p-unit, 1px));
    padding-left: calc(0 * var(--xone-p-unit, 1px));
    padding-right: calc(0 * var(--xone-p-unit, 1px));
    padding-top: calc(0 * var(--xone-p-unit, 1px));
    padding-bottom: calc(0 * var(--xone-p-unit, 1px));
    border: none; padding: 0;
    --xone-floating-label-color: #9AA0A6;
}

.frameHeader {
    width: 100%;
    height: calc(180 * var(--xone-p-unit, 1px));
    background-color: #FF6B9D;
    border: none;
}

.frameBody {
    width: 100%;
    height: 100%;
    background-color: #FFF8F0;
    border: none;
    overflow-y: auto; overflow-x: hidden;
}

.frameFooter {
    width: 100%;
    height: calc(60 * var(--xone-p-unit, 1px));
    background-color: #FFF8F0;
    border: none;
}

.frameCard {
    background-color: #FFFFFF;
    border-radius: calc(18 * var(--xone-p-unit, 1px));
    border: none;
}

.cardCategoria {
    background-color: #FFFFFF;
    border-radius: calc(18 * var(--xone-p-unit, 1px));
    border: none;
}

.emojiBadge {
    background-color: #FFF0F6;
    color: #FF6B9D;
    color: #FF6B9D;
    font-size: calc((8 + 38) * var(--xone-font-unit, 1px));
    border-radius: calc(14 * var(--xone-p-unit, 1px));
    text-align: center;
}

.chipRosa {
    background-color: #FFE0EC;
    color: #FF6B9D;
    color: #FF6B9D;
    font-size: calc((8 + 11) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(12 * var(--xone-p-unit, 1px));
    text-align: center;
    padding-left: calc(10 * var(--xone-p-unit, 1px));
    padding-right: calc(10 * var(--xone-p-unit, 1px));
}

.chipMenta {
    background-color: #DFFAF7;
    color: #4ECDC4;
    color: #4ECDC4;
    font-size: calc((8 + 11) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(12 * var(--xone-p-unit, 1px));
    text-align: center;
    padding-left: calc(10 * var(--xone-p-unit, 1px));
    padding-right: calc(10 * var(--xone-p-unit, 1px));
}

.chipVainilla {
    background-color: #FFF7CC;
    color: #B8860B;
    color: #B8860B;
    font-size: calc((8 + 11) * var(--xone-font-unit, 1px));
    font-weight: bold;
    border-radius: calc(12 * var(--xone-p-unit, 1px));
    text-align: center;
    padding-left: calc(10 * var(--xone-p-unit, 1px));
    padding-right: calc(10 * var(--xone-p-unit, 1px));
}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition { navigation: none; }
}