.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.phone-modal[hidden] {
  display: none !important;
}

.phone-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
}

.phone-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--mars-white);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(10, 10, 10, 0.2);
  animation: phone-modal-in 0.28s var(--ease-out);
}

@keyframes phone-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--mars-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.phone-modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.phone-modal__close:hover {
  color: var(--mars-black);
  background: var(--mars-off-white);
}

.phone-modal__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mars-purple);
}

.phone-modal__title {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.phone-modal__number {
  margin: 0 0 1.35rem;
  color: var(--mars-muted);
  font-size: 0.95rem;
}

.phone-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-modal__action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--mars-border);
  background: var(--mars-off-white);
  color: var(--mars-black);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease,
    background 0.2s ease;
}

.phone-modal__action:hover {
  color: var(--mars-black);
  transform: translateY(-1px);
}

.phone-modal__action--whatsapp:hover {
  border-color: #25d366;
  background: #f0fff5;
}

.phone-modal__action--call:hover {
  border-color: var(--mars-cyan);
  background: #f0fafc;
}

.phone-modal__action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-modal__action--whatsapp .phone-modal__action-icon {
  background: #25d366;
  color: #fff;
}

.phone-modal__action--call .phone-modal__action-icon {
  background: var(--mars-teal);
  color: #fff;
}

.phone-modal__action-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.phone-modal__action-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.phone-modal__action-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.phone-modal__action-text small {
  font-size: 0.8rem;
  color: var(--mars-muted);
}

body.is-phone-modal-open {
  overflow: hidden;
}

.phone-trigger {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.phone-trigger:hover {
  color: var(--mars-cyan);
}

.site-footer .phone-trigger:hover {
  color: var(--mars-cyan);
}
