.contactcenter-page {
  --cc-font-size: 1.125rem;
  --cc-btn-min-height: 3rem;
}

.cc-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  font-size: var(--cc-font-size);
  line-height: 1.5;
}

.cc-hero {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--cos-surface-elevated, #f7f5f3);
  border: 1px solid var(--cos-border, #d8d4cf);
}

.cc-hero__title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: 0.25rem 0;
}

.cc-hero__lead {
  margin: 0;
  max-width: 36ch;
}

.cc-progress {
  margin-top: 1rem;
}

.cc-progress__bar {
  height: 0.5rem;
  background: #e5e1dc;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.cc-progress__bar span {
  display: block;
  height: 100%;
  background: var(--cos-accent, #b91c1c);
  transition: width 0.25s ease;
}

.cc-panel {
  padding: 1.25rem;
  border: 1px solid var(--cos-border, #d8d4cf);
  border-radius: 0.75rem;
  background: #fff;
}

.cc-panel__title {
  font-size: 1.5rem;
  margin-top: 0;
}

.cc-panel__hint {
  color: #252422;
  margin-bottom: 1rem;
}

.cc-field {
  margin-bottom: 1rem;
}

.cc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cc-input {
  width: 100%;
  min-height: var(--cc-btn-min-height);
  padding: 0.65rem 0.85rem;
  font-size: 1.0625rem;
  border: 2px solid #3d3b39;
  border-radius: 0.5rem;
}

.cc-input:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.cc-field--checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.cc-field--checkbox input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cc-btn-min-height);
  min-width: 8rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.cc-btn--primary {
  background: var(--cos-accent, #b91c1c);
  color: #fff;
  width: 100%;
}

.cc-btn--ghost {
  background: transparent;
  border-color: #3d3b39;
  margin-top: 1rem;
}

.cc-choices {
  display: grid;
  gap: 0.75rem;
}

.cc-choice {
  min-height: 3.25rem;
  padding: 1rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid #3d3b39;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.cc-choice:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.cc-choice--selected,
.cc-choice[aria-pressed='true'] {
  background: #f3e8e8;
  border-color: #a23131;
  box-shadow: inset 0 0 0 1px #a23131;
}

.cc-choice--pending,
.cc-choice[aria-busy='true'] {
  opacity: 0.92;
  cursor: wait;
}

.cc-choice--small {
  min-height: 2.75rem;
  font-size: 1rem;
}

.cc-dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.cc-dl dt {
  font-weight: 600;
}

.cc-dl [data-cc-wait-elapsed] {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cos-accent, #b91c1c);
}

.cc-wait-elapsed--long {
  color: #b45309;
}

.cc-chat-log {
  min-height: 14rem;
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: #fafafa;
}

.cc-msg {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  max-width: 90%;
}

.cc-msg--patient {
  margin-left: auto;
  background: #dbeafe;
}

.cc-msg--operator {
  background: #fff;
  border: 1px solid #ddd;
}

.cc-msg--system {
  background: #fef3c7;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.95rem;
}

.cc-msg__meta {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.15rem;
}

.cc-msg--highlight {
  box-shadow: 0 0 0 3px var(--cos-accent, #b91c1c);
  animation: cc-msg-pulse 1.2s ease-in-out 2;
}

@keyframes cc-msg-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(185, 28, 28, 0.55);
  }
}

.cc-wait-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cc-chat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cc-panel-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e2de;
}

.cc-btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.cc-btn--end-contact {
  font-weight: 600;
  color: #7f1d1d;
  border-color: #b91c1c;
}

.cc-btn--end-contact:hover {
  background: #fef2f2;
}

.cc-chat-header .cc-panel__title {
  margin-bottom: 0;
}

.cc-sound-toggle {
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #3d3b39;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.cc-sound-toggle[aria-pressed='true'] {
  background: #f3f4f6;
  border-color: #6b7280;
}

.cc-sound-toggle--compact {
  min-height: 2.5rem;
  font-size: 0.875rem;
}

.cc-attended-banner {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  border: 2px solid #059669;
  color: #064e3b;
  font-size: 1.05rem;
}

.cc-attended-banner--chat {
  margin-bottom: 0.75rem;
}

.cc-chat-closed-banner {
  margin-bottom: 0.75rem;
}

.cc-survey-callout {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 0.75rem;
  border: 2px solid var(--cos-accent, #b91c1c);
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 45%, #fde68a 100%);
  box-shadow:
    0 4px 14px rgb(185 28 28 / 0.12),
    0 0 0 1px rgb(255 255 255 / 0.6) inset;
}

.cc-survey-callout:not([hidden]) {
  position: sticky;
  top: 0.5rem;
  z-index: 3;
  animation: cc-survey-callout-enter 0.55s ease-out both;
}

.cc-survey-callout__glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.85), transparent 55%);
  pointer-events: none;
  animation: cc-survey-callout-shimmer 4s ease-in-out infinite;
}

.cc-survey-callout__content {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
}

.cc-survey-callout__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
}

.cc-survey-callout__text {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #292524;
  line-height: 1.45;
}

.cc-survey-callout__cta {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.1875rem;
  box-shadow: 0 3px 10px rgb(185 28 28 / 0.35);
  animation: cc-survey-callout-cta-pulse 2.2s ease-in-out infinite;
}

.cc-survey-callout__cta:hover,
.cc-survey-callout__cta:focus-visible {
  animation: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(185 28 28 / 0.4);
}

@keyframes cc-survey-callout-enter {
  from {
    opacity: 0;
    transform: translateY(-0.35rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cc-survey-callout-shimmer {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4%);
  }
}

@keyframes cc-survey-callout-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 3px 10px rgb(185 28 28 / 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgb(185 28 28 / 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-survey-callout:not([hidden]),
  .cc-survey-callout__glow,
  .cc-survey-callout__cta {
    animation: none;
  }
}

.cc-chat-form--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cc-brief__field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.cc-brief__label {
  font-weight: 700;
}

.cc-brief__field .cc-input,
[data-cc-brief-files] {
  width: 100%;
}

textarea.cc-input {
  min-height: 7rem;
  resize: vertical;
}

.cc-chat-form {
  display: grid;
  gap: 0.75rem;
}

.cc-chat-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.cc-chat-form__actions .cc-btn--primary {
  flex: 1 1 auto;
  min-width: 7rem;
}

.cc-chat-camera {
  flex: 0 0 auto;
}

.cc-msg__image {
  display: block;
  max-width: min(100%, 20rem);
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.35rem;
}

.cc-msg__caption {
  margin: 0.35rem 0 0;
}

.cc-msg--pending {
  opacity: 0.85;
}

.cc-msg--failed {
  opacity: 1;
  border-color: #b42318;
}

.cc-msg--failed .cc-msg__meta {
  color: #b42318;
}

.cc-btn--secondary {
  background: #fff;
  color: #3d3b39;
  border: 2px solid #3d3b39;
}

.contactcenter-page .cc-main {
  padding-bottom: 1.5rem;
}

.cc-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cc-star {
  min-height: 3rem;
  min-width: 3rem;
  font-size: 1rem;
  border: 2px solid #3d3b39;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.cc-star--selected,
.cc-star[aria-pressed='true'] {
  background: #fef3c7;
  border-color: #d97706;
  box-shadow: inset 0 0 0 1px #d97706;
}

.cc-star[aria-busy='true'] {
  cursor: wait;
  opacity: 0.85;
}

.cc-alert {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.cc-alert--error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.cc-alert--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}

.cc-alert--success {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 640px) {
  .cc-btn--primary {
    width: auto;
  }
}

/* —— Paso 1: identificación (layout editorial / ficha) —— */
.cc-identify {
  --cc-id-ink: #2a2e28;
  --cc-id-muted: #6b6a64;
  --cc-id-paper: #f7f5f3;
  --cc-id-line: #d8d4cf;
  --cc-id-accent: var(--cos-accent, #b91c1c);
  --cc-id-display: var(--cos-display, Fraunces, "Times New Roman", serif);
  --cc-id-ui: var(--cos-ui, "Atkinson Hyperlegible", "Droid Sans", sans-serif);
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--cc-id-ui);
}

.cc-identify::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--cc-id-line);
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(185, 28, 28, 0.07), transparent 55%),
    linear-gradient(165deg, #fff 0%, var(--cc-id-paper) 100%);
  pointer-events: none;
  z-index: 0;
}

.cc-identify::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.cc-identify__mast,
.cc-identify__form {
  position: relative;
  z-index: 1;
}

.cc-identify__mast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 1.35rem 0.75rem;
  border-bottom: 1px solid rgba(216, 212, 207, 0.85);
}

.cc-identify__mast-mark {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  color: var(--cc-id-accent);
}

.cc-identify__mast-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cc-id-accent);
  opacity: 0.35;
  animation: cc-id-pulse 3s ease-in-out infinite;
}

@keyframes cc-id-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.15;
  }
}

.cc-identify__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-id-accent);
}

.cc-identify__title {
  margin: 0;
  font-family: var(--cc-id-display);
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cc-id-ink);
  letter-spacing: -0.02em;
}

.cc-identify__lede {
  margin: 0.45rem 0 0;
  max-width: 38ch;
  font-size: 1rem;
  color: var(--cc-id-muted);
  line-height: 1.45;
}

.cc-identify__form {
  padding: 1rem 1.35rem 1.35rem;
}

.cc-identify__bento {
  display: grid;
  gap: 0.85rem;
}

.cc-identify__tile {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 0.5rem;
  border: 1px solid var(--cc-id-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(42, 46, 40, 0.04);
  animation: cc-id-rise 0.55s ease backwards;
}

.cc-identify__tile--doc {
  animation-delay: 0.06s;
  border-left: 3px solid var(--cc-id-accent);
}

.cc-identify__tile--name {
  animation-delay: 0.12s;
}

.cc-identify__tile--contact {
  animation-delay: 0.18s;
}

@keyframes cc-id-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc-identify__tile-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-id-muted);
}

.cc-doc-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.cc-doc-btn {
  position: relative;
  cursor: pointer;
}

.cc-doc-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-doc-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.75rem 0.5rem;
  border: 3px solid #3d3b39;
  border-radius: 1.15rem;
  background: #fff;
  color: var(--cc-id-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cc-doc-btn input:focus-visible + span {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.cc-doc-btn input:checked + span {
  background: var(--cc-id-accent);
  border-color: #7f1d1d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.28);
}

.cc-doc-btn input:checked + span::after {
  content: "Elegido";
  display: block;
  margin-left: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cc-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.cc-keypad button {
  min-height: 3.6rem;
  border: 0;
  border-radius: 0.9rem;
  background: #2a2e28;
  color: #fff;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
}

.cc-keypad button:active {
  transform: scale(0.96);
  background: var(--cc-id-accent, #b91c1c);
}

.cc-keypad button[data-cc-key="back"],
.cc-keypad button[data-cc-key="ok"] {
  background: #f3e8e8;
  color: #7f1d1d;
  font-size: 1.05rem;
}

.cc-email-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cc-email-domains button {
  min-height: 2.9rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid #b91c1c;
  border-radius: 999px;
  background: #fff7f7;
  color: #7f1d1d;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.cc-email-domains button:active {
  background: #b91c1c;
  color: #fff;
}

.cc-identify__consent.is-accepted {
  border-style: solid;
  border-color: #b91c1c;
  background: #fff5f5;
  animation: cc-consent-glow 1.4s ease 0.35s 2;
}

.cc-identify__consent.is-accepted .cc-identify__consent-title::after {
  content: " · aceptado";
  color: #b91c1c;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

@keyframes cc-consent-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(185, 28, 28, 0.16);
  }
}

[data-cc-panel="motive"] .cc-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
  gap: 0.85rem;
}

[data-cc-panel="motive"] .cc-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 0;
  padding: 1rem;
  text-align: center;
  line-height: 1.2;
  font-size: 1.2rem;
  border-width: 3px;
  border-radius: 1.35rem;
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 46, 40, 0.12);
}

[data-cc-panel="motive"] .cc-choice:nth-child(3n + 1) {
  background: #9f1239;
  border-color: #7f1d1d;
}

[data-cc-panel="motive"] .cc-choice:nth-child(3n + 2) {
  background: #c2410c;
  border-color: #9a3412;
}

[data-cc-panel="motive"] .cc-choice:nth-child(3n) {
  background: #1c3a2e;
  border-color: #14532d;
}

[data-cc-panel="motive"] .cc-choice:active {
  transform: scale(0.98);
}

[data-cc-panel="motive"] .cc-choice--selected,
[data-cc-panel="motive"] .cc-choice[aria-pressed="true"] {
  outline: 4px solid #f5d76e;
  outline-offset: 3px;
  box-shadow: 0 12px 24px rgba(42, 46, 40, 0.22);
  filter: brightness(1.08);
}

.cc-btn--block {
  width: 100%;
}

.cc-identify__float {
  position: relative;
  margin-top: 0.25rem;
}

.cc-identify__float label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cc-id-muted);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.cc-identify__input {
  width: 100%;
  min-height: 3.1rem;
  padding: 1.15rem 0 0.35rem;
  font-size: 1.125rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--cc-id-ink);
  border: none;
  border-bottom: 2px solid #3d3b39;
  border-radius: 0;
  background: transparent;
}

.cc-identify__input--doc {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.cc-identify__input:focus {
  outline: none;
  border-bottom-color: var(--cc-id-accent);
}

.cc-identify__input:focus + label,
.cc-identify__input:not(:placeholder-shown) + label {
  top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-id-accent);
}

.cc-identify__scanline {
  display: block;
  height: 2px;
  margin-top: -2px;
  background: linear-gradient(90deg, transparent, var(--cc-id-accent), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.cc-identify__input--doc:focus ~ .cc-identify__scanline {
  opacity: 0.55;
  transform: scaleX(1);
}

.cc-identify__contact-grid {
  display: grid;
  gap: 0.75rem;
}

.cc-identify__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--cc-id-line);
  background: rgba(247, 245, 243, 0.65);
  animation: cc-id-rise 0.55s ease 0.24s backwards;
}

.cc-identify__consent input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--cc-id-accent);
}

.cc-identify__consent-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.45;
}

.cc-identify__consent-title {
  font-weight: 700;
  color: var(--cc-id-ink);
}

.cc-identify__consent-body {
  font-size: 0.9375rem;
  color: var(--cc-id-muted);
}

.cc-identify__consent-body a {
  color: var(--cc-id-accent);
  font-weight: 600;
}

.cc-identify__foot {
  margin-top: 1rem;
  animation: cc-id-rise 0.55s ease 0.3s backwards;
}

.cc-identify__submit {
  width: 100%;
  gap: 0.65rem;
  letter-spacing: 0.02em;
}

.cc-identify__submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.cc-identify__submit:hover .cc-identify__submit-icon,
.cc-identify__submit:focus-visible .cc-identify__submit-icon {
  transform: translateX(3px);
}

.cc-identify .cc-alert {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .cc-identify__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "doc doc"
      "name contact";
  }

  .cc-identify__tile--doc {
    grid-area: doc;
  }

  .cc-identify__tile--name {
    grid-area: name;
  }

  .cc-identify__tile--contact {
    grid-area: contact;
  }

  .cc-identify__contact-grid {
    grid-template-columns: 1fr;
  }

  .cc-identify__submit {
    width: auto;
    min-width: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-identify__tile,
  .cc-identify__consent,
  .cc-identify__foot,
  .cc-identify__mast-ring {
    animation: none;
  }
}

/* —— Modo confort (mayores + touch) —— */
.contactcenter-page--comfort {
  --cc-font-size: 1.1875rem;
  --cc-btn-min-height: 3.25rem;
  --cc-touch-min: 2.75rem;
}

.contactcenter-page--comfort .cc-main {
  padding-bottom: 5.5rem;
}

.cc-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cc-btn--compact {
  min-height: 2.75rem;
  min-width: auto;
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
}

.cc-wait-photos {
  margin: 0.25rem 0 1rem;
}

.cc-wait-photos__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.cc-wait-photos__list:empty {
  display: none;
}

.cc-wait-photo {
  width: 5.75rem;
  height: 5.75rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 2px solid #3d3b39;
}

.cc-wait-photo.is-pending {
  opacity: 0.55;
}

.cc-wait-photo.is-failed {
  outline: 3px solid #b91c1c;
  outline-offset: 2px;
}

.cc-wait-photos__btn {
  min-height: 3.5rem;
  cursor: pointer;
}

.cc-help-dock {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 2px solid #d8d4cf;
  box-shadow: 0 -4px 16px rgba(42, 46, 40, 0.08);
}

.cc-help-dock__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: max(3rem, var(--cc-touch-min, 2.75rem));
  padding: 0.65rem 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  color: #2a2e28;
  border: 2px solid #3d3b39;
  border-radius: 0.5rem;
  background: #fff;
}

.cc-help-dock__btn--wa {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

@media (pointer: coarse) {
  .contactcenter-page--comfort {
    --cc-btn-min-height: 3.5rem;
    --cc-touch-min: 3.25rem;
  }

  .contactcenter-page--comfort .cc-choice,
  .contactcenter-page--comfort .cc-star {
    min-height: 3.5rem;
    font-size: 1.125rem;
  }

  .contactcenter-page--comfort .cc-star {
    min-width: 3.5rem;
    flex: 1 1 calc(20% - 0.5rem);
    justify-content: center;
  }

  .contactcenter-page--comfort .cc-stars {
    gap: 0.65rem;
  }

  .contactcenter-page--comfort .cc-help-dock__btn {
    min-height: 3.35rem;
    font-size: 1.125rem;
  }

  .contactcenter-page--comfort .cc-doc-btn span {
    min-height: 4.5rem;
  }
}

@media (min-width: 720px) {
  .cc-help-dock {
    position: static;
    max-width: 42rem;
    margin: 1rem auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .contactcenter-page--comfort .cc-main {
    padding-bottom: 2rem;
  }
}
