/* Aviso de cookies: estilos tomados de soriberica.com (CookieYes 3.5, tipo "box" abajo a la izquierda) */
.cky-hide { display: none !important; }

.cky-overlay { background: #000000; opacity: 0.4; position: fixed; inset: 0; z-index: 99999999; }

/* Botón flotante para volver a abrir las preferencias */
.cky-btn-revisit-wrapper { display: flex; align-items: center; justify-content: center; background: #0056a7; width: 45px; height: 45px; border-radius: 50%; position: fixed; bottom: 15px; left: 15px; z-index: 999999; cursor: pointer; }
.cky-btn-revisit { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 0; width: 100%; height: 100%; }
.cky-btn-revisit-wrapper:hover::before { content: attr(data-tooltip); position: absolute; left: calc(100% + 7px); background: #4e4b66; color: #ffffff; font-size: 12px; line-height: 16px; width: max-content; padding: 4px 8px; border-radius: 4px; }
.cky-revisit-hide { display: none; }

/* Aviso inicial */
.cky-consent-container { position: fixed; width: 440px; box-sizing: border-box; z-index: 9999999; border-radius: 6px; font-family: inherit; }
.cky-consent-container .cky-consent-bar { position: relative; background: #ffffff; border: 1px solid #f4f4f4; padding: 20px 26px; box-shadow: 0 -1px 10px 0 #acabab4d; border-radius: 6px; }
.cky-box-bottom-left { bottom: 40px; left: 40px; }
.cky-banner-btn-close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; }
.cky-notice .cky-title { color: #212121; font-weight: 700; font-size: 18px; line-height: 24px; margin: 0 0 12px 0; }
.cky-notice-des { color: #212121; font-size: 14px; line-height: 24px; font-weight: 400; max-height: 40vh; overflow-y: auto; }
.cky-notice-des p, .cky-preference-content-wrapper p, .cky-accordion-header-des p { margin: 0 0 8px 0; overflow-wrap: break-word; }
.cky-notice-des p:last-child, .cky-preference-content-wrapper p:last-child, .cky-accordion-header-des p:last-child { margin-bottom: 0; }
a.cky-policy { color: #1863dc; text-decoration: underline; white-space: nowrap; }

.cky-notice-btn-wrapper { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cky-btn { flex: auto; max-width: 100%; font-size: 14px; font-family: inherit; line-height: 24px; padding: 8px; font-weight: 500; border-radius: 2px; cursor: pointer; text-align: center; border: 2px solid #262340; }
.cky-btn:hover { opacity: 0.8; }
.cky-btn:focus-visible, .cky-btn-close:focus-visible, .cky-accordion-btn:focus-visible, .cky-switch input:focus-visible { outline: 2px solid #1863dc; outline-offset: 2px; }
.cky-btn-customize, .cky-btn-reject { color: #262340; background: transparent; }
.cky-btn-accept { color: #ffffff; background: #262340; }
.cky-btn-preferences { color: #1863dc; background: transparent; border-color: #1863dc; }

/* Centro de preferencias */
.cky-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, 100%); visibility: hidden; max-width: 100%; background: #ffffff; color: #212121; border-radius: 6px; box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3); z-index: 999999999; }
.cky-modal.cky-modal-open { display: flex; visibility: visible; transform: translate(-50%, -50%); transition: all 0.4s ease; }
.cky-preference-center { max-height: 79vh; width: 845px; max-width: 100vw; overflow: hidden; display: flex; flex-direction: column; border-radius: 6px; }
.cky-preference-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #f4f4f4; }
.cky-preference-title { font-size: 18px; font-weight: 700; line-height: 24px; }
.cky-btn-close { background: none; border: none; font-size: 24px; line-height: 1; color: #6b7280; cursor: pointer; padding: 0; }
.cky-preference-body-wrapper { padding: 0 24px; flex: 1; overflow: auto; }
.cky-preference-content-wrapper { font-size: 14px; line-height: 24px; padding: 12px 0; border-bottom: 1px solid #f4f4f4; }

.cky-accordion-wrapper { margin-bottom: 10px; }
.cky-accordion { border-bottom: 1px solid #f4f4f4; }
.cky-accordion:last-child { border-bottom: none; }
.cky-accordion-item { display: flex; margin-top: 10px; }
.cky-accordion-body { display: none; }
.cky-accordion-active .cky-accordion-body { display: block; padding: 0 22px; margin-bottom: 16px; }
.cky-accordion-header-wrapper { cursor: pointer; width: 100%; }
.cky-accordion-header { display: flex; justify-content: space-between; align-items: center; }
.cky-accordion-btn { font-size: 16px; font-family: inherit; color: #212121; line-height: 24px; background: none; border: none; font-weight: 700; padding: 0; cursor: pointer; }
.cky-always-active { color: #008000; font-weight: 600; line-height: 24px; font-size: 14px; }
.cky-accordion-header-des { font-size: 14px; line-height: 24px; margin: 10px 0 16px 0; }
.cky-accordion-chevron { margin-right: 22px; position: relative; cursor: pointer; }
.cky-accordion-chevron i::before { content: ""; position: absolute; top: 8px; width: 6px; height: 6px; border-right: 1.4px solid #212121; border-bottom: 1.4px solid #212121; transform: rotate(-45deg); transition: all 0.2s ease-in-out; }
.cky-accordion-active .cky-accordion-chevron i::before { transform: rotate(45deg); }

.cky-audit-table { background: #f4f4f4; border-radius: 6px; }
.cky-empty-cookies-text { font-size: 12px; line-height: 24px; margin: 0; padding: 10px; }
.cky-cookie-des-table { font-size: 12px; line-height: 24px; list-style: none; padding: 15px 10px; margin: 0; border-bottom: 1px solid #ebebeb; }
.cky-cookie-des-table:last-child { border-bottom: none; }
.cky-cookie-des-table li { display: flex; padding: 3px 0; }
.cky-cookie-des-table li div:first-child { width: 100px; font-weight: 600; flex-shrink: 0; }

/* Interruptor */
.cky-switch { display: flex; }
.cky-switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 50px; background: #d0d5d2; cursor: pointer; transition: background-color 0.2s; }
.cky-switch input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; transition: transform 0.2s; }
.cky-switch input[type="checkbox"]:checked { background: #1863dc; }
.cky-switch input[type="checkbox"]:checked::before { transform: translateX(20px); }

.cky-footer-wrapper { border-top: 1px solid #f4f4f4; }
.cky-prefrence-btn-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 22px 24px; }

/* Móvil (mismos cortes que CookieYes) */
@media (max-width: 576px) {
  .cky-box-bottom-left { bottom: 0; left: 0; }
}
@media (max-width: 440px) {
  .cky-box-bottom-left { width: 100%; max-width: 100%; }
  .cky-consent-container .cky-consent-bar { padding: 20px 24px; border-radius: 6px 6px 0 0; }
  .cky-notice-btn-wrapper { flex-direction: column; align-items: stretch; }
  .cky-btn { width: 100%; }
  .cky-notice-btn-wrapper .cky-btn-accept { order: 1; }
  .cky-notice-btn-wrapper .cky-btn-customize { order: 2; }
  .cky-notice-btn-wrapper .cky-btn-reject { order: 3; }
  .cky-prefrence-btn-wrapper { flex-direction: column; align-items: stretch; }
  .cky-preference-center { max-height: 100vh; }
}
