html { scroll-behavior: smooth; }
.cart-terms { margin-top: 14px; font-size: 13px; line-height: 1.5; }
.cart-terms label { display: flex; align-items: flex-start; gap: 8px; }
.cart-terms input { width: 18px; height: 18px; flex-shrink: 0; }
.terms-link { border: 0; background: none; color: #9ed0ff; text-decoration: underline; cursor: pointer; padding: 6px 0; font: inherit; }
#terms-dialog { width: min(960px, calc(100vw - 24px)); height: min(850px, calc(100dvh - 24px)); max-width: none; max-height: none; margin: auto; padding: 16px; border: 1px solid #607da5; border-radius: 14px; background: #101b2e; color: #fff; }
#terms-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
#terms-dialog::backdrop { background: #05080ddd; }
.terms-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.terms-heading h2 { margin: 0; font-size: 20px; }
#terms-dialog p { margin: 0; font-size: 12px; }
#terms-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; border-radius: 6px; }
.service-options label:has(.service-mode) { grid-column: 1 / -1; }
.service-card .service-options select { min-width: 0; }
.shop-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 16px; }
.shop-nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid #506681; border-radius: 10px; background: #182132; color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.shop-nav-link:hover { border-color: #a8c7ee; }
.shop-nav-link:disabled { opacity: .55; cursor: default; }
#nav-cart-count { border-radius: 20px; background: #314968; min-width: 22px; padding: 2px 5px; text-align: center; }
.hero-info a { color: #9ed0ff; text-decoration: underline; }
.cart-bottom .cart-dialog-actions { margin-top: 12px; }
#cart-status[hidden] { display: none; }
body { padding-bottom: 90px; }
body.cart-dialog-open { overflow: hidden; }
.cart-overlay { position: fixed; inset: 0; z-index: 100; background: #05080dcc; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cart-overlay[hidden] { display: none; }
.shopping-cart { width: min(760px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; background: #101b2e; color: #f3f7ff; border: 1px solid #607da5; border-radius: 16px; padding: 22px; box-shadow: 0 24px 80px #000b; }
.shopping-cart h2 { margin-top: 0; }
.cart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #354660; }
.cart-heading p { color: #b6c7df; }
.cart-close { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #7390b8; color: #fff; background: #192841; cursor: pointer; font-size: 28px; line-height: 1; }
.cart-row { display: grid; grid-template-columns: minmax(0,1fr) 100px 110px 72px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #354660; }
.cart-row strong { overflow-wrap: anywhere; }
.cart-row small { display: block; color: #b6c7df; margin-top: 6px; }
.shop-quantity { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.shop-quantity input, .cart-row input { width: 80px; padding: 9px; border: 1px solid #6680a4; border-radius: 7px; color: #f3f7ff; background: #0a1424; font: inherit; }
.cart-row label { display: grid; gap: 5px; font-size: 13px; }
.cart-remove { background: transparent; border: 1px solid #7390b8; color: #dfebff; border-radius: 6px; cursor: pointer; padding: 9px; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 20px; }
.cart-summary strong { font-size: 30px; color: #a8f3ce; }
.cart-explanation { line-height: 1.6; font-size: 14px; color: #aebdd2; }
.cart-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 16px; line-height: 1.5; }
.cart-confirm input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; }
.cart-dialog-actions { display: grid; grid-template-columns: auto minmax(230px, 1fr); gap: 12px; }
.cart-dialog-actions .buy-btn { width: 100%; }
#cart-status, #shop-added { color: #c8dcff; line-height: 1.5; }
.cart-shortcut { position: fixed; right: 22px; bottom: 22px; background: #126348; color: #fff; border: 1px solid #8ee6bf; padding: 15px 20px; border-radius: 12px; z-index: 20; box-shadow: 0 4px 18px #0007; font-weight: 700; text-decoration: none; }
.cart-empty { padding: 16px 0; color: #b6c7df; }
.product-total { gap: 12px; }
.product-total > span { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid #8bcaff; outline-offset: 3px; }
@media (max-width: 640px) {
  .cart-overlay { padding: 10px; }
  .shopping-cart { max-height: calc(100vh - 20px); padding: 16px; }
  .cart-row { grid-template-columns: 1fr 90px; gap: 12px; }
  .cart-row > :first-child { grid-column: 1 / -1; }
  .cart-row > .cart-remove { grid-column: 2; }
  .cart-summary strong { font-size: 24px; }
  .cart-dialog-actions { grid-template-columns: 1fr; }
  .cart-shortcut { bottom: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Catálogo compacto y controles de selección. */
.hero { padding: 36px 0 18px; }
.section { padding: 24px 0; }
.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.products-grid .service-card { display: grid; grid-template-columns: minmax(150px, 35%) minmax(0, 1fr); }
.products-grid .service-card .card-image { height: 100%; min-height: 280px; padding: 12px; }
.products-grid .service-card .card-image img { width: 100%; height: 100%; object-fit: contain; }
.products-grid .service-card .card-body { min-width: 0; padding: 16px; gap: 12px; }
.service-card .card-top { margin: 0; }
.products-grid .service-card h3 { font-size: 20px; margin: 0; }
.service-card .card-body > .service-description { font-size: 13px; margin: 0; }
.service-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.service-options label { display: flex; flex-direction: column; gap: 6px; color: #b9c5d8; font-size: 12px; }
.service-options select, .single-duration { background: #111b2b; color: #f4f7ff; border: 1px solid #506681; border-radius: 7px; padding: 10px 8px; min-height: 40px; font: inherit; font-size: 14px; width: 100%; }
.service-options [hidden], .service-card [hidden] { display: none !important; }
.service-card .custom-account-option { min-height: 0; margin: 0; padding: 0; font-size: 12px; gap: 8px; flex-wrap: wrap; }
.service-card .custom-account-option > span { display: flex; align-items: center; gap: 6px; }
.service-card .custom-account-option strong { font-size: 12px; white-space: nowrap; }
.service-card .shop-quantity { margin: 0; font-size: 13px; }
.service-card .product-total { margin: 0; padding: 0; }
.service-card .product-total strong { font-size: 25px; }
.service-card .card-footer { margin: 0; }
.service-card .add-feedback:empty { display: none; }
.service-card .add-feedback { margin: 0; }
.service-card .buy-btn { padding: 12px; font-size: 13px; }
.quantity-control { display: inline-flex; align-items: center; align-self: flex-start; width: max-content; flex: 0 0 auto; border: 1px solid #6680a4; border-radius: 8px; overflow: hidden; background: #0a1424; }
.quantity-control button { width: 40px; height: 40px; border: 0; background: #223651; color: #fff; font-size: 22px; cursor: pointer; }
.quantity-control button:disabled { opacity: .4; cursor: default; }
.quantity-control input { width: 44px !important; height: 40px; text-align: center; border: 0 !important; border-radius: 0 !important; padding: 3px !important; appearance: textfield; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.add-feedback { min-height: 23px; margin-top: 8px; color: #91edbb; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.feedback-view { background: none; border: 0; color: #b9dcff; font: inherit; text-decoration: underline; cursor: pointer; padding: 3px; }
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .service-card { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .products-grid .service-card { grid-template-columns: 1fr; }
  .products-grid .service-card .card-image { height: 260px; min-height: 0; padding: 10px; }
  .products-grid .service-card .card-body { padding: 14px; }
}

/* Cabecera y pago fijos: solo se desplazan los servicios del carrito. */
.shopping-cart { display: flex; flex-direction: column; overflow: hidden; max-height: min(820px, calc(100dvh - 32px)); padding: 0; }
.cart-heading { flex: 0 0 auto; padding: 18px 20px 12px; }
.cart-heading h2 { margin-bottom: 6px; }
.cart-heading p { margin: 0; font-size: 13px; }
#cart-items { flex: 1 1 auto; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
.cart-row { grid-template-columns: minmax(0,1fr) 126px 88px 64px; gap: 12px; padding: 14px 0; }
.cart-row small { font-size: 12px; }
.cart-quantity { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.cart-bottom { flex: 0 0 auto; border-top: 1px solid #49607c; background: #111d30; padding: 12px 20px 16px; }
.cart-bottom .cart-summary { margin-top: 0; }
.cart-bottom .cart-confirm { margin: 12px 0; font-size: 13px; }
.processing-details { margin-top: 8px; color: #b6c9df; font-size: 12px; }
.processing-details summary { cursor: pointer; width: fit-content; padding: 3px 0; }
.processing-details p { margin: 6px 0; font-size: 12px; }
.cart-bottom .buy-btn { padding: 12px; font-size: 13px; }
#cart-status { font-size: 12px; margin: 8px 0 0; max-height: 3em; overflow: auto; }
@media (max-width: 640px) {
  .shopping-cart { max-height: calc(100dvh - 20px); }
  .cart-heading { padding: 14px; }
  #cart-items { padding: 0 14px; }
  .cart-bottom { padding: 10px 14px 14px; }
  .cart-row { grid-template-columns: 1fr auto; }
  .cart-row > :first-child { grid-column: 1 / -1; }
  .cart-row > .cart-remove { grid-column: 2; padding: 6px 10px; }
  .cart-dialog-actions { grid-template-columns: auto 1fr; gap: 8px; }
  .cart-dialog-actions .cart-remove { font-size: 12px; padding: 7px; }
  .cart-shortcut { padding: 13px 16px; font-size: 14px; }
}
@media (max-height: 600px) {
  .cart-heading p { display: none; }
  .cart-heading { padding: 8px 14px; }
  .cart-heading h2 { font-size: 19px; margin: 0; }
  .cart-close { width: 32px; height: 32px; }
  .cart-bottom .cart-confirm { margin: 6px 0; }
  .cart-bottom .cart-summary strong { font-size: 22px; }
  .processing-details[open] p { max-height: 42px; overflow: auto; }
}


/* Aviso de disponibilidad al entrar en la tienda. */
#availability-notice { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: clamp(20px, 5vw, 32px); border: 1px solid #607da5; border-radius: 20px; background: #101b2e; color: #f3f6fc; box-shadow: 0 24px 90px #0009; }
#availability-notice::backdrop { background: #05080ddd; backdrop-filter: blur(5px); }
#availability-notice .availability-tag { display: inline-block; margin-bottom: 16px; color: #ffd38b; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
#availability-notice h2 { margin: 0 0 16px; font-size: clamp(24px, 5vw, 30px); line-height: 1.2; }
#availability-notice p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #d7e1f0; }
#availability-notice .availability-policy { padding: 16px; border: 1px solid #8c6535; border-radius: 12px; background: #362919; color: #ffe2b2; }
#availability-notice .availability-reminder { font-size: 13px; }
#availability-notice .availability-actions { display: grid; gap: 10px; margin-top: 22px; }
#availability-notice .availability-actions a, #availability-notice .availability-actions button { display: block; width: 100%; padding: 14px 12px; border: 1px solid #6484ae; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
#availability-notice .availability-actions a { background: #b9dcff; border-color: #b9dcff; color: #101b2e; }
#availability-notice .availability-actions button { background: #192b43; color: #f3f6fc; }
#availability-notice .availability-actions a:hover { background: #d6eaff; }
#availability-notice .availability-actions button:hover { background: #253e5d; }
#availability-notice :focus-visible { outline: 3px solid #ffd38b; outline-offset: 3px; }
body.availability-notice-open { overflow: hidden; }
