/* Estilos base PekeKids. Paleta tomada del logo. */
:root {
  --azul-marino: #1B2559;
  --magenta: #C2187F;
  --naranjo: #FFC000;
  --verde: #157A35;
  --crema: #FFF5D6;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--azul-marino); font-family: 'Nunito', system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--azul-marino); }
a:hover { color: var(--magenta); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--naranjo); outline-offset: 2px;
}

/* ---------- Carrito (js/carrito.js) ---------- */
.pkc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pkc-lock { overflow: hidden; }
.pkc-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--magenta); color: #FFFFFF;
  font: 700 17px 'Nunito', system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 6px 20px rgba(27, 37, 89, .28);
}
.pkc-fab[hidden] { display: none; }
.pkc-fab:hover { background: #A5126B; }
.pkc-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--naranjo); color: var(--azul-marino);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.pkc-bump { animation: pkc-bump .4s ease; }
@keyframes pkc-bump { 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .pkc-bump { animation: none; } }

.pkc-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(18, 26, 66, .55);
  display: flex; justify-content: flex-end;
}
.pkc-overlay[hidden] { display: none; }
.pkc-panel {
  width: 100%; max-width: 460px; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: #FFFFFF; color: var(--azul-marino); box-shadow: -8px 0 30px rgba(18, 26, 66, .25);
}
.pkc-panel:focus { outline: none; }
.pkc-head {
  position: sticky; top: 0; z-index: 1; background: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #F0E6D2;
}
.pkc-head h2 { margin: 0; font: 800 28px/1.1 'Baloo 2', sans-serif; }
.pkc-close {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--crema);
  color: var(--azul-marino); font-size: 28px; line-height: 1; cursor: pointer;
}
.pkc-body { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.pkc-empty { padding: 32px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 17px; line-height: 1.5; color: #3B4270; }
.pkc-empty p { margin: 0 0 8px; }
.pkc-combo { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--crema); font-weight: 700; font-size: 15px; line-height: 1.4; }
.pkc-combo-on { background: #E2FBE6; color: var(--verde); }
.pkc-lines { list-style: none; margin: 0; padding: 0; }
.pkc-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid #F0E6D2; }
.pkc-line-main { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkc-name { font-weight: 700; font-size: 16px; line-height: 1.35; }
.pkc-sub { font-size: 14px; color: #3B4270; }
.pkc-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pkc-price { font: 800 19px/1.1 'Baloo 2', sans-serif; }
.pkc-qty { display: inline-flex; align-items: center; border: 2px solid #D8D2C2; border-radius: 999px; overflow: hidden; }
.pkc-qty button {
  width: 36px; height: 36px; border: 0; background: #FFFFFF; color: var(--azul-marino);
  font-size: 20px; font-weight: 700; cursor: pointer;
}
.pkc-qty button:disabled { color: #B8B3A6; cursor: default; }
.pkc-qty input {
  width: 48px; height: 36px; border: 0; text-align: center; font: 700 16px 'Nunito', sans-serif;
  color: var(--azul-marino); -moz-appearance: textfield;
}
.pkc-qty input::-webkit-inner-spin-button, .pkc-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pkc-remove, .pkc-clear {
  border: 0; background: none; padding: 4px 0; color: #3B4270; font: 600 14px 'Nunito', sans-serif;
  text-decoration: underline; cursor: pointer;
}
.pkc-remove:hover, .pkc-clear:hover { color: var(--magenta); }
.pkc-clear { align-self: center; }
.pkc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; font-weight: 700; font-size: 18px; }
.pkc-total strong { font: 800 28px/1 'Baloo 2', sans-serif; color: var(--magenta); }
.pkc-note { margin: 0; font-size: 14px; line-height: 1.45; color: #3B4270; }
.pkc-ahorro { color: var(--verde); font-weight: 700; }
.pkc-form { margin-top: 12px; padding: 20px; border-radius: 20px; background: var(--crema); display: flex; flex-direction: column; gap: 12px; }
.pkc-form h3 { margin: 0; font: 800 22px/1.1 'Baloo 2', sans-serif; }
.pkc-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pkc-row .pkc-field { flex: 1 1 140px; }
.pkc-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.pkc-field input, .pkc-field select, .pkc-field textarea {
  min-height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid #D8D2C2; background: #FFFFFF;
  font: 400 16px 'Nunito', sans-serif; color: var(--azul-marino); width: 100%;
}
.pkc-field textarea { padding: 10px 12px; resize: vertical; }
.pkc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font: 700 17px 'Nunito', sans-serif; text-decoration: none; cursor: pointer;
}
.pkc-btn-main { border: 0; background: var(--magenta); color: #FFFFFF; }
.pkc-btn-main:hover { background: #A5126B; }
.pkc-btn-sec { border: 2px solid var(--azul-marino); background: #FFFFFF; color: var(--azul-marino); }

/* Botones en la página de servicios */
.pkc-add {
  min-height: 44px; min-width: 150px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--magenta); background: var(--magenta); color: #FFFFFF;
  font: 700 16px 'Nunito', sans-serif; cursor: pointer;
}
.pkc-add:hover { background: #A5126B; border-color: #A5126B; }
.pkc-add[aria-pressed="true"] { background: #E2FBE6; border-color: var(--verde); color: var(--verde); }
.pkc-hint { font-weight: 700; font-size: 15px; color: var(--magenta); }
.pkc-chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid transparent;
  background: var(--crema); color: var(--azul-marino); font: 600 15px 'Nunito', sans-serif; cursor: pointer;
}
.pkc-chip::before { content: '+ '; font-weight: 800; color: var(--magenta); }
.pkc-chip:hover { border-color: var(--magenta); }
.pkc-chip[aria-pressed="true"] { background: #E2FBE6; border-color: var(--verde); }
.pkc-chip[aria-pressed="true"]::before { content: '✓ '; color: var(--verde); }

/* Servicio con foto en la lista de servicios */
.pkc-item { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.pkc-foto { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 16px; object-fit: cover; display: block; background: var(--crema); }
@media (max-width: 480px) { .pkc-foto { width: 64px; height: 64px; border-radius: 14px; } }

/* Deja espacio para que el botón flotante no tape el pie de página */
footer { padding-bottom: 72px; }
