*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* Manrope variable (SIL OFL 1.1) — local latin + latin-ext.
     License: assets/fonts/OFL-Manrope.txt — Source: https://github.com/sharanda/manrope */

@font-face {
  font-family: Manrope;

  font-style: normal;

  font-weight: 200 800;

  font-display: swap;

  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");

  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;

  font-style: normal;

  font-weight: 200 800;

  font-display: swap;

  src: url("../fonts/manrope-latin.woff2") format("woff2");

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  background-color: var(--cos-surface, #E4E2DE);
}

body.menu-open {
  overflow: hidden;
}

body.studies-modal-open {
  overflow: hidden;
}

:root {
  --cos-accent: #A23131;
  --cos-accent-deep: #812929;
  --cos-ink: #3D3B39;
  --cos-surface: #E4E2DE;
  --cos-soft-surface: #ECEAE6;
  --cos-100: #ECEAE6;
  --cos-950: #3D3B39;
  --cos-900: #4A4744;
  --cos-800: #737373;
  --cos-700: #8B8885;
  --cos-600: #A3A09C;
  --cos-500: #BAB7B2;
  --cos-light: #E4E2DE;
  --cos-gray: #737373;
  --cos-red: #A23131;
  --cos-success: #236953;
  --cos-warm-white: #E4E2DE;
  --cos-line: rgba(61, 59, 57, 0.08);
  --cos-shadow-soft: 0 14px 34px -28px rgba(61, 59, 57, 0.3);
  --cos-transition-blue: #2E363B;
  --cos-transition-blue-deep: #3F474C;
  --cos-grad-surface: linear-gradient(180deg, rgba(250, 249, 247, 1) 0%, #fff 58%, #fff 100%);
  --cos-grad-surface-cool: linear-gradient(180deg, rgba(249, 248, 246, 1) 0%, #fff 52%, #fff 100%);
  --cos-grad-surface-warm: linear-gradient(180deg, #fff 0%, #fff 74%, rgba(255, 252, 253, 0.65) 100%);
  --cos-grad-header: linear-gradient(180deg, rgba(239, 237, 233, 0.32) 0%, rgba(255, 255, 255, 0) 94%);
  --cos-grad-card: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(248, 247, 244, 0.42) 100%);
  --cos-grad-card-cool: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(246, 244, 241, 0.4) 100%);
  --cos-grad-card-mint: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(248, 253, 250, 0.38) 100%);
  --cos-grad-card-rose: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(255, 250, 251, 0.42) 100%);
  --cos-grad-brand-hero: linear-gradient(
      128deg,
      rgba(61, 59, 57, 0.97) 0%,
      rgba(74, 71, 68, 0.96) 42%,
      rgba(69, 82, 92, 0.95) 72%,
      rgba(46, 54, 59, 0.9) 100%
    );
  --cos-grad-brand-btn: linear-gradient(135deg, #3D3B39 0%, #2E363B 62%, #2E363B 100%);
  --cos-grad-hero-overlay: linear-gradient(
      100deg,
      rgba(61, 59, 57, 0.92) 0%,
      rgba(61, 59, 57, 0.72) 40%,
      rgba(61, 59, 57, 0.38) 74%,
      rgba(61, 59, 57, 0.14) 100%
    );
  --cos-grad-progress: linear-gradient(90deg, rgba(115, 115, 115, 0.82), rgba(46, 54, 59, 0.78));
  --cos-panel-border: #D2CFCA;
  --cos-panel-shadow: 0 20px 48px -30px rgba(61, 59, 57, 0.58);
  --cos-glass-blur: 14px;
  --cos-glass-blur-soft: 10px;
  --cos-glass-light: rgba(255, 255, 255, 0.82);
  --cos-glass-light-strong: rgba(255, 255, 255, 0.92);
  --cos-glass-light-border: rgba(255, 255, 255, 0.55);
  --cos-glass-dark: rgba(61, 59, 57, 0.82);
  --cos-glass-dark-border: rgba(255, 255, 255, 0.12);
  --cos-glass-overlay: rgba(48, 47, 46, 0.56);
}

main [id] {
  scroll-margin-top: 7rem;
}

:where(a, button, input, select, textarea, iframe, [tabindex]):focus-visible {
  outline: 3px solid var(--cos-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.96),
      0 0 0 7px color-mix(in srgb, var(--cos-accent) 22%, transparent);
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  transform: translateY(-180%);
  border-radius: 9999px;
  background: #3D3B39;
  color: #fff;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  box-shadow: 0 20px 40px -24px rgba(61, 59, 57, 0.8);
  transition: transform 0.2s ease,
      background-color 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.brand-logo {
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.site-bg {
  background-color: #E4E2DE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23737373' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 20h120M0 60h120M0 100h120M20 0v120M60 0v120M100 0v120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.site-bg > header.cos-site-header {
  flex-shrink: 0;
}

body.site-bg > main {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
}

body.site-bg > footer.cos-site-footer {
  flex-shrink: 0;
}

.vision-friendly p,
  .vision-friendly li,
  .vision-friendly a,
  .vision-friendly button,
  .vision-friendly label,
  .vision-friendly input,
  .vision-friendly textarea {
  font-weight: 600;
}

.vision-friendly h1,
  .vision-friendly h2,
  .vision-friendly h3,
  .vision-friendly h4,
  .vision-friendly h5,
  .vision-friendly h6 {
  font-weight: 800;
}

#mainMenu a {
  text-decoration: none;
  text-underline-offset: 0;
}

#mainMenu a:hover,
  #mainMenu a:focus-visible {
  text-decoration: none;
}

.a-plus .text-sm {
  font-size: 1rem;
  line-height: 1.6;
}

.a-plus .text-\[0\.95rem\] {
  font-size: 1rem;
  line-height: 1.6;
}

.a-plus .text-\[11px\] {
  font-size: 0.875rem;
  line-height: 1.45;
}

.a-plus .text-slate-600 {
  color: rgb(74 71 68 / 1);
}

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

.static {
  position: static;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0px;
}

.z-40 {
  z-index: 40;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2\.5 {
  margin-top: 0.625rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-0\.5 {
  height: 0.125rem;
}

.h-auto {
  height: auto;
}

.h-px {
  height: 1px;
}

.w-4 {
  width: 1rem;
}

.w-\[190px\] {
  width: 190px;
}

.w-\[clamp\(158px\2c 42vw\2c 238px\)\] {
  width: clamp(158px,42vw,238px);
}

.w-\[clamp\(160px\2c 34vw\2c 300px\)\] {
  width: clamp(160px,34vw,300px);
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-\[16ch\] {
  max-width: 16ch;
}

.max-w-\[280px\] {
  max-width: 280px;
}

.shrink-0 {
  flex-shrink: 0;
}

.resize {
  resize: both;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.justify-start {
  justify-content: flex-start;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.gap-5 {
  gap: 1.25rem;
}

.overflow-hidden {
  overflow: hidden;
}

.text-balance {
  text-wrap: balance;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-t-\[32px\] {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-\[\#D2CFCA\] {
  --tw-border-opacity: 1;
  border-color: rgb(210 207 202 / var(--tw-border-opacity, 1));
}

.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}

.bg-cos-950 {
  background-color: var(--cos-950);
}

.bg-cos-ink {
  background-color: var(--cos-ink);
}

.bg-current {
  background-color: currentColor;
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.p-5 {
  padding: 1.25rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.text-left {
  text-align: left;
}

.font-sans {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.text-\[0\.78rem\] {
  font-size: 0.78rem;
}

.text-\[1\.08rem\] {
  font-size: 1.08rem;
}

.text-\[1\.1rem\] {
  font-size: 1.1rem;
}

.text-\[1\.3rem\] {
  font-size: 1.3rem;
}

.text-\[clamp\(1\.15rem\2c 4\.4vw\2c 1\.55rem\)\] {
  font-size: clamp(1.15rem,4.4vw,1.55rem);
}

.text-\[clamp\(1\.18rem\2c 4\.3vw\2c 1\.4rem\)\] {
  font-size: clamp(1.18rem,4.3vw,1.4rem);
}

.text-\[clamp\(2rem\2c 6\.8vw\2c 3\.55rem\)\] {
  font-size: clamp(2rem,6.8vw,3.55rem);
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-extrabold {
  font-weight: 800;
}

.uppercase {
  text-transform: uppercase;
}

.leading-\[1\.02\] {
  line-height: 1.02;
}

.tracking-\[0\.1em\] {
  letter-spacing: 0.1em;
}

.text-cos-900 {
  color: var(--cos-900);
}

.text-cos-950 {
  color: var(--cos-950);
}

.text-cos-ink {
  color: var(--cos-ink);
}

.text-cos-red {
  color: var(--cos-accent);
}

.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-stone-100 {
  --tw-text-opacity: 1;
  color: rgb(245 245 244 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-white\/90 {
  color: rgb(255 255 255 / 0.9);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shadow-\[0_-20px_46px_-34px_rgba\(43\2c 42\2c 40\2c \.52\)\] {
  --tw-shadow: 0 -20px 46px -34px rgba(43,42,40,.52);
  --tw-shadow-colored: 0 -20px 46px -34px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_10px_30px_-24px_rgba\(0\2c 0\2c 0\2c \.55\)\] {
  --tw-shadow: 0 10px 30px -24px rgba(0,0,0,.55);
  --tw-shadow-colored: 0 10px 30px -24px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-panel {
  --tw-shadow: 0 20px 48px -30px rgba(61,59,57,.38);
  --tw-shadow-colored: 0 20px 48px -30px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow-sm {
  --tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.\[text-shadow\:0_2px_14px_rgba\(0\2c 0\2c 0\2c \.28\)\] {
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
}

/* Unlayered site chrome + visual pass (duplicate props stripped; Cascade-final banner removed). */

/* Premium UX refresh — warm private-clinic visual language. */

:root {
  --cos-radius-control: 0.75rem;
}

.cos-site-header__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cos-site-header__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.cos-theme-motif {
  display: none;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.cos-theme-motif--escarapela {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  margin-left: 0.55rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

.cos-theme-motif--santa {
  display: block;
  position: absolute;
  /* Sobre la O de "OJOS" en el logo blanco */
  left: 72.5%;
  top: -22%;
  width: clamp(1.15rem, 3.4vw, 1.55rem);
  height: auto;
  z-index: 2;
  transform: rotate(-18deg);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

body[data-theme="patria"] .cos-site-header {
  border-bottom: 2px solid #F6C344;
  box-shadow: 0 8px 24px -24px rgba(61, 59, 57, 0.38) !important;
}

body[data-theme="navidad"] .cos-site-header {
  border-bottom: 2px solid #1F6B4A;
  box-shadow: 0 8px 24px -24px rgba(61, 59, 57, 0.38) !important;
}

.cos-theme-snow {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.cos-theme-snow span {
  position: absolute;
  top: -1.2rem;
  left: var(--cos-snow-x, 0%);
  width: var(--cos-snow-size, 0.4rem);
  height: var(--cos-snow-size, 0.4rem);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff 0 55%, rgba(255, 255, 255, 0.35) 70%, transparent 100%);
  opacity: 0.78;
  animation: cos-snowfall var(--cos-snow-duration, 10s) linear var(--cos-snow-delay, 0s) infinite;
  will-change: transform;
}

@keyframes cos-snowfall {
  0% {
    transform: translate3d(0, -4vh, 0);
  }

  100% {
    transform: translate3d(var(--cos-snow-drift, 18px), 105vh, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cos-theme-snow {
    display: none;
  }
}

.cos-site-header {
  isolation: isolate;
  width: 100%;
  background: var(--cos-glass-dark);
  box-shadow: 0 8px 24px -24px rgba(61, 59, 57, 0.38) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease,
    box-shadow 0.45s ease;
}

.cos-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, var(--cos-ink) 0%, var(--cos-ink) 46%, var(--cos-transition-blue) 74%, var(--cos-transition-blue-deep) 100%);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.cos-site-header.is-scrolled {
  backdrop-filter: blur(var(--cos-glass-blur));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

.cos-site-header.is-scrolled::before {
  opacity: 0;
}

.cos-glass {
  backdrop-filter: blur(var(--cos-glass-blur));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur));
}

.cos-glass--soft {
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.cos-glass--light {
  background: var(--cos-glass-light);
}

.cos-glass--light-strong {
  background: var(--cos-glass-light-strong);
}

.cos-glass--dark {
  background: var(--cos-glass-dark);
}

.cos-mobile-actions {
  position: fixed;
  z-index: 45;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  border: 1px solid rgba(61, 59, 57, 0.12);
  border-radius: 1rem;
  background: var(--cos-glass-light-strong);
  padding: 0.45rem;
  box-shadow: 0 18px 44px -20px rgba(61, 59, 57, 0.46);
  backdrop-filter: blur(var(--cos-glass-blur));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur));
}

.cos-mobile-actions__link {
  display: flex;
  min-width: 0;
  min-height: 3.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 0.75rem;
  color: #3D3B39;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cos-mobile-actions__link > i {
  font-size: 1.05rem;
}

.cos-mobile-actions__link.is-current {
  background: var(--cos-accent);
  color: #fff;
}

.site-hero-trust__eyebrow,
.site-actions__eyebrow {
  color: #BAB7B2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-hero-trust__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-actions__eyebrow {
  color: #737373;
}

.site-actions__intro h2 {
  color: #3D3B39;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-action-card--primary {
  color: #fff;
}

.site-action-card--primary .site-action-card__text {
  color: #F2E8E6;
}

/* Recetas: guided form and secondary reference content. */

.rx-hero__heading > span {
  display: block;
  max-width: 34rem;
  margin-top: 0.65rem;
  color: #F2E8E6;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.rx-hero__title {
  margin-top: 0;
}

.rx-form-step__number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #3D3B39;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.rx-form-step__header h3 {
  color: #3D3B39;
  font-size: 1rem;
  font-weight: 800;
}

.rx-form-step__header p {
  margin-top: 0.25rem;
  color: #737373;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.rx-form-step--submit {
  align-items: center;
}

.rx-disclosure__summary strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.rx-disclosure__summary small {
  margin-top: 0.15rem;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 600;
}

.rx-disclosure__icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ECEAE6;
  color: #737373;
}

.rx-disclosure__chevron {
  transition: transform 0.25s ease;
}

.rx-disclosure[open] .rx-disclosure__chevron {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .cos-mobile-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-disclosure__chevron {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-bg {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.studies-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.studies-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.studies-modal.hidden {
  display: none;
}

.studies-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--cos-glass-overlay);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.studies-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 920px);
  max-height: min(90dvh, 920px);
  overflow: auto;
  border-radius: 1.25rem;
}

.studies-modal__surface {
  padding: clamp(1.35rem, 2.6vw, 1.8rem);
  padding-top: clamp(3.6rem, 5vw, 4.15rem);
  border-radius: inherit;
  background: var(--cos-glass-light-strong);
  backdrop-filter: blur(var(--cos-glass-blur));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur));
}

.studies-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 59, 57, 0.12);
  border-radius: 9999px;
  background: var(--cos-glass-light);
  color: #3D3B39;
  box-shadow: 0 16px 26px -22px rgba(61, 59, 57, 0.45);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
  transition: transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.studies-modal__close:hover {
  transform: translateY(-1px);
  background: var(--cos-glass-light-strong);
  box-shadow: 0 18px 32px -22px rgba(61, 59, 57, 0.52);
}

.studies-panel::before {
  content: "";
  position: absolute;
  inset: auto -6rem -7rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(163, 160, 156, 0.07) 0%, rgba(163, 160, 156, 0) 72%);
  pointer-events: none;
}

.studies-panel__layout {
  display: grid;
  gap: 1.25rem;
}

.studies-panel__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.studies-panel__brand {
  display: none;
}

.studies-panel__logo {
  width: min(320px, 82%);
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.studies-panel__copy {
  display: grid;
  align-content: start;
}

.studies-notes {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.studies-notes li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(61, 59, 57, 0.09);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px -24px rgba(61, 59, 57, 0.28);
  padding: 0.9rem 0.95rem;
  color: #4A4744;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
}

.studies-notes strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #3D3B39;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studies-notes i {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(61, 59, 57, 0.08);
  color: #737373;
  box-shadow: inset 0 0 0 1px rgba(61, 59, 57, 0.07);
}

.studies-notes a {
  color: #737373;
}

.studies-shell {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(61, 59, 57, 0.1);
  border-radius: 1rem;
  background: var(--cos-grad-surface-cool);
  box-shadow: 0 24px 42px -34px rgba(61, 59, 57, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 1.15rem;
}

.studies-form {
  display: grid;
  gap: 1rem;
}

.studies-form__head {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.1rem;
}

.studies-form__summary {
  color: #737373;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.studies-field {
  display: grid;
  gap: 0.45rem;
}

.studies-field label {
  color: #737373;
  font-weight: 800;
  text-transform: uppercase;
}

.studies-field input {
  width: 100%;
  border: 1px solid rgba(61, 59, 57, 0.16);
  border-radius: 1rem;
  background: #fff;
  color: #3D3B39;
  min-height: 3.55rem;
  padding: 1rem 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px -24px rgba(61, 59, 57, 0.4);
  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.studies-field input::-moz-placeholder {
  color: #737373;
  opacity: 1;
}

.studies-field input::placeholder {
  color: #737373;
  opacity: 1;
}

.studies-field input:hover {
  border-color: rgba(115, 115, 115, 0.28);
}

.studies-field input:focus {
  border-color: rgba(115, 115, 115, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 28px -24px rgba(61, 59, 57, 0.48);
  transform: translateY(-1px);
}

.studies-actions {
  display: grid;
  padding-top: 0.15rem;
}

.studies-status-shell {
  display: grid;
}

.studies-status-shell>* {
  min-height: 13.25rem;
}

.studies-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studies-status-placeholder {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  border: 1px dashed rgba(115, 115, 115, 0.22);
  border-radius: 1.15rem;
  background: var(--cos-grad-surface-cool);
  padding: 1rem;
  color: #737373;
}

.studies-status-placeholder.hidden {
  display: none;
}

.studies-status-placeholder__icon {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(115, 115, 115, 0.09);
  color: #737373;
  box-shadow: inset 0 0 0 1px rgba(115, 115, 115, 0.08);
}

.studies-status-placeholder__message {
  margin-top: 0;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
}

.studies-submit {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: var(--cos-radius-control);
  background: #236953;
  color: #fff;
  padding: 0.92rem 1.3rem;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px -20px rgba(35, 105, 83, 0.55);
  transition: transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.studies-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.96);
  background: #1B5744;
  box-shadow: 0 18px 34px -22px rgba(35, 105, 83, 0.62);
}

.studies-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.studies-feedback {
  display: none;
  border: 1px solid transparent;
  border-radius: 1.05rem;
  padding: 0.95rem 1rem;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.55;
  align-content: start;
}

.studies-feedback:not(.hidden) {
  display: grid;
}

.studies-feedback.is-error {
  background: color-mix(in srgb, var(--cos-accent) 6%, transparent);
  border-color: color-mix(in srgb, var(--cos-accent) 16%, transparent);
  color: #842727;
}

.studies-feedback.is-success {
  background: rgba(35, 105, 83, 0.08);
  border-color: rgba(35, 105, 83, 0.18);
  color: #1B5241;
}

.studies-result {
  display: none;
  gap: 0.9rem;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(61, 59, 57, 0.1);
  border-radius: 0.75rem;
  background: var(--cos-grad-header);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.studies-result:not(.hidden) {
  display: grid;
}

.studies-result__header {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  width: min(100%, 14rem);
}

.studies-result__icon {
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(115, 115, 115, 0.11);
  color: #737373;
  box-shadow: inset 0 0 0 1px rgba(115, 115, 115, 0.1);
}

.studies-result__message {
  margin-top: 0;
  color: #3D3B39;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
}

.studies-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  border-radius: var(--cos-radius-control);
  background: #236953;
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 16px 28px -20px rgba(35, 105, 83, 0.55);
  transition: transform 0.2s ease,
    filter 0.2s ease;
}

.studies-download:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  background: #1B5744;
}

@media (max-width: 900px) {
  .studies-modal {
    place-items: end center;
    padding: 0;
  }

  .studies-modal__dialog {
    width: 100%;
    max-height: min(92vh, 860px);
    max-height: min(92dvh, 860px);
    border-radius: 1.6rem 1.6rem 0 0;
  }

  .studies-modal__surface {
    border-radius: inherit;
    padding: 3.35rem 0.95rem 0.95rem;
  }

  .studies-modal__close {
    top: 0.72rem;
    right: 0.72rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .studies-panel__layout {
    gap: 0.85rem;
  }

  .studies-shell {
    order: -1;
    padding: 0.92rem;
  }

  .studies-form {
    gap: 0.82rem;
  }

  .studies-form__head {
    gap: 0.18rem;
    padding-bottom: 0;
  }

  .studies-form__summary {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .studies-panel__intro>.mt-3 {
    margin-top: 0.75rem;
  }

  .studies-panel__intro>.mt-2 {
    margin-top: 0.45rem;
  }

  .studies-notes {
    gap: 0.55rem;
    margin-top: 0.9rem;
  }

  .studies-notes li.studies-notes__field-hint {
    display: none;
  }

  .studies-notes li {
    padding: 0.68rem 0.72rem;
    border-radius: 0.95rem;
    box-shadow: 0 10px 22px -24px rgba(61, 59, 57, 0.2);
  }

  .studies-status-shell {
    min-height: 12.1rem;
  }

  .studies-status-shell>* {
    min-height: 12.1rem;
  }

  .studies-submit {
    width: 100%;
    min-height: 3.15rem;
  }
}

@media (min-width: 960px) {
  .studies-panel__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .studies-panel__intro {
    min-height: 100%;
    justify-content: flex-end;
    padding-right: 0.35rem;
  }

  .studies-panel__brand {
    display: flex;
    position: absolute;
    top: 3.5rem;
    left: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .studies-panel__copy {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .studies-modal__dialog {
    max-height: min(94vh, 900px);
    max-height: min(94dvh, 900px);
  }

  .studies-modal__surface {
    padding: 3.15rem 0.82rem 0.82rem;
  }

  .studies-form__summary {
    font-size: 0.85rem;
  }

  .studies-notes li {
    gap: 0.55rem;
    padding: 0.6rem 0.65rem;
    font-size: 0.82rem;
  }

  .studies-notes i {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.75rem;
  }

  .studies-notes strong {
    margin-bottom: 0.08rem;
    font-size: 0.72rem;
  }

  .studies-status-shell {
    min-height: 10.8rem;
  }

  .studies-status-shell>* {
    min-height: 10.8rem;
  }

  .studies-status-placeholder,
  .studies-feedback,
  .studies-result {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .studies-status-placeholder__icon,
  .studies-result__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .studies-status-placeholder__message {
    font-size: 0.86rem;
  }

  .studies-field input {
    min-height: 3.15rem;
    padding: 0.9rem 0.92rem;
    font-size: 0.95rem;
  }

  .studies-result {
    padding: 0.9rem;
  }
}

/* Shared site chrome */

.site-shell {
  width: min(1280px, calc(100% - 1.2rem));
  margin-inline: auto;
}

.cos-site-header,
.cos-site-footer {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.cos-site-footer {
  background: linear-gradient(120deg, var(--cos-ink) 0%, var(--cos-transition-blue) 55%, var(--cos-transition-blue-deep) 100%);
}

.cos-site-header * {
  box-sizing: border-box;
}

.cos-site-header a,
.cos-site-footer a {
  text-decoration: none !important;
}

.cos-site-header__shell {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.cos-site-header__actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.cos-site-header__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.35rem 1rem 1rem;
}

@media (max-width: 1023px) {
  /* El menú debe anclarse al header full-bleed, no al .site-shell angosto. */

  .cos-site-header__shell {
    position: static;
  }

  .cos-site-header__menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #3D3B39;
    background-color: #3D3B39;
    box-shadow: 0 22px 42px -12px rgba(0, 0, 0, 0.62);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.menu-open {
    overflow: hidden;
    overflow-x: hidden;
    touch-action: none;
  }

  body.menu-open .cos-site-header {
    z-index: 60;
    width: 100%;
    background: #3D3B39;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.menu-open .cos-site-header::before,
  body.menu-open .cos-site-header.is-scrolled::before {
    opacity: 1;
  }

  body.menu-open .cos-mobile-actions {
    visibility: hidden;
    pointer-events: none;
  }
}

.cos-site-header__menu.is-open {
  display: block;
}

.cos-site-header__menu-inner {
  display: grid;
  gap: 1rem;
}

.cos-site-header__nav-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cos-site-header__nav-link {
  display: block;
  color: #E4E2DE;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cos-site-header__nav-link:hover,
.cos-site-header__nav-link:focus-visible,
.cos-site-header__nav-link.is-current {
  color: #fff;
}

@media (max-width: 1023px) {
  .cos-site-header__nav-list {
    gap: 0;
  }

  .cos-site-header__nav-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
  }

  .cos-site-header__nav-link::after {
    display: none;
  }

  .cos-site-header__nav-list > li:last-child .cos-site-header__nav-link {
    border-bottom: 0;
  }

  .cos-site-header__nav-link.is-current {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.28em;
  }
}

.cos-site-header__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cos-site-header__socials--mobile {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.cos-site-header__socials--desktop {
  display: none;
}

.cos-site-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: background-color 0.2s ease,
    color 0.2s ease;
}

.cos-site-social-link--mobile {
  width: 40px;
  height: 40px;
  color: #E4E2DE;
}

.cos-site-social-link--desktop {
  width: 36px;
  height: 36px;
  color: #E4E2DE;
}

.cos-site-social-link--mobile:hover,
.cos-site-social-link--mobile:focus-visible,
.cos-site-social-link--desktop:hover,
.cos-site-social-link--desktop:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.cos-site-social-link--footer {
  width: 40px;
  height: 40px;
  color: #E4E2DE;
}

.cos-site-social-link--footer:hover,
.cos-site-social-link--footer:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cos-site-menu-button {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.cos-site-menu-button:hover,
.cos-site-menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.cos-site-footer__shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 1.75rem 0;
  text-align: center;
}

.cos-site-footer__contacts {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 42rem;
}

.cos-site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 44px;
  color: #E4E2DE;
  transition: color 0.2s ease;
}

.cos-site-footer__contact:hover,
.cos-site-footer__contact:focus-visible,
.cos-site-footer__location:hover,
.cos-site-footer__location:focus-visible,
.cos-site-footer__link:hover,
.cos-site-footer__link:focus-visible {
  color: #fff;
}

.cos-site-footer__contact-label {
  color: rgba(228, 226, 222, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cos-site-footer__contact-value {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.cos-site-footer__locations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

.cos-site-footer__location {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-block: 0.35rem;
  color: #D2CFCA;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cos-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.25rem;
  padding-top: 0.15rem;
  color: #E4E2DE;
  font-size: 0.875rem;
  font-weight: 700;
}

.cos-site-footer__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-block: 0.35rem;
  color: inherit;
  transition: color 0.2s ease;
}

.cos-site-footer__socials {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-top: 0.15rem;
}

.site-main {
  padding: 0.75rem 0 1.75rem;
}

.site-hero-overlay {
  position: absolute;
  inset: 0;
}

.site-hero-glow {
  position: absolute;
  inset: 0;
}

.site-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--cos-radius-control);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-button:hover {
  transform: translateY(-2px);
}

.site-button--primary {
  border-color: var(--cos-accent);
  background: var(--cos-accent);
  color: #fff;
  box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--cos-accent) 72%, transparent);
}

.site-button--primary:hover {
  filter: brightness(0.95);
}

.site-button--ghost {
  border-color: var(--cos-glass-light-border);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 14px 28px -20px rgba(61, 59, 57, 0.72);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.site-button--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--cos-panel-border);
  transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.site-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--site-card-wash, transparent);
}

.site-action-card__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 9999px;
  background: var(--site-label-bg, #ECEAE6);
  padding: 0.25rem 0.75rem;
  color: var(--site-label-color, #737373);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-action-card__title {
  position: relative;
  z-index: 1;
  color: #3D3B39;
  font-weight: 800;
}

.site-action-card__title-inline {
  display: inline-flex;
  gap: 0.5rem;
}

.site-action-card__text {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.site-action-card__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: var(--cos-radius-control);
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-action-card:hover .site-action-card__cta {
  background-color: var(--cos-accent-deep);
}

.site-action-card--turnos {
  --site-card-wash: radial-gradient(ellipse 165% 130% at 92% -8%, rgba(186, 183, 178, 0.11) 0%, rgba(186, 183, 178, 0.04) 42%, transparent 72%),
    linear-gradient(155deg, rgba(246, 244, 241, 0.55) 0%, transparent 58%);
}

.site-action-card--whatsapp {
  --site-card-wash: radial-gradient(ellipse 165% 130% at 92% -8%, rgba(35, 105, 83, 0.1) 0%, rgba(35, 105, 83, 0.035) 42%, transparent 72%),
    linear-gradient(155deg, rgba(240, 247, 244, 0.55) 0%, transparent 58%);
  --site-label-bg: #E0EFE9;
  --site-label-color: #236953;
}

.site-action-card--recetas {
  --site-card-wash: radial-gradient(ellipse 165% 130% at 92% -8%, rgba(115, 115, 115, 0.09) 0%, rgba(115, 115, 115, 0.03) 42%, transparent 72%),
    linear-gradient(155deg, rgba(255, 246, 248, 0.55) 0%, transparent 58%);
  --site-label-bg: #F3E4E1;
  --site-label-color: #3D3B39;
}

.site-info-card {
  min-width: 0;
  border: 1px solid var(--cos-panel-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-info-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #3D3B39;
  padding: 0.375rem 0.75rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px -18px rgba(61, 59, 57, 0.85);
}

.site-info-card__list {
  min-width: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.625rem;
  color: #3D3B39;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.site-info-card__list a {
  color: #4A4744;
  overflow-wrap: anywhere;
}

.site-info-card__list li {
  min-width: 0;
}

.site-info-card__item--has-today {
  display: grid;
  gap: 0.35rem;
}

.site-schedule-block {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.site-schedule-today {
  --schedule-today-accent: var(--cos-accent);
  display: grid;
  gap: 0.15rem;
  border: 1px solid color-mix(in srgb, var(--schedule-today-accent) 28%, #E4E2DE);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--schedule-today-accent) 8%, #FAF9F7);
  padding: 0.55rem 0.75rem;
}

.site-schedule-today--closed {
  --schedule-today-accent: var(--cos-accent);
}

.site-schedule-today--reduced {
  --schedule-today-accent: #8A6221;
}

.site-schedule-today--normal {
  --schedule-today-accent: #236953;
}

.site-schedule-today__eyebrow {
  color: var(--schedule-today-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-schedule-today__detail {
  color: #3D3B39;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-schedule-habitual {
  color: #737373;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.site-schedule-today--card {
  margin-top: 0.85rem;
}

.site-schedule-today--inline {
  padding: 0.45rem 0.65rem;
}

.site-locations {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E4E2DE;
  display: grid;
  gap: 0.875rem;
}

.site-locations__intro {
  grid-column: 1 / -1;
}

.site-locations__title {
  color: #2D2C2B;
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.2;
}

.site-locations__lead {
  margin-top: 0.45rem;
  max-width: 42rem;
  color: #737373;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.55;
}

.site-location-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cos-panel-border);
  border-radius: 0.75rem;
}

.site-location-card__head {
  position: relative;
  padding: 1rem 1rem 0.875rem;
}

.site-location-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.875rem;
  margin: 0;
  color: #9B1B30;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.site-location-card__badge + .site-location-card__name {
  padding-right: 5.75rem;
}

.site-location-card__name {
  color: #2D2C2B;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-location-card__address {
  margin-top: 0.3rem;
  color: #4A4744;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.site-location-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-location-card__link:hover {
  color: #9B1B30;
}

.site-location-card__map {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 15.5rem;
  border: 0;
  border-top: 1px solid #E4E2DE;
  background: #ECEAE6;
}

@media (min-width: 1024px) {
  .site-locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.professionals-section {
  position: relative;
  min-width: 0;
  border: 1px solid #C8C4BE;
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.professionals-section__header {
  position: relative;
  z-index: 2;
}

.featured-professional__label {
  margin: 0;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.professionals-section__title {
  margin: 0;
  color: #3D3B39;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.professionals-section__text {
  margin-top: 0.4rem;
  max-width: 36rem;
  color: #737373;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.professionals-showcase {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 58rem;
  margin-top: 1.25rem;
  margin-inline: auto;
}

.professionals-selector {
  container-type: inline-size;
  width: 100%;
  max-width: 30rem;
  min-width: 0;
  flex: 0 1 auto;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 16.8cqw;
  width: 100%;
  padding: 0 0 5.6cqw;
  list-style: none;
  -moz-column-gap: 0;
       column-gap: 0;
  row-gap: 0;
}

.professional-hex {
  position: relative;
  z-index: 1;
  grid-column-end: span 2;
  min-width: 0;
}

.professional-hex:nth-child(9n + 1) {
  grid-column-start: 1;
}

.professional-hex:nth-child(9n + 2) {
  grid-column-start: 3;
}

.professional-hex:nth-child(9n + 3) {
  grid-column-start: 5;
}

.professional-hex:nth-child(9n + 4) {
  grid-column-start: 7;
}

.professional-hex:nth-child(9n + 5) {
  grid-column-start: 9;
}

.professional-hex:nth-child(9n + 6) {
  grid-column-start: 2;
}

.professional-hex:nth-child(9n + 7) {
  grid-column-start: 4;
}

.professional-hex:nth-child(9n + 8) {
  grid-column-start: 6;
}

.professional-hex:nth-child(9n + 9) {
  grid-column-start: 8;
}

.professional-hex__button {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  left: 0.68rem;
  width: calc(100% - 1.36rem);
  aspect-ratio: 1 / 1.1547;
  overflow: hidden;
  border: 0;
  background: #D2CFCA;
  padding: 0;
  clip-path: polygon(0 25%, 0 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0);
  cursor: pointer;
  filter: drop-shadow(0 8px 12px rgba(61, 59, 57, 0.12));
  transition: filter 0.28s ease;
}

.professional-hex__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 54, 59, 0.08);
  opacity: 1;
  transition: opacity 0.32s ease;
}

.professional-hex__button img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.025);
  transition: filter 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.professional-hex__button img.is-fallback,
.featured-professional__media img.is-fallback {
  -o-object-fit: contain;
     object-fit: contain;
  padding: 20%;
}

.professional-hex__button:hover,
.professional-hex__button:focus-visible {
  z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(61, 59, 57, 0.2));
}

.professional-hex__button:hover::after,
.professional-hex__button:focus-visible::after {
  opacity: 0;
}

.professional-hex__button:hover img,
.professional-hex__button:focus-visible img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.075);
}

.professional-hex__button.is-selected {
  z-index: 2;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--cos-accent) 50%, transparent))
    drop-shadow(0 9px 13px rgba(61, 59, 57, 0.18));
}

.professional-hex__button.is-selected::after {
  opacity: 0;
}

.professional-hex__button.is-selected img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.075);
}

.featured-professional {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 20.5rem);
}

.featured-professional__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  background: #D2CFCA;
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 12%);
  filter: drop-shadow(0 18px 26px rgba(61, 59, 57, 0.16));
}

.featured-professional__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 18%;
     object-position: center 18%;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.featured-professional__photo.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.featured-professional__photo.is-entering {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.featured-professional__caption {
  position: relative;
  z-index: 2;
  margin: -2.2rem 0.55rem 0;
  border: 1px solid #D2CFCA;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 14px 28px -24px rgba(61, 59, 57, 0.4);
}

.featured-professional__name {
  margin: 0.2rem 0 0;
  color: #3D3B39;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.featured-professional__cta {
  margin-top: 0.75rem;
  display: inline-flex;
  width: 100%;
  min-height: 2.45rem;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .professionals-showcase {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 28rem;
  }

  .professionals-selector {
    max-width: 22rem;
    margin-inline: auto;
  }

  .featured-professional {
    width: min(100%, 19rem);
  }
}

@media (max-width: 479px) {
  .professionals-section {
    padding-inline: 0.8rem;
  }

  .featured-professional__caption {
    margin-inline: 0.35rem;
  }
}

@media (min-width: 640px) {
  .cos-site-footer__shell {
    padding: 2rem 0;
  }

  .cos-site-footer__contacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
  }

  .cos-site-footer__contact + .cos-site-footer__contact {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 1rem;
  }

  .cos-site-footer__locations {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.75rem;
  }

  .site-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-button {
    min-width: 196px;
  }
}

@media (max-width: 767px) {
  .site-shell {
    width: min(1120px, calc(100% - 0.95rem));
  }

  .cos-site-header__shell {
    min-height: 76px;
    gap: 0.75rem;
  }

  .cos-site-header__menu {
    top: 100%;
    padding: 0.25rem 0.85rem 0.95rem;
  }

  .cos-site-header__nav-list {
    gap: 0;
  }

  .cos-site-header__nav-link {
    font-size: 0.98rem;
    font-weight: 700;
  }

  .cos-site-menu-button {
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 0.7rem;
  }

  .cos-site-header__socials--mobile {
    padding-top: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .cos-site-header__shell {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
  }

  .cos-site-header__menu {
    position: static;
    display: block !important;
    left: auto;
    right: auto;
    width: auto;
    transform: none;
    border-top: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cos-site-header__menu-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .cos-site-header__nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2vw, 2.35rem);
  }

  .cos-site-header__actions {
    justify-self: end;
  }

  .cos-site-header__socials--desktop {
    display: flex;
    gap: 0.375rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 1rem;
  }

  .cos-site-header__socials--mobile,
  .cos-site-menu-button {
    display: none;
  }

  .site-main {
    padding-top: 1rem;
  }
}

@media (min-width: 1280px) {
  .site-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .site-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-button,
  .site-action-card {
    transition: none;
  }

  .professional-hex__button,
  .professional-hex__button img,
  .featured-professional__photo {
    transition: none;
    transform: none;
  }
}

/* Motion language: precise, calm and shared across public flows. */

@keyframes cos-menu-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cos-modal-backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cos-modal-surface-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cos-page-intro {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cos-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(16px, 0, 0) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.cos-site-header__nav-link {
  position: relative;
}

.cos-site-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--cos-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cos-site-header__nav-link:hover::after,
.cos-site-header__nav-link:focus-visible::after,
.cos-site-header__nav-link.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.cos-site-social-link i,
.rx-section__header > i,
.site-action-card__title-inline > i {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.cos-site-social-link i {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cos-site-social-link:hover i,
.cos-site-social-link:focus-visible i {
  transform: scale(1.08);
}

.rx-section:hover .rx-section__header > i,
.site-action-card:hover .site-action-card__title-inline > i {
  transform: translate3d(0, -2px, 0) rotate(-5deg) scale(1.08);
}

.site-button,
.studies-submit,
.rx-submit,
.cos-site-menu-button {
  transform-origin: center;
}

.site-button:active:not(:disabled),
.studies-submit:active:not(:disabled),
.rx-submit:active:not(:disabled),
.cos-site-menu-button:active {
  transform: translate3d(0, 1px, 0) scale(0.975);
}

.site-action-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -45%;
  bottom: -45%;
  left: -70%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translate3d(0, 0, 0) rotate(14deg);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-action-card:hover::after,
.site-action-card:focus-visible::after {
  transform: translate3d(470%, 0, 0) rotate(14deg);
}

.rx-help-card,
.rx-info-note {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.38s ease;
}

.rx-help-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(115, 115, 115, 0.2);
  box-shadow: 0 24px 42px -30px rgba(61, 59, 57, 0.42);
}

.rx-help-card:hover .rx-help-card__icon {
  transform: rotate(-6deg) scale(1.08);
}

.rx-help-card__icon {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .cos-site-header__menu.is-open {
    animation: cos-menu-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: top center;
  }

  .studies-modal:not(.hidden) .studies-modal__backdrop {
    animation: cos-modal-backdrop-enter 0.28s ease-out both;
  }

  .studies-modal:not(.hidden) .studies-modal__dialog {
    animation: cos-modal-surface-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .recetas-page .rx-hero,
  .turnero-page .tr-section {
    animation: cos-page-intro 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .turnero-page .tr-panel:not([hidden]),
  .turnero-page .tr-step-content:not([hidden]) {
    animation: cos-panel-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (hover: none) {
  .site-action-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cos-site-header__nav-link::after,
  .cos-site-social-link i,
  .rx-section__header > i,
  .site-action-card__title-inline > i,
  .rx-help-card,
  .rx-help-card__icon,
  .rx-info-note {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce), (prefers-contrast: more) {
  .cos-site-header,
  .cos-site-header::before {
    transition: none;
  }

  .cos-site-header.is-scrolled,
  .cos-mobile-actions,
  .site-actions,
  .site-button--ghost,
  .studies-modal__backdrop,
  .studies-modal__surface,
  .studies-modal__close,
  .tr-dialog::backdrop,
  .tr-dialog__panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cos-site-header.is-scrolled {
    background: #3D3B39;
  }

  .cos-site-header.is-scrolled::before {
    opacity: 0;
  }

  .cos-mobile-actions,
  .studies-modal__surface,
  .tr-dialog__panel {
    background: #fff;
  }

  .site-actions {
    background: rgba(255, 255, 255, 0.96);
  }

  .studies-modal__backdrop,
  .tr-dialog::backdrop {
    background: rgba(48, 47, 46, 0.72);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce), (max-width: 1023px) and (prefers-contrast: more) {
  .cos-site-header__menu {
    background: #3D3B39;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Recetas */

:root {
  --rx-bg: #E4E2DE;
  --rx-surface: rgba(255, 255, 255, 0.96);
  --rx-surface-soft: rgba(248, 247, 244, 0.96);
  --rx-primary: #3D3B39;
  --rx-secondary: #737373;
  --rx-accent: var(--cos-accent);
  --rx-text: #3D3B39;
  --rx-muted: #656361;
  --rx-border: rgba(61, 59, 57, 0.08);
  --rx-shadow: 0 24px 52px -34px rgba(61, 59, 57, 0.34);
  --rx-control-height: 3.6rem;
  --rx-control-bg: #fff;
  --rx-ring: 0 0 0 4px color-mix(in srgb, var(--cos-accent) 12%, transparent);
}

body.recetas-page {
  min-height: 100vh;
  color: var(--rx-text);
}

.rx-main {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.95rem 0 2.6rem;
}

.rx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--rx-primary);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px -24px rgba(61, 59, 57, 0.42);
}

.rx-hero {
  position: relative;
  margin-top: 0.8rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 1.6rem;
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
    var(--cos-grad-brand-hero);
  color: #fff;
  box-shadow: 0 28px 52px -34px rgba(61, 59, 57, 0.6);
  overflow: hidden;
}

.rx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rx-hero__grid {
  display: block;
  position: relative;
  z-index: 1;
}

.rx-hero__copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  min-height: 0;
}

.rx-hero__brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.rx-hero__logo {
  width: clamp(170px, 22vw, 250px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.rx-hero__title {
  display: block;
  color: #fff;
  margin-left: auto;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.rx-section {
  margin-top: 1rem;
  border: 1px solid var(--rx-border);
  border-radius: 1.65rem;
  background: var(--rx-surface);
  box-shadow: var(--rx-shadow);
  overflow: hidden;
}

.rx-section__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(61, 59, 57, 0.08);
  background: var(--cos-grad-header);
  color: var(--rx-primary);
}

.rx-section__header h2 {
  font-size: clamp(1.08rem, 3.8vw, 1.35rem);
  font-weight: 800;
}

.rx-section__body {
  padding: 1.2rem;
}

.rx-form-shell {
  display: block;
}

.rx-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
}

.rx-alert--success {
  border-color: rgba(35, 105, 83, 0.18);
  background: rgba(35, 105, 83, 0.08);
  color: #1B5241;
}

.rx-alert--danger {
  border-color: color-mix(in srgb, var(--cos-accent) 18%, transparent);
  background: color-mix(in srgb, var(--cos-accent) 8%, transparent);
  color: #842727;
}

.rx-alert--info {
  border-color: rgba(115, 115, 115, 0.18);
  background: rgba(115, 115, 115, 0.08);
  color: var(--rx-primary);
}

.rx-form-grid {
  display: grid;
  gap: 1.05rem;
}

.rx-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rx-field {
  display: grid;
  gap: 0.45rem;
}

.rx-field label {
  color: var(--rx-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rx-input,
.rx-select,
.rx-textarea {
  width: 100%;
  border: 1px solid rgba(61, 59, 57, 0.16);
  border-radius: 1rem;
  background: var(--rx-control-bg);
  color: var(--rx-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px -24px rgba(61, 59, 57, 0.4);
  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.rx-input,
.rx-select {
  min-height: var(--rx-control-height);
  padding: 0.96rem 1rem;
}

.rx-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 3.6rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23A23131' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 1rem;
}

.rx-select::-ms-expand {
  display: none;
}

.rx-textarea {
  min-height: 8.5rem;
  padding: 0.98rem 1rem;
  resize: vertical;
}

.rx-input::-moz-placeholder, .rx-textarea::-moz-placeholder {
  color: #737373;
  opacity: 1;
}

.rx-input::placeholder,
.rx-textarea::placeholder {
  color: #737373;
  opacity: 1;
}

.rx-select:invalid {
  color: #737373;
}

.rx-select option {
  color: var(--rx-primary);
}

.rx-input:hover,
.rx-select:hover,
.rx-textarea:hover {
  border-color: rgba(115, 115, 115, 0.3);
}

.rx-input:focus,
.rx-select:focus,
.rx-textarea:focus {
  border-color: color-mix(in srgb, var(--cos-accent) 46%, transparent);
  box-shadow: var(--rx-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 28px -24px rgba(61, 59, 57, 0.48);
  transform: translateY(-1px);
}

.rx-input.is-invalid,
.rx-select.is-invalid,
.rx-textarea.is-invalid {
  border-color: color-mix(in srgb, var(--cos-accent) 50%, transparent);
}

.rx-input.is-valid,
.rx-select.is-valid,
.rx-textarea.is-valid {
  border-color: rgba(35, 105, 83, 0.4);
}

.rx-help {
  color: var(--rx-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.rx-invalid-feedback {
  display: none;
  color: #842727;
  font-size: 0.9rem;
  font-weight: 700;
}

.rx-invalid-feedback.is-visible {
  display: block;
}

.rx-field.is-hidden {
  display: none;
}

.rx-upload {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.rx-upload__controls {
  display: grid;
  gap: 0.75rem;
}

.rx-upload__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.rx-upload__action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.1rem;
  border: 0;
  border-radius: 9999px;
  background: var(--cos-grad-brand-btn);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 14px 24px -20px rgba(61, 59, 57, 0.6);
  cursor: pointer;
}

.rx-upload__action--secondary {
  background: #fff;
  color: var(--rx-primary);
  border: 1px solid rgba(61, 59, 57, 0.14);
  box-shadow: 0 12px 22px -22px rgba(61, 59, 57, 0.45);
}

.rx-upload__action:focus-visible,
.rx-file-remove:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cos-accent) 35%, transparent);
  outline-offset: 3px;
}

.rx-upload.is-invalid .rx-upload__action,
.rx-upload__action[aria-invalid="true"] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cos-accent) 28%, transparent);
}

.rx-upload .rx-upload__native.sr-only,
.rx-upload [data-rx-upload-camera].sr-only {
  position: absolute !important;
  width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rx-upload .rx-upload__native:not(.sr-only)::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--cos-grad-brand-btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px -20px rgba(61, 59, 57, 0.6);
}

.rx-upload .rx-upload__native:not(.sr-only)::-webkit-file-upload-button {
  margin-right: 0.85rem;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--cos-grad-brand-btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px -20px rgba(61, 59, 57, 0.6);
}

.rx-file-preview {
  display: none;
  border: 1px solid var(--rx-border);
  border-radius: 1rem;
  background: var(--rx-surface-soft);
  padding: 0.95rem;
}

.rx-file-preview.is-visible {
  display: block;
}

.rx-file-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(61, 59, 57, 0.08);
}

.rx-file-item:last-child {
  border-bottom: 0;
}

.rx-file-meta {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1;
}

.rx-file-text {
  min-width: 0;
}

.rx-file-name {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.35;
}

.rx-file-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(115, 115, 115, 0.1);
  color: var(--rx-secondary);
}

.rx-file-remove {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--cos-accent) 8%, transparent);
  color: var(--rx-accent);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.rx-file-error {
  margin-top: 0.2rem;
  color: #842727;
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rx-file-summary {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(61, 59, 57, 0.08);
  color: var(--rx-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (min-width: 480px) {
  .rx-upload__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.rx-info-note {
  display: flex;
  min-width: 0;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(115, 115, 115, 0.12);
  border-radius: 1rem;
  background: rgba(240, 237, 234, 0.5);
  color: var(--rx-primary);
  font-weight: 700;
}

.rx-info-note > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rx-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  border-radius: var(--cos-radius-control);
  background: var(--cos-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 30px -20px rgba(61, 59, 57, 0.75);
}

.rx-submit:hover:not(:disabled) {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.rx-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rx-submit.is-loading .rx-submit__label {
  opacity: 0;
}

.rx-submit__spinner {
  display: none;
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: rx-spin 0.8s linear infinite;
}

.rx-submit.is-loading .rx-submit__spinner {
  display: block;
}

.rx-card-grid {
  display: grid;
  gap: 1rem;
}

.rx-help-card {
  height: 100%;
  border: 1px solid var(--rx-border);
  border-radius: 1.25rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 34px -30px rgba(61, 59, 57, 0.35);
}

.rx-help-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(240, 237, 234, 0.9);
  color: var(--rx-secondary);
  box-shadow: inset 0 0 0 1px rgba(115, 115, 115, 0.08);
}

.rx-help-card h3 {
  margin-top: 0.8rem;
  color: var(--rx-primary);
  font-size: 1rem;
  font-weight: 800;
}

.rx-help-card p {
  margin-top: 0.7rem;
  color: var(--rx-muted);
  font-weight: 600;
  line-height: 1.65;
}

.rx-table-wrap {
  overflow: auto;
  border: 1px solid var(--rx-border);
  border-radius: 1.1rem;
}

.rx-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.rx-table th,
.rx-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(61, 59, 57, 0.08);
  text-align: left;
}

.rx-table th {
  background: var(--rx-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rx-medicamento-row {
  transition: background-color 0.2s ease;
}

.rx-medicamento-row:hover,
.rx-medicamento-row:focus-within {
  background: rgba(240, 237, 234, 0.5);
}

.rx-medicamento-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--rx-primary);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--cos-accent) 42%, transparent);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.rx-medicamento-button:hover,
.rx-medicamento-button:focus-visible {
  color: var(--cos-accent-deep);
  text-decoration-color: currentColor;
}

@keyframes rx-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .rx-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rx-main {
    padding-top: 1rem;
  }

  .rx-hero {
    padding: 1.1rem 1.45rem;
  }
}

@media (max-width: 767px) {
  .rx-main {
    width: min(100% - 1rem, 100%);
  }

  .rx-back-link {
    margin-bottom: 0.1rem;
  }

  .rx-hero {
    margin-top: 0.7rem;
    padding: 0.95rem;
  }

  .rx-hero::before {
    background-size: 32px 32px;
  }

  .rx-hero__logo {
    width: 152px;
  }

  .rx-hero__copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .rx-hero__title {
    margin-left: 0;
    text-align: left;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .rx-form-panel {
    padding: 1rem;
  }

  .rx-section__body,
  .rx-section__header,
  .rx-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* --- Turnero (consultorio) — mismo sistema de tokens que recetas --- */

.turnero-page .tr-main {
  padding-bottom: 2rem;
}

.turnero-page .tr-section.rx-section .rx-section__header {
  background: rgba(240, 237, 234, 0.65);
  border-bottom-color: rgba(61, 59, 57, 0.09);
}

.turnero-page .tr-section.rx-section .rx-section__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.turnero-page .tr-wizard {
  position: relative;
}

/* Turnero: hasta buscar con éxito, solo cabecera de card + DNI + Buscar (nada más del wizard) */

.turnero-page .tr-wizard--solo-dni .tr-stepper,
.turnero-page .tr-wizard--solo-dni .tr-wizard-footer {
  display: none !important;
}

.turnero-page .tr-wizard--solo-dni #step_2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

.turnero-page .tr-wizard--solo-dni #panelTurno,
.turnero-page .tr-wizard--solo-dni #panelConfirm {
  display: none !important;
}

.turnero-page .tr-section--solo-dni .rx-section__header {
  border-bottom: none;
}

.turnero-page .tr-section--solo-dni .rx-section__body {
  padding-top: 0.35rem;
  padding-bottom: 1.35rem;
}

.turnero-page .tr-wizard--solo-dni #panelPaciente {
  padding: 0.35rem 0.75rem 0.15rem;
}

.turnero-page .tr-wizard--solo-dni .tr-field-row--dni {
  max-width: min(26rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.turnero-page .rx-input,
.turnero-page .rx-select,
.turnero-page .rx-textarea {
  box-shadow: none;
  border: 1px solid rgba(61, 59, 57, 0.22);
  transform: none;
}

.turnero-page .rx-input:hover,
.turnero-page .rx-select:hover,
.turnero-page .rx-textarea:hover {
  border-color: rgba(61, 59, 57, 0.32);
}

.turnero-page .rx-input:focus,
.turnero-page .rx-select:focus,
.turnero-page .rx-textarea:focus {
  border-color: var(--rx-primary);
  box-shadow: none;
  outline: none;
  transform: none;
}

.turnero-page .rx-input.is-invalid,
.turnero-page .rx-select.is-invalid,
.turnero-page .rx-textarea.is-invalid {
  border-color: var(--cos-accent);
  box-shadow: none;
}

.turnero-page .rx-input.is-invalid:focus,
.turnero-page .rx-select.is-invalid:focus,
.turnero-page .rx-textarea.is-invalid:focus {
  border-color: var(--cos-accent);
  box-shadow: none;
}

@keyframes tr-input-invalid-pulse {
  0%,
  100% {
    border-color: var(--cos-accent);
  }

  50% {
    border-color: #742020;
  }
}

.turnero-page .rx-input.is-invalid-pulse,
.turnero-page .rx-select.is-invalid-pulse,
.turnero-page .rx-textarea.is-invalid-pulse {
  animation: tr-input-invalid-pulse 0.55s ease-in-out 2;
}

@media (prefers-reduced-motion: reduce) {
  .turnero-page .rx-input.is-invalid-pulse,
  .turnero-page .rx-select.is-invalid-pulse,
  .turnero-page .rx-textarea.is-invalid-pulse {
    animation: none;
  }
}

.turnero-page .rx-input.rx-input--locked {
  background: rgba(242, 240, 237, 0.96);
  color: var(--rx-text);
  border-color: rgba(61, 59, 57, 0.14);
  cursor: default;
  box-shadow: none;
}

.turnero-page .rx-input.rx-input--locked:focus {
  transform: none;
  border-color: rgba(61, 59, 57, 0.14);
}

.turnero-page #buscar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.tr-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  flex-wrap: wrap;
}

.tr-section__brand {
  flex: 0 0 auto;
}

.tr-section__logo {
  width: min(200px, 46vw);
  height: auto;
  display: block;
}

.tr-section__titles {
  flex: 1 1 auto;
  text-align: center;
}

.tr-section__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.tr-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--rx-primary);
  line-height: 1.2;
}

.tr-asistente-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.tr-toggle-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rx-text);
}

.tr-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.65rem;
}

.tr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tr-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D2CFCA;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.tr-switch__slider::before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.2rem;
  bottom: 0.2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(61, 59, 57, 0.2);
}

.tr-switch input:checked + .tr-switch__slider {
  background: var(--rx-secondary);
}

.tr-switch input:checked + .tr-switch__slider::before {
  transform: translateX(1.35rem);
}

.tr-assistant-toggle {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(61, 59, 57, 0.14);
  border-radius: var(--cos-radius-control);
  background: #fff;
  color: #656361;
  padding: 0.5rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.tr-assistant-toggle:hover,
.tr-assistant-toggle:focus-visible {
  border-color: rgba(115, 115, 115, 0.28);
  background: rgba(240, 237, 234, 0.55);
  color: var(--rx-primary);
  outline: none;
}

.tr-assistant-toggle--active {
  border-color: rgba(115, 115, 115, 0.22);
  background: rgba(240, 237, 234, 0.88);
  color: var(--rx-secondary);
}

.turnero-page .tr-wizard--solo-dni.tr-wizard--focus-guide .tr-stepper {
  display: block !important;
  margin-bottom: 0.85rem;
}

.tr-focus-hint-host[hidden] {
  display: none !important;
}

.tr-focus-hint-host {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  width: 100%;
  margin-bottom: 0.15rem;
}

.tr-focus-hint {
  display: flex;
  flex: 1 1 11rem;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.tr-focus-hint__icon {
  flex: 0 0 auto;
  color: var(--rx-secondary);
  font-size: 0.95rem;
  line-height: 1;
}

.tr-focus-hint__text {
  margin: 0;
  color: var(--rx-primary);
  font-size: clamp(0.95rem, 2.2vw, 1.02rem);
  font-weight: 750;
  line-height: 1.4;
}

.tr-focus-block {
  border-radius: 0.85rem;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.tr-focus-block__guide:empty {
  display: none;
}

.tr-focus-block__guide--panel {
  display: block;
  width: 100%;
}

.tr-focus-block__guide--panel:not(:empty) {
  margin-bottom: 0.65rem;
}

.tr-focus-block__guide--panel:empty {
  display: none;
}

.tr-focus-block__guide--inline:empty {
  display: none;
}

.tr-wizard--focus-guide .tr-focus-block--active {
  padding: 0.85rem 0.95rem 0.95rem;
  border: 2px solid var(--rx-secondary);
  border-color: var(--rx-secondary);
  background: #fff;
  scroll-margin-top: 0.75rem;
  scroll-margin-bottom: 1rem;
}

.tr-wizard--focus-guide .tr-focus-block--active .tr-focus-block__guide--inline {
  margin: -0.2rem 0 0.7rem;
  padding: 0.55rem 0.65rem;
  background: #ECEAE6;
  border: 1px solid rgba(115, 115, 115, 0.18);
  border-radius: 0.55rem;
}

.tr-wizard--focus-guide .tr-focus-block--active .tr-focus-block__guide--inline .tr-focus-hint-host {
  margin-bottom: 0;
}

.turnero-page .tr-wizard--focus-guide .tr-motivos.tr-focus-block--active,
.turnero-page .tr-wizard--focus-guide .tr-agenda-wrap.tr-focus-block--active {
  border: 2px solid var(--rx-secondary);
}

.turnero-page .tr-wizard--focus-guide #panelTurno .tr-focus-block__guide--panel:not(:empty) {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
  background: #ECEAE6;
  border: 1px solid rgba(115, 115, 115, 0.18);
  border-radius: 0.65rem;
}

.turnero-page .tr-wizard--focus-guide.tr-wizard--solo-dni #panelPaciente {
  padding: 0.35rem 0.5rem 0.15rem;
}

.turnero-page .tr-wizard--focus-guide .tr-dni-stage .tr-field-row--dni {
  max-width: 100%;
  margin-bottom: 0;
  align-items: end;
  gap: 0.75rem;
}

.turnero-page .tr-wizard--focus-guide .tr-dni-stage .tr-field-actions {
  display: flex;
  align-items: flex-end;
}

.turnero-page .tr-wizard--focus-guide .tr-wizard-footer.tr-focus-block--active {
  margin-top: 0.5rem;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Turnero: botones planos, mismo lenguaje que recetas (tokens rx), sin degradados */

.turnero-page .site-button--primary {
  border-color: var(--rx-secondary);
  background: var(--rx-secondary);
  color: #fff;
  box-shadow: 0 10px 24px -18px rgba(115, 115, 115, 0.42);
}

.turnero-page .site-button--primary:hover:not(:disabled) {
  filter: brightness(0.96);
}

.turnero-page .site-button--secondary {
  border: 2px solid var(--rx-border);
  background: #fff;
  color: var(--rx-primary);
  box-shadow: 0 8px 18px -16px rgba(61, 59, 57, 0.18);
}

.turnero-page .site-button--secondary:hover:not(:disabled) {
  border-color: rgba(115, 115, 115, 0.35);
  color: var(--rx-secondary);
  background: rgba(240, 237, 234, 0.55);
  filter: none;
}

.tr-dialog {
  border: none;
  border-radius: 1.25rem;
  padding: 0;
  max-width: min(520px, 94vw);
  background: transparent;
}

.tr-dialog::backdrop {
  background: var(--cos-glass-overlay);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.tr-dialog__panel {
  background: var(--cos-glass-light-strong);
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem 1.35rem;
  box-shadow: var(--rx-shadow);
  border: 1px solid var(--rx-border);
  position: relative;
  backdrop-filter: blur(var(--cos-glass-blur));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur));
}

.tr-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: rgba(240, 237, 234, 0.9);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--rx-primary);
  font-weight: 700;
}

.tr-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rx-primary);
}

.tr-dialog__text {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--rx-text);
}

.tr-dialog__hint {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--rx-muted);
  line-height: 1.45;
}

.tr-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.tr-dialog__actions .site-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.tr-dialog__actions .site-button:only-child,
.tr-dialog__actions .site-button[hidden] + .site-button[hidden] + .site-button,
.tr-dialog__actions .site-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 14rem;
  justify-self: center;
}

.tr-dialog[data-variant="message"] .tr-dialog__actions {
  grid-template-columns: 1fr;
}

.tr-dialog[data-variant="message"] .tr-dialog__actions .site-button {
  max-width: 14rem;
  justify-self: center;
}

.tr-dialog__link {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  background: none;
  color: var(--rx-secondary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
}

.tr-banner {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.tr-banner--hidden {
  display: none;
}

.tr-banner--info {
  background: rgba(240, 237, 234, 0.95);
  border: 1px solid rgba(115, 115, 115, 0.2);
  color: var(--rx-primary);
}

.tr-banner--danger {
  background: rgba(243, 228, 225, 0.95);
  border: 1px solid color-mix(in srgb, var(--cos-accent) 25%, transparent);
  color: #742020;
}

.tr-wizard {
  max-width: 920px;
  margin: 0 auto;
}

.tr-stepper {
  margin-bottom: 1.35rem;
}

.tr-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tr-stepper__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(248, 247, 244, 0.95);
  border: 1px solid var(--rx-border);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-muted);
}

.tr-stepper__item--active {
  background: var(--rx-secondary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px -16px rgba(115, 115, 115, 0.45);
}

.tr-stepper__num {
  font-weight: 800;
  opacity: 0.85;
}

.tr-panel {
  padding: 0.25rem 0 1rem;
}

.tr-panel--hidden {
  display: none !important;
}

.tr-panel__heading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rx-primary);
}

.tr-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.turnero-page #panelPaciente .tr-field-row--dni {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.85rem;
  align-items: end;
  margin-bottom: var(--tr-form-gap, 1.2rem);
}

.turnero-page #panelPaciente .tr-field-row--dni .tr-field-actions {
  display: flex;
  align-items: flex-end;
}

.tr-field-grow {
  flex: 1 1 220px;
}

.tr-field-actions {
  flex: 0 0 auto;
}

/* Misma altura que .rx-input en el turnero */

.turnero-page .tr-btn-control {
  min-height: var(--rx-control-height);
  height: var(--rx-control-height);
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  align-self: end;
}

.turnero-page #panelPaciente .tr-field-row--dni .rx-input {
  box-sizing: border-box;
}

.tr-link {
  border: none;
  background: none;
  color: var(--rx-secondary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.98rem;
}

.tr-patient-fields {
  margin-top: 0.5rem;
}

.turnero-page #panelPaciente {
  --tr-form-gap: 1.2rem;
}

.turnero-page #panelPaciente .tr-panel__heading {
  margin-bottom: 1.1rem;
}

.turnero-page #panelPaciente .tr-patient-fields {
  display: flex;
  flex-direction: column;
  gap: var(--tr-form-gap);
  margin-top: 0;
}

.turnero-page #panelPaciente .tr-patient-fields > .rx-form-grid {
  gap: 1rem 1.35rem;
}

.turnero-page #panelPaciente .tr-patient-fields > .rx-field:not(.tr-email-actions) {
  margin: 0;
}

.turnero-page .tr-grid-align-start {
  align-items: start;
}

.turnero-page #panelPaciente .rx-field {
  gap: 0.5rem;
}

.turnero-page .tr-email-actions {
  margin: 0.85rem 0 0;
}

.turnero-page .tr-email-actions .tr-email-row {
  margin-top: 0;
}

.turnero-page .tr-phone-row {
  align-items: stretch;
}

.turnero-page .tr-phone-row .rx-input {
  min-height: var(--rx-control-height);
  height: var(--rx-control-height);
  box-sizing: border-box;
  align-self: stretch;
}

.turnero-page .tr-phone-15 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--rx-control-height);
  height: var(--rx-control-height);
  box-sizing: border-box;
  line-height: 1.2;
  align-self: stretch;
}

.turnero-page .tr-wizard-body {
  padding-top: 0.15rem;
}

.turnero-page .tr-stepper {
  margin-bottom: 1.15rem;
}

.turnero-page #panelPaciente .tr-footnote {
  margin: 0;
}

.turnero-page #panelPaciente .tr-checkbox-field {
  margin-top: 0;
}

.turnero-page .rx-field > label:not(.tr-check) {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-primary);
}

.turnero-page .tr-input-email {
  font-variant-numeric: tabular-nums;
}

.tr-req {
  font-weight: 700;
  color: var(--rx-accent);
  font-size: 0.88em;
}

.tr-opt {
  font-weight: 600;
  color: var(--rx-muted);
  font-size: 0.88em;
}

.tr-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.tr-phone-area {
  max-width: 6rem;
}

.tr-phone-num {
  flex: 1 1 140px;
  min-width: 8rem;
}

.tr-phone-15 {
  flex: 0 0 auto;
  min-width: 2rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--rx-primary);
  padding: 0 0.35rem;
  line-height: var(--rx-control-height);
  border-radius: 0.5rem;
  background: rgba(61, 59, 57, 0.06);
  border: 1px solid var(--rx-border);
}

.tr-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.turnero-page .tr-email-actions .tr-email-row {
  min-height: 2.65rem;
}

.tr-btn-small {
  min-width: 10.25rem;
  padding: 0.58rem 1rem !important;
  min-height: auto !important;
  font-size: 0.9rem !important;
}

.tr-btn-small--danger {
  border-color: rgba(185, 28, 28, 0.3) !important;
  background: #8A2525 !important;
  color: #fff !important;
}

.tr-btn-small--ok {
  border-color: rgba(21, 128, 61, 0.25) !important;
  background: #15803d !important;
  color: #fff !important;
}

.tr-email-status {
  font-size: 0.88rem;
  font-weight: 700;
}

.tr-email-status--off {
  color: #8A2525;
  opacity: 1;
}

.tr-email-status--on {
  color: #15803d;
  opacity: 1;
}

.tr-obra-info {
  margin: 0.65rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(115, 115, 115, 0.28);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(115, 115, 115, 0.04);
  color: #4A4744;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: pre-line;
}

.tr-obra-info--hidden {
  display: none;
}

.tr-profesional-detalle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 0.9rem;
  align-items: start;
  margin: 0.65rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(115, 115, 115, 0.28);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(115, 115, 115, 0.04);
  color: #4A4744;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tr-profesional-detalle--con-foto {
  grid-template-columns: auto 1fr;
}

.tr-profesional-detalle--hidden {
  display: none;
}

.tr-profesional-detalle__foto {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  background: #f3f2f0;
  border: 1px solid rgba(115, 115, 115, 0.18);
}

.tr-profesional-detalle__foto[hidden] {
  display: none;
}

.tr-profesional-detalle__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.tr-profesional-detalle__nombre {
  margin: 0;
  font-weight: 750;
  color: var(--rx-text);
}

.tr-profesional-detalle__obs {
  margin: 0;
  font-weight: 650;
  white-space: pre-line;
}

.tr-footnote {
  font-size: 0.88rem;
  color: var(--rx-muted);
  line-height: 1.45;
  margin: 0.75rem 0;
}

.tr-footnote a {
  color: var(--rx-secondary);
  font-weight: 700;
}

.tr-footnote--alert {
  color: var(--rx-text);
}

.tr-checkbox-field {
  margin-top: 0.5rem;
}

.tr-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 700;
}

.tr-preparacion-note {
  margin: 0 0 1.75rem;
  padding: 1.05rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
}

.tr-preparacion-note i {
  margin-top: 0.2rem;
  color: var(--rx-secondary);
  flex-shrink: 0;
}

.turnero-page #panelTurno .tr-panel__heading {
  margin-bottom: 1.35rem;
}

.turnero-page #panelTurno .tr-motivos legend {
  margin-bottom: 0.55rem;
}

.turnero-page #panelTurno .tr-motivos__hint {
  margin-bottom: 0.9rem;
}

.turnero-page #panelConfirm .tr-preparacion-note {
  margin: 1.35rem 0 1.25rem;
}

.turnero-page #panelConfirm .tr-footnote--alert {
  margin-top: 1.15rem;
}

.tr-motivos {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.tr-motivos legend {
  font-weight: 800;
  color: var(--rx-primary);
  font-size: 1.02rem;
  padding: 0;
  margin-bottom: 0.35rem;
}

.tr-motivos__hint {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--rx-muted);
}

.tr-motivos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
}

.tr-motivo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.tr-motivo-item input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--rx-secondary);
}

.tr-subheading {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--rx-primary);
}

.tr-agenda-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rx-text);
}

.tr-agenda-meses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.tr-agenda-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(24rem, 55vh);
  border: 1px solid var(--rx-border);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: var(--rx-surface-soft);
}

.tr-agenda-col__title {
  flex-shrink: 0;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--rx-primary);
}

.tr-agenda-msg {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rx-muted);
}

.tr-agenda-msg--warn {
  color: #8A2525;
}

.tr-agenda-col__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.tr-agenda-col__body::-webkit-scrollbar {
  width: 6px;
}

.tr-agenda-col__body::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: rgba(61, 59, 57, 0.2);
}

.tr-agenda-col__body::-webkit-scrollbar-track {
  background: transparent;
}

.tr-agenda-day {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tr-agenda-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tr-agenda-day--picked .tr-agenda-block:not(.tr-agenda-block--picked) {
  display: none;
}

.tr-agenda-day__instruccion {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 0.45rem;
  background: rgba(240, 237, 234, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rx-primary);
}

.tr-agenda-day__instruccion i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

.tr-slot-btn {
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding: 0.5rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid var(--rx-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--rx-text);
  text-align: left;
  max-height: 3.75rem;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.34s ease,
    padding 0.34s ease,
    border-width 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.tr-slot-btn__label {
  display: block;
}

.tr-slot-btn__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rx-muted);
}

.tr-slot-btn:hover {
  border-color: var(--rx-secondary);
  background: rgba(240, 237, 234, 0.5);
}

.tr-agenda-day--picked .tr-slot-btn:not(.tr-slot-btn--picked) {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  transform: translateY(-0.35rem) scale(0.98);
  pointer-events: none;
}

.tr-agenda-day--picked .tr-slot-btn--picked {
  max-height: 5.5rem;
}

.tr-slot-btn--picked {
  border-color: var(--rx-secondary);
  background: rgba(240, 237, 234, 0.85);
  box-shadow: var(--rx-ring);
}

@media (prefers-reduced-motion: reduce) {
  .tr-slot-btn {
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .tr-agenda-day--picked .tr-slot-btn:not(.tr-slot-btn--picked) {
    transform: none;
  }
}

.tr-confirm-dl {
  margin: 0 0 1rem;
}

.tr-confirm-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rx-border);
  font-size: 0.95rem;
}

.tr-confirm-dl dt {
  margin: 0;
  font-weight: 800;
  color: var(--rx-muted);
}

.tr-confirm-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--rx-text);
}

.tr-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rx-border);
}

.tr-wizard-footer .site-button.tr-wizard-footer__btn--hidden,
.tr-wizard-footer .site-button[hidden] {
  display: none !important;
}

.tr-wizard-footer #btnSiguiente:not([hidden]),
.tr-wizard-footer #btnConfirmarTurno:not([hidden]) {
  margin-left: auto;
}

.turnero-page fieldset.tr-motivos.tr-field--invalid,
.turnero-page .tr-agenda-wrap.tr-field--invalid {
  border: 1px solid var(--cos-accent);
  border-radius: 1rem;
  padding: 0.75rem;
}

.turnero-page #btnSiguiente.site-button--primary:disabled {
  background: #D2CFCA !important;
  border-color: #D2CFCA !important;
  color: #F8F7F4 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.tr-assist--hidden {
  display: none;
}

@media (max-width: 767px) {
  .tr-section__header {
    align-items: flex-start;
    text-align: left;
  }

  .tr-section__titles {
    width: 100%;
    text-align: left;
  }

  .tr-section__actions {
    width: 100%;
  }

  .tr-assistant-toggle {
    width: auto;
  }

  .tr-wizard--focus-guide .tr-focus-block--active {
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .turnero-page .tr-wizard--focus-guide .tr-dni-stage .tr-field-row--dni {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .turnero-page #panelPaciente .tr-field-row--dni {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .turnero-page #panelPaciente .tr-field-row--dni .tr-field-actions,
  .turnero-page .tr-wizard--focus-guide .tr-dni-stage .tr-field-actions {
    width: 100%;
  }

  .turnero-page #panelPaciente .tr-field-row--dni .tr-btn-control,
  .turnero-page .tr-wizard--focus-guide .tr-dni-stage .tr-btn-control {
    width: 100%;
  }

  .tr-wizard--focus-guide .tr-wizard-footer.tr-focus-block--active {
    flex-direction: column;
    align-items: stretch;
  }

  .tr-wizard--focus-guide .tr-wizard-footer.tr-focus-block--active .site-button {
    width: 100%;
    margin-left: 0 !important;
  }

  .tr-dialog__actions {
    grid-template-columns: 1fr;
  }

  .tr-dialog__actions .site-button:last-child:nth-child(odd) {
    max-width: none;
  }

  .tr-stepper__item {
    font-size: 0.72rem;
    flex-direction: column;
    text-align: center;
  }
}

body.site-bg {
  background-color: var(--cos-warm-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23737373' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 20h120M0 60h120M0 100h120M20 0v120M60 0v120M100 0v120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-attachment: scroll;
}

.site-main {
  padding-bottom: 5.75rem;
}

.site-button {
  gap: 0.55rem;
}

.site-main > section {
  box-shadow: var(--cos-shadow-soft) !important;
}

.site-hero-overlay {
  background: var(--cos-grad-hero-overlay);
}

.site-hero-glow {
  background: linear-gradient(180deg, transparent 66%, color-mix(in srgb, var(--cos-ink) 18%, transparent));
}

.site-announcements {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(100%, 74rem);
  min-width: 0;
  gap: 0.65rem;
  margin-inline: auto;
  padding: 1rem 1rem 0;
}

.site-announcement {
  --announcement-accent: #3F474C;
  --announcement-soft: color-mix(in srgb, #3F474C 12%, #F3F1EC);
  --announcement-fill: color-mix(in srgb, #3F474C 16%, #FAF9F7);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "icon content link dismiss";
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--announcement-accent) 48%, transparent);
  border-radius: 1rem;
  background: var(--announcement-fill);
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  color: #3D3B39;
  box-shadow: 0 18px 34px -28px rgba(43, 42, 40, 0.42);
}

.site-announcement--notice {
  --announcement-accent: #737373;
  --announcement-soft: color-mix(in srgb, #737373 12%, #F3F1EC);
  --announcement-fill: color-mix(in srgb, #737373 14%, #FAF9F7);
}

.site-announcement--warning {
  --announcement-accent: #8A6221;
  --announcement-soft: color-mix(in srgb, #8A6221 14%, #F3F1EC);
  --announcement-fill: color-mix(in srgb, #8A6221 18%, #FAF9F7);
}

.site-announcement--critical {
  --announcement-accent: var(--cos-accent);
  --announcement-soft: color-mix(in srgb, var(--cos-accent) 12%, #F3F1EC);
  --announcement-fill: color-mix(in srgb, var(--cos-accent) 16%, #FAF9F7);
}

.site-announcement--success {
  --announcement-accent: #236953;
  --announcement-soft: color-mix(in srgb, #236953 12%, #F3F1EC);
  --announcement-fill: color-mix(in srgb, #236953 16%, #FAF9F7);
}

.site-announcement__icon {
  grid-area: icon;
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.78rem;
  border: 1px solid color-mix(in srgb, var(--announcement-accent) 32%, transparent);
  background: color-mix(in srgb, var(--announcement-accent) 12%, #FFFFFF);
  color: var(--announcement-accent);
  font-size: 1rem;
}

.site-announcement__content {
  grid-area: content;
  min-width: 0;
}

.site-announcement__type {
  color: var(--announcement-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-announcement__title,
.site-announcement__message {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-announcement__title {
  margin-top: 0.12rem;
  color: #2D2C2B;
  font-size: clamp(0.94rem, 2.4vw, 1.05rem);
  font-weight: 800;
  line-height: 1.25;
}

.site-announcement__message {
  margin-top: 0.12rem;
  color: #4A4744;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.site-announcement__link {
  grid-area: link;
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--announcement-accent) 32%, transparent);
  border-radius: 9999px;
  padding: 0.55rem 0.85rem;
  color: var(--announcement-accent);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-announcement__link:hover {
  background: var(--announcement-soft);
}

.site-announcement__dismiss {
  grid-area: dismiss;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 9999px;
  color: #4A4744;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-announcement__dismiss:hover {
  background: var(--announcement-soft);
  color: var(--announcement-accent);
}

@media (max-width: 900px) {
  .site-announcements {
    gap: 0.5rem;
    padding: 0.7rem 0.7rem 0;
  }

  .site-announcement {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon content dismiss"
      "link link link";
    align-items: start;
    gap: 0.55rem 0.65rem;
    padding: 0.75rem 0.65rem 0.75rem 0.9rem;
  }

  .site-announcement__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
  }

  .site-announcement__link {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-announcement__link,
  .site-announcement__dismiss {
    transition: none;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: var(--hero-slide-position, center);
     object-position: var(--hero-slide-position, center);
  opacity: 0;
  filter: brightness(0.87);
  transform: scale(1.015);
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  pointer-events: none;
  opacity: 0;
  filter: brightness(0.87);
  transform: scale(1.01);
  transition: opacity 1.2s ease-in-out;
}

.hero-video.is-playing {
  opacity: 1;
}

/* Video is the hero; photos remain only as a static poster if playback fails. */

.has-playing-video .hero-slide {
  opacity: 0 !important;
  visibility: hidden;
}

.hero-static-fallback .hero-slide:not(.is-active) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-slide {
    transition: none;
  }
}

.site-actions {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--cos-line);
  border-radius: 1rem;
  padding: 1.15rem;
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.site-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.site-action-card {
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  box-shadow: none;
}

.site-action-card::after {
  display: none;
}

.site-action-card:hover {
  border-color: rgba(115, 115, 115, 0.24);
  box-shadow: 0 12px 26px -24px rgba(61, 59, 57, 0.4);
  transform: translateY(-1px);
}

.site-action-card__title {
  margin: 0;
}

.site-action-card__cta {
  gap: 0.45rem;
  background: transparent;
  padding: 0;
  color: #737373;
  box-shadow: none;
}

.site-action-card:hover .site-action-card__cta {
  background: transparent;
  color: #3D3B39;
  transform: none;
}

.site-action-card--support {
  border-color: rgba(35, 105, 83, 0.25);
  background: #F0F7F4;
}

.rx-main {
  padding-bottom: 6rem;
}

.rx-hero,
.rx-section {
  border-radius: 1.15rem;
  box-shadow: var(--cos-shadow-soft);
}

.rx-hero__heading {
  margin-left: auto;
  text-align: right;
}

.rx-hero__title {
  margin: 0.25rem 0 0;
  text-align: inherit;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
}

.rx-form-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.rx-form-step {
  display: grid;
  grid-template-columns: minmax(11rem, 0.3fr) minmax(0, 1fr);
  gap: 1.25rem;
  border-bottom: 1px solid var(--rx-border);
  padding: 1.4rem 0;
}

.rx-form-step:first-child {
  padding-top: 0.25rem;
}

.rx-form-step:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.rx-form-step__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rx-form-step__content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.rx-disclosure {
  overflow: clip;
}

.rx-disclosure__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  color: #3D3B39;
  cursor: pointer;
  list-style: none;
}

.rx-disclosure__summary > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rx-disclosure__summary::-webkit-details-marker {
  display: none;
}

.rx-disclosure__summary strong,
.rx-disclosure__summary small {
  display: block;
}

.rx-disclosure__body {
  border-top: 1px solid var(--rx-border);
}

@media (min-width: 768px) {
  .site-action-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr;
  }
}

@media (min-width: 1024px) {
  .site-actions {
    grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
    align-items: center;
  }

  .site-main,
  .rx-main {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 767px) {
  .rx-hero__copy {
    display: grid;
    gap: 1rem;
  }

  .rx-hero__heading {
    margin-left: 0;
    text-align: left;
  }

  .rx-form-step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .rx-form-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Readability pass for low-vision and older patients. */

.site-hero-trust {
  position: relative;
  align-self: center;
  isolation: isolate;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0 0.35rem 1.45rem;
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.site-hero-trust::before {
  content: none;
}

.site-hero-trust > * {
  position: relative;
  z-index: 1;
}

.site-hero-trust__eyebrow {
  color: #D2CFCA;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(45, 44, 43, 0.72);
}

.site-hero-trust__location {
  width: -moz-fit-content;
  width: fit-content;
  min-height: 0;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(45, 44, 43, 0.88);
}

.site-actions__intro h2 {
  margin-top: 0;
}

.site-action-card {
  height: 100%;
  min-height: 10.5rem;
}

.site-action-card__title {
  font-size: 1.08rem;
  line-height: 1.3;
}

.site-action-card__text {
  margin-top: 0.45rem;
  color: #4A4744;
  font-size: 1rem;
  line-height: 1.5;
}

.site-action-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.site-action-card--primary {
  border-color: rgba(115, 115, 115, 0.24);
  background: #ECEAE6;
}

.site-action-card--primary .site-action-card__title,
.site-action-card--primary .site-action-card__text,
.site-action-card--primary .site-action-card__cta,
.site-action-card--primary .site-action-card__title-inline > i {
  color: #3D3B39 !important;
}

.site-action-card--estudios {
  --site-card-wash: none;
}

.site-action-card--estudios .site-action-card__title,
.site-action-card--estudios .site-action-card__title-inline > i,
.site-action-card--estudios .site-action-card__cta {
  color: #fff;
}

.site-action-card--estudios .site-action-card__cta {
  font-weight: 800;
}

.site-action-card--estudios:hover .site-action-card__cta {
  color: #fff;
}

.studies-modal__dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 115, 115, 0.45) transparent;
  scrollbar-gutter: stable;
}

.studies-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.studies-modal__dialog::-webkit-scrollbar-track {
  background: transparent;
}

.studies-modal__dialog::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 9999px;
  background: rgba(115, 115, 115, 0.42);
  background-clip: padding-box;
}

.studies-field label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.studies-notes li,
.studies-form__summary,
.studies-status-placeholder__message,
.studies-feedback,
.studies-result__message {
  font-size: 1rem;
}

.studies-notes strong {
  font-size: 0.88rem;
}

.studies-field input,
.studies-submit,
.studies-download {
  font-size: 1rem;
}

@media (max-width: 767px) {
  .site-action-card {
    min-height: 9.5rem;
  }
}

/* Shared optical alignment and minimum touch targets. */

:where(
  .site-button,
  .rx-back-link,
  .cos-mobile-actions__link,
  .site-action-card__title-inline,
  .site-action-card__cta,
  .site-info-card__title,
  .site-hero-trust__location,
  .rx-info-note,
  .rx-disclosure__summary
) > i {
  display: inline-grid;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  place-items: center;
  line-height: 1;
}

.site-action-card__title-inline {
  align-items: flex-start;
}

.site-action-card__title-inline > i {
  margin-top: 0.08em;
}

.site-action-card__cta {
  align-items: center;
}

.cos-site-social-link--mobile,
.cos-site-social-link--desktop,
.cos-site-social-link--footer {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.cos-site-header__shell > a,
.cos-site-header__brand,
.cos-site-menu-button,
.rx-back-link,
.tr-assistant-toggle {
  min-height: 44px;
}

.cos-site-header__shell > a,
.cos-site-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cos-site-footer__socials,
.cos-site-header__socials {
  align-items: center;
}

.rx-hero::before {
  background: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(110deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24) 78%, transparent 100%);
          mask-image: linear-gradient(110deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24) 78%, transparent 100%);
}

@media (min-width: 768px) {
  .rx-hero__copy {
    align-items: center;
  }

  .rx-hero__brand {
    align-self: center;
  }
}

/* Home contrast hierarchy: quiet sections, stronger actionable cards, restrained red accents. */

.site-actions,
.site-contact-section,
.professionals-section,
.instagram-section {
  border-width: 1px;
  border-color: #C8C4BE;
}

.site-actions {
  background: rgba(255, 255, 255, 0.9);
}

.site-action-card {
  --site-card-wash: none;
  border-width: 1px;
  border-color: #D2CFCA;
  background: #fff;
}

.site-action-card--turnos,
.site-action-card--primary {
  border-color: #C8C4BE;
  background: linear-gradient(145deg, #F5F3F0 0%, #ECEAE6 100%);
}

.site-action-card--turnos:hover,
.site-action-card--primary:hover {
  border-color: color-mix(in srgb, var(--cos-accent) 48%, transparent);
}

.site-action-card--turnos .site-action-card__cta,
.site-action-card--primary .site-action-card__cta {
  color: var(--cos-ink);
}

.site-action-card--whatsapp,
.site-action-card--support {
  border-color: rgba(35, 105, 83, 0.34);
  background: #F0F7F4;
}

.site-action-card--whatsapp .site-action-card__cta,
.site-action-card--support .site-action-card__cta {
  color: #236953;
}

.site-action-card--recetas {
  border-color: color-mix(in srgb, var(--cos-accent) 28%, transparent);
  background: color-mix(in srgb, var(--cos-accent) 8%, #FAF9F7);
}

.site-action-card--recetas:hover {
  border-color: color-mix(in srgb, var(--cos-accent) 54%, transparent);
}

.site-action-card--recetas .site-action-card__cta,
.site-action-card--recetas:hover .site-action-card__cta {
  color: var(--cos-accent);
}

.site-action-card--estudios {
  border-color: #236953;
  background: #236953;
  box-shadow: none;
}

.site-action-card--estudios:hover {
  border-color: #1B5744;
  background: #1B5744;
  box-shadow: 0 14px 28px -24px rgba(35, 105, 83, 0.66);
}

.site-action-card--estudios .site-action-card__text {
  color: rgba(255, 255, 255, 0.88);
}

.site-info-card {
  border-width: 1px;
  border-color: #D2CFCA;
  background: #F8F7F4;
  box-shadow: none;
  transform: none;
}

.site-info-card:hover {
  border-color: #BAB7B2;
  box-shadow: none;
  transform: none;
}

.site-info-grid .site-info-card:first-child {
  border-color: color-mix(in srgb, var(--cos-accent) 30%, transparent);
  background: color-mix(in srgb, var(--cos-accent) 8%, #FAF9F7);
}

.site-info-grid .site-info-card:first-child:hover {
  border-color: color-mix(in srgb, var(--cos-accent) 56%, transparent);
}

.site-info-grid .site-info-card:first-child .site-info-card__title {
  background: var(--cos-accent);
}

.site-info-grid .site-info-card:first-child .site-info-card__list a {
  color: var(--cos-accent-deep);
}

.site-locations {
  border-top-width: 1px;
}

.site-location-card {
  border-width: 1px;
  border-color: #D2CFCA;
  background: #F8F7F4;
  box-shadow: none;
}

.site-location-card:last-of-type {
  border-color: color-mix(in srgb, var(--cos-accent) 30%, transparent);
  background: color-mix(in srgb, var(--cos-accent) 8%, #FAF9F7);
}

.site-location-card__map {
  border-top-width: 1px;
}

.site-location-card__link {
  color: var(--cos-accent-deep);
}

.professionals-section {
  background: rgba(255, 255, 255, 0.9);
}

.instagram-section {
  position: relative;
  min-width: 0;
  border: 1px solid #C8C4BE;
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(var(--cos-glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--cos-glass-blur-soft));
}

.instagram-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.instagram-section__title {
  margin: 0;
  color: #3D3B39;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.instagram-section__text {
  margin-top: 0.4rem;
  max-width: 36rem;
  color: #737373;
  font-size: 0.95rem;
  line-height: 1.45;
}

.instagram-section__cta {
  border-color: #D2CFCA;
  background: #fff;
  color: #3D3B39;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.instagram-section__cta:hover,
.instagram-section__cta:focus-visible {
  border-color: color-mix(in srgb, var(--cos-accent) 45%, transparent);
  background: #fff;
  color: var(--cos-accent);
  filter: none;
}

.instagram-carousel {
  margin-top: 1.25rem;
  min-width: 0;
}

.instagram-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.instagram-carousel__status {
  margin: 0;
  color: #737373;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.instagram-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #D2CFCA;
  border-radius: 9999px;
  background: #fff;
  color: #3D3B39;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.instagram-carousel__nav:hover,
.instagram-carousel__nav:focus-visible {
  border-color: color-mix(in srgb, var(--cos-accent) 45%, transparent);
  color: var(--cos-accent);
  outline: none;
}

.instagram-carousel__nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.instagram-carousel__track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.15rem 0.15rem 0.65rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.instagram-carousel__slide {
  flex: 0 0 min(100%, 20.5rem);
  width: min(100%, 20.5rem);
  max-width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.instagram-carousel__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #D2CFCA;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 30px -26px rgba(61, 59, 57, 0.42);
}

.instagram-carousel__embed {
  position: relative;
  min-width: 0;
  min-height: 24.5rem;
  overflow: hidden;
  background: #F0EEEC;
}

.instagram-carousel__embed::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(61, 59, 57, 0.06), rgba(61, 59, 57, 0.02) 55%, rgba(61, 59, 57, 0.06));
  animation: cos-instagram-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.instagram-carousel__embed.is-ready::before {
  display: none;
}

.instagram-carousel__embed > a,
.instagram-carousel__fallback {
  position: absolute;
  z-index: 1;
  inset: auto 1rem 1rem;
  display: inline-flex;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3D3B39;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.instagram-carousel__embed.is-ready .instagram-carousel__fallback,
.instagram-carousel__embed.is-ready > a {
  display: none;
}

.instagram-carousel__embed iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 24.5rem;
  height: 24.5rem;
  max-width: 100%;
  border: 0;
  background: #fff;
}

.instagram-carousel__caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0.95rem 1rem 1.1rem;
  border-top: 1px solid #E8E5E1;
  background: linear-gradient(180deg, #FBF9F7 0%, #F7F5F2 100%);
}

.instagram-carousel__caption p {
  margin: 0;
  color: #3D3B39;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.instagram-carousel__more {
  margin-left: 0.2rem;
  color: var(--cos-accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  white-space: nowrap;
}

.instagram-carousel__more:hover,
.instagram-carousel__more:focus-visible {
  color: var(--cos-accent-deep);
}

@keyframes cos-instagram-shimmer {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-carousel__embed::before {
    animation: none;
  }

  .instagram-carousel__track {
    scroll-behavior: auto;
  }
}

@media (min-width: 768px) {
  .instagram-carousel__slide {
    flex-basis: min(100%, 22rem);
    width: min(100%, 22rem);
  }
}

@media (min-width: 1100px) {
  .instagram-carousel__toolbar {
    display: none;
  }

  .instagram-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    overflow: visible;
    padding-bottom: 0.15rem;
    scroll-snap-type: none;
  }

  .instagram-carousel__slide {
    width: auto;
    flex: initial;
  }
}

/* En Recetas/Turnero ocultamos la barra fija para no tapar formularios;
   el menú del encabezado sigue disponible. */

@media (max-width: 1023px) {
  html {
    scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  .cos-site-footer__shell {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom));
  }

  .recetas-page .cos-mobile-actions,
  .turnero-page .cos-mobile-actions {
    display: none;
  }

  .recetas-page .rx-main {
    padding-bottom: 2.5rem;
  }

  .recetas-page .cos-site-footer__shell,
  .turnero-page .cos-site-footer__shell {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* En viewports muy bajos (teclado / landscape estrecho) la barra fija
   ocupa demasiado; el menú del encabezado cubre las mismas rutas. */

@media (max-width: 1023px) and (max-height: 480px) {
  .cos-mobile-actions {
    display: none;
  }

  .cos-site-footer__shell {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

.hover\:text-cos-red:hover {
  color: var(--cos-accent);
}

.hover\:text-emerald-600:hover {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

@media (min-width: 640px) {
  .sm\:w-\[220px\] {
    width: 220px;
  }

  .sm\:px-7 {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .md\:pb-8 {
    padding-bottom: 2rem;
  }

  .md\:pt-4 {
    padding-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .lg\:mt-0 {
    margin-top: 0px;
  }

  .lg\:block {
    display: block;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_320px\] {
    grid-template-columns: minmax(0,1fr) 320px;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:py-9 {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}
