/* Shared responsive composition for the captured marketing pages. */
@media (max-width: 1199px) {
  html:is([data-callero-route="/crm"], [data-callero-route="/es/crm"]) .md\:scale-95:has([data-callero-sample-row]) {
    transform: none;
    scale: 1;
  }

  html:is([data-callero-route="/crm"], [data-callero-route="/es/crm"]) .hidden:has(> .grid.grid-cols-12) {
    display: none;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex > * {
    grid-column: auto;
    min-width: 0;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex > .md\:hidden {
    display: none;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex > .hidden.md\:block {
    display: block;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex > :is(:first-child, :last-child) {
    grid-column: 1 / -1;
  }

  html[data-callero-route] [data-callero-sample-row] > .flex > :last-child {
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e2edef;
  }

  html[data-callero-route] [data-callero-sample-row] button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[data-callero-route="/pricing"] .grid:has(> .bg-card.p-8) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  html[data-callero-route="/pricing"] .grid > .bg-card.p-8 {
    padding: 1.5rem;
  }

  html[data-callero-route="/pricing"] .grid > .bg-card.p-8:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  html[data-callero-route] {
    scroll-padding-top: 5.25rem;
  }

  html[data-callero-route] nav.fixed.top-0 > .max-w-7xl {
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    padding-block: 0.625rem;
  }

  html[data-callero-route] nav.fixed.top-0 > div > .flex {
    min-height: 2.75rem;
  }

  html[data-callero-route] nav.fixed.top-0 img[alt="Callero"] {
    width: 7.5rem;
    height: auto;
  }

  html[data-callero-route] nav.fixed.top-0 button.lg\:hidden {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.625rem;
    border: 1px solid #d5e3e6;
    border-radius: 0.75rem;
    background: #f5fafb;
  }

  html[data-callero-route] nav.fixed.top-0 .lg\:hidden.mt-4 {
    max-height: calc(100dvh - 5.75rem - env(safe-area-inset-top));
    margin-top: 0.625rem;
    padding: 0.75rem;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border: 1px solid #d5e3e6;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 16px 36px #00315212;
  }

  html[data-callero-route] nav.fixed.top-0 .lg\:hidden.mt-4 > div > :is(a, button) {
    min-height: 3rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  html[data-callero-route] nav.fixed.top-0 .lg\:hidden.mt-4 .border-l {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }

  html[data-callero-route] nav.fixed.top-0 .lg\:hidden.mt-4 a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[data-callero-route] nav.fixed.top-0 .lg\:hidden.mt-4 button.rounded-full {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  html[data-callero-route="/"] #section-modules .grid > .callero-has-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  html[data-callero-route="/"] #section-modules .callero-has-visual > .callero-card-visual {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 22rem;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  html[data-callero-route] {
    --callero-mobile-gutter: clamp(1rem, 4.1vw, 1.5rem);
    --callero-mobile-section: clamp(2.75rem, 9vw, 4rem);
  }

  html[data-callero-route] :is(section.px-4, section.px-6, section.px-8, footer.bg-gray-900) {
    padding-inline: var(--callero-mobile-gutter);
  }

  html[data-callero-route] section:has(h1) {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  html[data-callero-route]:not([data-callero-route="/brand-guidelines"]) h1 {
    font-size: clamp(1.9375rem, 8.8vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
  }

  html[data-callero-route] section .inline-flex.rounded-full + h1 {
    font-size: clamp(2.0625rem, 9.3vw, 2.875rem);
  }

  html[data-callero-route] section .inline-flex.rounded-full + h1 + :is(p.text-xl, p.text-lg, p.text-2xl) {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  html[data-callero-route="/brand-guidelines"] h1 {
    font-size: clamp(2rem, 8.8vw, 3rem);
    line-height: 1.15;
  }

  html[data-callero-route]:not([data-callero-route="/brand-guidelines"]) section:has(h1) :is(p.text-xl, p.text-lg, p.text-2xl) {
    max-width: 36rem;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.7;
  }

  html[data-callero-route]:not([data-callero-route="/brand-guidelines"]) :is(h2, h3) {
    overflow-wrap: break-word;
  }

  html[data-callero-route]:not([data-callero-route="/brand-guidelines"]) section:not(:has(h1)) > :is(.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl) {
    min-width: 0;
  }

  html[data-callero-route]:not([data-callero-route="/brand-guidelines"]) .grid > * {
    min-width: 0;
  }

  html[data-callero-route] :is(section, article) :is(a.inline-flex, button.inline-flex):not([class*="rounded-full"]) {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  html[data-callero-route] form[data-form-name="callero_demo"] :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [name="website"]) {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
  }

  html[data-callero-route] form[data-form-name="callero_demo"] button[type="submit"] {
    width: 100%;
    min-height: 3.25rem;
    white-space: normal;
    line-height: 1.4;
  }

  html[data-callero-route] .callero-demo-dialog {
    width: calc(100vw - 2rem);
    max-width: 32rem;
    max-height: calc(100dvh - 2rem);
    padding: 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html[data-callero-route] .callero-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.625rem;
  }

  html[data-callero-route] :has(> select[data-callero-filter-select]) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  html[data-callero-route] select[data-callero-filter-select] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    font-size: 1rem;
  }

  html[data-callero-route="/pricing"] .grid > .bg-card.p-8 {
    padding: 1.25rem;
  }

  html[data-callero-route="/pricing"] .text-4xl.font-bold {
    font-size: clamp(1.5rem, 7.2vw, 2rem);
  }

  html[data-callero-route] :is(section, article) a.inline-flex {
    min-height: 2.75rem;
  }

  html[data-callero-route="/"] section:has(h1) .order-2 button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  html[data-callero-route] footer.bg-gray-900 {
    padding-top: 2.5rem;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  html[data-callero-route] footer.bg-gray-900 .lg\:col-span-3 {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
  }

  html[data-callero-route] footer.bg-gray-900 .lg\:col-span-3 p {
    max-width: 36ch;
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  html[data-callero-route] footer.bg-gray-900 .lg\:col-span-9 {
    display: block;
    columns: 2;
    column-gap: 1.5rem;
  }

  html[data-callero-route] footer.bg-gray-900 .lg\:col-span-9 > div {
    break-inside: avoid;
    padding-bottom: 1.5rem;
  }

  html[data-callero-route] footer.bg-gray-900 .lg\:col-span-9 a {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding-block: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  html[data-callero-route] footer.bg-gray-900 .border-t {
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
    text-align: left;
  }

  html[data-callero-route] footer.bg-gray-900 .border-t > div:first-child {
    text-align: left;
    line-height: 1.6;
  }

  html[data-callero-route] footer.bg-gray-900 .border-t a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbdde3;
    border-radius: 0.75rem;
  }

  html[data-callero-route="/"] section:has(h1) {
    padding: 2rem var(--callero-mobile-gutter) 2.75rem;
  }

  html[data-callero-route="/"] section:has(h1) > .grid {
    gap: 1.75rem;
  }

  html[data-callero-route="/"] section:has(h1) :is(.order-1, .order-3) {
    text-align: left;
  }

  html[data-callero-route="/"] section:has(h1) h1 {
    max-width: 18ch;
    margin-inline: 0;
    text-align: left;
  }

  html[data-callero-route="/"] section:has(h1) .order-1 > .rounded-full {
    justify-content: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.875rem;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: left;
  }

  html[data-callero-route="/"] section:has(h1) .order-1 a {
    width: 100%;
    min-height: 3.25rem;
    justify-content: center;
  }

  html[data-callero-route="/"] section:has(h1) .order-2 {
    order: 2;
  }

  html[data-callero-route="/"] section:has(h1) .order-3 {
    order: 3;
  }

  html[data-callero-route="/"] section:has(h1) .order-3 > p:first-child {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  html[data-callero-route="/"] section:has(h1) .order-3 > p.rounded-2xl {
    font-size: 1rem;
  }

  html[data-callero-route="/"] section:has(h1) .order-3 .flex {
    justify-content: flex-start;
  }

  html[data-callero-route="/"] section:has(h1) .order-2 .overflow-y-auto {
    max-height: min(34rem, 72svh);
    overscroll-behavior-y: contain;
  }

  html[data-callero-route="/"] section:has(h1) .order-2 .grid-cols-2 > .bg-card {
    padding: 0.875rem 0.75rem;
  }

  html[data-callero-route="/"] section:has(h1) .order-2 .grid-cols-2 .font-bold {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  html[data-callero-route="/contact"] section.lg\:pt-8,
  html[data-callero-route="/es/contacto"] section.lg\:pt-8 {
    padding: 0;
    background: transparent;
  }

  html:is([data-callero-route="/contact"], [data-callero-route="/es/contacto"]) section.lg\:pt-8 h1 {
    font-size: clamp(1.875rem, 8vw, 2.25rem);
    line-height: 1.15;
  }

  html:is([data-callero-route="/contact"], [data-callero-route="/es/contacto"]) section.lg\:pt-8 ul {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  html[data-callero-route="/"] :is(#section-modules, #section-why, #section-perks, #section-evaluation, #section-implementation, #section-compliance, #section-ai-squads, #section-faq, #section-final-cta) {
    padding-block: var(--callero-mobile-section);
  }

  html[data-callero-route="/"] :is(#section-modules, #section-why, #section-perks, #section-evaluation, #section-implementation, #section-compliance, #section-ai-squads, #section-faq, #section-final-cta) h2 {
    font-size: clamp(1.625rem, 7.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  html[data-callero-route="/"] #section-modules .grid > .callero-has-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  html[data-callero-route="/"] #section-modules .callero-card-visual {
    width: 100%;
    max-width: 22rem;
    justify-self: center;
    margin-top: 0;
  }

  html[data-callero-route="/"] #section-final-cta a {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
  }

  html body:not(.datyai-studio-inline) #datyai-widget-wrapper {
    right: calc(0.75rem + env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  html body:not(.datyai-studio-inline):not(.datyai-minimized) datalyse-aiagent #datyai-chat-container {
    width: calc(100vw - 1.5rem) !important;
    max-width: 30rem !important;
    max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html[data-callero-route="/"] section:has(h1) > .grid {
    gap: 2rem;
  }

  html[data-callero-route="/"] :is(#section-modules, #section-why, #section-perks) .grid {
    gap: 1.25rem;
  }
}
