/*
Theme Name: DulG Shell Pro
Theme URI: https://tuapp.click/
Author: OpenAI
Author URI: https://openai.com/
Description: Tema WordPress minimalista y liviano para montar paneles y shortcodes de ecommerce/pastelería con enfoque mobile-first, sin lógica de negocio.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: dulg-shell-pro
*/

:root {
  --dsp-bg: #fff9fc;
  --dsp-surface: #f5edf4;
  --dsp-surface-strong: #ffffff;
  --dsp-text: #2d2430;
  --dsp-muted: #7d6f79;
  --dsp-accent: #d95b93;
  --dsp-accent-strong: #be3f78;
  --dsp-border: #eadce6;
  --dsp-shadow: 0 12px 32px rgba(45, 36, 48, 0.08);
  --dsp-radius: 18px;
  --dsp-radius-sm: 12px;
  --dsp-max: 1200px;
  --dsp-nav-height: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--dsp-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--dsp-bg);
  color: var(--dsp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--dsp-accent-strong);
}

img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--dsp-accent);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--dsp-surface-strong);
  color: var(--dsp-text);
  z-index: 9999;
  box-shadow: var(--dsp-shadow);
  border-radius: var(--dsp-radius-sm);
}

.site-shell {
  min-height: 100dvh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--dsp-surface) 88%, white 12%);
  border-bottom: 1px solid var(--dsp-border);
  backdrop-filter: saturate(1.2) blur(10px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--dsp-nav-height);
  width: min(100% - 1.25rem, var(--dsp-max));
  margin-inline: auto;
  padding: 0.75rem 0;
}

.site-branding {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title a {
  color: var(--dsp-accent-strong);
}

.site-description {
  margin: 0.1rem 0 0;
  color: var(--dsp-muted);
  font-size: 0.78rem;
}

.site-nav {
  min-width: 0;
}

.site-nav .menu,
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav .menu::-webkit-scrollbar,
.site-nav ul::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--dsp-muted);
  white-space: nowrap;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(217, 91, 147, 0.10);
  color: var(--dsp-accent-strong);
}

.site-main {
  width: min(100% - 1.25rem, var(--dsp-max));
  margin-inline: auto;
  padding: 1rem 0 2rem;
}

.entry-card {
  background: var(--dsp-surface-strong);
  border: 1px solid var(--dsp-border);
  border-radius: var(--dsp-radius);
  box-shadow: var(--dsp-shadow);
  padding: clamp(1rem, 0.85rem + 0.8vw, 1.5rem);
}

.entry-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.15;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--dsp-border);
  background: color-mix(in srgb, var(--dsp-surface) 90%, white 10%);
}

.site-footer__inner {
  width: min(100% - 1.25rem, var(--dsp-max));
  margin-inline: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  color: var(--dsp-muted);
  font-size: 0.92rem;
}

/* App Shell */
.app-shell-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--dsp-bg);
}

.app-shell {
  min-height: 100dvh;
  width: 100%;
  display: block;
}

.app-shell__main {
  min-height: 100dvh;
  width: 100%;
}

.app-shell__content {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.app-shell__content > * {
  max-width: none;
}

.app-shell__content .entry-content,
.app-shell__content .post,
.app-shell__content .page,
.app-shell__content .type-page,
.app-shell__content .wp-block-group,
.app-shell__content .wp-block-cover,
.app-shell__content .wp-site-blocks,
.app-shell__content .wp-block-post-content,
.app-shell__content .elementor,
.app-shell__content .elementor-section-wrap,
.app-shell__content .elementor-location-single,
.app-shell__content .elementor-widget-wrap,
.app-shell__content .shortcode-shell,
.app-shell__content [class*="app"],
.app-shell__content [class*="panel"] {
  width: 100%;
  max-width: none;
}

.app-shell__content .entry-content {
  margin: 0;
}

.app-shell__content .entry-content:empty::before {
  content: "Pegá aquí el shortcode del panel, por ejemplo: [mellizos_barber_app] o [winston_reservar]";
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
  color: var(--dsp-muted);
  text-align: center;
}

.full-width-template .site-header,
.full-width-template .site-footer,
.page-template-page-app .site-header,
.page-template-page-app .site-footer {
  display: none;
}

@media (max-width: 782px) {
  :root {
    --dsp-nav-height: 56px;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }

  .site-nav .menu,
  .site-nav ul {
    justify-content: flex-start;
    padding-bottom: 0.15rem;
  }

  .site-main {
    width: min(100% - 1rem, var(--dsp-max));
    padding: 0.85rem 0 1.5rem;
  }

  .entry-card {
    border-radius: 16px;
    padding: 1rem;
  }

  .site-footer__inner {
    width: min(100% - 1rem, var(--dsp-max));
    text-align: center;
  }
}
