/* Cuina Integral · estilos comunes a todas las páginas (los carga el plugin): Joinchat, idioma y menú móvil. */

/* Joinchat abierto: en móvil ocupa el ancho con el mismo margen a izquierda y derecha; en escritorio, 460 px. */
body .joinchat { --ci-jc-x: 20px; --sep: var(--ci-jc-x); }
body .joinchat .joinchat__chatbox { box-sizing: border-box; min-width: 0; margin-inline: 0; width: 460px; max-width: calc(100vw - 2 * var(--ci-jc-x)); }
@media (max-width: 767px) {
  body .joinchat { --ci-jc-x: 16px; }
  body .joinchat.joinchat--chatbox { left: var(--ci-jc-x) !important; right: var(--ci-jc-x) !important; width: auto !important; max-width: 100% !important; }
  body .joinchat.joinchat--chatbox .joinchat__chatbox { left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; }
}

/* Selector de idioma: desplegable nativo. En escritorio, fijo abajo a la izquierda; hasta 1024 px, dentro del menú. */
.ci-lang-select {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; width: auto; min-height: 48px; margin: 0; padding: 0 38px 0 16px;
  border: 1px solid #C1B7A7; border-radius: 2px; cursor: pointer;
  background: #FDFDFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2356634B' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #2C2D26; font: 500 16px/1.2 'Barlow', sans-serif;
}
.ci-lang-select:hover { border-color: #56634B; }
.ci-lang-select:focus-visible { outline: 2px solid #A2B3A1; outline-offset: 3px; }
.ci-lang-float { position: fixed; left: 28px; bottom: 34px; z-index: 112; }
.ci-lang-float .ci-lang-select { box-shadow: 0 4px 16px rgba(44, 45, 38, .14); }
@media (max-width: 1024px) { .ci-lang-float { display: none; } }

/* Cabecera en tablet y móvil: logo a la izquierda; «Pedir cita» y menú, juntos a la derecha. */
@media (max-width: 1024px) {
  .ci-header .ci-header__cta.ci-header__cta, .ci-page-header .ci-header__cta.ci-header__cta { margin-left: auto !important; }
}

/* Menú de tablet y móvil. */
.ci-burger button {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 -12px 0 0; padding: 0;
  border: 0; border-radius: 2px; background: none !important; color: #2C2D26 !important; cursor: pointer;
}
.ci-header:not(.is-solid) .ci-burger button { color: #FDFDFD !important; }
.ci-burger button:focus-visible { outline: 2px solid #A2B3A1; outline-offset: -2px; }
.ci-burger span, .ci-burger span::before, .ci-burger span::after { display: block; width: 24px; height: 2px; background: currentColor; }
.ci-burger span { position: relative; }
.ci-burger span::before, .ci-burger span::after { content: ""; position: absolute; left: 0; top: 0; transition: transform .2s ease; }
.ci-burger span::before { transform: translateY(-7px); }
.ci-burger span::after { transform: translateY(7px); }
.is-open .ci-burger span { background: transparent; }
.is-open .ci-burger span::before { transform: rotate(45deg); }
.is-open .ci-burger span::after { transform: rotate(-45deg); }
.e-con.ci-menu { display: none; }
.is-open .e-con.ci-menu {
  display: flex; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-width: none;
  height: calc(100vh - var(--ci-menu-top, 96px)); height: calc(100dvh - var(--ci-menu-top, 96px)); overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 1025px) { .ci-burger, .is-open .e-con.ci-menu { display: none; } }
html.ci-menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ci-burger span::before, .ci-burger span::after { transition: none; } }

/* Turnstile mide 300 px como mínimo: en móviles estrechos se reduce para no salirse del formulario. */
@media (max-width: 389px) { .ci-form .cf-turnstile { width: 300px !important; transform: scale(.95); transform-origin: 0 0; } }
@media (max-width: 372px) { .ci-form .cf-turnstile { transform: scale(.9); } }
@media (max-width: 357px) { .ci-form .cf-turnstile { transform: scale(.77); margin-bottom: -12px; } }
